Main menu. More...
#include <Menu.hpp>
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 | |
Delegate * | delegate |
RefPtr< Gtk::UIManager > | uiManager |
RefPtr< Gtk::MenuBar > | menuBar |
RefPtr< Gtk::ActionGroup > | actionGroup |
ShortcutsDialog * | shortcutsDialog |
Gtk::Window * | window |
Main menu.
Initializes the ActionGroup and UIManager.
Gtk::Widget * getMenuBar | ( | ) | const |
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.