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

ht_treeview Class Reference

#include <httree.h>

Inheritance diagram for ht_treeview:

ht_view Object CallChain ht_static_treeview ht_pe_resource_viewer List of all members.

Public Member Functions

void init (bounds *b, char *desc)
virtual void done ()
virtual void adjust (void *node, bool expand)=0
int create_graph (int *s, void *node, int level, int lines, int width, int endwidth, int *Chars)
void collapse_all (void *node)
virtual int count_children (void *node)
virtual void draw ()
void draw_r (void *node, int level, int *pos, dword lines)
void expand_all (void *node)
virtual void * get_child (void *node, int i)=0
virtual void getdata (ht_object_stream *s)
virtual int get_graph (int *s, void *node, int level, int lines)
virtual void * get_next_node (void *node)=0
void * get_node (int i)
void * get_node_r (void *node, int *i)
virtual void * get_prev_node (void *node)=0
virtual void * get_root ()=0
virtual char * get_text (void *node)=0
virtual void handlemsg (htmsg *msg)
virtual bool has_children (void *node)=0
virtual void has_focused (int i)
virtual bool is_expanded (void *node)=0
virtual bool is_selected (int i)
void scroll_to (int x, int y)
virtual void select_node (void *node)
virtual void setdata (ht_object_stream *s)
void set_limit (int x, int y)
void update ()
void update_r (void *node, int level, int *pos, int *x)

Public Attributes

int delta_x
int delta_y
int maxsize_x
int maxsize_y
int foc
void * selected

Member Function Documentation

virtual void ht_treeview::adjust void *  node,
bool  expand
[pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by collapse_all(), expand_all(), and handlemsg().

void ht_treeview::collapse_all void *  node  ) 
 

Definition at line 97 of file httree.cc.

References adjust(), get_child(), get_next_node(), and has_children().

Referenced by handlemsg().

int ht_treeview::count_children void *  node  )  [virtual]
 

Definition at line 84 of file httree.cc.

References get_child(), get_next_node(), and is_expanded().

Referenced by handlemsg().

int ht_treeview::create_graph int *  s,
void *  node,
int  level,
int  lines,
int  width,
int  endwidth,
int *  Chars
 

Definition at line 58 of file httree.cc.

References get_next_node(), get_text(), has_children(), and is_expanded().

Referenced by get_graph().

void ht_treeview::done  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in CallChain, ht_pe_resource_viewer, and ht_static_treeview.

Definition at line 45 of file httree.cc.

References ht_view::done().

Referenced by ht_static_treeview::done(), and CallChain::done().

void ht_treeview::draw  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 136 of file httree.cc.

References ht_view::clear(), draw_r(), get_root(), ht_view::getcolor(), and palidx_generic_list_unfocused_unselected.

void ht_treeview::draw_r void *  node,
int  level,
int *  pos,
dword  lines
 

Definition at line 109 of file httree.cc.

References ht_view::buf_lprintw(), delta_x, delta_y, ht_view::fill(), get_child(), get_graph(), get_next_node(), ht_view::getcolor(), has_children(), is_expanded(), is_selected(), palidx_generic_list_focused_selected, palidx_generic_list_unfocused_selected, palidx_generic_list_unfocused_unselected, and selected.

Referenced by draw().

void ht_treeview::expand_all void *  node  ) 
 

Definition at line 144 of file httree.cc.

References adjust(), get_child(), get_next_node(), and has_children().

Referenced by handlemsg().

virtual void* ht_treeview::get_child void *  node,
int  i
[pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by collapse_all(), count_children(), draw_r(), expand_all(), get_node_r(), and update_r().

int ht_treeview::get_graph int *  s,
void *  node,
int  level,
int  lines
[virtual]
 

Definition at line 169 of file httree.cc.

References CHAR_BORDERTL, CHAR_CORNERLL, CHAR_LINEH, CHAR_LINEV, and create_graph().

Referenced by draw_r(), and update_r().

virtual void* ht_treeview::get_next_node void *  node  )  [pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by collapse_all(), count_children(), create_graph(), draw_r(), expand_all(), get_node_r(), and update_r().

void * ht_treeview::get_node int  i  ) 
 

Definition at line 200 of file httree.cc.

References get_node_r(), and get_root().

Referenced by handlemsg().

void * ht_treeview::get_node_r void *  node,
int *  i
 

Definition at line 184 of file httree.cc.

References get_child(), get_next_node(), has_children(), and is_expanded().

Referenced by get_node().

virtual void* ht_treeview::get_prev_node void *  node  )  [pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by handlemsg().

virtual void* ht_treeview::get_root  )  [pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by draw(), get_node(), and update().

virtual char* ht_treeview::get_text void *  node  )  [pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by create_graph().

void ht_treeview::getdata ht_object_stream s  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 159 of file httree.cc.

References NULL, ht_object_stream::putIntHex(), and selected.

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

Reimplemented from ht_view.

Reimplemented in ht_pe_resource_viewer.

Definition at line 207 of file httree.cc.

References adjust(), clearmsg(), collapse_all(), count_children(), delta_x, ht_view::dirtyview(), expand_all(), foc, get_node(), get_prev_node(), ht_view::handlemsg(), has_children(), is_expanded(), K_Control_Left, K_Control_PageDown, K_Control_PageUp, K_Control_Right, K_Down, K_Left, K_PageDown, K_PageUp, K_Return, K_Right, K_Up, maxsize_x, maxsize_y, msg_keypressed, select_node(), and update().

Referenced by ht_pe_resource_viewer::handlemsg().

virtual bool ht_treeview::has_children void *  node  )  [pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by collapse_all(), create_graph(), draw_r(), expand_all(), get_node_r(), handlemsg(), and update_r().

void ht_treeview::has_focused int  i  )  [virtual]
 

Definition at line 286 of file httree.cc.

References foc.

void ht_treeview::init bounds *  b,
char *  desc
 

Reimplemented in ht_pe_resource_viewer, and ht_static_treeview.

Definition at line 32 of file httree.cc.

References delta_x, delta_y, foc, GMH_FIT, GMV_FIT, Object::init(), maxsize_y, MK_GM, NULL, selected, VIEW_DEBUG_NAME, VO_BROWSABLE, VO_RESIZE, and VO_SELECTABLE.

virtual bool ht_treeview::is_expanded void *  node  )  [pure virtual]
 

Implemented in CallChain, and ht_static_treeview.

Referenced by count_children(), create_graph(), draw_r(), get_node_r(), handlemsg(), and update_r().

bool ht_treeview::is_selected int  i  )  [virtual]
 

Definition at line 294 of file httree.cc.

References foc.

Referenced by draw_r().

void ht_treeview::scroll_to int  x,
int  y
 

Definition at line 299 of file httree.cc.

References delta_x, and delta_y.

void ht_treeview::select_node void *  node  )  [virtual]
 

Reimplemented in CallChain, ht_pe_resource_viewer, and ht_static_treeview.

Definition at line 316 of file httree.cc.

Referenced by handlemsg().

void ht_treeview::set_limit int  x,
int  y
 

Definition at line 320 of file httree.cc.

References maxsize_x, and maxsize_y.

Referenced by update().

void ht_treeview::setdata ht_object_stream s  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 308 of file httree.cc.

void ht_treeview::update  ) 
 

Definition at line 346 of file httree.cc.

References foc, get_root(), set_limit(), and update_r().

Referenced by handlemsg().

void ht_treeview::update_r void *  node,
int  level,
int *  pos,
int *  x
 

Definition at line 326 of file httree.cc.

References get_child(), get_graph(), get_next_node(), has_children(), is_expanded(), and malloc().

Referenced by update().


Member Data Documentation

int ht_treeview::delta_x
 

Definition at line 34 of file httree.h.

Referenced by draw_r(), handlemsg(), init(), and scroll_to().

int ht_treeview::delta_y
 

Definition at line 34 of file httree.h.

Referenced by draw_r(), init(), and scroll_to().

int ht_treeview::foc
 

Definition at line 36 of file httree.h.

Referenced by handlemsg(), has_focused(), init(), is_selected(), and update().

int ht_treeview::maxsize_x
 

Definition at line 35 of file httree.h.

Referenced by handlemsg(), and set_limit().

int ht_treeview::maxsize_y
 

Definition at line 35 of file httree.h.

Referenced by handlemsg(), init(), and set_limit().

void* ht_treeview::selected
 

Definition at line 37 of file httree.h.

Referenced by draw_r(), getdata(), and init().


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