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

ht_menu Class Reference

#include <htmenu.h>

Inheritance diagram for ht_menu:

ht_view Object List of all members.

Public Member Functions

void init (bounds *b)
virtual void done ()
virtual void draw ()
virtual void handlemsg (htmsg *msg)
int count ()
void insert_menu (ht_context_menu *m)
void insert_local_menu ()
bool set_local_menu (ht_context_menu *m)
void delete_local_menu ()

Protected Member Functions

void execute_menu (int i)
ht_context_menuget_context_menu (int i)
bool handle_key_context_menu (ht_context_menu *a, int k)
virtual char * defaultpalette ()
virtual char * defaultpaletteclass ()

Protected Attributes

int lastmenux
ht_listmenu
int curmenu
int localmenu
bool context_menu_hack2
ht_context_menucontext_menu_hack
ht_context_menulast_context_menu_hack

Member Function Documentation

int ht_menu::count  ) 
 

Definition at line 427 of file htmenu.cc.

References context_menu_hack, ht_list::count(), ht_list::get(), localmenu, and menu.

Referenced by draw(), execute_menu(), and handlemsg().

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

Reimplemented from ht_view.

Definition at line 261 of file htmenu.cc.

References palkey_generic_menu_default.

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

Reimplemented from ht_view.

Definition at line 266 of file htmenu.cc.

References palclasskey_generic.

void ht_menu::delete_local_menu  ) 
 

Definition at line 435 of file htmenu.cc.

References context_menu_hack2, ht_list::del(), ht_context_menu::done(), last_context_menu_hack, localmenu, menu, and NULL.

Referenced by handlemsg(), and ht_window::releasefocus().

void ht_menu::done  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 254 of file htmenu.cc.

References ht_list::destroy(), ht_view::done(), and menu.

void ht_menu::draw  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 278 of file htmenu.cc.

References ht_view::buf_print(), ht_view::buf_printchar(), ht_view::clear(), count(), curmenu, get_context_menu(), ht_context_menu::get_name(), ht_context_menu::get_shortcut(), ht_view::getcolor(), palidx_generic_body, palidx_generic_text_focused, palidx_generic_text_selected, palidx_generic_text_shortcut, palidx_generic_text_shortcut_selected, and ht_context_menu::xpos.

void ht_menu::execute_menu int  i  )  [protected]
 

Definition at line 298 of file htmenu.cc.

References button_left, button_ok, button_right, count(), ht_context_menu::count(), curmenu, ht_view::databuf_set(), ht_view::dirtyview(), ht_menu_window::done(), FS_MOVE, get_context_menu(), ht_frame::init(), ht_menu_window::init(), palkey_generic_menu_default, ht_dialog::run(), ht_menu_window_data::selected, ht_window::setframe(), ht_group::setpalette(), ht_context_menu::width, and ht_context_menu::xpos.

Referenced by handlemsg().

ht_context_menu * ht_menu::get_context_menu int  i  )  [protected]
 

Definition at line 271 of file htmenu.cc.

References context_menu_hack, ht_list::get(), localmenu, and menu.

Referenced by draw(), execute_menu(), and handlemsg().

bool ht_menu::handle_key_context_menu ht_context_menu a,
int  k
[protected]
 

Definition at line 407 of file htmenu.cc.

References app, CME_ENTRY, CME_SUBMENU, ht_context_menu::count(), ht_context_menu_entry::entry, ht_context_menu::enum_entry_first(), ht_context_menu::enum_entry_next(), mt_empty, ht_context_menu_entry::submenu, and ht_context_menu_entry::type.

Referenced by handlemsg().

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

Reimplemented from ht_view.

Definition at line 349 of file htmenu.cc.

References clearmsg(), context_menu_hack, context_menu_hack2, count(), delete_local_menu(), ht_context_menu::done(), execute_menu(), ht_list::get(), get_context_menu(), ht_context_menu::get_shortcut(), handle_key_context_menu(), ht_view::handlemsg(), ht_key, ht_unmetakey(), K_INVALID, last_context_menu_hack, localmenu, menu, msg_keypressed, mt_postprocess, NULL, ht_list::remove(), and set_local_menu().

void ht_menu::init bounds *  b  ) 
 

Definition at line 239 of file htmenu.cc.

References context_menu_hack, context_menu_hack2, curmenu, Object::init(), last_context_menu_hack, lastmenux, localmenu, menu, NULL, VIEW_DEBUG_NAME, VO_OWNBUFFER, and VO_POSTPROCESS.

Referenced by ht_app::init().

void ht_menu::insert_local_menu  ) 
 

Definition at line 459 of file htmenu.cc.

References ht_list::count(), localmenu, and menu.

Referenced by ht_app::init().

void ht_menu::insert_menu ht_context_menu m  ) 
 

Definition at line 464 of file htmenu.cc.

References ht_context_menu::get_name(), ht_list::insert(), lastmenux, menu, and ht_context_menu::xpos.

Referenced by ht_app::init().

bool ht_menu::set_local_menu ht_context_menu m  ) 
 

Definition at line 474 of file htmenu.cc.

References context_menu_hack2, ht_context_menu::done(), ht_list::get(), ht_context_menu::get_name(), last_context_menu_hack, lastmenux, localmenu, menu, NULL, ht_list::set(), and ht_context_menu::xpos.

Referenced by handlemsg(), and ht_window::receivefocus().


Member Data Documentation

ht_context_menu* ht_menu::context_menu_hack [protected]
 

Definition at line 112 of file htmenu.h.

Referenced by count(), get_context_menu(), handlemsg(), and init().

bool ht_menu::context_menu_hack2 [protected]
 

Definition at line 111 of file htmenu.h.

Referenced by delete_local_menu(), handlemsg(), init(), and set_local_menu().

int ht_menu::curmenu [protected]
 

Definition at line 109 of file htmenu.h.

Referenced by draw(), execute_menu(), and init().

ht_context_menu* ht_menu::last_context_menu_hack [protected]
 

Definition at line 113 of file htmenu.h.

Referenced by delete_local_menu(), handlemsg(), init(), and set_local_menu().

int ht_menu::lastmenux [protected]
 

Definition at line 107 of file htmenu.h.

Referenced by init(), insert_menu(), and set_local_menu().

int ht_menu::localmenu [protected]
 

Definition at line 110 of file htmenu.h.

Referenced by count(), delete_local_menu(), get_context_menu(), handlemsg(), init(), insert_local_menu(), and set_local_menu().

ht_list* ht_menu::menu [protected]
 

Definition at line 108 of file htmenu.h.

Referenced by count(), delete_local_menu(), done(), get_context_menu(), handlemsg(), init(), insert_local_menu(), insert_menu(), and set_local_menu().


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