BC_MenuBar Class Reference

#include <bcmenubar.h>

Inherits BC_SubWindow.

Inherited by MainMenu, and ReverbMenu.

Collaboration diagram for BC_MenuBar:

Collaboration graph
[legend]

Public Member Functions

 BC_MenuBar (int x, int y, int w)
virtual ~BC_MenuBar ()
int add_menu (BC_Menu *menu)
int initialize ()
int focus_out_event ()
int keypress_event ()
int button_press_event ()
int button_release_event ()
int cursor_motion_event ()
int cursor_enter_event ()
int cursor_leave_event ()
int resize_event (int w, int h)
int translation_event ()
int deactivate ()
int unhighlight ()
void draw_items ()

Static Public Member Functions

static int calculate_height (BC_WindowBase *window)

Private Member Functions

int draw_face ()
int activate ()

Private Attributes

ArrayList< BC_Menu * > menu_titles
int button_releases
int active
BC_Pixmapmenu_bar_bg
BC_Pixmapmenu_title_bg [3]

Friends

class BC_Menu

Detailed Description

Definition at line 9 of file bcmenubar.h.


Constructor & Destructor Documentation

BC_MenuBar::BC_MenuBar ( int  x,
int  y,
int  w 
)

Definition at line 17 of file bcmenubar.C.

References active, button_releases, menu_bar_bg, and menu_title_bg.

BC_MenuBar::~BC_MenuBar (  )  [virtual]

Definition at line 29 of file bcmenubar.C.

References menu_bar_bg, menu_title_bg, menu_titles, ArrayList< TYPE >::remove_all(), ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:


Member Function Documentation

int BC_MenuBar::add_menu ( BC_Menu menu  ) 

int BC_MenuBar::calculate_height ( BC_WindowBase window  )  [static]

Definition at line 65 of file bcmenubar.C.

References VFrame::get_h(), BC_WindowBase::get_resources(), BC_WindowBase::get_text_height(), MEDIUMFONT, BC_Resources::menu_bar_bg, and menu_bar_bg.

Referenced by initialize().

Here is the call graph for this function:

int BC_MenuBar::initialize (  )  [virtual]

int BC_MenuBar::focus_out_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 99 of file bcmenubar.C.

References deactivate().

Here is the call graph for this function:

int BC_MenuBar::keypress_event (  )  [virtual]

int BC_MenuBar::button_press_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 105 of file bcmenubar.C.

References BC_Menu::dispatch_button_press(), menu_titles, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::button_release_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 117 of file bcmenubar.C.

References BC_WindowBase::button_down, button_releases, deactivate(), BC_Menu::dispatch_button_release(), menu_titles, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::cursor_motion_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 162 of file bcmenubar.C.

References BC_Menu::dispatch_motion_event(), menu_titles, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::cursor_enter_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 181 of file bcmenubar.C.

References active.

int BC_MenuBar::cursor_leave_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 172 of file bcmenubar.C.

References BC_Menu::dispatch_cursor_leave(), menu_titles, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::resize_event ( int  w,
int  h 
) [virtual]

Reimplemented from BC_WindowBase.

Definition at line 138 of file bcmenubar.C.

References draw_face(), BC_Menu::draw_title(), BC_WindowBase::get_h(), menu_titles, BC_WindowBase::resize_window(), ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::translation_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 187 of file bcmenubar.C.

References active, BC_Menu::dispatch_translation_event(), menu_titles, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::deactivate (  )  [virtual]

int BC_MenuBar::unhighlight (  ) 

Definition at line 218 of file bcmenubar.C.

References menu_titles, ArrayList< TYPE >::total, BC_Menu::unhighlight(), and ArrayList< TYPE >::values.

Referenced by BC_Menu::dispatch_button_press(), and BC_Menu::dispatch_motion_event().

Here is the call graph for this function:

void BC_MenuBar::draw_items (  ) 

Definition at line 73 of file bcmenubar.C.

References BC_Menu::draw_items(), BC_WindowBase::flush(), menu_titles, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Here is the call graph for this function:

int BC_MenuBar::draw_face (  )  [private]

int BC_MenuBar::activate (  )  [private, virtual]

Reimplemented from BC_WindowBase.

Definition at line 199 of file bcmenubar.C.

References active, BC_WindowBase::active_menubar, BC_WindowBase::deactivate(), and BC_WindowBase::top_level.

Referenced by BC_Menu::dispatch_button_press(), and BC_Menu::dispatch_motion_event().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class BC_Menu [friend]

Reimplemented from BC_WindowBase.

Definition at line 15 of file bcmenubar.h.

Referenced by ReverbMenu::create_objects(), and MainMenu::create_objects().


Field Documentation

int BC_MenuBar::active [private]

Definition at line 44 of file bcmenubar.h.

Referenced by BC_MenuBar(), calculate_height(), draw_face(), initialize(), and ~BC_MenuBar().

Definition at line 45 of file bcmenubar.h.

Referenced by BC_MenuBar(), BC_Menu::draw_title(), initialize(), and ~BC_MenuBar().


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

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