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

ht_uformat_viewer Class Reference

#include <htformat.h>

Inheritance diagram for ht_uformat_viewer:

ht_format_viewer ht_viewer ht_view Object ht_aviewer ht_clipboard_viewer ht_disasm_viewer ht_hex_viewer ht_ne_entrypoint_viewer ht_pe_header_viewer ht_pe_il_viewer ht_text_viewer2 ht_xbe_header_viewer List of all members.

Public Member Functions

void init (bounds *b, const char *desc, int caps, ht_streamfile *file, ht_format_group *format_group)
virtual void done ()
virtual void clear_viewer_pos (viewer_pos *p)
virtual void draw ()
virtual bool get_current_offset (FILEOFS *offset)
virtual bool get_current_pos (viewer_pos *pos)
virtual bool goto_offset (FILEOFS offset, bool save_vstate)
virtual bool goto_pos (viewer_pos pos, bool save_vstate)
virtual void handlemsg (htmsg *msg)
virtual ht_search_resultpsearch (ht_search_request *search, FILEOFS start, FILEOFS end)
virtual void pselect_add (FILEOFS start, FILEOFS end)
virtual void pselect_get (FILEOFS *start, FILEOFS *end)
virtual void pselect_set (FILEOFS start, FILEOFS end)
virtual UINT pwrite (FILEOFS ofs, void *buf, UINT size)
virtual bool qword_to_offset (qword q, FILEOFS *ofs)
virtual ht_search_resultvsearch (ht_search_request *search, viewer_pos start, viewer_pos end)
virtual bool compeq_viewer_pos (viewer_pos *a, viewer_pos *b)
void complete_init ()
virtual void insertsub (ht_sub *sub)
void sendsubmsg (int msg)
void sendsubmsg (htmsg *msg)

Public Attributes

UINT search_caps

Protected Member Functions

virtual char * func (UINT i, bool execute)
virtual bool next_logical_pos (viewer_pos pos, viewer_pos *npos)
virtual bool next_logical_offset (FILEOFS ofs, FILEOFS *nofs)
virtual Objectvstate_create ()
virtual void vstate_restore (Object *view_state)
int address_input (const char *title, char *buf, int buflen, dword histid)
void adjust_cursor_group ()
void adjust_cursor_idx ()
int center_view (viewer_pos p)
void clear_subs ()
bool compeq_viewer_pos (uformat_viewer_pos *a, uformat_viewer_pos *b)
void check_cursor_visibility ()
void clear_viewer_pos (uformat_viewer_pos *p)
int cursor_left ()
int cursor_right ()
int cursor_down (int n)
int cursor_up (int n)
int cursor_home ()
int cursor_end ()
void cursor_tab ()
void cursorline_dirty ()
void cursorline_get ()
virtual int cursormicro_forward ()
virtual int cursormicro_backward ()
virtual int cursormicroedit_forward ()
bool edit_end ()
bool edit_input (byte b)
int edit_input_c2h (byte b)
int edit_input_c2d (byte b)
void edit_input_correctpos ()
bool edit_start ()
bool edit_update ()
bool edit ()
bool find_first_tag (uformat_viewer_pos *p, int limit)
bool find_first_edit_tag_with_offset (uformat_viewer_pos *p, int limit, FILEOFS offset)
void focus_cursor ()
vcp getcolor_tag (UINT pal_index)
int get_current_tag (char **tag)
int get_current_tag_size (dword *size)
vcp get_tag_color_edit (FILEOFS tag_offset, UINT size, bool atcursoroffset, bool iscursor)
int next_line (uformat_viewer_pos *p, int n)
int prev_line (uformat_viewer_pos *p, int n)
void print_tagstring (int x, int y, int maxlen, int xscroll, char *tagstring, bool cursor_in_line)
virtual int ref ()
int ref_desc (ID id, FILEOFS offset, UINT size, bool bigendian)
int ref_flags (ID id, FILEOFS offset)
virtual int ref_sel (LINE_ID *id)
virtual void reloadpalette ()
UINT render_tagstring (char *chars, vcp *colors, UINT maxlen, char *tagstring, bool cursor_in_line)
void render_tagstring_desc (char **string, int *length, vcp *tag_color, char *tag, UINT size, bool bigendian, bool is_cursor)
UINT render_tagstring_single (char *chars, vcp *colors, UINT maxlen, UINT offset, char *text, UINT len, vcp color)
void scroll_up (int n)
void scroll_down (int n)
void select_mode_off ()
void select_mode_on ()
void select_mode_pre ()
void select_mode_post (bool lastpos)
bool set_cursor (uformat_viewer_pos p)
void update_micropos ()
void update_misc_info ()
void update_visual_info ()
void update_ypos ()

Protected Attributes

ht_subfirst_sub
ht_sublast_sub
uformat_viewer_pos top
uformat_viewer_pos cursor
int cursor_ypos
int cursor_state
bool cursor_select
FILEOFS cursor_select_start
dword cursor_select_cursor_length
int cursor_tag_micropos
FILEOFS sel_start
FILEOFS sel_end
int cursor_visual_xpos
int cursor_visual_length
int cursor_tag_class
char cursor_line [1024]
palette tagpal
int xscroll
bool uf_initialized
bool isdirty_cursor_line

Member Function Documentation

int ht_uformat_viewer::address_input const char *  title,
char *  buf,
int  buflen,
dword  histid
[protected]
 

Definition at line 901 of file htformat.cc.

References app, bin2str(), button_cancel, button_ok, byte, ht_view::databuf_get(), ht_view::databuf_set(), ht_inputfield::datasize(), dialog_eval_help(), ht_dialog::done(), find_atom(), FS_KILLER, FS_MOVE, FS_RESIZE, FS_TITLE, ht_view::getbounds(), ht_button::init(), ht_label::init(), ht_strinputfield::init(), ht_dialog::init(), ht_window::insert(), insert_history_entry(), malloc(), and ht_dialog::run().

Referenced by handlemsg().

void ht_uformat_viewer::adjust_cursor_group  )  [protected]
 

Definition at line 993 of file htformat.cc.

References cursor, cursor_line, cursorline_get(), tag_count_groups(), and uformat_viewer_pos::tag_group.

Referenced by cursor_tab(), and set_cursor().

void ht_uformat_viewer::adjust_cursor_idx  )  [protected]
 

Definition at line 1000 of file htformat.cc.

References cursor, cursor_line, cursorline_get(), tag_count_selectable_tags_in_group(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by edit_end(), edit_start(), and set_cursor().

int ht_uformat_viewer::center_view viewer_pos  p  )  [protected]
 

Definition at line 1007 of file htformat.cc.

References cursorline_dirty(), prev_line(), top, and viewer_pos::u.

void ht_uformat_viewer::check_cursor_visibility  )  [protected]
 

Definition at line 1015 of file htformat.cc.

References cursor_state, cursor_state_disabled, cursor_state_invisible, and cursor_state_visible.

Referenced by handlemsg(), scroll_down(), scroll_up(), and set_cursor().

void ht_uformat_viewer::clear_subs  )  [protected]
 

Definition at line 3694 of file htformat.cc.

References clear_viewer_pos(), cursor, cursor_ypos, ht_sub::done(), first_sub, last_sub, ht_sub::next, top, and uf_initialized.

Referenced by done(), and ht_clipboard_viewer::update_content().

void ht_uformat_viewer::clear_viewer_pos viewer_pos p  )  [virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3713 of file htformat.cc.

References clear_viewer_pos(), and viewer_pos::u.

void ht_uformat_viewer::clear_viewer_pos uformat_viewer_pos p  )  [protected]
 

Definition at line 3718 of file htformat.cc.

References clear_line_id(), uformat_viewer_pos::line_id, NULL, uformat_viewer_pos::sub, uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by clear_subs(), clear_viewer_pos(), complete_init(), ht_aviewer::convertAddressToViewerPos(), cursor_up(), draw(), get_current_pos(), handlemsg(), init(), ht_hex_viewer::offset_to_pos(), ht_hex_viewer::qword_to_pos(), and ht_disasm_viewer::qword_to_pos().

bool ht_uformat_viewer::compeq_viewer_pos viewer_pos a,
viewer_pos b
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3726 of file htformat.cc.

References compeq_viewer_pos(), and viewer_pos::u.

bool ht_uformat_viewer::compeq_viewer_pos uformat_viewer_pos a,
uformat_viewer_pos b
[protected]
 

Definition at line 3731 of file htformat.cc.

References compeq_line_id(), uformat_viewer_pos::line_id, uformat_viewer_pos::sub, uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by compeq_viewer_pos(), and update_ypos().

void ht_uformat_viewer::complete_init  ) 
 

Definition at line 1026 of file htformat.cc.

References clear_viewer_pos(), cursor, cursor_state, cursor_state_disabled, cursor_state_invisible, cursor_state_visible, cursor_tag_micropos, cursor_ypos, cursorline_dirty(), cursorline_get(), ht_sub::first_line_id(), first_sub, ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), uformat_viewer_pos::sub, tag_count_selectable_tags(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, uf_initialized, update_misc_info(), and update_visual_info().

Referenced by ht_hex_viewer::handlemsg(), handlemsg(), and ht_disasm_viewer::handlemsg().

int ht_uformat_viewer::cursor_down int  n  )  [protected]
 

Definition at line 1235 of file htformat.cc.

References cursor, cursor_line, cursor_state, cursor_state_disabled, cursor_state_invisible, cursor_state_visible, cursor_ypos, cursorline_dirty(), edit(), ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), prev_line(), scroll_down(), uformat_viewer_pos::sub, tag_count_groups(), tag_count_selectable_tags_in_group(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, update_micropos(), update_misc_info(), and update_visual_info().

Referenced by cursor_right(), and handlemsg().

int ht_uformat_viewer::cursor_end  )  [protected]
 

Definition at line 1366 of file htformat.cc.

References cursor, cursor_line, cursor_tag_micropos, cursorline_get(), edit(), tag_count_selectable_tags_in_group(), tag_get_microsize(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, update_misc_info(), and update_visual_info().

Referenced by cursor_left(), and handlemsg().

int ht_uformat_viewer::cursor_home  )  [protected]
 

Definition at line 1357 of file htformat.cc.

References cursor, cursor_tag_micropos, edit(), uformat_viewer_pos::tag_idx, update_misc_info(), and update_visual_info().

Referenced by cursor_right(), and handlemsg().

int ht_uformat_viewer::cursor_left  )  [protected]
 

Definition at line 1082 of file htformat.cc.

References cursor, cursor_end(), cursor_up(), uformat_viewer_pos::tag_idx, update_misc_info(), and update_visual_info().

Referenced by cursormicro_backward(), and handlemsg().

int ht_uformat_viewer::cursor_right  )  [protected]
 

Definition at line 1098 of file htformat.cc.

References cursor, cursor_down(), cursor_home(), cursor_line, cursorline_get(), tag_count_selectable_tags_in_group(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, update_misc_info(), and update_visual_info().

Referenced by cursormicro_forward(), cursormicroedit_forward(), and handlemsg().

void ht_uformat_viewer::cursor_tab  )  [protected]
 

Definition at line 1380 of file htformat.cc.

References adjust_cursor_group(), cursor, and uformat_viewer_pos::tag_group.

Referenced by handlemsg().

int ht_uformat_viewer::cursor_up int  n  )  [protected]
 

Definition at line 1115 of file htformat.cc.

References clear_viewer_pos(), cursor, cursor_line, cursor_state, cursor_state_disabled, cursor_state_invisible, cursor_state_visible, cursor_ypos, cursorline_dirty(), edit(), ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), prev_line(), scroll_up(), uformat_viewer_pos::sub, tag_count_groups(), tag_count_selectable_tags_in_group(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, update_micropos(), update_misc_info(), and update_visual_info().

Referenced by cursor_left(), and handlemsg().

void ht_uformat_viewer::cursorline_dirty  )  [protected]
 

Definition at line 1386 of file htformat.cc.

References isdirty_cursor_line.

Referenced by center_view(), complete_init(), cursor_down(), cursor_up(), cursormicroedit_forward(), draw(), edit_end(), edit_input_correctpos(), edit_start(), pwrite(), scroll_down(), scroll_up(), set_cursor(), and vstate_restore().

void ht_uformat_viewer::cursorline_get  )  [protected]
 

Definition at line 1391 of file htformat.cc.

References cursor, cursor_line, ht_sub::getline(), isdirty_cursor_line, uformat_viewer_pos::line_id, and uformat_viewer_pos::sub.

Referenced by adjust_cursor_group(), adjust_cursor_idx(), complete_init(), cursor_end(), cursor_right(), cursormicro_backward(), cursormicro_forward(), cursormicroedit_forward(), edit_input(), edit_input_correctpos(), get_current_tag(), get_current_tag_size(), ref(), update_micropos(), update_misc_info(), and update_visual_info().

int ht_uformat_viewer::cursormicro_backward  )  [protected, virtual]
 

Definition at line 1468 of file htformat.cc.

References cursor, cursor_left(), cursor_line, cursor_tag_micropos, cursorline_get(), tag_get_microsize(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by handlemsg().

int ht_uformat_viewer::cursormicro_forward  )  [protected, virtual]
 

Definition at line 1457 of file htformat.cc.

References cursor, cursor_line, cursor_right(), cursor_tag_micropos, cursorline_get(), tag_get_microsize(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by handlemsg().

int ht_uformat_viewer::cursormicroedit_forward  )  [protected, virtual]
 

Definition at line 1399 of file htformat.cc.

References byte, cursor, cursor_line, cursor_right(), cursor_tag_micropos, cursor_tag_offset, cursorline_dirty(), cursorline_get(), ht_sub::getline(), HT_TAG_EDIT_BIT, uformat_viewer_pos::line_id, next_line(), set_cursor(), uformat_viewer_pos::sub, tag_class_edit, tag_count_selectable_tags_in_group(), tag_get_class(), tag_get_microsize(), tag_get_offset(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, UINT, update_misc_info(), and update_visual_info().

Referenced by edit_input().

void ht_uformat_viewer::done  )  [virtual]
 

Reimplemented from ht_format_viewer.

Reimplemented in ht_aviewer, ht_disasm_viewer, and ht_pe_il_viewer.

Definition at line 893 of file htformat.cc.

References clear_subs(), palette::data, ht_format_viewer::done(), edit_end(), and tagpal.

Referenced by ht_pe_il_viewer::done(), ht_disasm_viewer::done(), and ht_aviewer::done().

void ht_uformat_viewer::draw  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_clipboard_viewer.

Definition at line 1482 of file htformat.cc.

References ht_view::buf_printchar(), ht_view::clear(), clear_viewer_pos(), ht_sub::closest_line_id(), compeq_line_id(), cursor, cursor_state, cursor_state_visible, cursor_tag_class, cursor_tag_micropos, cursor_visual_xpos, cursor_ypos, cursorline_dirty(), edit(), first_sub, ht_view::getcolor(), ht_sub::getline(), ht_view::hidecursor(), HT_ERROR, uformat_viewer_pos::line_id, next_line(), palidx_generic_body, print_tagstring(), ht_view::setcursor(), uformat_viewer_pos::sub, tag_class_edit, tag_count_selectable_tags_in_group(), tag_get_micropos(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, uf_initialized, update_misc_info(), VC_GREEN, VC_TRANSPARENT, VCP, and xscroll.

Referenced by ht_clipboard_viewer::draw().

bool ht_uformat_viewer::edit  )  [protected]
 

Definition at line 1566 of file htformat.cc.

References FAM_WRITE, and ht_stream::get_access_mode().

Referenced by cursor_down(), cursor_end(), cursor_home(), cursor_up(), draw(), edit_end(), edit_start(), edit_update(), func(), ht_hex_viewer::get_pindicator_str(), ht_disasm_viewer::get_pindicator_str(), ht_clipboard_viewer::get_pindicator_str(), get_tag_color_edit(), handlemsg(), ht_aviewer::handlemsg(), ref_desc(), and render_tagstring().

bool ht_uformat_viewer::edit_end  )  [protected]
 

Definition at line 1571 of file htformat.cc.

References adjust_cursor_idx(), cursor, cursorline_dirty(), ht_view::dirtyview(), edit(), find_first_tag(), ht_view::hidecursor(), set_cursor(), update_misc_info(), and update_visual_info().

Referenced by done(), and handlemsg().

bool ht_uformat_viewer::edit_input byte  b  )  [protected]
 

Definition at line 1598 of file htformat.cc.

References buf, byte, cursor, cursor_line, cursor_tag_micropos, cursor_tag_offset, cursorline_get(), cursormicroedit_forward(), DEC_MASK, dword, edit_input_c2d(), edit_input_c2h(), HT_TAG_EDIT_BIT, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, K_Space, NULL, ht_format_viewer::pread(), pwrite(), size, tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by handlemsg().

int ht_uformat_viewer::edit_input_c2d byte  b  )  [protected]
 

Definition at line 1828 of file htformat.cc.

Referenced by edit_input().

int ht_uformat_viewer::edit_input_c2h byte  b  )  [protected]
 

Definition at line 1815 of file htformat.cc.

Referenced by edit_input().

void ht_uformat_viewer::edit_input_correctpos  )  [protected]
 

Definition at line 1837 of file htformat.cc.

References cursor, cursor_line, cursor_tag_offset, cursor_ypos, cursorline_dirty(), cursorline_get(), ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), set_cursor(), uformat_viewer_pos::sub, tag_class_edit, tag_count_selectable_tags(), tag_count_selectable_tags_in_group(), tag_get_class(), tag_get_offset(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, update_misc_info(), and update_visual_info().

bool ht_uformat_viewer::edit_start  )  [protected]
 

Definition at line 1876 of file htformat.cc.

References adjust_cursor_idx(), cursor, cursor_tag_micropos, cursorline_dirty(), ht_view::dirtyview(), edit(), uformat_viewer_pos::sub, update_misc_info(), and update_visual_info().

Referenced by handlemsg().

bool ht_uformat_viewer::edit_update  )  [protected]
 

Definition at line 1890 of file htformat.cc.

References ht_streamfile::cntl(), ht_view::dirtyview(), edit(), and FCNTL_MODS_FLUSH.

Referenced by handlemsg(), and ref_flags().

bool ht_uformat_viewer::find_first_edit_tag_with_offset uformat_viewer_pos p,
int  limit,
FILEOFS  offset
[protected]
 

Definition at line 1918 of file htformat.cc.

References FILEOFS, ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), uformat_viewer_pos::sub, tag_class_edit, tag_count_selectable_tags(), tag_get_class(), tag_get_len(), tag_get_offset(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by goto_offset().

bool ht_uformat_viewer::find_first_tag uformat_viewer_pos p,
int  limit
[protected]
 

Definition at line 1900 of file htformat.cc.

References ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), uformat_viewer_pos::sub, tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by edit_end(), goto_offset(), and handlemsg().

void ht_uformat_viewer::focus_cursor  )  [protected]
 

Definition at line 1943 of file htformat.cc.

References cursor_visual_length, cursor_visual_xpos, update_visual_info(), and xscroll.

Referenced by handlemsg().

char * ht_uformat_viewer::func UINT  i,
bool  execute
[protected, virtual]
 

Reimplemented from ht_viewer.

Reimplemented in ht_aviewer, ht_disasm_viewer, ht_le_aviewer, and ht_ne_aviewer.

Definition at line 1959 of file htformat.cc.

References app, baseview, button_yes, cmd_edit_mode_i, cmd_file_goto, cmd_file_resize, cmd_file_save, cmd_file_search, cmd_view_mode_i, ht_streamfile::cntl(), confirmbox, ht_view::desc, edit(), errorbox, FCNTL_MODS_FLUSH, FCNTL_MODS_INVD, FCNTL_MODS_IS_DIRTY, FILEOFS, ht_view::focus(), ht_viewer::func(), ht_format_viewer::get_current_real_offset(), ht_streamfile::get_filename(), ht_streamfile::get_size(), ht_snprintf(), msg_empty, msg_filesize_changed, msg_goto_offset, mt_broadcast, mt_empty, NULL, ht_view::sendmsg(), size, UINT, VC_EDIT, VC_GOTO, VC_RESIZE, VC_SEARCH, and ht_format_viewer::vstate_save().

Referenced by ht_disasm_viewer::func(), and ht_aviewer::func().

bool ht_uformat_viewer::get_current_offset FILEOFS offset  )  [virtual]
 

Reimplemented from ht_format_viewer.

Reimplemented in ht_aviewer.

Definition at line 2074 of file htformat.cc.

References cursor_state, cursor_state_disabled, cursor_tag_class, cursor_tag_offset, FILEOFS, and tag_class_edit.

Referenced by ht_aviewer::get_current_offset(), ht_hex_viewer::get_pindicator_str(), ht_disasm_viewer::get_pindicator_str(), ht_clipboard_viewer::get_pindicator_str(), ht_hex_viewer::handlemsg(), and handlemsg().

bool ht_uformat_viewer::get_current_pos viewer_pos pos  )  [virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 2083 of file htformat.cc.

References clear_viewer_pos(), cursor, and viewer_pos::u.

Referenced by ht_aviewer::generateOutputDialog(), ht_aviewer::getCurrentAddress(), handlemsg(), ht_disasm_viewer::handlemsg(), and ht_aviewer::handlemsg().

int ht_uformat_viewer::get_current_tag char **  tag  )  [protected]
 

Definition at line 2090 of file htformat.cc.

References cursor, cursor_line, cursorline_get(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

int ht_uformat_viewer::get_current_tag_size dword *  size  )  [protected]
 

Definition at line 2101 of file htformat.cc.

References cursor, cursor_line, cursor_tag_class, cursorline_get(), size, tag_class_edit, tag_get_selectable_tag(), tag_get_size(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by handlemsg(), and select_mode_pre().

vcp ht_uformat_viewer::get_tag_color_edit FILEOFS  tag_offset,
UINT  size,
bool  atcursoroffset,
bool  iscursor
[protected]
 

Definition at line 2860 of file htformat.cc.

References ht_streamfile::cntl(), edit(), FCNTL_MODS_IS_DIRTY, FILEOFS, getcolor_tag(), palidx_tags_edit_tag, palidx_tags_edit_tag_cursor_edit, palidx_tags_edit_tag_cursor_select, palidx_tags_edit_tag_cursor_unfocused, palidx_tags_edit_tag_modified, palidx_tags_edit_tag_selected, sel_end, sel_start, size, UINT, vcp, and vcp_mix().

Referenced by render_tagstring().

vcp ht_uformat_viewer::getcolor_tag UINT  pal_index  )  [protected]
 

Definition at line 2069 of file htformat.cc.

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

Referenced by get_tag_color_edit(), render_tagstring(), and render_tagstring_desc().

bool ht_uformat_viewer::goto_offset FILEOFS  offset,
bool  save_vstate
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 2773 of file htformat.cc.

References ht_sub::convert_ofs_to_id(), cursor, cursor_state, cursor_state_invisible, cursor_state_visible, FILEOFS, find_first_edit_tag_with_offset(), find_first_tag(), first_sub, uformat_viewer_pos::line_id, ht_sub::next, select_mode_post(), select_mode_pre(), set_cursor(), uformat_viewer_pos::sub, uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, and ht_format_viewer::vstate_save().

Referenced by ht_disasm_viewer::ref_sel().

bool ht_uformat_viewer::goto_pos viewer_pos  pos,
bool  save_vstate
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 2806 of file htformat.cc.

References select_mode_post(), select_mode_pre(), set_cursor(), viewer_pos::u, and ht_format_viewer::vstate_save().

Referenced by ht_aviewer::gotoAddress(), handlemsg(), and htclassimage_init().

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

Reimplemented from ht_format_viewer.

Reimplemented in ht_aviewer, ht_clipboard_viewer, ht_disasm_viewer, ht_hex_viewer, and ht_text_viewer2.

Definition at line 2114 of file htformat.cc.

References address_input(), baseview, blockop_dialog(), buf, button_cancel, button_ok, check_cursor_visibility(), clear_viewer_pos(), clearmsg(), clipboard_copy(), clipboard_paste(), cmd_edit_copy, cmd_edit_mode, cmd_edit_mode_i, cmd_edit_paste, cmd_file_blockop, cmd_file_extend, cmd_file_goto, cmd_file_replace, cmd_file_resize, cmd_file_save, cmd_file_search, cmd_file_truncate, cmd_view_mode, cmd_view_mode_i, ht_streamfile::cntl(), complete_init(), ht_format_viewer::continue_search(), cursor, cursor_down(), cursor_end(), cursor_home(), cursor_left(), cursor_right(), cursor_select, cursor_state, cursor_state_disabled, cursor_state_visible, cursor_tab(), cursor_tag_class, cursor_tag_offset, cursor_up(), cursor_ypos, cursormicro_backward(), cursormicro_forward(), ht_view::dirtyview(), dword, edit(), edit_end(), edit_input(), edit_start(), edit_update(), errorbox, eval(), FAM_WRITE, FCNTL_MODS_CLEAR_DIRTY_RANGE, FILEOFS, find_first_tag(), ht_sub::first_line_id(), first_sub, focus_cursor(), ht_stream::get_access_mode(), get_current_offset(), get_current_pos(), get_current_tag_size(), get_eval_error(), ht_format_viewer::get_file(), ht_streamfile::get_filename(), ht_format_viewer::get_hscrollbar_pos(), ht_format_viewer::get_pindicator_str(), ht_streamfile::get_size(), ht_format_viewer::get_vscrollbar_pos(), globalerror, goto_pos(), gsi_hscrollbar, gsi_pindicator, gsi_vscrollbar, ht_format_viewer::handlemsg(), HISTATOM_GOTO, ht_snprintf(), infobox, inputbox(), K_Alt_C, K_Alt_S, K_Alt_V, K_Backspace, K_Control_F, K_Control_Insert, K_Control_L, K_Control_Left, K_Control_PageDown, K_Control_PageUp, K_Control_Right, K_Down, K_End, K_Escape, K_Home, K_Left, K_PageDown, K_PageUp, K_Return, K_Right, K_Shift_Down, K_Shift_End, K_Shift_F7, K_Shift_Home, K_Shift_Insert, K_Shift_Left, K_Shift_PageDown, K_Shift_PageUp, K_Shift_Right, K_Shift_Up, K_Tab, K_Up, ht_sub::last_line_id(), last_sub, uformat_viewer_pos::line_id, msg_complete_init, msg_filesize_changed, msg_get_scrollinfo, msg_keypressed, mt_broadcast, NULL, ht_format_viewer::pos_to_offset(), psearch(), pselect_add(), pselect_set(), gsi_scrollbar_t::psize, gsi_scrollbar_t::pstart, QWORD_GET_INT, ref(), replace_dialog(), SC_PHYSICAL, SC_VISUAL, scalar_context_int(), scalar_destroy(), search_caps, ht_search_request::search_class, search_dialog(), sel_end, sel_start, select_mode_off(), select_mode_on(), select_mode_post(), select_mode_pre(), ht_view::sendmsg(), sendsubmsg(), set_cursor(), ht_format_viewer::show_search_result(), ht_format_viewer::string_to_pos(), uformat_viewer_pos::sub, tag_class_edit, tag_class_sel, uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, viewer_pos::u, UINT, update_misc_info(), update_visual_info(), eval_int::value, VC_EDIT, VC_SEARCH, vsearch(), ht_format_viewer::vstate_save(), and xscroll.

Referenced by ht_text_viewer2::handlemsg(), ht_hex_viewer::handlemsg(), ht_disasm_viewer::handlemsg(), ht_clipboard_viewer::handlemsg(), and ht_aviewer::handlemsg().

void ht_uformat_viewer::init bounds *  b,
const char *  desc,
int  caps,
ht_streamfile file,
ht_format_group format_group
 

Definition at line 868 of file htformat.cc.

References clear_viewer_pos(), cursor, cursor_select, cursor_select_start, cursor_visual_length, cursor_visual_xpos, cursor_ypos, palette::data, file, first_sub, Object::init(), isdirty_cursor_line, last_sub, NULL, search_caps, SEARCHMODE_VREGEX, sel_end, sel_start, palette::size, tagpal, top, uf_initialized, VIEW_DEBUG_NAME, and xscroll.

Referenced by htelfheader_init(), hthex_init(), htpefheader_init(), httext_init(), and ref_flags().

void ht_uformat_viewer::insertsub ht_sub sub  )  [virtual]
 

Definition at line 2764 of file htformat.cc.

References first_sub, last_sub, ht_sub::next, ht_sub::prev, and ht_sub::uformat_viewer.

Referenced by htclassimage_init(), htdisasm_init(), htelfheader_init(), hthex_init(), htpefheader_init(), htpefimage_init(), httext_init(), ref_flags(), and ht_clipboard_viewer::update_content().

int ht_uformat_viewer::next_line uformat_viewer_pos p,
int  n
[protected]
 

Definition at line 2830 of file htformat.cc.

References ht_sub::first_line_id(), uformat_viewer_pos::line_id, ht_sub::next, ht_sub::next_line_id(), uformat_viewer_pos::sub, and uformat_viewer_pos::tag_idx.

Referenced by complete_init(), cursor_down(), cursor_up(), cursormicroedit_forward(), draw(), edit_input_correctpos(), find_first_edit_tag_with_offset(), find_first_tag(), next_logical_pos(), scroll_down(), set_cursor(), and update_ypos().

bool ht_uformat_viewer::next_logical_offset FILEOFS  ofs,
FILEOFS nofs
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 2824 of file htformat.cc.

References FILEOFS.

bool ht_uformat_viewer::next_logical_pos viewer_pos  pos,
viewer_pos npos
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 2815 of file htformat.cc.

References next_line(), and viewer_pos::u.

Referenced by ht_aviewer::searchForXRefs().

int ht_uformat_viewer::prev_line uformat_viewer_pos p,
int  n
[protected]
 

Definition at line 2845 of file htformat.cc.

References ht_sub::last_line_id(), uformat_viewer_pos::line_id, ht_sub::prev, ht_sub::prev_line_id(), uformat_viewer_pos::sub, and uformat_viewer_pos::tag_idx.

Referenced by center_view(), cursor_down(), cursor_up(), and scroll_up().

void ht_uformat_viewer::print_tagstring int  x,
int  y,
int  maxlen,
int  xscroll,
char *  tagstring,
bool  cursor_in_line
[protected]
 

Definition at line 3289 of file htformat.cc.

References ht_view::buf_printchar(), MAX_PRINT_TAGSTRING_LINELENGTH, render_tagstring(), VC_GREEN, VC_TRANSPARENT, VCP, and vcp.

Referenced by draw().

ht_search_result * ht_uformat_viewer::psearch ht_search_request search,
FILEOFS  start,
FILEOFS  end
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3571 of file htformat.cc.

References Object::duplicate(), FILEOFS, first_sub, ht_sub::next, NULL, and ht_sub::search().

Referenced by handlemsg().

void ht_uformat_viewer::pselect_add FILEOFS  start,
FILEOFS  end
[virtual]
 

Reimplemented from ht_format_viewer.

Reimplemented in ht_clipboard_viewer.

Definition at line 3655 of file htformat.cc.

References FILEOFS, sel_end, and sel_start.

Referenced by handlemsg(), ht_clipboard_viewer::pselect_add(), and select_mode_post().

void ht_uformat_viewer::pselect_get FILEOFS start,
FILEOFS end
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3682 of file htformat.cc.

References FILEOFS, sel_end, and sel_start.

Referenced by ht_hex_viewer::get_pindicator_str(), ht_clipboard_viewer::get_pindicator_str(), select_mode_post(), and ht_clipboard_viewer::selection_changed().

void ht_uformat_viewer::pselect_set FILEOFS  start,
FILEOFS  end
[virtual]
 

Reimplemented from ht_format_viewer.

Reimplemented in ht_clipboard_viewer.

Definition at line 3688 of file htformat.cc.

References FILEOFS, sel_end, and sel_start.

Referenced by handlemsg(), and ht_clipboard_viewer::pselect_set().

UINT ht_uformat_viewer::pwrite FILEOFS  ofs,
void *  buf,
UINT  size
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3358 of file htformat.cc.

References buf, cursorline_dirty(), FILEOFS, ht_format_viewer::pwrite(), size, and UINT.

Referenced by edit_input(), and ref_desc().

bool ht_uformat_viewer::qword_to_offset qword  q,
FILEOFS ofs
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3820 of file htformat.cc.

References FILEOFS, and QWORD_GET_INT.

int ht_uformat_viewer::ref  )  [protected, virtual]
 

Definition at line 3364 of file htformat.cc.

References cursor, cursor_line, cursor_tag_id, cursorline_get(), HT_TAG_DESC_BYTE, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_LE, HT_TAG_FLAGS, HT_TAG_SEL, id, ht_sub::ref(), ref_desc(), ref_flags(), ref_sel(), uformat_viewer_pos::sub, tag_class_sel, tag_get_class(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by handlemsg().

int ht_uformat_viewer::ref_desc ID  id,
FILEOFS  offset,
UINT  size,
bool  bigendian
[protected]
 

Definition at line 3396 of file htformat.cc.

References baseview, big_endian, buf, button_ok, byte, cmd_edit_mode_i, create_foreign_int(), ht_view::databuf_get(), int_hash::desc, ht_view::dirtyview(), ht_dialog::done(), edit(), endianess, FILEOFS, find_atom(), FS_KILLER, FS_MOVE, ht_text_listbox::getID(), ht_listbox::gotoItemByPosition(), ht_itext_listbox::init(), ht_dialog::init(), ht_window::insert(), ht_text_listbox::insert_str(), little_endian, NULL, palkey_generic_window_default, ht_format_viewer::pread(), pwrite(), ht_dialog::run(), screen, ht_view::sendmsg(), ht_group::setpalette(), size, genericdrawbuf::size, uint, UINT, ht_text_listbox::update(), and int_hash::value.

Referenced by ref().

int ht_uformat_viewer::ref_flags ID  id,
FILEOFS  offset
[protected]
 

Definition at line 3491 of file htformat.cc.

References ht_mask_sub::add_mask(), baseview, button_ok, cmd_edit_mode_i, cmd_view_mode_i, ht_dialog::done(), edit_update(), FAM_WRITE, FILEOFS, find_atom(), FS_KILLER, FS_MOVE, FS_TITLE, ht_stream::get_access_mode(), ht_mask_sub::init(), init(), ht_dialog::init(), ht_window::insert(), insertsub(), MAX, msg_complete_init, NULL, palkey_generic_window_default, ht_dialog::run(), screen, ht_view::sendmsg(), ht_group::setpalette(), genericdrawbuf::size, tag_make_edit_bit(), UINT, and VC_EDIT.

Referenced by ref().

int ht_uformat_viewer::ref_sel LINE_ID id  )  [protected, virtual]
 

Reimplemented in ht_aviewer, ht_disasm_viewer, ht_ne_entrypoint_viewer, ht_pe_header_viewer, and ht_xbe_header_viewer.

Definition at line 3566 of file htformat.cc.

Referenced by ref().

void ht_uformat_viewer::reloadpalette  )  [protected, virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_aviewer.

Definition at line 2946 of file htformat.cc.

References palette::data, load_pal(), NULL, palclasskey_tags, palkey_tags_default, ht_view::reloadpalette(), and tagpal.

Referenced by ht_aviewer::reloadpalette().

UINT ht_uformat_viewer::render_tagstring char *  chars,
vcp colors,
UINT  maxlen,
char *  tagstring,
bool  cursor_in_line
[protected]
 

Definition at line 2956 of file htformat.cc.

References assert, buf, byte, ht_streamfile::cntl(), cursor, dword, edit(), FCNTL_MODS_IS_DIRTY, FILEOFS, get_tag_color_edit(), ht_view::getcolor(), getcolor_tag(), HT_TAG_COLOR, HT_TAG_COLOR_LEN, HT_TAG_DESC_BYTE, HT_TAG_DESC_BYTE_LEN, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_BE_LEN, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_LE_LEN, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_LE_LEN, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_BE_LEN, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_LE_LEN, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_LEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_LEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_LEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_LEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_LEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_LEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_LEN, HT_TAG_EDIT_SELVIS, HT_TAG_EDIT_SELVIS_LEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_LEN, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_LEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_LEN, HT_TAG_FLAGS, HT_TAG_FLAGS_LEN, HT_TAG_GROUP, HT_TAG_GROUP_LEN, HT_TAG_SEL, HT_TAG_SEL_LEN, IS_DIRTY_SINGLEBIT, mkhexb(), mkhexd(), mkhexq(), mkhexw(), palidx_generic_body, palidx_tags_edit_tag, palidx_tags_edit_tag_cursor_edit, palidx_tags_edit_tag_cursor_select, palidx_tags_edit_tag_modified, palidx_tags_edit_tag_selected, palidx_tags_sel_tag, palidx_tags_sel_tag_cursor_focused, palidx_tags_sel_tag_cursor_unfocused, ht_format_viewer::pread(), qword, render_tagstring_desc(), render_tagstring_single(), sel_end, sel_start, tag_get_color(), tag_get_offset(), tag_get_seltextlen(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, UINT, vcp, vcp_mix(), and word.

Referenced by print_tagstring(), and vsearch().

void ht_uformat_viewer::render_tagstring_desc char **  string,
int *  length,
vcp tag_color,
char *  tag,
UINT  size,
bool  bigendian,
bool  is_cursor
[protected]
 

Definition at line 2883 of file htformat.cc.

References buf, byte, FILEOFS, find_atom(), getcolor_tag(), id, matchhash(), palidx_tags_sel_tag, palidx_tags_sel_tag_cursor_focused, ht_format_viewer::pread(), qword, size, string, tag_get_desc_id(), tag_get_offset(), UINT, and vcp.

Referenced by render_tagstring().

UINT ht_uformat_viewer::render_tagstring_single char *  chars,
vcp colors,
UINT  maxlen,
UINT  offset,
char *  text,
UINT  len,
vcp  color
[protected]
 

Definition at line 3273 of file htformat.cc.

References len, UINT, and vcp.

Referenced by render_tagstring().

void ht_uformat_viewer::scroll_down int  n  )  [protected]
 

Definition at line 3813 of file htformat.cc.

References check_cursor_visibility(), cursor_ypos, cursorline_dirty(), next_line(), and top.

Referenced by cursor_down().

void ht_uformat_viewer::scroll_up int  n  )  [protected]
 

Definition at line 3806 of file htformat.cc.

References check_cursor_visibility(), cursor_ypos, cursorline_dirty(), prev_line(), and top.

Referenced by cursor_up().

void ht_uformat_viewer::select_mode_off  )  [protected]
 

Definition at line 3312 of file htformat.cc.

References cursor_select.

Referenced by handlemsg().

void ht_uformat_viewer::select_mode_on  )  [protected]
 

Definition at line 3319 of file htformat.cc.

References cursor_select.

Referenced by handlemsg().

void ht_uformat_viewer::select_mode_post bool  lastpos  )  [protected]
 

Definition at line 3337 of file htformat.cc.

References cursor_select, cursor_select_cursor_length, cursor_select_start, cursor_tag_class, cursor_tag_offset, FILEOFS, pselect_add(), pselect_get(), tag_class_edit, and tag_class_sel.

Referenced by goto_offset(), goto_pos(), and handlemsg().

void ht_uformat_viewer::select_mode_pre  )  [protected]
 

Definition at line 3326 of file htformat.cc.

References cursor_select, cursor_select_cursor_length, cursor_select_start, cursor_tag_class, cursor_tag_offset, get_current_tag_size(), sel_end, sel_start, and tag_class_edit.

Referenced by goto_offset(), goto_pos(), and handlemsg().

void ht_uformat_viewer::sendsubmsg htmsg *  msg  ) 
 

Definition at line 3746 of file htformat.cc.

References cursor, first_sub, ht_sub::handlemsg(), mt_broadcast, ht_sub::next, and uformat_viewer_pos::sub.

void ht_uformat_viewer::sendsubmsg int  msg  ) 
 

Definition at line 3739 of file htformat.cc.

Referenced by ht_hex_viewer::handlemsg(), handlemsg(), and ht_disasm_viewer::handlemsg().

bool ht_uformat_viewer::set_cursor uformat_viewer_pos  p  )  [protected]
 

Definition at line 3757 of file htformat.cc.

References adjust_cursor_group(), adjust_cursor_idx(), check_cursor_visibility(), compeq_line_id(), cursor, cursor_ypos, cursorline_dirty(), ht_view::dirtyview(), ht_sub::getline(), uformat_viewer_pos::line_id, next_line(), uformat_viewer_pos::sub, tag_get_selectable_tag(), uformat_viewer_pos::tag_group, uformat_viewer_pos::tag_idx, top, update_misc_info(), and update_visual_info().

Referenced by cursormicroedit_forward(), edit_end(), edit_input_correctpos(), goto_offset(), goto_pos(), and handlemsg().

void ht_uformat_viewer::update_micropos  )  [protected]
 

Definition at line 3827 of file htformat.cc.

References cursor, cursor_line, cursor_tag_micropos, cursorline_get(), tag_get_microsize(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by cursor_down(), and cursor_up().

void ht_uformat_viewer::update_misc_info  )  [protected]
 

Definition at line 3837 of file htformat.cc.

References clear_line_id(), cursor, cursor_line, cursor_tag_class, cursor_tag_id, cursor_tag_offset, cursorline_get(), tag_class_edit, tag_class_sel, tag_get_class(), tag_get_id(), tag_get_offset(), tag_get_selectable_tag(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by complete_init(), cursor_down(), cursor_end(), cursor_home(), cursor_left(), cursor_right(), cursor_up(), cursormicroedit_forward(), draw(), edit_end(), edit_input_correctpos(), edit_start(), handlemsg(), set_cursor(), and vstate_restore().

void ht_uformat_viewer::update_visual_info  )  [protected]
 

Definition at line 3855 of file htformat.cc.

References cursor, cursor_line, cursor_tag_micropos, cursor_visual_length, cursor_visual_xpos, cursorline_get(), HT_TAG_GROUP, tag_class_no, tag_findnext(), tag_get_class(), tag_get_len(), tag_get_vlen(), uformat_viewer_pos::tag_group, and uformat_viewer_pos::tag_idx.

Referenced by complete_init(), cursor_down(), cursor_end(), cursor_home(), cursor_left(), cursor_right(), cursor_up(), cursormicroedit_forward(), edit_end(), edit_input_correctpos(), edit_start(), focus_cursor(), handlemsg(), set_cursor(), and vstate_restore().

void ht_uformat_viewer::update_ypos  )  [protected]
 

Definition at line 3880 of file htformat.cc.

References compeq_viewer_pos(), cursor, cursor_ypos, next_line(), and top.

ht_search_result * ht_uformat_viewer::vsearch ht_search_request search,
viewer_pos  start,
viewer_pos  end
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3589 of file htformat.cc.

References assert, cursor, ht_window::done(), Object::duplicate(), ht_sub::first_line_id(), get_std_progress_indicator_metrics(), ht_sub::getline(), ht_getkey(), ht_keypressed(), ht_snprintf(), ht_progress_indicator::init(), K_Escape, ht_visual_search_result::length, uformat_viewer_pos::line_id, msg_draw, ht_sub::next, ht_sub::next_line_id(), NULL, ht_visual_search_result::pos, regexec(), render_tagstring(), regmatch_t::rm_eo, regmatch_t::rm_so, ht_regex_search_request::rx, ht_regex_search_request::rx_str, SC_VISUAL, screen, ht_search_request::search_class, ht_view::sendmsg(), ht_progress_indicator::settext(), screendrawbuf::show(), ST_REGEX, uformat_viewer_pos::sub, ht_search_request::type, viewer_pos::u, UINT, and ht_visual_search_result::xpos.

Referenced by handlemsg(), and ht_aviewer::searchForXRefs().

Object * ht_uformat_viewer::vstate_create  )  [protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3913 of file htformat.cc.

References cursor, ht_uformat_viewer_vstate::cursor, cursor_state, ht_uformat_viewer_vstate::cursor_state, cursor_ypos, ht_uformat_viewer_vstate::cursor_ypos, first_sub, ht_uformat_viewer_vstate::first_sub, last_sub, ht_uformat_viewer_vstate::last_sub, sel_end, ht_uformat_viewer_vstate::sel_end, sel_start, ht_uformat_viewer_vstate::sel_start, top, and ht_uformat_viewer_vstate::top.

void ht_uformat_viewer::vstate_restore Object view_state  )  [protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 3893 of file htformat.cc.

References ht_uformat_viewer_vstate::cursor, cursor, ht_uformat_viewer_vstate::cursor_state, cursor_state, ht_uformat_viewer_vstate::cursor_ypos, cursor_ypos, cursorline_dirty(), ht_uformat_viewer_vstate::first_sub, first_sub, ht_uformat_viewer_vstate::last_sub, last_sub, ht_uformat_viewer_vstate::sel_end, sel_end, ht_uformat_viewer_vstate::sel_start, sel_start, ht_uformat_viewer_vstate::top, top, update_misc_info(), and update_visual_info().


Member Data Documentation

uformat_viewer_pos ht_uformat_viewer::cursor [protected]
 

Definition at line 292 of file htformat.h.

Referenced by adjust_cursor_group(), adjust_cursor_idx(), clear_subs(), complete_init(), cursor_down(), cursor_end(), cursor_home(), cursor_left(), cursor_right(), cursor_tab(), cursor_up(), cursorline_get(), cursormicro_backward(), cursormicro_forward(), cursormicroedit_forward(), draw(), edit_end(), edit_input(), edit_input_correctpos(), edit_start(), get_current_pos(), get_current_tag(), get_current_tag_size(), goto_offset(), handlemsg(), init(), ref(), render_tagstring(), sendsubmsg(), set_cursor(), update_micropos(), update_misc_info(), update_visual_info(), update_ypos(), vsearch(), vstate_create(), and vstate_restore().

char ht_uformat_viewer::cursor_line[1024] [protected]
 

Definition at line 313 of file htformat.h.

Referenced by adjust_cursor_group(), adjust_cursor_idx(), cursor_down(), cursor_end(), cursor_right(), cursor_up(), cursorline_get(), cursormicro_backward(), cursormicro_forward(), cursormicroedit_forward(), edit_input(), edit_input_correctpos(), get_current_tag(), get_current_tag_size(), ref(), update_micropos(), update_misc_info(), and update_visual_info().

bool ht_uformat_viewer::cursor_select [protected]
 

Definition at line 295 of file htformat.h.

Referenced by handlemsg(), init(), select_mode_off(), select_mode_on(), select_mode_post(), and select_mode_pre().

dword ht_uformat_viewer::cursor_select_cursor_length [protected]
 

Definition at line 297 of file htformat.h.

Referenced by select_mode_post(), and select_mode_pre().

FILEOFS ht_uformat_viewer::cursor_select_start [protected]
 

Definition at line 296 of file htformat.h.

Referenced by init(), select_mode_post(), and select_mode_pre().

int ht_uformat_viewer::cursor_state [protected]
 

Definition at line 294 of file htformat.h.

Referenced by check_cursor_visibility(), complete_init(), cursor_down(), cursor_up(), draw(), get_current_offset(), goto_offset(), handlemsg(), vstate_create(), and vstate_restore().

int ht_uformat_viewer::cursor_tag_class [protected]
 

Definition at line 306 of file htformat.h.

Referenced by draw(), get_current_offset(), get_current_tag_size(), handlemsg(), select_mode_post(), select_mode_pre(), and update_misc_info().

struct { ... } ht_uformat_viewer::cursor_tag_id [protected]
 

Referenced by ref(), and update_misc_info().

int ht_uformat_viewer::cursor_tag_micropos [protected]
 

Definition at line 298 of file htformat.h.

Referenced by complete_init(), cursor_end(), cursor_home(), cursormicro_backward(), cursormicro_forward(), cursormicroedit_forward(), draw(), edit_input(), edit_start(), update_micropos(), and update_visual_info().

FILEOFS ht_uformat_viewer::cursor_tag_offset [protected]
 

Definition at line 308 of file htformat.h.

Referenced by cursormicroedit_forward(), edit_input(), edit_input_correctpos(), get_current_offset(), handlemsg(), select_mode_post(), select_mode_pre(), and update_misc_info().

int ht_uformat_viewer::cursor_visual_length [protected]
 

Definition at line 304 of file htformat.h.

Referenced by focus_cursor(), init(), and update_visual_info().

int ht_uformat_viewer::cursor_visual_xpos [protected]
 

Definition at line 303 of file htformat.h.

Referenced by draw(), focus_cursor(), init(), and update_visual_info().

int ht_uformat_viewer::cursor_ypos [protected]
 

Definition at line 293 of file htformat.h.

Referenced by clear_subs(), complete_init(), cursor_down(), cursor_up(), draw(), edit_input_correctpos(), handlemsg(), init(), scroll_down(), scroll_up(), set_cursor(), update_ypos(), vstate_create(), and vstate_restore().

ht_sub* ht_uformat_viewer::first_sub [protected]
 

Definition at line 288 of file htformat.h.

Referenced by clear_subs(), complete_init(), draw(), goto_offset(), handlemsg(), init(), insertsub(), psearch(), sendsubmsg(), vstate_create(), and vstate_restore().

LINE_ID ht_uformat_viewer::id [protected]
 

Definition at line 310 of file htformat.h.

Referenced by ref(), and render_tagstring_desc().

bool ht_uformat_viewer::isdirty_cursor_line [protected]
 

Definition at line 321 of file htformat.h.

Referenced by cursorline_dirty(), cursorline_get(), and init().

ht_sub * ht_uformat_viewer::last_sub [protected]
 

Definition at line 288 of file htformat.h.

Referenced by clear_subs(), handlemsg(), init(), insertsub(), vstate_create(), and vstate_restore().

UINT ht_uformat_viewer::search_caps
 

Definition at line 388 of file htformat.h.

Referenced by handlemsg(), hthex_init(), httext_init(), and init().

FILEOFS ht_uformat_viewer::sel_end [protected]
 

Definition at line 301 of file htformat.h.

Referenced by get_tag_color_edit(), handlemsg(), init(), pselect_add(), pselect_get(), pselect_set(), render_tagstring(), select_mode_pre(), vstate_create(), and vstate_restore().

FILEOFS ht_uformat_viewer::sel_start [protected]
 

Definition at line 300 of file htformat.h.

Referenced by get_tag_color_edit(), handlemsg(), init(), pselect_add(), pselect_get(), pselect_set(), render_tagstring(), select_mode_pre(), vstate_create(), and vstate_restore().

palette ht_uformat_viewer::tagpal [protected]
 

Definition at line 315 of file htformat.h.

Referenced by done(), getcolor_tag(), init(), and reloadpalette().

uformat_viewer_pos ht_uformat_viewer::top [protected]
 

Definition at line 290 of file htformat.h.

Referenced by center_view(), clear_subs(), complete_init(), cursor_down(), cursor_up(), cursormicroedit_forward(), draw(), edit_input_correctpos(), handlemsg(), init(), scroll_down(), scroll_up(), set_cursor(), update_ypos(), vstate_create(), and vstate_restore().

bool ht_uformat_viewer::uf_initialized [protected]
 

Definition at line 319 of file htformat.h.

Referenced by clear_subs(), complete_init(), draw(), and init().

int ht_uformat_viewer::xscroll [protected]
 

Definition at line 317 of file htformat.h.

Referenced by draw(), focus_cursor(), handlemsg(), and init().


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