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

ht_info_viewer Class Reference

#include <infoview.h>

Inheritance diagram for ht_info_viewer:

ht_text_viewer ht_view Object List of all members.

Public Member Functions

void init (bounds *b)
virtual void done ()
virtual void draw ()
virtual char * defaultpalette ()
virtual void get_pindicator_str (char *buf)
virtual void handlemsg (htmsg *msg)
virtual bool gotonode (char *file, char *node)

Protected Member Functions

int find_node (char *infofile, char *node)
ht_treeget_xrefs ()
bool igotonode (char *file, char *node, bool add2hist)
UINT readfile (char *fn, char **text)

Protected Attributes

char * cwd
char * file
char * node
ht_treexrefs
ht_listhistory

Member Function Documentation

char * ht_info_viewer::defaultpalette  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 433 of file infoview.cc.

References palkey_generic_help_default.

void ht_info_viewer::done  )  [virtual]
 

Reimplemented from ht_text_viewer.

Definition at line 417 of file infoview.cc.

References cwd, ht_tree::destroy(), ht_list::destroy(), ht_text_viewer::done(), file, history, node, and xrefs.

void ht_info_viewer::draw  )  [virtual]
 

Reimplemented from ht_text_viewer.

Definition at line 438 of file infoview.cc.

References ht_text_viewer::draw(), and ht_text_viewer::physical_cursorx().

int ht_info_viewer::find_node char *  infofile,
char *  node
[protected]
 

Definition at line 444 of file infoview.cc.

References NULL, NUM_NODE_TAGS, UINT, and whitespaces().

Referenced by igotonode().

void ht_info_viewer::get_pindicator_str char *  buf  )  [virtual]
 

Reimplemented from ht_text_viewer.

Definition at line 603 of file infoview.cc.

References buf, file, and node.

ht_tree * ht_info_viewer::get_xrefs  )  [protected]
 

Definition at line 484 of file infoview.cc.

References xrefs.

Referenced by handlemsg().

bool ht_info_viewer::gotonode char *  file,
char *  node
[virtual]
 

Definition at line 489 of file infoview.cc.

References igotonode().

Referenced by ht_app::create_window_help().

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

Reimplemented from ht_text_viewer.

Definition at line 609 of file infoview.cc.

References clearmsg(), ht_list::count(), ht_text_viewer::cursor_pput(), info_history_entry::cursorx, info_history_entry::cursory, cursory, ht_list::del(), ht_view::dirtyview(), ht_tree::enum_next(), ht_tree::enum_prev(), errorbox, info_history_entry::file, file, ht_list::get(), ht_tree::get(), get_xrefs(), ht_text_viewer::goto_line(), ht_text_viewer::handlemsg(), history, ht_strdup(), igotonode(), K_Alt_Backspace, K_Backspace, K_BackTab, K_Return, K_Space, K_Tab, info_pos::line, memndup(), msg_keypressed, info_history_entry::node, NULL, info_pos::ofs, ht_text_viewer::physical_cursorx(), info_xref::target, info_history_entry::top_line, UINT, and info_history_entry::xofs.

bool ht_info_viewer::igotonode char *  file,
char *  node,
bool  add2hist
[protected]
 

Definition at line 513 of file infoview.cc.

References cwd, ht_tree::destroy(), ht_mem_file::done(), file, find_node(), ht_mem_file::get_size(), history, HT_NAME_MAX, htinfo, ht_info_lexer::init(), ht_info_textfile::init(), ht_mem_file::init(), ht_list::insert(), MAGIC_HT_HELP, node, NULL, parse_info_node(), readfile(), ht_text_viewer::select_clear(), ht_text_viewer::set_lexer(), ht_info_textfile::set_node(), ht_text_viewer::set_textfile(), ht_info_lexer::set_xrefs(), sys_basename(), sys_common_canonicalize(), sys_dirname(), sys_is_path_delim(), and xrefs.

Referenced by gotonode(), and handlemsg().

void ht_info_viewer::init bounds *  b  ) 
 

Definition at line 400 of file infoview.cc.

References cwd, file, history, Object::init(), ht_info_textfile::init(), ht_mem_file::init(), node, NULL, and xrefs.

Referenced by ht_app::create_window_help().

UINT ht_info_viewer::readfile char *  fn,
char **  text
[protected]
 

Definition at line 494 of file infoview.cc.

References len, malloc(), size, and UINT.

Referenced by igotonode().


Member Data Documentation

char* ht_info_viewer::cwd [protected]
 

Definition at line 90 of file infoview.h.

Referenced by done(), igotonode(), and init().

char* ht_info_viewer::file [protected]
 

Definition at line 91 of file infoview.h.

Referenced by done(), get_pindicator_str(), handlemsg(), igotonode(), and init().

ht_list* ht_info_viewer::history [protected]
 

Definition at line 94 of file infoview.h.

Referenced by done(), handlemsg(), igotonode(), and init().

char* ht_info_viewer::node [protected]
 

Definition at line 92 of file infoview.h.

Referenced by done(), get_pindicator_str(), igotonode(), and init().

ht_tree* ht_info_viewer::xrefs [protected]
 

Definition at line 93 of file infoview.h.

Referenced by done(), get_xrefs(), igotonode(), and init().


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