The WorkbenchGroup class represents a list of workbenches. More...
#include <Action.h>
Public Member Functions | |
void | addTo (QWidget *w) |
Adds this action to widget w. | |
void | refreshWorkbenchList () |
void | slotActivateWorkbench (const char *) |
void | slotAddWorkbench (const char *) |
void | slotRemoveWorkbench (const char *) |
WorkbenchGroup (Command *pcCmd, QObject *parent) | |
Creates an action for the command pcCmd to load the workbench name when it gets activated. | |
virtual | ~WorkbenchGroup () |
Protected Member Functions | |
void | customEvent (QEvent *e) |
The WorkbenchGroup class represents a list of workbenches.
When it is added to a menu a submenu gets created, if added to a toolbar a combo box gets created.
Definition at line 147 of file Action.h.
WorkbenchGroup::WorkbenchGroup | ( | Command * | pcCmd, | |
QObject * | parent | |||
) |
Creates an action for the command pcCmd to load the workbench name when it gets activated.
Definition at line 433 of file Action.cpp.
References Gui::ActionGroup::_group, draftlibs::fcgeo::bind(), Gui::Application::Instance, Gui::Application::signalActivateWorkbench, Gui::Application::signalAddWorkbench, Gui::Application::signalRemoveWorkbench, slotActivateWorkbench(), slotAddWorkbench(), and slotRemoveWorkbench().
WorkbenchGroup::~WorkbenchGroup | ( | ) | [virtual] |
Definition at line 448 of file Action.cpp.
void WorkbenchGroup::addTo | ( | QWidget * | w | ) | [virtual] |
Adds this action to widget w.
Reimplemented from Gui::ActionGroup.
Definition at line 452 of file Action.cpp.
References Gui::Action::_action, Gui::ActionGroup::_group, draftlibs::fcgeo::connect(), Gui::ActionGroup::onActivated(), and refreshWorkbenchList().
void WorkbenchGroup::customEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 513 of file Action.cpp.
References Gui::WorkbenchActionEvent::action().
void WorkbenchGroup::refreshWorkbenchList | ( | ) |
Definition at line 472 of file Action.cpp.
References Gui::ActionGroup::_group, Gui::Application::Instance, Gui::WorkbenchManager::instance(), px, Gui::Action::text(), Gui::Application::workbenches(), Gui::Application::workbenchIcon(), Gui::Application::workbenchMenuText(), and Gui::Application::workbenchToolTip().
Referenced by addTo().
void WorkbenchGroup::slotActivateWorkbench | ( | const char * | ) |
Definition at line 521 of file Action.cpp.
Referenced by WorkbenchGroup().
void WorkbenchGroup::slotAddWorkbench | ( | const char * | name | ) |
Definition at line 525 of file Action.cpp.
References Gui::ActionGroup::_group, Gui::Application::Instance, px, Gui::Action::text(), Gui::Application::workbenchIcon(), Gui::Application::workbenchMenuText(), and Gui::Application::workbenchToolTip().
Referenced by WorkbenchGroup().
void WorkbenchGroup::slotRemoveWorkbench | ( | const char * | name | ) |
Definition at line 545 of file Action.cpp.
References Gui::ActionGroup::_group, and StartPage::DefaultWorkbench::workbench.
Referenced by WorkbenchGroup().