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

ht_hex_viewer Class Reference

#include <hthex.h>

Inheritance diagram for ht_hex_viewer:

ht_uformat_viewer ht_format_viewer ht_viewer ht_view Object List of all members.

Public Attributes

ht_hex_file_subh

Protected Member Functions

virtual void get_pindicator_str (char *buf)
virtual bool get_vscrollbar_pos (int *pstart, int *psize)
virtual void handlemsg (htmsg *msg)
virtual bool offset_to_pos (FILEOFS ofs, viewer_pos *p)
virtual bool pos_to_offset (viewer_pos p, FILEOFS *ofs)
virtual bool qword_to_pos (qword q, viewer_pos *pos)
virtual int symbol_handler (eval_scalar *result, char *name)

Member Function Documentation

void ht_hex_viewer::get_pindicator_str char *  buf  )  [protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 61 of file hthex.cc.

References buf, ht_uformat_viewer::edit(), FILEOFS, ht_uformat_viewer::get_current_offset(), ht_snprintf(), and ht_uformat_viewer::pselect_get().

bool ht_hex_viewer::get_vscrollbar_pos int *  pstart,
int *  psize
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 80 of file hthex.cc.

References ht_hex_sub::get_line_length(), ht_streamfile::get_size(), h, LINE_ID::id1, uformat_viewer_pos::line_id, MIN, and scrollbar_pos().

void ht_hex_viewer::handlemsg htmsg *  msg  )  [protected, virtual]
 

Reimplemented from ht_uformat_viewer.

Definition at line 91 of file hthex.cc.

References buf, byte, calc_entropy2(), clearmsg(), cmd_file_blockop, cmd_file_replace, cmd_hex_display_bytes, cmd_hex_entropy, ht_uformat_viewer::complete_init(), ht_view::dirtyview(), errorbox, FILEOFS, ht_uformat_viewer::get_current_offset(), ht_hex_sub::get_line_length(), h, ht_uformat_viewer::handlemsg(), infobox, ht_static_context_menu::init(), inputbox(), ht_static_context_menu::insert_entry(), K_Control_B, K_Control_E, K_Control_O, K_Control_T, msg_contextmenuquery, msg_filesize_changed, msg_retval, mt_broadcast, ht_format_viewer::pread(), ht_uformat_viewer::sendsubmsg(), and ht_hex_sub::set_line_length().

bool ht_hex_viewer::offset_to_pos FILEOFS  ofs,
viewer_pos p
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 181 of file hthex.cc.

References ht_uformat_viewer::clear_viewer_pos(), FILEOFS, ht_hex_sub::get_line_length(), h, LINE_ID::id1, LINE_ID::id2, uformat_viewer_pos::line_id, uformat_viewer_pos::sub, uformat_viewer_pos::tag_idx, and viewer_pos::u.

bool ht_hex_viewer::pos_to_offset viewer_pos  p,
FILEOFS ofs
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 175 of file hthex.cc.

References FILEOFS, LINE_ID::id1, uformat_viewer_pos::line_id, uformat_viewer_pos::tag_idx, and viewer_pos::u.

Referenced by symbol_handler().

bool ht_hex_viewer::qword_to_pos qword  q,
viewer_pos pos
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 192 of file hthex.cc.

References ht_uformat_viewer::clear_viewer_pos(), ht_sub::convert_ofs_to_id(), FILEOFS, ht_hex_sub::get_line_length(), h, uformat_viewer_pos::line_id, QWORD_GET_INT, uformat_viewer_pos::sub, uformat_viewer_pos::tag_idx, and viewer_pos::u.

int ht_hex_viewer::symbol_handler eval_scalar result,
char *  name
[protected, virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 203 of file hthex.cc.

References FILEOFS, pos_to_offset(), scalar_create_int_c(), and ht_format_viewer::symbol_handler().


Member Data Documentation

ht_hex_file_sub* ht_hex_viewer::h
 

Definition at line 37 of file hthex.h.

Referenced by get_vscrollbar_pos(), handlemsg(), hthex_init(), offset_to_pos(), and qword_to_pos().


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