Gui::StdWorkbench Class Reference

The StdWorkbench class defines the standard menus, toolbars, commandbars etc. More...

#include <Workbench.h>

Inheritance diagram for Gui::StdWorkbench:
Gui::Workbench Base::BaseClass AssemblyGui::Workbench CamGui::Workbench CompleteGui::Workbench DrawingGui::Workbench FemGui::Workbench Gui::NoneWorkbench Gui::PythonWorkbench Gui::TestWorkbench ImageGui::Workbench ImportGui::Workbench InspectionGui::Workbench MeshGui::Workbench MeshPartGui::Workbench PartDesignGui::Workbench PartGui::Workbench PointsGui::Workbench RaytracingGui::Workbench ReverseEngineeringGui::Workbench RobotGui::Workbench SandboxGui::Workbench SketcherGui::Workbench StartGui::Workbench WebGui::Workbench

List of all members.

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 ToolBarItemsetupCommandBars () const
 Defines the standard command bars.
virtual DockWindowItemssetupDockWindows () const
 Returns a DockWindowItems structure of dock windows this workbench.
virtual MenuItemsetupMenuBar () const
 Defines the standard menus.
virtual ToolBarItemsetupToolBars () const
 Defines the standard toolbars.

Detailed Description

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.

Author:
Werner Mayer

Definition at line 125 of file Gui/Workbench.h.


Constructor & Destructor Documentation

StdWorkbench::StdWorkbench (  ) 

Definition at line 381 of file Gui/Workbench.cpp.

StdWorkbench::~StdWorkbench (  )  [virtual]

Definition at line 386 of file Gui/Workbench.cpp.


Member Function Documentation

void * Gui::StdWorkbench::create ( void   )  [static]
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]
Base::Type Gui::StdWorkbench::getTypeId ( void   )  const [virtual]
void Gui::StdWorkbench::init ( void   )  [static]
ToolBarItem * StdWorkbench::setupCommandBars (  )  const [protected, virtual]
void StdWorkbench::setupContextMenu ( const char *  recipient,
MenuItem item 
) const [virtual]
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]
ToolBarItem * StdWorkbench::setupToolBars (  )  const [protected, virtual]

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

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