BC_MenuPopup Class Reference

#include <bcmenupopup.h>

Inherited by BC_SubMenu.

Collaboration diagram for BC_MenuPopup:

Collaboration graph
[legend]

Public Member Functions

 BC_MenuPopup ()
virtual ~BC_MenuPopup ()
int initialize (BC_WindowBase *top_level, BC_MenuBar *menu_bar, BC_Menu *menu, BC_MenuItem *menu_item, BC_PopupMenu *popup_menu)
int add_item (BC_MenuItem *item)
int remove_item (BC_MenuItem *item=0)
int total_menuitems ()
int deactivate_submenus (BC_MenuPopup *exclude=0)
int dispatch_button_press ()
int dispatch_button_release ()
int dispatch_key_press ()
int dispatch_motion_event ()
int dispatch_cursor_leave ()
int dispatch_translation_event ()
int deactivate_menu ()
int activate_menu (int x, int y, int w, int h, int top_window_coords, int vertical_justify)
int get_key_x ()
int get_w ()
int draw_items ()
BC_Popupget_popup ()

Private Member Functions

int get_dimensions ()

Private Attributes

ArrayList< BC_MenuItem * > menu_items
BC_WindowBasetop_level
BC_MenuItemmenu_item
BC_MenuBarmenu_bar
BC_PopupMenupopup_menu
BC_Menumenu
int x
int y
int w
int h
int key_x
BC_Popuppopup
int active
int type
BC_Pixmapwindow_bg
BC_Pixmapitem_bg [3]

Friends

class BC_MenuItem
class BC_PopupMenu

Detailed Description

Definition at line 18 of file bcmenupopup.h.


Constructor & Destructor Documentation

BC_MenuPopup::BC_MenuPopup (  ) 

Definition at line 21 of file bcmenupopup.C.

References item_bg, and window_bg.

BC_MenuPopup::~BC_MenuPopup (  )  [virtual]


Member Function Documentation

int BC_MenuPopup::initialize ( BC_WindowBase top_level,
BC_MenuBar menu_bar,
BC_Menu menu,
BC_MenuItem menu_item,
BC_PopupMenu popup_menu 
)

int BC_MenuPopup::add_item ( BC_MenuItem item  ) 

Definition at line 77 of file bcmenupopup.C.

References ArrayList< TYPE >::append(), BC_MenuItem::initialize(), menu_bar, menu_items, and top_level.

Referenced by BC_PopupMenu::add_item(), BC_Menu::add_item(), and BC_SubMenu::add_submenuitem().

Here is the call graph for this function:

int BC_MenuPopup::remove_item ( BC_MenuItem item = 0  ) 

Definition at line 84 of file bcmenupopup.C.

References menu_items, ArrayList< TYPE >::remove(), ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by BC_PopupMenu::remove_item(), BC_Menu::remove_item(), and BC_MenuItem::~BC_MenuItem().

Here is the call graph for this function:

int BC_MenuPopup::total_menuitems (  ) 

int BC_MenuPopup::deactivate_submenus ( BC_MenuPopup exclude = 0  ) 

int BC_MenuPopup::dispatch_button_press (  ) 

int BC_MenuPopup::dispatch_button_release (  ) 

int BC_MenuPopup::dispatch_key_press (  ) 

Definition at line 128 of file bcmenupopup.C.

References BC_MenuItem::dispatch_key_press(), menu_items, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by BC_MenuItem::dispatch_key_press(), and BC_Menu::dispatch_keypress().

Here is the call graph for this function:

int BC_MenuPopup::dispatch_motion_event (  ) 

int BC_MenuPopup::dispatch_cursor_leave (  ) 

int BC_MenuPopup::dispatch_translation_event (  ) 

int BC_MenuPopup::deactivate_menu (  ) 

Definition at line 289 of file bcmenupopup.C.

References active, deactivate_submenus(), and popup.

Referenced by BC_PopupMenu::deactivate(), BC_Menu::deactivate_menu(), and BC_MenuItem::deactivate_submenus().

Here is the call graph for this function:

int BC_MenuPopup::activate_menu ( int  x,
int  y,
int  w,
int  h,
int  top_window_coords,
int  vertical_justify 
)

int BC_MenuPopup::get_key_x (  ) 

Definition at line 372 of file bcmenupopup.C.

References key_x.

Referenced by BC_MenuItem::draw().

int BC_MenuPopup::get_w (  ) 

Definition at line 382 of file bcmenupopup.C.

References w.

Referenced by BC_MenuItem::dispatch_button_press(), and BC_MenuItem::draw().

int BC_MenuPopup::draw_items (  ) 

BC_Popup * BC_MenuPopup::get_popup (  ) 

int BC_MenuPopup::get_dimensions (  )  [private]


Friends And Related Function Documentation

friend class BC_MenuItem [friend]

Definition at line 24 of file bcmenupopup.h.

friend class BC_PopupMenu [friend]

Definition at line 25 of file bcmenupopup.h.


Field Documentation

Definition at line 56 of file bcmenupopup.h.

Definition at line 57 of file bcmenupopup.h.

Referenced by activate_menu(), add_item(), and draw_items().

Definition at line 59 of file bcmenupopup.h.

int BC_MenuPopup::x [private]

Definition at line 61 of file bcmenupopup.h.

Referenced by dispatch_translation_event().

int BC_MenuPopup::y [private]

Definition at line 61 of file bcmenupopup.h.

Referenced by dispatch_translation_event().

int BC_MenuPopup::w [private]

Definition at line 61 of file bcmenupopup.h.

Referenced by BC_MenuItem::activate_submenu(), draw_items(), get_dimensions(), and get_w().

int BC_MenuPopup::h [private]

Definition at line 61 of file bcmenupopup.h.

Referenced by draw_items(), and get_dimensions().

int BC_MenuPopup::key_x [private]

Definition at line 63 of file bcmenupopup.h.

Referenced by get_dimensions(), and get_key_x().

int BC_MenuPopup::active [private]

Definition at line 66 of file bcmenupopup.h.

Referenced by activate_menu(), deactivate_menu(), and initialize().

int BC_MenuPopup::type [private]

Definition at line 67 of file bcmenupopup.h.

Referenced by initialize().

Definition at line 69 of file bcmenupopup.h.

Referenced by BC_MenuPopup(), draw_items(), initialize(), and ~BC_MenuPopup().

Definition at line 70 of file bcmenupopup.h.

Referenced by BC_MenuPopup(), BC_MenuItem::draw(), initialize(), and ~BC_MenuPopup().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:14:31 2008 for Cinelerra by  doxygen 1.5.5