Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ht_listbox Class Reference

#include <htdialog.h>

Inheritance diagram for ht_listbox:

ht_view Object ht_history_listbox ht_project_listbox ht_text_listbox SymbolBox ht_itext_listbox ht_pe_export_viewer ht_pe_import_viewer ht_pef_import_viewer ht_xbe_import_viewer VfsListbox ht_pe_dimport_viewer FileBrowserVfsListbox VfsListbox2 List of all members.

Public Member Functions

void init (bounds *b, UINT Listboxcaps=LISTBOX_QUICKFIND)
virtual void done ()
void attachTitle (ht_listbox_title *title)
void adjustPosHack ()
void adjustScrollbar ()
virtual int calcCount ()=0
void clearQuickfind ()
virtual int cursorAdjust ()
int cursorUp (int n)
int cursorDown (int n)
virtual int datasize ()
virtual char * defaultpalette ()
virtual void draw ()
virtual int estimateEntryPos (void *entry)
virtual void getdata (ht_object_stream *s)
virtual void * getFirst ()=0
virtual void * getLast ()=0
virtual void * getNext (void *entry)=0
virtual void * getPrev (void *entry)=0
virtual char * getStr (int col, void *entry)=0
void gotoItemByEntry (void *entry, bool clear_quickfind=true)
virtual void gotoItemByPosition (UINT pos)
virtual void handlemsg (htmsg *msg)
virtual int numColumns ()
virtual void * quickfind (char *s)=0
virtual char * quickfindCompletition (char *s)
virtual void redraw ()
virtual void resize (int rw, int rh)
virtual bool selectEntry (void *entry)
virtual void setdata (ht_object_stream *s)
virtual void stateChanged ()
virtual void update ()
void updateCursor ()
virtual Objectvstate_create ()
void vstate_save ()

Public Attributes

int cursor
int pos
int cached_count
int visible_height
void * e_top
void * e_cursor
int x
char quickfinder [100]
char * qpos
UINT listboxcaps
int cols
int * widths
ht_scrollbarscrollbar
bool mScrollbarEnabled
ht_listbox_titletitle

Protected Member Functions

void rearrangeColumns ()

Member Function Documentation

void ht_listbox::adjustPosHack  ) 
 

Definition at line 1473 of file htdialog.cc.

References cursorDown(), cursorUp(), e_cursor, e_top, getNext(), pos, and visible_height.

Referenced by gotoItemByEntry(), and update().

void ht_listbox::adjustScrollbar  ) 
 

Definition at line 1488 of file htdialog.cc.

References cached_count, cursor, ht_scrollbar::disable(), ht_scrollbar::enable(), mScrollbarEnabled, pos, scrollbar, scrollbar_pos(), ht_view::setbounds(), and ht_scrollbar::setpos().

Referenced by stateChanged().

void ht_listbox::attachTitle ht_listbox_title title  ) 
 

Definition at line 1506 of file htdialog.cc.

References cols, ht_view::dirtyview(), ht_listbox_title::listbox, numColumns(), rearrangeColumns(), title, and ht_listbox_title::update().

Referenced by dialog_assemble(), ht_aviewer::showSymbols(), ht_aviewer::showXRefs(), and srt_x86().

virtual int ht_listbox::calcCount  )  [pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, and ht_history_listbox.

Referenced by ht_listpopup_dialog::insertstring(), and update().

void ht_listbox::clearQuickfind  ) 
 

Definition at line 1515 of file htdialog.cc.

References qpos, quickfinder, and updateCursor().

Referenced by ht_text_listbox::clearAll(), gotoItemByEntry(), handlemsg(), and init().

int ht_listbox::cursorAdjust  )  [virtual]
 

Reimplemented in SymbolBox, ht_text_listbox, and VfsListbox.

Definition at line 1522 of file htdialog.cc.

Referenced by updateCursor().

int ht_listbox::cursorDown int  n  ) 
 

Definition at line 1548 of file htdialog.cc.

References cursor, e_cursor, e_top, getNext(), pos, and visible_height.

Referenced by adjustPosHack(), handlemsg(), ht_history_listbox::handlemsg(), ht_project_listbox::handlemsg(), and ht_listpopup_dialog::select_next().

int ht_listbox::cursorUp int  n  ) 
 

Definition at line 1527 of file htdialog.cc.

References cursor, e_cursor, e_top, getPrev(), and pos.

Referenced by adjustPosHack(), handlemsg(), ht_history_listbox::handlemsg(), ht_project_listbox::handlemsg(), and ht_listpopup_dialog::select_prev().

int ht_listbox::datasize  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1568 of file htdialog.cc.

char * ht_listbox::defaultpalette  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1573 of file htdialog.cc.

References palkey_generic_dialog_default.

void ht_listbox::done  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in SymbolBox, ht_text_listbox, ht_itext_listbox, ht_pe_export_viewer, ht_pef_import_viewer, ht_pe_import_viewer, ht_xbe_import_viewer, and VfsListbox.

Definition at line 1465 of file htdialog.cc.

References ht_view::done(), ht_scrollbar::done(), scrollbar, and widths.

Referenced by ht_text_listbox::done(), and SymbolBox::done().

void ht_listbox::draw  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_project_listbox.

Definition at line 1578 of file htdialog.cc.

References ht_view::buf_lprint(), ht_view::buf_printchar(), CHAR_LINEV, ht_view::clear(), cols, cursor, ht_view::dirtyview(), e_top, ht_view::fill(), ht_view::getcolor(), getNext(), getStr(), mScrollbarEnabled, numColumns(), palidx_generic_list_focused_selected, palidx_generic_list_focused_unselected, palidx_generic_list_unfocused_selected, palidx_generic_list_unfocused_unselected, rearrangeColumns(), title, ht_listbox_title::update(), updateCursor(), visible_height, widths, x, and X.

Referenced by ht_project_listbox::draw().

int ht_listbox::estimateEntryPos void *  entry  )  [virtual]
 

Reimplemented in SymbolBox.

Definition at line 1658 of file htdialog.cc.

References getFirst(), and getNext().

Referenced by gotoItemByEntry().

void ht_listbox::getdata ht_object_stream s  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1671 of file htdialog.cc.

References e_cursor, e_top, and ht_layer_stream::write().

virtual void* ht_listbox::getFirst  )  [pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, and ht_history_listbox.

Referenced by estimateEntryPos(), gotoItemByPosition(), handlemsg(), init(), and update().

virtual void* ht_listbox::getLast  )  [pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, and ht_history_listbox.

Referenced by handlemsg().

virtual void* ht_listbox::getNext void *  entry  )  [pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, and ht_history_listbox.

Referenced by adjustPosHack(), cursorDown(), draw(), estimateEntryPos(), gotoItemByEntry(), gotoItemByPosition(), and update().

virtual void* ht_listbox::getPrev void *  entry  )  [pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, and ht_history_listbox.

Referenced by cursorUp().

virtual char* ht_listbox::getStr int  col,
void *  entry
[pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, and ht_history_listbox.

Referenced by draw().

void ht_listbox::gotoItemByEntry void *  entry,
bool  clear_quickfind = true
 

Definition at line 1679 of file htdialog.cc.

References adjustPosHack(), assert, clearQuickfind(), cursor, e_cursor, e_top, estimateEntryPos(), getNext(), pos, stateChanged(), and visible_height.

Referenced by VfsListbox::changeURL(), gotoItemByPosition(), handlemsg(), and ht_aviewer::showSymbols().

void ht_listbox::gotoItemByPosition UINT  pos  )  [virtual]
 

Definition at line 1711 of file htdialog.cc.

References getFirst(), getNext(), gotoItemByEntry(), and UINT.

Referenced by VfsListbox::changeURL(), dialog_assemble(), ht_text_viewer::popup_change_highlight(), ht_app::popup_view_list(), ht_app::popup_window_list(), ht_uformat_viewer::ref_desc(), ht_listpopup_dialog::setdata(), and ht_text_editor::show_protocol().

void ht_listbox::handlemsg htmsg *  msg  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_project_listbox, ht_history_listbox, ht_pe_export_viewer, ht_pef_import_viewer, ht_pe_import_viewer, ht_xbe_import_viewer, and VfsListbox.

Definition at line 1718 of file htdialog.cc.

References cached_count, clearmsg(), clearQuickfind(), cursor, cursorDown(), cursorUp(), ht_view::dirtyview(), ht_listbox_vstate::e_cursor, e_cursor, ht_listbox_vstate::e_top, e_top, getFirst(), getLast(), gotoItemByEntry(), ht_view::handlemsg(), K_Backspace, K_Control_Left, K_Control_PageDown, K_Control_PageUp, K_Control_Right, K_Down, K_End, K_Home, K_Left, K_PageDown, K_PageUp, K_Right, K_Tab, K_Up, LISTBOX_QUICKFIND, listboxcaps, msg_keypressed, msg_vstate_restore, pos, qpos, quickfind(), quickfindCompletition(), quickfinder, stateChanged(), strend, update(), updateCursor(), visible_height, and x.

Referenced by VfsListbox::handlemsg(), ht_xbe_import_viewer::handlemsg(), ht_pe_import_viewer::handlemsg(), ht_pef_import_viewer::handlemsg(), ht_pe_export_viewer::handlemsg(), ht_history_listbox::handlemsg(), and ht_project_listbox::handlemsg().

void ht_listbox::init bounds *  b,
UINT  Listboxcaps = LISTBOX_QUICKFIND
 

Definition at line 1437 of file htdialog.cc.

References cached_count, clearQuickfind(), cols, cursor, e_cursor, e_top, getFirst(), GMH_FIT, GMV_FIT, ht_scrollbar::init(), Object::init(), listboxcaps, MK_GM, NULL, pos, scrollbar, title, UINT, update(), visible_height, VO_OWNBUFFER, VO_RESIZE, VO_SELECTABLE, widths, and x.

int ht_listbox::numColumns  )  [virtual]
 

Reimplemented in SymbolBox, ht_project_listbox, and ht_text_listbox.

Definition at line 1850 of file htdialog.cc.

Referenced by attachTitle(), draw(), and rearrangeColumns().

virtual void* ht_listbox::quickfind char *  s  )  [pure virtual]
 

Implemented in SymbolBox, ht_project_listbox, ht_text_listbox, ht_history_listbox, and VfsListbox.

Referenced by handlemsg().

char * ht_listbox::quickfindCompletition char *  s  )  [virtual]
 

Reimplemented in SymbolBox, ht_project_listbox, ht_text_listbox, ht_history_listbox, and VfsListbox.

Definition at line 1855 of file htdialog.cc.

References ht_strdup().

Referenced by handlemsg().

void ht_listbox::rearrangeColumns  )  [protected]
 

Definition at line 1860 of file htdialog.cc.

References cols, numColumns(), and widths.

Referenced by attachTitle(), VfsListbox::changeURL(), draw(), ht_project_listbox::handlemsg(), ht_text_listbox::init(), and VfsListbox::setDisplayFormat().

void ht_listbox::redraw  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1867 of file htdialog.cc.

References ht_view::redraw(), ht_view::relocate_to(), scrollbar, title, and ht_view::unrelocate_to().

Referenced by SymbolBox::idle().

void ht_listbox::resize int  rw,
int  rh
[virtual]
 

Reimplemented from ht_view.

Definition at line 1879 of file htdialog.cc.

References ht_view::resize(), and update().

bool ht_listbox::selectEntry void *  entry  )  [virtual]
 

Reimplemented in ht_project_listbox, VfsListbox, and VfsListbox2.

Definition at line 1890 of file htdialog.cc.

void ht_listbox::setdata ht_object_stream s  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 1895 of file htdialog.cc.

References e_cursor, e_top, ht_layer_stream::read(), and update().

void ht_listbox::stateChanged  )  [virtual]
 

Reimplemented in FileBrowserVfsListbox.

Definition at line 1885 of file htdialog.cc.

References adjustScrollbar().

Referenced by gotoItemByEntry(), handlemsg(), ht_text_listbox::sort(), FileBrowserVfsListbox::stateChanged(), and update().

void ht_listbox::update  )  [virtual]
 

Reimplemented in ht_text_listbox, and VfsListbox.

Definition at line 1925 of file htdialog.cc.

References adjustPosHack(), cached_count, calcCount(), cursor, ht_view::dirtyview(), e_cursor, e_top, getFirst(), getNext(), MIN, stateChanged(), title, ht_listbox_title::update(), and visible_height.

Referenced by handlemsg(), ht_history_listbox::handlemsg(), ht_project_listbox::handlemsg(), SymbolBox::idle(), init(), ht_listpopup_dialog::insertstring(), resize(), ht_project_listbox::set_project(), setdata(), and ht_text_listbox::update().

void ht_listbox::updateCursor  ) 
 

Definition at line 1965 of file htdialog.cc.

References cursor, cursorAdjust(), ht_view::hidecursor(), qpos, quickfinder, ht_view::setcursor(), and x.

Referenced by clearQuickfind(), draw(), and handlemsg().

Object * ht_listbox::vstate_create  )  [virtual]
 

Definition at line 1904 of file htdialog.cc.

References e_cursor, and e_top.

Referenced by vstate_save().

void ht_listbox::vstate_save  ) 
 

Definition at line 1909 of file htdialog.cc.

References app, msg_vstate_save, mt_empty, ht_view::sendmsg(), and vstate_create().

Referenced by ht_xbe_import_viewer::select_entry(), ht_pe_import_viewer::select_entry(), ht_pe_export_viewer::select_entry(), and ht_pe_dimport_viewer::select_entry().


Member Data Documentation

int ht_listbox::cached_count
 

Definition at line 292 of file htdialog.h.

Referenced by adjustScrollbar(), handlemsg(), init(), and update().

int ht_listbox::cols
 

Reimplemented in ht_text_listbox.

Definition at line 300 of file htdialog.h.

Referenced by attachTitle(), draw(), init(), and rearrangeColumns().

int ht_listbox::cursor
 

Definition at line 292 of file htdialog.h.

Referenced by adjustScrollbar(), cursorDown(), cursorUp(), draw(), gotoItemByEntry(), handlemsg(), init(), update(), and updateCursor().

void * ht_listbox::e_cursor
 

Definition at line 294 of file htdialog.h.

Referenced by adjustPosHack(), cursorDown(), cursorUp(), getdata(), gotoItemByEntry(), handlemsg(), init(), setdata(), update(), and vstate_create().

void* ht_listbox::e_top
 

Definition at line 294 of file htdialog.h.

Referenced by adjustPosHack(), cursorDown(), cursorUp(), draw(), getdata(), gotoItemByEntry(), handlemsg(), init(), setdata(), update(), and vstate_create().

UINT ht_listbox::listboxcaps
 

Definition at line 298 of file htdialog.h.

Referenced by handlemsg(), and init().

bool ht_listbox::mScrollbarEnabled
 

Definition at line 304 of file htdialog.h.

Referenced by adjustScrollbar(), and draw().

int ht_listbox::pos
 

Definition at line 292 of file htdialog.h.

Referenced by adjustPosHack(), adjustScrollbar(), cursorDown(), cursorUp(), ht_history_popup_dialog::getdata(), gotoItemByEntry(), handlemsg(), and init().

char* ht_listbox::qpos
 

Definition at line 297 of file htdialog.h.

Referenced by clearQuickfind(), handlemsg(), and updateCursor().

char ht_listbox::quickfinder[100]
 

Definition at line 296 of file htdialog.h.

Referenced by clearQuickfind(), handlemsg(), and updateCursor().

ht_scrollbar* ht_listbox::scrollbar
 

Definition at line 303 of file htdialog.h.

Referenced by adjustScrollbar(), done(), init(), and redraw().

ht_listbox_title* ht_listbox::title
 

Definition at line 305 of file htdialog.h.

Referenced by attachTitle(), draw(), init(), redraw(), and update().

int ht_listbox::visible_height
 

Definition at line 293 of file htdialog.h.

Referenced by adjustPosHack(), cursorDown(), draw(), gotoItemByEntry(), handlemsg(), init(), and update().

int* ht_listbox::widths
 

Definition at line 301 of file htdialog.h.

Referenced by done(), draw(), ht_listbox_title::draw(), init(), rearrangeColumns(), and ht_listbox_title::update().

int ht_listbox::x
 

Definition at line 295 of file htdialog.h.

Referenced by draw(), ht_listbox_title::draw(), handlemsg(), init(), and updateCursor().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:00 2004 by doxygen 1.3.5