The ToolBoxManager class is responsible for the creation of command bars and appending them to the toolbox window. More...
#include <ToolBoxManager.h>
Public Member Functions | |
void | retranslate () const |
void | setToolBox (DockWnd::ToolBox *) |
void | setup (ToolBarItem *) const |
Sets up the command bars of a given workbench. | |
Static Public Member Functions | |
static void | destruct () |
static ToolBoxManager * | getInstance () |
The one and only instance. | |
Protected Member Functions | |
ToolBoxManager () | |
~ToolBoxManager () |
The ToolBoxManager class is responsible for the creation of command bars and appending them to the toolbox window.
Definition at line 42 of file ToolBoxManager.h.
ToolBoxManager::ToolBoxManager | ( | ) | [protected] |
Definition at line 56 of file ToolBoxManager.cpp.
ToolBoxManager::~ToolBoxManager | ( | ) | [protected] |
Definition at line 60 of file ToolBoxManager.cpp.
void ToolBoxManager::destruct | ( | void | ) | [static] |
Definition at line 50 of file ToolBoxManager.cpp.
ToolBoxManager * ToolBoxManager::getInstance | ( | ) | [static] |
The one and only instance.
Definition at line 43 of file ToolBoxManager.cpp.
void ToolBoxManager::retranslate | ( | ) | const |
Definition at line 125 of file ToolBoxManager.cpp.
References Gui::DockWnd::ToolBox::count(), Gui::DockWnd::ToolBox::setItemText(), RobotExample::w, and Gui::DockWnd::ToolBox::widget().
void ToolBoxManager::setToolBox | ( | DockWnd::ToolBox * | tb | ) |
Definition at line 64 of file ToolBoxManager.cpp.
void ToolBoxManager::setup | ( | ToolBarItem * | toolBar | ) | const |
Sets up the command bars of a given workbench.
Definition at line 69 of file ToolBoxManager.cpp.
References Gui::DockWnd::ToolBox::addItem(), Gui::CommandManager::addTo(), Gui::Application::commandManager(), Gui::DockWnd::ToolBox::count(), Gui::ToolBarItem::getItems(), Gui::Application::Instance, draftTools::p, Gui::DockWnd::ToolBox::removeItem(), Sketcher::Vertical, RobotExample::w, and Gui::DockWnd::ToolBox::widget().