The MenuManager class is responsible for the creation of menus and context menus and appending them to the main window. More...
#include <MenuManager.h>
Public Member Functions | |
| void | retranslate () const |
| void | setup (MenuItem *) const |
| Sets up the menus of a given workbench. | |
| void | setupContextMenu (MenuItem *item, QMenu &menu) const |
| sets up a context menu out of item | |
Static Public Member Functions | |
| static void | destruct () |
| static MenuManager * | getInstance () |
| The one and only instance. | |
Protected Member Functions | |
| MenuManager () | |
| ~MenuManager () | |
Friends | |
| class | MainWindow |
The MenuManager class is responsible for the creation of menus and context menus and appending them to the main window.
Definition at line 73 of file MenuManager.h.
| MenuManager::MenuManager | ( | ) | [protected] |
Definition at line 172 of file MenuManager.cpp.
| MenuManager::~MenuManager | ( | ) | [protected] |
Definition at line 176 of file MenuManager.cpp.
| void MenuManager::destruct | ( | void | ) | [static] |
Definition at line 166 of file MenuManager.cpp.
| MenuManager * MenuManager::getInstance | ( | ) | [static] |
The one and only instance.
Definition at line 159 of file MenuManager.cpp.
Referenced by Gui::Workbench::activate(), Gui::TreeWidget::contextMenuEvent(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), Gui::NavigationStyle::openPopupMenu(), and Gui::Workbench::retranslate().
| void MenuManager::retranslate | ( | ) | const |
Definition at line 305 of file MenuManager.cpp.
References Gui::getMainWindow().
Referenced by Gui::Workbench::retranslate().
| void MenuManager::setup | ( | MenuItem * | menuItems | ) | const |
Sets up the menus of a given workbench.
Definition at line 180 of file MenuManager.cpp.
References Gui::MenuItem::getItems(), Gui::getMainWindow(), and draftGui::translate().
Referenced by Gui::Workbench::activate(), and setupContextMenu().
| void MenuManager::setupContextMenu | ( | MenuItem * | item, | |
| QMenu & | menu | |||
| ) | const |
sets up a context menu out of item
Definition at line 379 of file MenuManager.cpp.
References setup().
Referenced by Gui::TreeWidget::contextMenuEvent(), and Gui::NavigationStyle::openPopupMenu().
friend class MainWindow [friend] |
Definition at line 99 of file MenuManager.h.
1.6.1