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 | setMovable (bool movable) 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 () | |
The ToolBarManager class is responsible for the creation of toolbars and appending them to the main window.
|
protected |
Referenced by getInstance().
|
protected |
|
static |
Referenced by Gui::WorkbenchManager::~WorkbenchManager().
|
protected |
Referenced by setup().
|
protected |
Referenced by restoreState(), saveState(), and setup().
|
static |
The one and only instance.
References ToolBarManager().
Referenced by Gui::Workbench::activate(), Gui::PreferencePackManager::apply(), Gui::MainWindow::loadWindowSettings(), Gui::Workbench::retranslate(), and Gui::MainWindow::saveWindowSettings().
void ToolBarManager::restoreState | ( | ) | const |
void ToolBarManager::retranslate | ( | ) | const |
References toolBars(), and draftguitools.gui_setstyle::translate.
Referenced by Gui::Workbench::retranslate().
void ToolBarManager::saveState | ( | ) | const |
References findToolBar(), App::GetApplication(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), ParameterGrp::SetBool(), and toolBars().
Referenced by Gui::MainWindow::saveWindowSettings(), and setup().
void Gui::ToolBarManager::setMovable | ( | bool | movable | ) | const |
Referenced by restoreState(), and setup().
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(), setMovable(), setup(), toolBars(), and draftguitools.gui_setstyle::translate.
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(), setup(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::setXyEnabled(), and PathScripts.PathDressupHoldingTags.ObjectTagDressup::supportsTagGeneration().
|
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().
|
protected |
Returns a list of all currently existing toolbars.
References Gui::getMainWindow().
Referenced by restoreState(), retranslate(), saveState(), and setup().