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

ht_context_menu_window_body Class Reference

#include <htmenu.h>

Inheritance diagram for ht_context_menu_window_body:

ht_view Object ht_menu_window_body List of all members.

Public Member Functions

void init (bounds *b, ht_context_menu *menu)
virtual void done ()
virtual void draw ()
virtual void handlemsg (htmsg *msg)
virtual void getdata (ht_object_stream *s)
virtual void setdata (ht_object_stream *s)

Protected Member Functions

int next_selectable (int to)
int prev_selectable (int to)
virtual char * defaultpalette ()
virtual char * defaultpaletteclass ()

Protected Attributes

ht_context_menucontext_menu
int selected

Member Function Documentation

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

Reimplemented from ht_view.

Definition at line 552 of file htmenu.cc.

References palkey_generic_menu_default.

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

Reimplemented from ht_view.

Definition at line 557 of file htmenu.cc.

References palclasskey_generic.

void ht_context_menu_window_body::done  )  [virtual]
 

Reimplemented from ht_view.

Reimplemented in ht_menu_window_body.

Definition at line 547 of file htmenu.cc.

References ht_view::done().

Referenced by ht_menu_window_body::done().

void ht_context_menu_window_body::draw  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 562 of file htmenu.cc.

References ht_view::buf_lprint(), ht_view::buf_printchar(), CHAR_ARROWBIG_RIGHT, CHAR_LINEH, ht_view::clear(), CME_ENTRY, CME_SEPARATOR, CME_SUBMENU, context_menu, ht_context_menu::count(), ht_context_menu_entry::entry, ht_context_menu::enum_entry_first(), ht_context_menu::enum_entry_next(), ht_view::fill(), ht_context_menu::get_name(), ht_context_menu::get_shortcut(), ht_view::getcolor(), palidx_generic_body, palidx_generic_text_disabled, palidx_generic_text_focused, palidx_generic_text_selected, palidx_generic_text_shortcut, palidx_generic_text_shortcut_selected, selected, ht_context_menu_entry::submenu, ht_context_menu_entry::type, and vcp.

void ht_context_menu_window_body::getdata ht_object_stream s  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 707 of file htmenu.cc.

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

Referenced by ht_menu_window::getdata().

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

Reimplemented from ht_view.

Reimplemented in ht_menu_window_body.

Definition at line 619 of file htmenu.cc.

References button_ok, clearmsg(), CME_ENTRY, CME_SUBMENU, context_menu, ht_context_menu::count(), ht_view::dirtyview(), ht_context_menu_entry::entry, ht_context_menu::enum_entry_first(), ht_context_menu::enum_entry_next(), ht_context_menu::get_shortcut(), ht_view::group, ht_view::handlemsg(), K_Control_PageDown, K_Control_PageUp, K_Down, K_End, K_Home, K_PageDown, K_PageUp, K_Up, msg_button_pressed, msg_keypressed, next_selectable(), NULL, prev_selectable(), selected, ht_context_menu_entry::submenu, and ht_context_menu_entry::type.

Referenced by ht_menu_window_body::handlemsg().

void ht_context_menu_window_body::init bounds *  b,
ht_context_menu menu
 

Reimplemented in ht_menu_window_body.

Definition at line 539 of file htmenu.cc.

References context_menu, Object::init(), next_selectable(), selected, VIEW_DEBUG_NAME, VO_OWNBUFFER, and VO_SELECTABLE.

int ht_context_menu_window_body::next_selectable int  to  )  [protected]
 

Definition at line 679 of file htmenu.cc.

References CME_ENTRY, CME_SUBMENU, context_menu, ht_context_menu::count(), ht_context_menu::get_entry(), and ht_context_menu_entry::type.

Referenced by handlemsg(), and init().

int ht_context_menu_window_body::prev_selectable int  to  )  [protected]
 

Definition at line 693 of file htmenu.cc.

References CME_ENTRY, CME_SUBMENU, context_menu, ht_context_menu::count(), ht_context_menu::get_entry(), and ht_context_menu_entry::type.

Referenced by handlemsg().

void ht_context_menu_window_body::setdata ht_object_stream s  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 712 of file htmenu.cc.

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

Referenced by ht_menu_window::setdata().


Member Data Documentation

ht_context_menu* ht_context_menu_window_body::context_menu [protected]
 

Definition at line 141 of file htmenu.h.

Referenced by draw(), handlemsg(), init(), next_selectable(), and prev_selectable().

int ht_context_menu_window_body::selected [protected]
 

Definition at line 142 of file htmenu.h.

Referenced by draw(), getdata(), handlemsg(), init(), and setdata().


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