Gui::MenuManager Class Reference

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

#include <MenuManager.h>

List of all members.

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

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

Definition at line 73 of file MenuManager.h.


Constructor & Destructor Documentation

MenuManager::MenuManager (  )  [protected]

Definition at line 172 of file MenuManager.cpp.

MenuManager::~MenuManager (  )  [protected]

Definition at line 176 of file MenuManager.cpp.


Member Function Documentation

void MenuManager::destruct ( void   )  [static]

Definition at line 166 of file MenuManager.cpp.

MenuManager * MenuManager::getInstance (  )  [static]
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().


Friends And Related Function Documentation

friend class MainWindow [friend]

Definition at line 99 of file MenuManager.h.


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:00 2011 for FreeCAD by  doxygen 1.6.1