Gui::ToolBarManager Class Reference

The ToolBarManager class is responsible for the creation of toolbars and appending them to the main window. More...

#include <ToolBarManager.h>

List of all members.

Public Member Functions

void restoreState () const
void retranslate () const
void saveState () const
void setup (ToolBarItem *)
 Sets up the toolbars of a given workbench.

Static Public Member Functions

static void destruct ()
static ToolBarManagergetInstance ()
 The one and only instance.

Protected Member Functions

QAction * findAction (const QList< QAction * > &, const QString &) const
QToolBar * findToolBar (const QList< QToolBar * > &, const QString &) const
void setup (ToolBarItem *, QToolBar *) const
 ToolBarManager ()
QList< QToolBar * > toolBars () const
 Returns a list of all currently existing toolbars.
 ~ToolBarManager ()

Detailed Description

The ToolBarManager class is responsible for the creation of toolbars and appending them to the main window.

See also:
ToolBoxManager
MenuManager
Author:
Werner Mayer

Definition at line 71 of file ToolBarManager.h.


Constructor & Destructor Documentation

ToolBarManager::ToolBarManager (  )  [protected]

Definition at line 168 of file ToolBarManager.cpp.

ToolBarManager::~ToolBarManager (  )  [protected]

Definition at line 172 of file ToolBarManager.cpp.


Member Function Documentation

void ToolBarManager::destruct ( void   )  [static]

Definition at line 162 of file ToolBarManager.cpp.

QAction * ToolBarManager::findAction ( const QList< QAction * > &  acts,
const QString &  item 
) const [protected]

Definition at line 331 of file ToolBarManager.cpp.

Referenced by setup().

QToolBar * ToolBarManager::findToolBar ( const QList< QToolBar * > &  toolbars,
const QString &  item 
) const [protected]

Definition at line 321 of file ToolBarManager.cpp.

Referenced by restoreState(), saveState(), and setup().

ToolBarManager * ToolBarManager::getInstance (  )  [static]

The one and only instance.

Definition at line 155 of file ToolBarManager.cpp.

Referenced by Gui::Workbench::activate(), and Gui::Workbench::retranslate().

void ToolBarManager::restoreState (  )  const
void ToolBarManager::retranslate (  )  const

Definition at line 309 of file ToolBarManager.cpp.

References toolBars(), and draftGui::translate().

Referenced by Gui::Workbench::retranslate().

void ToolBarManager::saveState (  )  const
void ToolBarManager::setup ( ToolBarItem item,
QToolBar *  toolbar 
) const [protected]
void ToolBarManager::setup ( ToolBarItem toolBarItems  ) 
QList< QToolBar * > ToolBarManager::toolBars (  )  const [protected]

Returns a list of all currently existing toolbars.

Definition at line 341 of file ToolBarManager.cpp.

References Gui::getMainWindow().

Referenced by restoreState(), retranslate(), saveState(), and setup().


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

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