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

#include <ToolBarManager.h>

Public Member Functions

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

Static Public Member Functions

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

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. More...
 
 ~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

Constructor & Destructor Documentation

◆ ToolBarManager()

ToolBarManager::ToolBarManager ( )
protected

Referenced by getInstance().

◆ ~ToolBarManager()

ToolBarManager::~ToolBarManager ( )
protected

Member Function Documentation

◆ destruct()

void ToolBarManager::destruct ( void  )
static

◆ findAction()

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

Referenced by setup().

◆ findToolBar()

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

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

◆ getInstance()

ToolBarManager * ToolBarManager::getInstance ( )
static

◆ restoreState()

◆ retranslate()

void ToolBarManager::retranslate ( ) const

◆ saveState()

◆ setup() [1/2]

◆ setup() [2/2]

◆ toolBars()

QList< QToolBar * > ToolBarManager::toolBars ( ) const
protected

Returns a list of all currently existing toolbars.

References Gui::getMainWindow().

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


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