Gui::WorkbenchGroup Class Reference

The WorkbenchGroup class represents a list of workbenches. More...

#include <Action.h>

Inheritance diagram for Gui::WorkbenchGroup:
Gui::ActionGroup Gui::Action

List of all members.

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)

Detailed Description

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.

Author:
Werner Mayer

Definition at line 147 of file Action.h.


Constructor & Destructor Documentation

WorkbenchGroup::WorkbenchGroup ( Command pcCmd,
QObject *  parent 
)
WorkbenchGroup::~WorkbenchGroup (  )  [virtual]

Definition at line 448 of file Action.cpp.


Member Function Documentation

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 (  ) 
void WorkbenchGroup::slotActivateWorkbench ( const char *   ) 

Definition at line 521 of file Action.cpp.

Referenced by WorkbenchGroup().

void WorkbenchGroup::slotAddWorkbench ( const char *  name  ) 
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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:05 2011 for FreeCAD by  doxygen 1.6.1