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. More... | |
| 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. More... | |
| virtual | ~WorkbenchGroup () |
Public Member Functions inherited from Gui::ActionGroup | |
| ActionGroup (Command *pcCmd, QObject *parent=nullptr) | |
| Constructs an action called name with parent parent. More... | |
| QList< QAction * > | actions () const |
| QAction * | addAction (const QString &) |
| QAction * | addAction (QAction *) |
| void | addTo (QWidget *w) |
| Adds this action to widget w. More... | |
| int | checkedAction () const |
| bool | isExclusive () const |
| void | setCheckedAction (int) |
| void | setDisabled (bool) |
| void | setDropDownMenu (bool b) |
| void | setEnabled (bool) |
| Sets whether the action is enabled. More... | |
| void | setExclusive (bool) |
| void | setIsMode (bool b) |
| void | setVisible (bool) |
| virtual | ~ActionGroup () |
Public Member Functions inherited from Gui::Action | |
| QAction * | action () const |
| Action (Command *pcCmd, QAction *action, QObject *parent) | |
| Action takes ownership of the 'action' object. More... | |
| Action (Command *pcCmd, QObject *parent=nullptr) | |
| Constructs an action called name with parent parent. More... | |
| virtual void | addTo (QWidget *w) |
| Adds this action to widget w. More... | |
| QIcon | icon () const |
| bool | isChecked () const |
| void | setCheckable (bool) |
| void | setChecked (bool, bool no_signal=false) |
| virtual void | setEnabled (bool) |
| Sets whether the action is enabled. More... | |
| void | setIcon (const QIcon &) |
| void | setMenuRole (QAction::MenuRole menuRole) |
| void | setShortcut (const QString &) |
| void | setStatusTip (const QString &) |
| void | setText (const QString &) |
| void | setToolTip (const QString &) |
| virtual void | setVisible (bool) |
| void | setWhatsThis (const QString &) |
| QKeySequence | shortcut () const |
| QString | statusTip () const |
| QString | text () const |
| QString | toolTip () const |
| QString | whatsThis () const |
| virtual | ~Action () |
Protected Member Functions | |
| void | customEvent (QEvent *e) |
Additional Inherited Members | |
Public Slots inherited from Gui::ActionGroup | |
| void | onActivated () |
| Activates the command. More... | |
| void | onActivated (QAction *) |
| Activates the command. More... | |
| void | onHovered (QAction *) |
| void | onToggled (bool) |
Public Slots inherited from Gui::Action | |
| virtual void | onActivated () |
| Activates the command. More... | |
| virtual void | onToggled (bool) |
| Sets whether the command is toggled. More... | |
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.
Creates an action for the command pcCmd to load the workbench name when it gets activated.
References Gui::Action::action(), draftgeoutils.faces::bind(), Gui::Application::Instance, Gui::Application::signalActivateWorkbench, Gui::Application::signalAddWorkbench, Gui::Application::signalRemoveWorkbench, slotActivateWorkbench(), slotAddWorkbench(), and slotRemoveWorkbench().
|
virtual |
|
virtual |
Adds this action to widget w.
Reimplemented from Gui::ActionGroup.
References draftgeoutils.intersections::connect(), Gui::ActionGroup::onActivated(), and refreshWorkbenchList().
Referenced by Mod.PartDesign.WizardShaft.Shaft.Shaft::equilibrium().
|
protected |
References Gui::WorkbenchActionEvent::action().
| void WorkbenchGroup::refreshWorkbenchList | ( | ) |
References Gui::Action::action(), Gui::Application::Instance, and Gui::Application::workbenches().
Referenced by addTo().
| void WorkbenchGroup::slotActivateWorkbench | ( | const char * | ) |
Referenced by WorkbenchGroup().
| void WorkbenchGroup::slotAddWorkbench | ( | const char * | name | ) |
| void WorkbenchGroup::slotRemoveWorkbench | ( | const char * | name | ) |
Referenced by WorkbenchGroup().