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 MenuManagergetInstance ()
 The one and only instance. More...
 

Protected Member Functions

 MenuManager ()
 
 ~MenuManager ()
 

Friends

class MainWindow
 

Detailed Description

The MenuManager class is responsible for the creation of menus and context menus and appending them to the main window.

See also
ToolBoxManager
ToolBarManager
Author
Werner Mayer

Constructor & Destructor Documentation

◆ MenuManager()

MenuManager::MenuManager ( )
protected

Referenced by getInstance().

◆ ~MenuManager()

MenuManager::~MenuManager ( )
protected

Member Function Documentation

◆ destruct()

void MenuManager::destruct ( void  )
static

◆ getInstance()

◆ retranslate()

void MenuManager::retranslate ( ) const

◆ setup()

◆ setupContextMenu()

void MenuManager::setupContextMenu ( MenuItem item,
QMenu menu 
) const

Friends And Related Function Documentation

◆ MainWindow

friend class MainWindow
friend

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Gui/MenuManager.h
  • Sources/FreeCAD/src/Gui/MenuManager.cpp