2 #ifndef XGUI_WORKSHOP_H
3 #define XGUI_WORKSHOP_H
8 #include <QKeySequence>
10 class XGUI_MainWindow;
14 class XGUI_Workshop: public QObject
33 virtual ~XGUI_Workshop();
35 void startApplication();
37 XGUI_Command* command(XCommandId theId) const;
39 XGUI_MainWindow* mainWindow() const { return myMainWindow; }
51 XGUI_Module* loadModule(const QString& theModule);
54 void buildModuleMenu(const QString& theXML);
56 int addWorkbench(const QString& theName);
57 int addPageGroup(int thePageId);
58 void addCommand(XCommandId theCommandId, int thePageId, int theGroupId, XGUI_Command* theCommand);
59 XGUI_Command* createMenuCommand(int thePageId, int theGroupId, XCommandId theCmdId,
60 const QString& theTitle, const QString& theTip,
61 const QIcon& theIcon = QIcon(), const QKeySequence& theKeys = QKeySequence());
63 QMap<int, XGUI_Command*> myCommands;
65 XGUI_MainWindow* myMainWindow;