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

BC_MenuItem Class Reference

#include <bcmenuitem.h>

List of all members.

Public Member Functions

 BC_MenuItem (char *text, char *hotkey_text="", int hotkey=0)
virtual ~BC_MenuItem ()
void reset ()
int add_submenu (BC_SubMenu *submenu)
int set_checked (int value)
int get_checked ()
void set_text (char *text)
char * get_text ()
void set_icon (BC_Pixmap *icon)
BC_Pixmapget_icon ()
void set_hotkey_text (char *text)
int set_shift (int value=1)
int set_alt (int value=1)
int deactivate_submenus (BC_MenuPopup *exclude)
int activate_submenu ()
virtual int handle_event ()
int dispatch_button_press ()
int dispatch_button_release (int &redraw)
int dispatch_motion_event (int &redraw)
int dispatch_translation_event ()
int dispatch_cursor_leave ()
int dispatch_key_press ()
int add_item (BC_MenuItem *item)
int initialize (BC_WindowBase *top_level, BC_MenuBar *menu_bar, BC_MenuPopup *menu_popup)
int draw ()
BC_WindowBaseget_top_level ()
BC_PopupMenuget_popup_menu ()

Private Attributes

BC_WindowBasetop_level
BC_MenuBarmenu_bar
BC_MenuPopupmenu_popup
BC_SubMenusubmenu
int highlighted
int down
int checked
char * text
char * hotkey_text
int shift_hotkey
int alt_hotkey
int hotkey
BC_Pixmapicon
int y
int h

Friends

class BC_MenuPopup


Detailed Description

Definition at line 13 of file bcmenuitem.h.


Constructor & Destructor Documentation

BC_MenuItem::BC_MenuItem char *  text,
char *  hotkey_text = "",
int  hotkey = 0
 

Definition at line 23 of file bcmenuitem.C.

BC_MenuItem::~BC_MenuItem  )  [virtual]
 

Definition at line 40 of file bcmenuitem.C.


Member Function Documentation

int BC_MenuItem::activate_submenu  ) 
 

Definition at line 111 of file bcmenuitem.C.

int BC_MenuItem::add_item BC_MenuItem item  ) 
 

int BC_MenuItem::add_submenu BC_SubMenu submenu  ) 
 

Definition at line 384 of file bcmenuitem.C.

int BC_MenuItem::deactivate_submenus BC_MenuPopup exclude  ) 
 

Definition at line 100 of file bcmenuitem.C.

int BC_MenuItem::dispatch_button_press  ) 
 

Definition at line 132 of file bcmenuitem.C.

int BC_MenuItem::dispatch_button_release int &  redraw  ) 
 

Definition at line 163 of file bcmenuitem.C.

int BC_MenuItem::dispatch_cursor_leave  ) 
 

Definition at line 255 of file bcmenuitem.C.

int BC_MenuItem::dispatch_key_press  ) 
 

Definition at line 271 of file bcmenuitem.C.

int BC_MenuItem::dispatch_motion_event int &  redraw  ) 
 

Definition at line 206 of file bcmenuitem.C.

int BC_MenuItem::dispatch_translation_event  ) 
 

Definition at line 248 of file bcmenuitem.C.

int BC_MenuItem::draw  ) 
 

Definition at line 294 of file bcmenuitem.C.

int BC_MenuItem::get_checked  ) 
 

Definition at line 71 of file bcmenuitem.C.

BC_Pixmap * BC_MenuItem::get_icon  ) 
 

Definition at line 81 of file bcmenuitem.C.

BC_PopupMenu * BC_MenuItem::get_popup_menu  ) 
 

Definition at line 401 of file bcmenuitem.C.

char * BC_MenuItem::get_text  ) 
 

Definition at line 391 of file bcmenuitem.C.

BC_WindowBase * BC_MenuItem::get_top_level  ) 
 

Definition at line 396 of file bcmenuitem.C.

virtual int BC_MenuItem::handle_event  )  [inline, virtual]
 

Definition at line 35 of file bcmenuitem.h.

int BC_MenuItem::initialize BC_WindowBase top_level,
BC_MenuBar menu_bar,
BC_MenuPopup menu_popup
 

Definition at line 57 of file bcmenuitem.C.

void BC_MenuItem::reset  ) 
 

Definition at line 48 of file bcmenuitem.C.

int BC_MenuItem::set_alt int  value = 1  ) 
 

Definition at line 412 of file bcmenuitem.C.

int BC_MenuItem::set_checked int  value  ) 
 

Definition at line 65 of file bcmenuitem.C.

void BC_MenuItem::set_hotkey_text char *  text  ) 
 

Definition at line 93 of file bcmenuitem.C.

void BC_MenuItem::set_icon BC_Pixmap icon  ) 
 

Definition at line 76 of file bcmenuitem.C.

int BC_MenuItem::set_shift int  value = 1  ) 
 

Definition at line 406 of file bcmenuitem.C.

void BC_MenuItem::set_text char *  text  ) 
 

Definition at line 86 of file bcmenuitem.C.


Friends And Related Function Documentation

friend class BC_MenuPopup [friend]
 

Definition at line 19 of file bcmenuitem.h.


Member Data Documentation

int BC_MenuItem::alt_hotkey [private]
 

Definition at line 67 of file bcmenuitem.h.

int BC_MenuItem::checked [private]
 

Definition at line 59 of file bcmenuitem.h.

int BC_MenuItem::down [private]
 

Definition at line 57 of file bcmenuitem.h.

int BC_MenuItem::h [private]
 

Definition at line 75 of file bcmenuitem.h.

int BC_MenuItem::highlighted [private]
 

Definition at line 55 of file bcmenuitem.h.

int BC_MenuItem::hotkey [private]
 

Definition at line 69 of file bcmenuitem.h.

char* BC_MenuItem::hotkey_text [private]
 

Definition at line 63 of file bcmenuitem.h.

BC_Pixmap* BC_MenuItem::icon [private]
 

Definition at line 71 of file bcmenuitem.h.

BC_MenuBar* BC_MenuItem::menu_bar [private]
 

Definition at line 50 of file bcmenuitem.h.

BC_MenuPopup* BC_MenuItem::menu_popup [private]
 

Definition at line 51 of file bcmenuitem.h.

int BC_MenuItem::shift_hotkey [private]
 

Definition at line 65 of file bcmenuitem.h.

BC_SubMenu* BC_MenuItem::submenu [private]
 

Definition at line 53 of file bcmenuitem.h.

char* BC_MenuItem::text [private]
 

Definition at line 61 of file bcmenuitem.h.

BC_WindowBase* BC_MenuItem::top_level [private]
 

Definition at line 49 of file bcmenuitem.h.

int BC_MenuItem::y [private]
 

Definition at line 73 of file bcmenuitem.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:37 2006 for Guicast-svn by  doxygen 1.4.4