2 #ifndef XGUI_WORKSHOP_H
3 #define XGUI_WORKSHOP_H
5 #include "XGUI_Interfaces.h"
10 #include <QKeySequence>
12 class XGUI_MainWindow;
16 class XGUI_Workshop: public QObject, IWorkshop
35 virtual ~XGUI_Workshop();
37 void startApplication();
39 XGUI_Command* command(XCommandId theId) const;
41 XGUI_MainWindow* mainWindow() const { return myMainWindow; }
43 virtual int addWorkbench(const QString& theName);
44 virtual int addGroup(int thePageId);
45 virtual int addFeature(int thePageId, int theGroupId,
46 const QString& theTitle, const QString& theTip,
48 const QKeySequence& theKeys = QKeySequence());
61 IModule* loadModule(const QString& theModule);
62 bool activateModule();
64 void addCommand(XCommandId theCommandId, int thePageId, int theGroupId, XGUI_Command* theCommand);
65 XGUI_Command* createMenuCommand(int thePageId, int theGroupId, XCommandId theCmdId,
66 const QString& theTitle, const QString& theTip,
67 const QIcon& theIcon = QIcon(), const QKeySequence& theKeys = QKeySequence());
69 QMap<int, XGUI_Command*> myCommands;
71 XGUI_MainWindow* myMainWindow;