Menu Class Reference
[GUI]

Main menu. More...

#include <Menu.hpp>

List of all members.

Public Member Functions

 Menu (Delegate *delegate, Gtk::Window *window, list< Control * > controls)
Gtk::Widget * getMenuBar () const
void onActionFileQuit ()
void onActionEditHide ()
void onActionEditSelectAll ()
void onActionEditShowAll ()
void onActionEditDeselect ()
void onActionViewZoomIn ()
void onActionViewZoomOut ()
void onActionViewInformation ()
void onActionViewReset ()
void onActionHelpAbout ()
void onActionHelpShortcuts ()

Protected Member Functions

void initActionGroup ()
void initActionGroupFile ()
void initActionGroupEdit ()
void initActionGroupView ()
void initActionGroupHelp ()
void initUIManager ()

Private Attributes

Delegatedelegate
RefPtr< Gtk::UIManager > uiManager
RefPtr< Gtk::MenuBar > menuBar
RefPtr< Gtk::ActionGroup > actionGroup
ShortcutsDialogshortcutsDialog
Gtk::Window * window

Detailed Description

Main menu.


Constructor & Destructor Documentation

Menu ( Delegate delegate,
Gtk::Window *  window,
list< Control * >  controls 
)

Initializes the ActionGroup and UIManager.


Member Function Documentation

Gtk::Widget * getMenuBar (  )  const
Returns:
Pointer to a MenuBar widget.
void initActionGroup (  )  [protected]

Creates the ActionGroup and defines all the actions in it.

void initUIManager (  )  [protected]

Creates the UIManager, adds the action group, and adds the UI.

void onActionEditDeselect (  ) 

Deselects all the shapes.

void onActionEditSelectAll (  ) 

Selects all the shapes.

void onActionFileQuit (  ) 

Quits the application.

void onActionViewReset (  ) 

Resets camera to original position and rotation.

void onActionViewZoomIn (  ) 

Zooms in on the scene.

void onActionViewZoomOut (  ) 

Zooms out on the scene.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:36 2010 for Gander by  doxygen 1.6.3