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 ToolBarManager * getInstance () | |
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
Constructor & Destructor Documentation
◆ ToolBarManager()
|
protected |
Referenced by getInstance().
◆ ~ToolBarManager()
|
protected |
Member Function Documentation
◆ destruct()
|
static |
Referenced by Gui::WorkbenchManager::~WorkbenchManager().
◆ findAction()
|
protected |
Referenced by setup().
◆ findToolBar()
|
protected |
Referenced by restoreState(), saveState(), and setup().
◆ getInstance()
|
static |
The one and only instance.
References ToolBarManager().
Referenced by Gui::Workbench::activate(), Gui::MainWindow::loadWindowSettings(), Gui::Workbench::retranslate(), and Gui::MainWindow::saveWindowSettings().
◆ restoreState()
void ToolBarManager::restoreState | ( | ) | const |
References findToolBar(), App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), and toolBars().
Referenced by Gui::MainWindow::loadWindowSettings().
◆ retranslate()
void ToolBarManager::retranslate | ( | ) | const |
References toolBars().
Referenced by Gui::Workbench::retranslate().
◆ saveState()
void ToolBarManager::saveState | ( | ) | const |
References findToolBar(), App::GetApplication(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), ParameterGrp::SetBool(), and toolBars().
Referenced by Gui::MainWindow::saveWindowSettings(), and setup().
◆ setup() [1/2]
void ToolBarManager::setup | ( | ToolBarItem * | toolBarItems | ) |
Sets up the toolbars of a given workbench.
References findToolBar(), App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), Gui::ToolBarItem::getItems(), Gui::getMainWindow(), App::Application::GetUserParameter(), saveState(), ParameterGrp::SetBool(), and toolBars().
Referenced by Gui::Workbench::activate(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::doExecute(), PathScripts.PathDressupDogbone.ObjectDressup::execute(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::pointAtBottom(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::pointIsOnPath(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::setXyEnabled(), and PathScripts.PathDressupHoldingTags.ObjectTagDressup::supportsTagGeneration().
◆ setup() [2/2]
|
protected |
References Gui::CommandManager::addTo(), Gui::Application::commandManager(), findAction(), Gui::ToolBarItem::getItems(), and Gui::Application::Instance.
Referenced by PathScripts.PathDressupHoldingTags.ObjectTagDressup::doExecute(), PathScripts.PathDressupDogbone.ObjectDressup::execute(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::pointAtBottom(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::pointIsOnPath(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::setXyEnabled(), and PathScripts.PathDressupHoldingTags.ObjectTagDressup::supportsTagGeneration().
◆ toolBars()
|
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:
- src/Gui/ToolBarManager.h
- src/Gui/ToolBarManager.cpp