The StdWorkbench class defines the standard menus, toolbars, commandbars etc. More...
#include <Workbench.h>
Public Member Functions | |
virtual void | createMainWindowPopupMenu (MenuItem *) const |
Sets up the contextmenu for the main window for this workbench. | |
virtual Base::Type | getTypeId (void) const |
virtual void | setupContextMenu (const char *recipient, MenuItem *) const |
Defines the standard context menu. | |
StdWorkbench () | |
virtual | ~StdWorkbench () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
virtual ToolBarItem * | setupCommandBars () const |
Defines the standard command bars. | |
virtual DockWindowItems * | setupDockWindows () const |
Returns a DockWindowItems structure of dock windows this workbench. | |
virtual MenuItem * | setupMenuBar () const |
Defines the standard menus. | |
virtual ToolBarItem * | setupToolBars () const |
Defines the standard toolbars. |
The StdWorkbench class defines the standard menus, toolbars, commandbars etc.
To define own workbenches you should inherit from StdWorkbench instead of Workbench to have defined the standard GUI elements.
Definition at line 125 of file Gui/Workbench.h.
StdWorkbench::StdWorkbench | ( | ) |
Definition at line 381 of file Gui/Workbench.cpp.
StdWorkbench::~StdWorkbench | ( | ) | [virtual] |
Definition at line 386 of file Gui/Workbench.cpp.
void * Gui::StdWorkbench::create | ( | void | ) | [static] |
Reimplemented from Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, AssemblyGui::Workbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, FemGui::Workbench, ImageGui::Workbench, ImportGui::Workbench, InspectionGui::Workbench, MeshGui::Workbench, MeshPartGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, RaytracingGui::Workbench, ReverseEngineeringGui::Workbench, RobotGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 379 of file Gui/Workbench.cpp.
void StdWorkbench::createMainWindowPopupMenu | ( | MenuItem * | ) | const [virtual] |
Sets up the contextmenu for the main window for this workbench.
The default implementation does nothing.
Reimplemented from Gui::Workbench.
Definition at line 416 of file Gui/Workbench.cpp.
Base::Type Gui::StdWorkbench::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, AssemblyGui::Workbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, FemGui::Workbench, ImageGui::Workbench, ImportGui::Workbench, InspectionGui::Workbench, MeshGui::Workbench, MeshPartGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, RaytracingGui::Workbench, ReverseEngineeringGui::Workbench, RobotGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 379 of file Gui/Workbench.cpp.
Base::Type Gui::StdWorkbench::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, AssemblyGui::Workbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, FemGui::Workbench, ImageGui::Workbench, ImportGui::Workbench, InspectionGui::Workbench, MeshGui::Workbench, MeshPartGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, RaytracingGui::Workbench, ReverseEngineeringGui::Workbench, RobotGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 379 of file Gui/Workbench.cpp.
void Gui::StdWorkbench::init | ( | void | ) | [static] |
Reimplemented from Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, AssemblyGui::Workbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, FemGui::Workbench, ImageGui::Workbench, ImportGui::Workbench, InspectionGui::Workbench, MeshGui::Workbench, MeshPartGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, RaytracingGui::Workbench, ReverseEngineeringGui::Workbench, RobotGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 379 of file Gui/Workbench.cpp.
Referenced by Gui::Application::initTypes().
ToolBarItem * StdWorkbench::setupCommandBars | ( | ) | const [protected, virtual] |
Defines the standard command bars.
Implements Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, AssemblyGui::Workbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, ImageGui::Workbench, ImportGui::Workbench, MeshGui::Workbench, MeshPartGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, ReverseEngineeringGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 550 of file Gui/Workbench.cpp.
References Gui::ToolBarItem::setCommand().
void StdWorkbench::setupContextMenu | ( | const char * | recipient, | |
MenuItem * | item | |||
) | const [virtual] |
Defines the standard context menu.
Reimplemented from Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::PythonWorkbench, CompleteGui::Workbench, MeshGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 390 of file Gui/Workbench.cpp.
References App::PropertyContainer::getClassTypeId(), Gui::Selection(), and Gui::MenuItem::setCommand().
DockWindowItems * StdWorkbench::setupDockWindows | ( | ) | const [protected, virtual] |
Returns a DockWindowItems structure of dock windows this workbench.
Implements Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, CompleteGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 569 of file Gui/Workbench.cpp.
References Gui::DockWindowItems::addDockWidget().
MenuItem * StdWorkbench::setupMenuBar | ( | ) | const [protected, virtual] |
Defines the standard menus.
Implements Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, FemGui::Workbench, InspectionGui::Workbench, MeshGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, RaytracingGui::Workbench, ReverseEngineeringGui::Workbench, RobotGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 421 of file Gui/Workbench.cpp.
References DrawingExample::file, and Gui::MenuItem::setCommand().
Referenced by Gui::PythonWorkbench::PythonWorkbench().
ToolBarItem * StdWorkbench::setupToolBars | ( | ) | const [protected, virtual] |
Defines the standard toolbars.
Implements Gui::Workbench.
Reimplemented in Gui::NoneWorkbench, Gui::TestWorkbench, Gui::PythonWorkbench, AssemblyGui::Workbench, CamGui::Workbench, CompleteGui::Workbench, DrawingGui::Workbench, FemGui::Workbench, ImageGui::Workbench, ImportGui::Workbench, InspectionGui::Workbench, MeshGui::Workbench, MeshPartGui::Workbench, PartGui::Workbench, PartDesignGui::Workbench, PointsGui::Workbench, ReverseEngineeringGui::Workbench, RobotGui::Workbench, SandboxGui::Workbench, SketcherGui::Workbench, StartGui::Workbench, and WebGui::Workbench.
Definition at line 523 of file Gui/Workbench.cpp.
References DrawingExample::file, and Gui::ToolBarItem::setCommand().
Referenced by Gui::PythonWorkbench::PythonWorkbench().