1 #ifndef XGUI_WORKSHOP_H
2 #define XGUI_WORKSHOP_H
4 #include <Event_Message.h>
5 #include <Event_Listener.h>
10 #include <QKeySequence>
12 class XGUI_MainWindow;
16 class XGUI_SelectionMgr;
17 class ModuleBase_Operation;
19 class Config_FeatureMessage;
20 class Config_PointerMessage;
22 /**\class XGUI_Workshop
24 * \brief Class which defines a configuration of the application (Workshop) and launches it.
26 class XGUI_Workshop: public QObject, public Event_Listener
32 virtual ~XGUI_Workshop();
34 //! Starting of the application
35 void startApplication();
37 //! Returns main window (Desktop) of the application
38 XGUI_MainWindow* mainWindow() const
43 //! Returns selection manager object
44 XGUI_SelectionMgr* selector() const { return mySelector; }
46 //! Creates and adds a new workbench (menu group) with the given name and returns it
47 XGUI_Workbench* addWorkbench(const QString& theName);
49 //! Redefinition of Event_Listener method
50 virtual void processEvent(const Event_Message* theMessage);
60 //Event-loop processing methods:
61 void addFeature(const Config_FeatureMessage*);
62 void fillPropertyPanel(ModuleBase_Operation* theOperation);
63 void connectToPropertyPanel(ModuleBase_Operation* theOperation);
64 void setCurrentOperation(ModuleBase_Operation* theOperation);
69 XGUI_Module* loadModule(const QString& theModule);
70 bool activateModule();
72 XGUI_MainWindow* myMainWindow;
73 XGUI_Module* myPartSetModule;
75 XGUI_SelectionMgr* mySelector;
77 ModuleBase_Operation* myCurrentOperation;