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

ht_text_listbox Class Reference

#include <htdialog.h>

Inheritance diagram for ht_text_listbox:

ht_listbox ht_view Object 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, int Cols=1, int Keycol=0, UINT Listboxcaps=LISTBOX_QUICKFIND)
virtual void done ()
virtual int calcCount ()
virtual int compare_strn (char *s1, char *s2, int l)
virtual int compare_ccomm (char *s1, char *s2)
virtual int cursorAdjust ()
void * getEntryByID (UINT id)
virtual void * getFirst ()
virtual void * getLast ()
UINT getID (void *entry)
virtual void * getNext (void *entry)
virtual void * getPrev (void *entry)
virtual char * getStr (int col, void *entry)
void insert_str (int id, char *str,...)
void insert_str (int id, char **strs)
void insert_str_extra (int id, void *extra_data, char *str,...)
void insert_str_extra (int id, void *extra_data, char **strs)
virtual int numColumns ()
virtual void * quickfind (char *s)
virtual char * quickfindCompletition (char *s)
void sort (int count, ht_text_listbox_sort_order *so)
virtual void update ()

Protected Member Functions

virtual void clearAll ()
virtual void freeExtraData (void *extra_data)

Protected Attributes

int cols
int keycol
int count
ht_text_listbox_itemfirst
ht_text_listbox_itemlast
int Cursor_adjust

Member Function Documentation

int ht_text_listbox::calcCount  )  [virtual]
 

Implements ht_listbox.

Definition at line 2022 of file htdialog.cc.

References count.

Referenced by sort().

void ht_text_listbox::clearAll  )  [protected, virtual]
 

Definition at line 1997 of file htdialog.cc.

References ht_listbox::clearQuickfind(), cols, count, Cursor_adjust, ht_text_listbox_item::data, ht_text_listbox_item::extra_data, first, freeExtraData(), getFirst(), last, ht_text_listbox_item::next, and NULL.

Referenced by done(), and VfsListbox::reread().

int ht_text_listbox::compare_ccomm char *  s1,
char *  s2
[virtual]
 

Reimplemented in ht_itext_listbox.

Definition at line 2032 of file htdialog.cc.

References strccomm().

Referenced by quickfindCompletition().

int ht_text_listbox::compare_strn char *  s1,
char *  s2,
int  l
[virtual]
 

Reimplemented in ht_itext_listbox.

Definition at line 2027 of file htdialog.cc.

References ht_strncmp().

Referenced by quickfind(), and quickfindCompletition().

int ht_text_listbox::cursorAdjust  )  [virtual]
 

Reimplemented from ht_listbox.

Reimplemented in VfsListbox.

Definition at line 2037 of file htdialog.cc.

References Cursor_adjust.

void ht_text_listbox::done  )  [virtual]
 

Reimplemented from ht_listbox.

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

Definition at line 1991 of file htdialog.cc.

References clearAll(), and ht_listbox::done().

Referenced by ht_xbe_import_viewer::done(), ht_pe_import_viewer::done(), ht_pef_import_viewer::done(), ht_pe_export_viewer::done(), and ht_itext_listbox::done().

void ht_text_listbox::freeExtraData void *  extra_data  )  [protected, virtual]
 

Reimplemented in VfsListbox.

Definition at line 2042 of file htdialog.cc.

Referenced by clearAll().

void* ht_text_listbox::getEntryByID UINT  id  ) 
 

void * ht_text_listbox::getFirst  )  [virtual]
 

Implements ht_listbox.

Definition at line 2046 of file htdialog.cc.

References first.

Referenced by VfsListbox::changeURL(), and clearAll().

UINT ht_text_listbox::getID void *  entry  ) 
 

Definition at line 2051 of file htdialog.cc.

References UINT.

Referenced by file_new_dialog(), ht_text_viewer::popup_change_highlight(), ht_app::popup_view_list(), ht_app::popup_window_list(), ht_uformat_viewer::ref_desc(), ht_text_editor::show_protocol(), and ht_aviewer::showXRefs().

void * ht_text_listbox::getLast  )  [virtual]
 

Implements ht_listbox.

Definition at line 2060 of file htdialog.cc.

References last.

void * ht_text_listbox::getNext void *  entry  )  [virtual]
 

Implements ht_listbox.

Definition at line 2065 of file htdialog.cc.

References NULL.

Referenced by VfsListbox::changeURL(), and sort().

void * ht_text_listbox::getPrev void *  entry  )  [virtual]
 

Implements ht_listbox.

Definition at line 2071 of file htdialog.cc.

References NULL.

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

Implements ht_listbox.

Definition at line 2077 of file htdialog.cc.

References cols.

void ht_text_listbox::init bounds *  b,
int  Cols = 1,
int  Keycol = 0,
UINT  Listboxcaps = LISTBOX_QUICKFIND
 

Definition at line 1980 of file htdialog.cc.

References cols, count, Cursor_adjust, first, Object::init(), keycol, last, NULL, ht_listbox::rearrangeColumns(), and UINT.

Referenced by dialog_assemble(), file_new_dialog(), ht_app::popup_view_list(), and ht_app::popup_window_list().

void ht_text_listbox::insert_str int  id,
char **  strs
 

Definition at line 2140 of file htdialog.cc.

References insert_str_extra(), and NULL.

void ht_text_listbox::insert_str int  id,
char *  str,
... 
 

Definition at line 2145 of file htdialog.cc.

References cols, count, ht_text_listbox_item::data, ht_text_listbox_item::extra_data, first, ht_strdup(), ht_text_listbox_item::id, last, malloc(), ht_text_listbox_item::next, NULL, and ht_text_listbox_item::prev.

Referenced by dialog_assemble(), file_new_dialog(), htpefimports_init(), ht_text_viewer::popup_change_highlight(), ht_app::popup_view_list_dump(), ht_app::popup_window_list(), ht_uformat_viewer::ref_desc(), ht_text_editor::show_protocol(), ht_aviewer::showXRefs(), and srt_x86().

void ht_text_listbox::insert_str_extra int  id,
void *  extra_data,
char **  strs
 

Definition at line 2086 of file htdialog.cc.

References cols, count, ht_text_listbox_item::data, ht_text_listbox_item::extra_data, first, ht_strdup(), ht_text_listbox_item::id, last, malloc(), ht_text_listbox_item::next, NULL, and ht_text_listbox_item::prev.

void ht_text_listbox::insert_str_extra int  id,
void *  extra_data,
char *  str,
... 
 

Definition at line 2111 of file htdialog.cc.

References cols, count, ht_text_listbox_item::data, ht_text_listbox_item::extra_data, first, ht_strdup(), ht_text_listbox_item::id, last, malloc(), ht_text_listbox_item::next, NULL, and ht_text_listbox_item::prev.

Referenced by insert_str(), and VfsListbox::reread().

int ht_text_listbox::numColumns  )  [virtual]
 

Reimplemented from ht_listbox.

Definition at line 2175 of file htdialog.cc.

References cols.

void * ht_text_listbox::quickfind char *  s  )  [virtual]
 

Implements ht_listbox.

Reimplemented in VfsListbox.

Definition at line 2180 of file htdialog.cc.

References compare_strn(), ht_text_listbox_item::data, first, keycol, and ht_text_listbox_item::next.

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

Reimplemented from ht_listbox.

Reimplemented in VfsListbox.

Definition at line 2190 of file htdialog.cc.

References compare_ccomm(), compare_strn(), ht_text_listbox_item::data, first, ht_strdup(), keycol, ht_text_listbox_item::next, and NULL.

void ht_text_listbox::sort int  count,
ht_text_listbox_sort_order so
 

Definition at line 2239 of file htdialog.cc.

References calcCount(), first, getNext(), ht_text_listbox_item::id, last, malloc(), ht_text_listbox_item::next, NULL, ht_text_listbox_item::prev, ht_listbox::stateChanged(), and update().

Referenced by VfsListbox::changeURL(), dialog_assemble(), ht_xbe_import_viewer::dosort(), ht_pe_import_viewer::dosort(), ht_pef_import_viewer::dosort(), and ht_pe_export_viewer::func().

void ht_text_listbox::update  )  [virtual]
 

Reimplemented from ht_listbox.

Reimplemented in VfsListbox.

Definition at line 2283 of file htdialog.cc.

References Cursor_adjust, keycol, and ht_listbox::update().

Referenced by dialog_assemble(), file_new_dialog(), htpefimports_init(), ht_text_viewer::popup_change_highlight(), ht_app::popup_view_list(), ht_app::popup_window_list(), ht_uformat_viewer::ref_desc(), ht_text_editor::show_protocol(), ht_aviewer::showXRefs(), sort(), srt_x86(), and VfsListbox::update().


Member Data Documentation

int ht_text_listbox::cols [protected]
 

Reimplemented from ht_listbox.

Definition at line 367 of file htdialog.h.

Referenced by clearAll(), getStr(), init(), insert_str(), insert_str_extra(), and numColumns().

int ht_text_listbox::count [protected]
 

Definition at line 367 of file htdialog.h.

Referenced by calcCount(), clearAll(), init(), insert_str(), and insert_str_extra().

int ht_text_listbox::Cursor_adjust [protected]
 

Definition at line 369 of file htdialog.h.

Referenced by clearAll(), cursorAdjust(), init(), and update().

ht_text_listbox_item* ht_text_listbox::first [protected]
 

Definition at line 368 of file htdialog.h.

Referenced by clearAll(), getFirst(), init(), insert_str(), insert_str_extra(), quickfind(), quickfindCompletition(), and sort().

int ht_text_listbox::keycol [protected]
 

Definition at line 367 of file htdialog.h.

Referenced by init(), quickfind(), quickfindCompletition(), and update().

ht_text_listbox_item * ht_text_listbox::last [protected]
 

Definition at line 368 of file htdialog.h.

Referenced by clearAll(), getLast(), init(), insert_str(), insert_str_extra(), and sort().


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