Salome HOME
Removing using of TS file
[modules/shaper.git] / src / XGUI / XGUI_Workshop.h
1 #ifndef XGUI_WORKSHOP_H
2 #define XGUI_WORKSHOP_H
3
4 #include <Event_Message.h>
5 #include <Event_Listener.h>
6
7 #include <QObject>
8 #include <QMap>
9 #include <QIcon>
10 #include <QKeySequence>
11
12 class XGUI_MainWindow;
13 class XGUI_Command;
14 class XGUI_Module;
15 class XGUI_Workbench;
16
17 class Config_FeatureMessage;
18
19 class XGUI_Workshop: public QObject, public Event_Listener
20 {
21 Q_OBJECT
22 public:
23
24   XGUI_Workshop();
25   virtual ~XGUI_Workshop();
26
27   void startApplication();
28
29   XGUI_MainWindow* mainWindow() const
30   {
31     return myMainWindow;
32   }
33
34   XGUI_Workbench* addWorkbench(const QString& theName);
35
36   virtual void processEvent(const Event_Message* theMessage);
37
38 public slots:
39   void onNew();
40   void onOpen();
41   void onSave();
42   void onSaveAs();
43   void onExit();
44
45 protected:
46   //Event-loop processing methods:
47   void addFeature(const Config_FeatureMessage*);
48
49 private:
50   void initMenu();
51
52   XGUI_Module* loadModule(const QString& theModule);
53   bool activateModule();
54
55   XGUI_MainWindow* myMainWindow;
56   XGUI_Module* myPartSetModule;
57 };
58
59 #endif