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

ht_view Class Reference

#include <htobj.h>

Inheritance diagram for ht_view:

Object ht_button ht_cluster ht_color_block ht_context_menu_window_body ht_desktop ht_group ht_hbar ht_inputfield ht_keyline ht_label ht_listbox ht_listbox_title ht_menu ht_scrollbar ht_status ht_text ht_text_viewer ht_treeview ht_vbar ht_viewer List of all members.

Public Member Functions

void init (bounds *b, int options, const char *desc)
virtual void done ()
void * allocdatabuf (void *handle)
virtual int alone ()
int buf_lprint (int x, int y, int c, int l, char *text)
int buf_lprintw (int x, int y, int c, int l, int *text)
int buf_print (int x, int y, int c, char *text)
void buf_printchar (int x, int y, int c, int ch)
int buf_printf (int x, int y, int c, char *format,...)
int buf_printw (int x, int y, int c, int *text)
virtual int childcount ()
void clear (int color)
virtual void clipbounds (bounds *b)
virtual void config_changed ()
virtual int countselectables ()
void databuf_freedup (void *handle)
void databuf_get (void *buf, int bufsize)
void * databuf_getdup (void *buf, int bufsize)
void databuf_set (void *buf, int bufsize)
virtual int datasize ()
void dirtyview ()
virtual void disable ()
void disable_buffering ()
virtual void draw ()
virtual void enable ()
void enable_buffering ()
virtual int enum_start ()
virtual ht_viewenum_next (int *handle)
bool exposed ()
void fill (int x, int y, int w, int h, int c, int chr)
virtual int focus (ht_view *view)
void getbounds (bounds *b)
virtual void getminbounds (int *width, int *height)
vcp getcolor (UINT index)
virtual void getdata (ht_object_stream *s)
virtual ht_viewgetfirstchild ()
virtual UINT getnumber ()
char * getpalette ()
virtual ht_viewgetselected ()
virtual void handlemsg (htmsg *msg)
void hidecursor ()
int isviewdirty ()
virtual int isalone (ht_view *view)
virtual int load (ht_object_stream *s)
virtual void move (int rx, int ry)
virtual OBJECT_ID object_id () const
int pointvisible (int x, int y)
virtual void receivefocus ()
virtual void redraw ()
void relocate_to (ht_view *view)
virtual void resize (int rw, int rh)
virtual void releasefocus ()
virtual int select (ht_view *view)
virtual void selectfirst ()
virtual void selectlast ()
void sendmsg (htmsg *msg)
void sendmsg (int msg, int data1=0, int data2=0)
void sendmsg (int msg, void *data1, void *data2=0)
void setbounds (bounds *b)
void setvisualbounds (bounds *b)
void setcursor (int x, int y, cursor_mode c=cm_normal)
virtual void setdata (ht_object_stream *s)
virtual void setgroup (ht_group *group)
virtual void setnumber (UINT number)
void setoptions (int options)
virtual void setpalette (char *pal_name)
void setpalettefull (char *pal_name, char *pal_class)
virtual void store (ht_object_stream *s)
void unrelocate_to (ht_view *view)

Public Attributes

bool focused
bool enabled
ht_groupgroup
int options
char * desc
int browse_idx
genericdrawbufbuf
ht_viewprev
ht_viewnext
bounds size
bounds vsize
UINT growmode
UINT g_hdist
UINT g_vdist
palette pal
char * pal_class
char * pal_name
char * view_debug_name

Protected Member Functions

void cleanview ()
virtual char * defaultpalette ()
virtual char * defaultpaletteclass ()
virtual void reloadpalette ()

Protected Attributes

bool view_is_dirty

Member Function Documentation

void* ht_view::allocdatabuf void *  handle  ) 
 

int ht_view::alone  )  [virtual]
 

Reimplemented in ht_dialog.

Definition at line 143 of file htobj.cc.

References group, and ht_group::isalone().

Referenced by ht_group::focusnext(), and ht_group::focusprev().

int ht_view::buf_lprint int  x,
int  y,
int  c,
int  l,
char *  text
 

Definition at line 148 of file htobj.cc.

References genericdrawbuf::b_lprint(), buf, size, and vsize.

Referenced by ht_text_viewer::draw(), ht_context_menu_window_body::draw(), ht_label::draw(), ht_statictext::draw(), ht_listbox::draw(), ht_listbox_title::draw(), and ht_hexinputfield::draw().

int ht_view::buf_lprintw int  x,
int  y,
int  c,
int  l,
int *  text
 

Definition at line 166 of file htobj.cc.

References genericdrawbuf::b_lprintw(), buf, size, and vsize.

Referenced by ht_treeview::draw_r().

int ht_view::buf_print int  x,
int  y,
int  c,
char *  text
 

Definition at line 184 of file htobj.cc.

References genericdrawbuf::b_lprint(), buf, size, and vsize.

Referenced by buf_printf(), ht_frame::draw(), ht_menu::draw(), ht_color_block::draw(), ht_statictext::draw(), ht_button::draw(), ht_hexinputfield::draw(), ht_radioboxes::draw(), ht_checkboxes::draw(), ht_logviewer::draw(), ht_status::draw(), ht_project_listbox::draw(), and ht_text_viewer::render_meta().

void ht_view::buf_printchar int  x,
int  y,
int  c,
int  ch
 

Definition at line 202 of file htobj.cc.

References genericdrawbuf::b_printchar(), buf, pointvisible(), and size.

Referenced by ht_text_viewer::buf_lprint0(), ht_text_viewer::draw(), ht_frame::draw(), ht_scrollbar::draw(), ht_context_menu_window_body::draw(), ht_menu::draw(), ht_uformat_viewer::draw(), ht_color_block::draw(), ht_label::draw(), ht_listpopup::draw(), ht_listbox::draw(), ht_listbox_title::draw(), ht_button::draw(), ht_strinputfield::draw(), ht_radioboxes::draw(), ht_checkboxes::draw(), ht_keyline::draw(), and ht_uformat_viewer::print_tagstring().

int ht_view::buf_printf int  x,
int  y,
int  c,
char *  format,
... 
 

Definition at line 207 of file htobj.cc.

References buf, buf, buf_print(), and ht_vsnprintf().

Referenced by ht_text_viewer::draw(), ht_frame::draw(), and ht_keyline::draw().

int ht_view::buf_printw int  x,
int  y,
int  c,
int *  text
 

Definition at line 217 of file htobj.cc.

References genericdrawbuf::b_lprintw(), buf, size, and vsize.

int ht_view::childcount  )  [virtual]
 

Reimplemented in ht_format_group, and ht_group.

Definition at line 235 of file htobj.cc.

Referenced by ht_app::popup_view_list_dump().

void ht_view::cleanview  )  [protected]
 

Definition at line 240 of file htobj.cc.

References view_is_dirty.

Referenced by redraw().

void ht_view::clear int  color  ) 
 

Definition at line 245 of file htobj.cc.

References genericdrawbuf::b_fill(), buf, and vsize.

Referenced by ht_text_viewer::draw(), ht_treeview::draw(), ht_window::draw(), ht_context_menu_window_body::draw(), ht_menu::draw(), ht_uformat_viewer::draw(), ht_color_block::draw(), ht_statictext::draw(), ht_listbox::draw(), ht_listbox_title::draw(), ht_radioboxes::draw(), ht_checkboxes::draw(), ht_dialog::draw(), ht_logviewer::draw(), ht_keyline::draw(), and ht_project_listbox::draw().

void ht_view::clipbounds bounds *  b  )  [virtual]
 

Definition at line 250 of file htobj.cc.

References bounds_and(), getbounds(), and vsize.

Referenced by move(), and resize().

void ht_view::config_changed  )  [virtual]
 

Reimplemented in ht_text_viewer, ht_text_editor, and VfsListbox.

Definition at line 258 of file htobj.cc.

References dirtyview(), and reloadpalette().

Referenced by VfsListbox::config_changed(), ht_text_viewer::config_changed(), and handlemsg().

int ht_view::countselectables  )  [virtual]
 

Reimplemented in ht_group, and ht_xgroup.

Definition at line 264 of file htobj.cc.

References options, and VO_SELECTABLE.

Referenced by ht_xgroup::countselectables(), ht_group::countselectables(), ht_group::isalone(), and isalone().

void ht_view::databuf_freedup void *  handle  ) 
 

Definition at line 424 of file htobj.cc.

References ht_memmap_file::done(), ht_object_stream_memmap::done(), databufdup_s::f, and databufdup_s::s.

void ht_view::databuf_get void *  buf,
int  bufsize
 

Definition at line 437 of file htobj.cc.

References buf, byte, ht_memmap_file::done(), ht_object_stream_memmap::done(), getdata(), ht_object_stream_memmap::init(), and ht_memmap_file::init().

Referenced by ht_uformat_viewer::address_input(), blockop_dialog(), create_desc_evalstr(), create_desc_expr(), create_desc_hexascii(), create_desc_vregex(), create_replace_hexascii_context(), create_request_evalstr(), create_request_expr(), create_request_hexascii(), create_request_vregex(), dialog_assemble(), palette_entry::editdialog(), eval_dialog(), ht_aviewer::exportFileDialog(), FileBrowser::extract_url(), file_new_dialog(), file_open_dialog(), ht_aviewer::generateOutputDialog(), ht_listpopup_dialog::getdata(), ht_listpopup::gettext(), ht_replace_dialog::handlemsg(), ht_search_dialog::handlemsg(), ht_menu_window::handlemsg(), ht_listpopup::handlemsg(), ht_strinputfield::history_dialog(), inputboxrect(), FileBrowser::listbox_changed(), 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::showCallChain(), ht_aviewer::showSymbols(), and ht_aviewer::showXRefs().

void * ht_view::databuf_getdup void *  buf,
int  bufsize
 

Definition at line 454 of file htobj.cc.

References buf, byte, databufdup_s::f, getdata(), ht_object_stream_memmap::init(), ht_memmap_file::init(), malloc(), and databufdup_s::s.

void ht_view::databuf_set void *  buf,
int  bufsize
 

Definition at line 470 of file htobj.cc.

References buf, byte, ht_memmap_file::done(), ht_object_stream_memmap::done(), ht_object_stream_memmap::init(), ht_memmap_file::init(), and setdata().

Referenced by ht_uformat_viewer::address_input(), ht_menu::execute_menu(), execute_submenu(), ht_listpopup::handlemsg(), ht_strinputfield::history_dialog(), ht_vregex_search_form::init(), ht_evalstr_search_form::init(), ht_hexascii_search_form::init(), ht_color_block::init(), ht_blockop_dialog::init(), inputboxrect(), FileBrowser::listbox_changed(), ht_replace_dialog::select_replace_mode_bymodeidx(), and ht_search_dialog::select_search_mode_bymodeidx().

int ht_view::datasize  )  [virtual]
 

Reimplemented in ht_checkboxes, ht_radioboxes, ht_inputfield, ht_listbox, ht_listpopup_dialog, ht_listpopup, ht_color_block, and ht_group.

Definition at line 269 of file htobj.cc.

Referenced by ht_group::datasize().

char * ht_view::defaultpalette  )  [protected, virtual]
 

Reimplemented in ht_keyline, ht_desktop, ht_app, ht_dialog, ht_cluster, ht_inputfield, ht_button, ht_listbox_title, ht_listbox, ht_statictext, ht_listpopup_dialog, ht_label, ht_progress_indicator, ht_color_block, ht_menu, ht_context_menu_window_body, ht_menu_frame, and ht_info_viewer.

Definition at line 274 of file htobj.cc.

References palkey_generic_window_default.

Referenced by init().

char * ht_view::defaultpaletteclass  )  [protected, virtual]
 

Reimplemented in ht_app, ht_menu, ht_context_menu_window_body, and ht_menu_frame.

Definition at line 279 of file htobj.cc.

References palclasskey_generic.

Referenced by init().

void ht_view::dirtyview  ) 
 

Definition at line 284 of file htobj.cc.

References view_is_dirty.

Referenced by ht_listbox::attachTitle(), config_changed(), ht_scrollbar::disable(), ht_listbox::draw(), ht_uformat_viewer::edit_end(), ht_uformat_viewer::edit_start(), ht_uformat_viewer::edit_update(), ht_scrollbar::enable(), ht_menu::execute_menu(), ht_le_aviewer::func(), ht_text_editor::handlemsg(), ht_text_viewer::handlemsg(), ht_info_viewer::handlemsg(), ht_treeview::handlemsg(), ht_window::handlemsg(), ht_group::handlemsg(), handlemsg(), ht_menu_window_body::handlemsg(), ht_menu_window::handlemsg(), ht_context_menu_window_body::handlemsg(), ht_hex_viewer::handlemsg(), ht_uformat_viewer::handlemsg(), ht_disasm_viewer::handlemsg(), ht_color_block::handlemsg(), ht_label::handlemsg(), ht_listbox::handlemsg(), ht_button::handlemsg(), ht_hexinputfield::handlemsg(), ht_strinputfield::handlemsg(), ht_history_listbox::handlemsg(), ht_radioboxes::handlemsg(), ht_checkboxes::handlemsg(), ht_clipboard_viewer::handlemsg(), ht_app::handlemsg(), ht_project_listbox::handlemsg(), ht_aviewer::handlemsg(), ht_status::idle(), ht_aviewer::idle(), AnalyserInformation::idle(), ht_inputfield::insertbyte(), receivefocus(), ht_uformat_viewer::ref_desc(), releasefocus(), ht_text_editor::save(), ht_uformat_viewer::set_cursor(), ht_color_block::setdata(), ht_inputfield::setdata(), ht_checkboxes::setdata(), ht_frame::setframestate(), ht_window::setnumber(), ht_frame::setnumber(), ht_scrollbar::setpos(), ht_frame::settext(), ht_statictext::settext(), ht_listbox::update(), and AnalyInfoline::update().

void ht_view::disable  )  [virtual]
 

Reimplemented in ht_scrollbar.

Definition at line 289 of file htobj.cc.

References enabled.

Referenced by ht_scrollbar::disable().

void ht_view::disable_buffering  ) 
 

Definition at line 294 of file htobj.cc.

References buf, options, screen, setoptions(), and VO_OWNBUFFER.

Referenced by ht_app::create_window_clipboard(), ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), ht_app::create_window_term(), ht_scrollbar::disable(), and init().

void ht_view::done  )  [virtual]
 

Reimplemented from Object.

Reimplemented in ht_blockop_dialog, cview, AnalyserInformation, SymbolBox, CallChain, AnalyInfoline, ht_aviewer, ht_status, ht_keyline, ht_desktop, ht_logviewer, ht_file_window, ht_project_window, ht_app, ht_coff, ht_dialog, ht_cluster, ht_checkboxes, ht_radioboxes, ht_inputfield, ht_strinputfield, ht_hexinputfield, ht_button, ht_listbox_title, ht_listbox, ht_text_listbox, ht_itext_listbox, ht_statictext, ht_listpopup_dialog, ht_listpopup, ht_label, ht_color_block, ht_disasm_viewer, ht_elf, ht_finfo_text, ht_flt, ht_viewer, ht_format_viewer, ht_format_group, ht_uformat_viewer, ht_le, ht_macho, ht_menu, ht_context_menu_window_body, ht_menu_window, ht_menu_window_body, ht_menu_frame, ht_mz, ht_ne, ht_group, ht_xgroup, ht_scrollbar, ht_frame, ht_window, ht_pe, ht_pe_export_viewer, ht_pef, ht_pef_import_viewer, ht_pe_il_viewer, ht_pe_import_viewer, ht_pe_resource_viewer, ht_search_dialog, ht_replace_dialog, ht_treeview, ht_static_treeview, ht_xbe, ht_xbe_import_viewer, ht_info_viewer, TerminalViewer, ht_text_viewer, ht_text_editor, and VfsListbox.

Definition at line 135 of file htobj.cc.

References buf, palette::data, desc, Object::done(), options, pal, and VO_OWNBUFFER.

Referenced by ht_text_viewer::done(), ht_treeview::done(), ht_frame::done(), ht_scrollbar::done(), ht_group::done(), ht_context_menu_window_body::done(), ht_menu::done(), ht_format_viewer::done(), ht_viewer::done(), ht_color_block::done(), ht_label::done(), ht_listpopup::done(), ht_statictext::done(), ht_listbox::done(), ht_listbox_title::done(), ht_button::done(), ht_inputfield::done(), ht_cluster::done(), ht_desktop::done(), ht_keyline::done(), ht_status::done(), done_app(), and ht_format_group::done_if().

void ht_view::draw  )  [virtual]
 

Reimplemented in ht_status, ht_keyline, ht_desktop, ht_logviewer, ht_project_listbox, ht_app, ht_clipboard_viewer, ht_dialog, ht_checkboxes, ht_radioboxes, ht_strinputfield, ht_hexinputfield, ht_button, ht_listbox_title, ht_listbox, ht_statictext, ht_listpopup, ht_label, ht_color_block, ht_uformat_viewer, ht_menu, ht_context_menu_window_body, ht_scrollbar, ht_frame, ht_window, ht_hbar, ht_vbar, ht_treeview, ht_info_viewer, and ht_text_viewer.

Definition at line 303 of file htobj.cc.

Referenced by ht_dialog::draw(), and redraw().

void ht_view::enable  )  [virtual]
 

Reimplemented in ht_scrollbar.

Definition at line 307 of file htobj.cc.

References enabled.

Referenced by ht_scrollbar::enable().

void ht_view::enable_buffering  ) 
 

Definition at line 312 of file htobj.cc.

References buf, options, setoptions(), size, and VO_OWNBUFFER.

Referenced by ht_scrollbar::enable(), and init().

ht_view * ht_view::enum_next int *  handle  )  [virtual]
 

Reimplemented in ht_group.

Definition at line 366 of file htobj.cc.

int ht_view::enum_start  )  [virtual]
 

Reimplemented in ht_group.

Definition at line 361 of file htobj.cc.

bool ht_view::exposed  ) 
 

Definition at line 371 of file htobj.cc.

References size, and view_line_exposed().

Referenced by redraw().

void ht_view::fill int  x,
int  y,
int  w,
int  h,
int  c,
int  chr
 

Definition at line 383 of file htobj.cc.

References genericdrawbuf::b_fill(), bounds_and(), buf, size, and vsize.

Referenced by ht_text_viewer::draw(), ht_hbar::draw(), ht_vbar::draw(), ht_scrollbar::draw(), ht_context_menu_window_body::draw(), ht_listbox::draw(), ht_button::draw(), ht_hexinputfield::draw(), ht_strinputfield::draw(), ht_desktop::draw(), ht_status::draw(), and ht_treeview::draw_r().

int ht_view::focus ht_view view  )  [virtual]
 

Reimplemented in ht_app, ht_format_group, and ht_group.

Definition at line 394 of file htobj.cc.

References focused, and receivefocus().

Referenced by ht_group::focus(), ht_format_group::focus(), ht_uformat_viewer::func(), ht_label::handlemsg(), ht_checkboxes::handlemsg(), ht_file_window::handlemsg(), ht_pe_header_viewer::ref_sel(), ht_dialog::run(), ht_xbe_import_viewer::select_entry(), ht_pe_import_viewer::select_entry(), ht_pe_export_viewer::select_entry(), ht_pe_dimport_viewer::select_entry(), and ht_pe_resource_viewer::select_node().

void ht_view::getbounds bounds *  b  ) 
 

Reimplemented in ht_format_group.

Definition at line 403 of file htobj.cc.

References size.

Referenced by ht_uformat_viewer::address_input(), center_bounds(), clipbounds(), ht_app::create_window_help(), eval_dialog(), execute_submenu(), file_chooser(), file_new_dialog(), file_open_dialog(), get_std_progress_indicator_metrics(), ht_app::get_stdbounds_file(), ht_app::get_stdbounds_tool(), ht_format_group::getbounds(), ht_window::getclientarea(), ht_strinputfield::history_dialog(), imsgbox(), ht_app::init(), inputbox(), ht_group::insert(), msgbox(), ht_text_viewer::popup_change_highlight(), ht_app::popup_view_list(), ht_app::popup_window_list(), relocate_to(), ht_group::remove(), replace_dialog(), search_dialog(), ht_text_editor::show_protocol(), ht_aviewer::showInfo(), ht_aviewer::showXRefs(), srt_x86(), text_search_dialog(), and unrelocate_to().

vcp ht_view::getcolor UINT  index  ) 
 

Definition at line 408 of file htobj.cc.

References getcolorv(), pal, UINT, and vcp.

Referenced by ht_treeview::draw(), ht_window::draw(), ht_context_menu_window_body::draw(), ht_menu::draw(), ht_uformat_viewer::draw(), ht_color_block::draw(), ht_label::draw(), ht_listbox::draw(), ht_button::draw(), ht_hexinputfield::draw(), ht_strinputfield::draw(), ht_radioboxes::draw(), ht_checkboxes::draw(), ht_dialog::draw(), ht_logviewer::draw(), ht_keyline::draw(), ht_project_listbox::draw(), ht_treeview::draw_r(), ht_text_editor::get_bgcolor(), ht_text_viewer::get_bgcolor(), ht_frame::getcurcol_killer(), ht_frame::getcurcol_normal(), ht_listpopup::gettextcolor(), ht_statictext::gettextcolor(), ht_listbox_title::getTextColor(), ht_info_lexer::gettoken_color(), ht_text_viewer::render_str_color(), and ht_uformat_viewer::render_tagstring().

void ht_view::getdata ht_object_stream s  )  [virtual]
 

Reimplemented in ht_checkboxes, ht_radioboxes, ht_inputfield, ht_listbox, ht_listpopup_dialog, ht_listpopup, ht_history_popup_dialog, ht_color_block, ht_context_menu_window_body, ht_menu_window, ht_group, and ht_treeview.

Definition at line 487 of file htobj.cc.

Referenced by databuf_get(), databuf_getdup(), ht_group::getdata(), and insert_history_entry().

ht_view * ht_view::getfirstchild  )  [virtual]
 

Reimplemented in ht_format_group, and ht_group.

Definition at line 491 of file htobj.cc.

Referenced by ht_app::popup_view_list_dump().

void ht_view::getminbounds int *  width,
int *  height
[virtual]
 

Definition at line 413 of file htobj.cc.

References DEFAULT_VIEW_MIN_HEIGHT, and DEFAULT_VIEW_MIN_WIDTH.

Referenced by ht_window::handlemsg().

UINT ht_view::getnumber  )  [virtual]
 

Reimplemented in ht_frame, and ht_window.

Definition at line 496 of file htobj.cc.

References UINT.

Referenced by ht_app::popup_window_list().

char * ht_view::getpalette  ) 
 

Definition at line 501 of file htobj.cc.

References pal_name.

Referenced by ht_app::init().

ht_view * ht_view::getselected  )  [virtual]
 

Reimplemented in ht_format_group, and ht_group.

Definition at line 506 of file htobj.cc.

Referenced by ht_group::getselected(), and ht_dialog::run().

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

Reimplemented in ht_aviewer, ht_help_window, ht_status, ht_keyline, ht_logviewer, ht_file_window, ht_project_listbox, ht_project_window, ht_app, ht_clipboard_viewer, ht_dialog, ht_checkboxes, ht_radioboxes, ht_strinputfield, ht_hexinputfield, ht_button, ht_listbox, ht_listpopup, ht_history_listbox, ht_label, ht_color_block, ht_disasm_viewer, ht_viewer, ht_format_viewer, ht_format_group, ht_uformat_viewer, ht_hex_viewer, ht_menu, ht_context_menu_window_body, ht_menu_window, ht_menu_window_body, ht_group, ht_xgroup, ht_window, ht_pe_export_viewer, ht_pef_import_viewer, ht_pe_import_viewer, ht_pe_resource_viewer, ht_search_dialog, ht_replace_dialog, ht_text_viewer2, ht_treeview, ht_xbe_import_viewer, ht_info_viewer, TerminalViewer, ht_text_viewer, ht_text_editor, and VfsListbox.

Definition at line 511 of file htobj.cc.

References clearmsg(), config_changed(), dirtyview(), msg_config_changed, msg_dirtyview, msg_draw, mt_broadcast, and redraw().

Referenced by ht_text_viewer::handlemsg(), ht_treeview::handlemsg(), ht_xgroup::handlemsg(), ht_group::handlemsg(), ht_context_menu_window_body::handlemsg(), ht_menu::handlemsg(), ht_viewer::handlemsg(), ht_color_block::handlemsg(), ht_label::handlemsg(), ht_listpopup::handlemsg(), ht_listbox::handlemsg(), ht_button::handlemsg(), ht_hexinputfield::handlemsg(), ht_strinputfield::handlemsg(), ht_radioboxes::handlemsg(), ht_checkboxes::handlemsg(), ht_app::handlemsg(), ht_keyline::handlemsg(), ht_status::handlemsg(), and sendmsg().

void ht_view::hidecursor  ) 
 

Definition at line 528 of file htobj.cc.

References screendrawbuf::hidecursor(), and screen.

Referenced by ht_uformat_viewer::draw(), ht_uformat_viewer::edit_end(), releasefocus(), and ht_listbox::updateCursor().

void ht_view::init bounds *  b,
int  options,
const char *  desc
 

Reimplemented in ht_group, and ht_xgroup.

Definition at line 92 of file htobj.cc.

References browse_idx, buf, palette::data, defaultpalette(), defaultpaletteclass(), desc, disable_buffering(), enable_buffering(), enabled, focused, g_hdist, g_vdist, GMH_LEFT, GMV_TOP, group, growmode, ht_strdup(), Object::init(), MK_GM, next, NULL, options, pal, pal_name, prev, reloadpalette(), screen, setbounds(), setoptions(), palette::size, size, VIEW_DEBUG_NAME, view_is_dirty, and VO_OWNBUFFER.

Referenced by ht_app::create_window_ofm(), and ht_replace_dialog::init().

int ht_view::isalone ht_view view  )  [virtual]
 

Reimplemented in ht_group, and ht_xgroup.

Definition at line 533 of file htobj.cc.

References countselectables().

int ht_view::isviewdirty  ) 
 

Reimplemented in ht_group.

Definition at line 538 of file htobj.cc.

References view_is_dirty.

Referenced by ht_group::isviewdirty(), and redraw().

int ht_view::load ht_object_stream s  )  [virtual]
 

loads object from object stream.

Returns:
ht_stream errorcode

Reimplemented from Object.

Reimplemented in ht_app, ht_group, ht_xgroup, ht_scrollbar, ht_frame, and ht_window.

Definition at line 543 of file htobj.cc.

Referenced by ht_frame::load(), and load_systemconfig().

void ht_view::move int  rx,
int  ry
[virtual]
 

Reimplemented in ht_format_group, and ht_group.

Definition at line 558 of file htobj.cc.

References app, genericdrawbuf::b_rmove(), buf, clipbounds(), group, size, and vsize.

Referenced by ht_window::insert(), ht_group::insert(), ht_group::move(), ht_format_group::move(), relocate_to(), ht_group::remove(), ht_group::reorder_view(), and unrelocate_to().

OBJECT_ID ht_view::object_id  )  const [virtual]
 

Returns:
unique object id.

Reimplemented from Object.

Reimplemented in ht_app, ht_group, ht_xgroup, ht_scrollbar, ht_frame, and ht_window.

Definition at line 568 of file htobj.cc.

References ATOM_HT_VIEW.

int ht_view::pointvisible int  x,
int  y
 

Definition at line 573 of file htobj.cc.

References vsize.

Referenced by buf_printchar(), and setcursor().

void ht_view::receivefocus  )  [virtual]
 

Reimplemented in ht_strinputfield, ht_hexinputfield, ht_format_group, ht_group, and ht_window.

Definition at line 578 of file htobj.cc.

References dirtyview(), and focused.

Referenced by focus(), ht_group::receivefocus(), ht_hexinputfield::receivefocus(), and ht_strinputfield::receivefocus().

void ht_view::redraw  )  [virtual]
 

Reimplemented in ht_listbox, ht_format_group, ht_xgroup, and ht_window.

Definition at line 584 of file htobj.cc.

References buf, cleanview(), draw(), screendrawbuf::drawbuffer(), exposed(), isviewdirty(), options, screen, size, VO_OWNBUFFER, and vsize.

Referenced by handlemsg(), ht_status::idle(), ht_window::redraw(), ht_xgroup::redraw(), ht_listbox::redraw(), and AnalyInfoline::update().

void ht_view::releasefocus  )  [virtual]
 

Reimplemented in ht_format_group, ht_group, and ht_window.

Definition at line 614 of file htobj.cc.

References dirtyview(), focused, and hidecursor().

Referenced by ht_group::insert(), and ht_group::releasefocus().

void ht_view::reloadpalette  )  [protected, virtual]
 

Reimplemented in ht_aviewer, and ht_uformat_viewer.

Definition at line 621 of file htobj.cc.

References palette::data, load_pal(), pal, and pal_name.

Referenced by config_changed(), init(), ht_uformat_viewer::reloadpalette(), and setpalette().

void ht_view::relocate_to ht_view view  ) 
 

Definition at line 630 of file htobj.cc.

References getbounds(), and move().

Referenced by ht_listbox::redraw(), and ht_listpopup::run_listpopup().

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

Reimplemented in ht_listbox, ht_format_group, ht_group, ht_window, and ht_text_viewer.

Definition at line 600 of file htobj.cc.

References app, genericdrawbuf::b_resize(), buf, clipbounds(), group, options, size, VO_RESIZE, and vsize.

Referenced by ht_group::reorder_view(), ht_text_viewer::resize(), ht_group::resize(), ht_format_group::resize(), and ht_listbox::resize().

int ht_view::select ht_view view  )  [virtual]
 

Reimplemented in ht_group.

Definition at line 637 of file htobj.cc.

Referenced by ht_group::select().

void ht_view::selectfirst  )  [virtual]
 

Reimplemented in ht_group, and ht_xgroup.

Definition at line 642 of file htobj.cc.

Referenced by ht_group::focusnext(), and ht_xgroup::selectfirst().

void ht_view::selectlast  )  [virtual]
 

Reimplemented in ht_group, and ht_xgroup.

Definition at line 646 of file htobj.cc.

Referenced by ht_group::focusprev(), and ht_xgroup::selectlast().

void ht_view::sendmsg int  msg,
void *  data1,
void *  data2 = 0
 

Definition at line 655 of file htobj.cc.

References mt_empty, and sendmsg().

void ht_view::sendmsg int  msg,
int  data1 = 0,
int  data2 = 0
 

Definition at line 665 of file htobj.cc.

References msg_dirtyview, msg_draw, msg_empty, mt_broadcast, mt_empty, and sendmsg().

void ht_view::sendmsg htmsg *  msg  ) 
 

Definition at line 650 of file htobj.cc.

References enabled, and handlemsg().

Referenced by ht_app::accept_close_all_windows(), blockop_dialog(), ht_clipboard::clear(), ht_app::create_window_file_bin(), RegistryFs::createFile(), RegistryFs::deleteFile(), dialog_assemble(), RegNodeFile::done(), ht_keyline::draw(), execute_process(), file_window_load_fcfg_func(), file_window_store_fcfg_func(), ht_text_editor::func(), ht_text_viewer::func(), ht_uformat_viewer::func(), ht_disasm_viewer::func(), ht_app::func(), ht_aviewer::func(), ht_text_editor::handlemsg(), ht_text_viewer::handlemsg(), ht_text_viewer2::handlemsg(), ht_window::handlemsg(), ht_menu_window::handlemsg(), ht_uformat_viewer::handlemsg(), ht_format_viewer::handlemsg(), ht_viewer::handlemsg(), ht_format_group::handlemsg(), ht_dialog::handlemsg(), ht_file_window::handlemsg(), ht_app::handlemsg(), ht_project_listbox::handlemsg(), ht_aviewer::handlemsg(), ht_logf(), htclassimage_init(), htpefimage_init(), ht_aviewer::idle(), ht_project_window::init(), ht_format_group::init_if(), ht_app::load(), RegistryFs::open(), ht_app::project_opencreate(), ht_button::push(), ht_format_viewer::pwrite(), ht_window::receivefocus(), ht_window::redraw(), ht_uformat_viewer::ref_desc(), ht_uformat_viewer::ref_flags(), ht_window::releasefocus(), replace_dialog(), ht_dialog::run(), ht_app::run(), ht_replace_dialog::select_replace_mode_bymodeidx(), ht_search_dialog::select_search_mode_bymodeidx(), sendmsg(), ht_clipboard_viewer::update_content(), ht_uformat_viewer::vsearch(), ht_format_viewer::vstate_save(), ht_listbox::vstate_save(), and ht_clipboard::write().

void ht_view::setbounds bounds *  b  ) 
 

Definition at line 688 of file htobj.cc.

References setvisualbounds(), and size.

Referenced by ht_listbox::adjustScrollbar(), imsgbox(), and init().

void ht_view::setcursor int  x,
int  y,
cursor_mode  c = cm_normal
 

Definition at line 702 of file htobj.cc.

References cm_normal, cm_overwrite, screendrawbuf::hidecursor(), pointvisible(), screen, screendrawbuf::setcursor(), screendrawbuf::setcursormode(), and size.

Referenced by ht_text_viewer::draw(), ht_uformat_viewer::draw(), ht_hexinputfield::draw(), ht_strinputfield::draw(), and ht_listbox::updateCursor().

void ht_view::setdata ht_object_stream s  )  [virtual]
 

Reimplemented in ht_checkboxes, ht_radioboxes, ht_inputfield, ht_listbox, ht_listpopup_dialog, ht_listpopup, ht_history_popup_dialog, ht_color_block, ht_context_menu_window_body, ht_menu_window, ht_group, and ht_treeview.

Definition at line 719 of file htobj.cc.

Referenced by databuf_set(), and ht_group::setdata().

void ht_view::setgroup ht_group group  )  [virtual]
 

Reimplemented in ht_format_group.

Definition at line 723 of file htobj.cc.

References group.

Referenced by ht_group::insert(), and ht_format_group::setgroup().

void ht_view::setnumber UINT  number  )  [virtual]
 

Reimplemented in ht_frame, and ht_window.

Definition at line 728 of file htobj.cc.

References UINT.

void ht_view::setoptions int  options  ) 
 

Definition at line 732 of file htobj.cc.

References options.

Referenced by disable_buffering(), enable_buffering(), init(), ht_listpopup::init(), and ht_group::insert().

void ht_view::setpalette char *  pal_name  )  [virtual]
 

Reimplemented in ht_group.

Definition at line 737 of file htobj.cc.

References pal_name, and reloadpalette().

Referenced by ht_app::init(), ht_group::insert(), ht_group::setpalette(), and setpalettefull().

void ht_view::setpalettefull char *  pal_name,
char *  pal_class
 

Definition at line 743 of file htobj.cc.

References pal_name, and setpalette().

void ht_view::setvisualbounds bounds *  b  ) 
 

Definition at line 694 of file htobj.cc.

References genericdrawbuf::b_setbounds(), buf, options, VO_OWNBUFFER, and vsize.

Referenced by setbounds().

void ht_view::store ht_object_stream s  )  [virtual]
 

stores object.

Reimplemented from Object.

Reimplemented in ht_app, ht_group, ht_xgroup, ht_scrollbar, ht_frame, and ht_window.

Definition at line 749 of file htobj.cc.

Referenced by save_systemconfig(), ht_frame::store(), and ht_group::store().

void ht_view::unrelocate_to ht_view view  ) 
 

Definition at line 763 of file htobj.cc.

References getbounds(), and move().

Referenced by ht_listbox::redraw(), and ht_listpopup::run_listpopup().


Member Data Documentation

int ht_view::browse_idx
 

Definition at line 135 of file htobj.h.

Referenced by ht_group::enum_next(), ht_group::focusnext(), ht_group::focusprev(), ht_group::get_by_browse_idx(), init(), ht_app::popup_view_list_dump(), ht_group::selectfirst(), and ht_group::selectlast().

genericdrawbuf* ht_view::buf
 

Definition at line 136 of file htobj.h.

Referenced by buf_lprint(), buf_lprintw(), buf_print(), buf_printchar(), buf_printf(), buf_printw(), clear(), disable_buffering(), done(), enable_buffering(), fill(), init(), move(), redraw(), resize(), and setvisualbounds().

char* ht_view::desc
 

Definition at line 134 of file htobj.h.

Referenced by done(), ht_uformat_viewer::func(), ht_app::get_window_by_filename(), init(), ht_app::popup_view_list_dump(), ht_app::popup_window_list(), and ht_pe_resource_viewer::select_node().

bool ht_view::enabled
 

Definition at line 131 of file htobj.h.

Referenced by disable(), enable(), init(), and sendmsg().

bool ht_view::focused
 

Definition at line 130 of file htobj.h.

Referenced by ht_frame::draw(), ht_label::draw(), focus(), init(), receivefocus(), and releasefocus().

UINT ht_view::g_hdist
 

Definition at line 142 of file htobj.h.

Referenced by init(), and ht_group::insert().

UINT ht_view::g_vdist
 

Definition at line 142 of file htobj.h.

Referenced by init(), and ht_group::insert().

ht_group* ht_view::group
 

Definition at line 132 of file htobj.h.

Referenced by alone(), ht_context_menu_window_body::handlemsg(), init(), ht_format_group::init(), move(), resize(), ht_pe_resource_viewer::select_node(), setgroup(), and view_line_exposed().

UINT ht_view::growmode
 

Definition at line 141 of file htobj.h.

Referenced by ht_app::create_window_clipboard(), ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), ht_app::create_window_term(), eval_dialog(), imsgbox(), init(), ht_group::reorder_view(), and ht_aviewer::showXRefs().

ht_view * ht_view::next
 

Definition at line 137 of file htobj.h.

Referenced by ht_group::countselectables(), ht_group::datasize(), ht_group::done(), ht_group::enum_next(), ht_group::focus(), ht_group::get_by_browse_idx(), ht_group::handlemsg(), ht_app::handlemsg(), init(), ht_group::insert(), ht_group::isalone(), ht_group::isviewdirty(), ht_group::move(), ht_app::popup_view_list_dump(), ht_group::putontop(), ht_group::remove(), ht_group::resize(), ht_group::select(), ht_pe_resource_viewer::select_node(), ht_group::selectfirst(), ht_group::selectlast(), ht_group::setpalette(), ht_group::store(), and view_line_exposed().

int ht_view::options
 

Definition at line 133 of file htobj.h.

Referenced by countselectables(), disable_buffering(), done(), enable_buffering(), ht_group::focusnext(), ht_group::focusprev(), ht_format_group::get_hscrollbar_pos(), ht_format_group::get_pindicator_str(), ht_format_group::get_vscrollbar_pos(), ht_group::handlemsg(), init(), ht_group::insert(), ht_app::popup_view_list_dump(), redraw(), resize(), ht_group::selectfirst(), ht_group::selectlast(), setoptions(), setvisualbounds(), and view_line_exposed().

palette ht_view::pal
 

Definition at line 144 of file htobj.h.

Referenced by ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), ht_app::create_window_log(), ht_app::create_window_project(), ht_app::create_window_term(), done(), getcolor(), init(), and reloadpalette().

char* ht_view::pal_class
 

Definition at line 145 of file htobj.h.

Referenced by ht_group::insert(), and ht_group::setpalette().

char* ht_view::pal_name
 

Definition at line 146 of file htobj.h.

Referenced by getpalette(), init(), reloadpalette(), setpalette(), and setpalettefull().

ht_view* ht_view::prev
 

Definition at line 137 of file htobj.h.

Referenced by init(), ht_group::insert(), ht_group::putontop(), and ht_group::remove().

bounds ht_view::size
 

Definition at line 139 of file htobj.h.

Referenced by buf_lprint(), buf_lprintw(), buf_print(), buf_printchar(), buf_printw(), enable_buffering(), exposed(), fill(), getbounds(), ht_window::handlemsg(), init(), ht_group::insert(), move(), redraw(), resize(), setbounds(), setcursor(), and view_line_exposed().

char* ht_view::view_debug_name
 

Definition at line 148 of file htobj.h.

bool ht_view::view_is_dirty [protected]
 

Definition at line 123 of file htobj.h.

Referenced by cleanview(), dirtyview(), init(), and isviewdirty().

bounds ht_view::vsize
 

Definition at line 140 of file htobj.h.

Referenced by buf_lprint(), buf_lprintw(), buf_print(), buf_printw(), clear(), clipbounds(), fill(), move(), pointvisible(), redraw(), resize(), and setvisualbounds().


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