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 ModuleBase_Operation;
18 class Config_FeatureMessage;
19 class Config_PointerMessage;
21 /**\class XGUI_Workshop
23 * \brief Class which defines a configuration of the application (Workshop) and launches it.
25 class XGUI_Workshop: public QObject, public Event_Listener
31 virtual ~XGUI_Workshop();
33 //! Starting of the application
34 void startApplication();
36 //! Returns main window (Desktop) of the application
37 XGUI_MainWindow* mainWindow() const
42 //! Creates and adds a new workbench (menu group) with the given name and returns it
43 XGUI_Workbench* addWorkbench(const QString& theName);
45 //! Redefinition of Event_Listener method
46 virtual void processEvent(const Event_Message* theMessage);
56 //Event-loop processing methods:
57 void addFeature(const Config_FeatureMessage*);
58 void fillPropertyPanel(ModuleBase_Operation* theOperation);
59 void connectToPropertyPanel(ModuleBase_Operation* theOperation);
60 void setCurrentOperation(ModuleBase_Operation* theOperation);
65 XGUI_Module* loadModule(const QString& theModule);
66 bool activateModule();
68 XGUI_MainWindow* myMainWindow;
69 XGUI_Module* myPartSetModule;
71 ModuleBase_Operation* myCurrentOperation;