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. | |
Static Public Member Functions | |
static void | destruct () |
static ToolBarManager * | getInstance () |
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 () |
The ToolBarManager class is responsible for the creation of toolbars and appending them to the main window.
Definition at line 71 of file ToolBarManager.h.
ToolBarManager::ToolBarManager | ( | ) | [protected] |
Definition at line 168 of file ToolBarManager.cpp.
ToolBarManager::~ToolBarManager | ( | ) | [protected] |
Definition at line 172 of file ToolBarManager.cpp.
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 |
Definition at line 294 of file ToolBarManager.cpp.
References findToolBar(), App::GetApplication(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), and toolBars().
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 |
Definition at line 279 of file ToolBarManager.cpp.
References findToolBar(), App::GetApplication(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), and toolBars().
Referenced by setup().
void ToolBarManager::setup | ( | ToolBarItem * | item, | |
QToolBar * | toolbar | |||
) | const [protected] |
Definition at line 245 of file ToolBarManager.cpp.
References Gui::CommandManager::addTo(), Gui::Application::commandManager(), findAction(), Gui::ToolBarItem::getItems(), and Gui::Application::Instance.
void ToolBarManager::setup | ( | ToolBarItem * | toolBarItems | ) |
Sets up the toolbars of a given workbench.
Definition at line 176 of file ToolBarManager.cpp.
References findToolBar(), App::GetApplication(), ParameterGrp::GetGroup(), Gui::ToolBarItem::getItems(), Gui::getMainWindow(), App::Application::GetUserParameter(), saveState(), toolBars(), and draftGui::translate().
Referenced by Gui::Workbench::activate().
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().