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. More... | |
void | setupContextMenu (MenuItem *item, QMenu &menu) const |
sets up a context menu out of item More... | |
Static Public Member Functions | |
static void | destruct () |
static MenuManager * | getInstance () |
The one and only instance. More... | |
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.
|
protected |
Referenced by getInstance().
|
protected |
|
static |
Referenced by Gui::WorkbenchManager::~WorkbenchManager().
|
static |
The one and only instance.
References MenuManager().
Referenced by Gui::Workbench::activate(), Gui::TreeWidget::contextMenuEvent(), Gui::DAG::Model::contextMenuEvent(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), Gui::NavigationStyle::openPopupMenu(), and Gui::Workbench::retranslate().
void MenuManager::retranslate | ( | ) | const |
References Gui::getMainWindow(), and retranslate().
Referenced by retranslate(), and Gui::Workbench::retranslate().
void MenuManager::setup | ( | MenuItem * | menuItems | ) | const |
Sets up the menus of a given workbench.
References App::GetApplication(), Gui::MenuItem::getItems(), Gui::getMainWindow(), setup(), and draftguitools.gui_setstyle::translate.
Referenced by Gui::Workbench::activate(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::doExecute(), PathScripts.PathDressupDogbone.ObjectDressup::execute(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::pointAtBottom(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::pointIsOnPath(), setup(), setupContextMenu(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::setXyEnabled(), and PathScripts.PathDressupHoldingTags.ObjectTagDressup::supportsTagGeneration().
sets up a context menu out of item
References setup().
Referenced by Gui::TreeWidget::contextMenuEvent(), Gui::DAG::Model::contextMenuEvent(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), and Gui::NavigationStyle::openPopupMenu().
|
friend |