]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_ActionsMgr.h
Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.h
index d6c55d833ca7b87720107404be8267a1afd434c3..336af1a0b6a463d1f9a74e8da1577790299c7aea 100644 (file)
@@ -5,23 +5,32 @@
 #ifndef XGUI_ACTIONSMGR_H_
 #define XGUI_ACTIONSMGR_H_
 
+#include "XGUI.h"
+
 #include <QObject>
 #include <QMap>
 #include <QStringList>
 
 class XGUI_Command;
+class XGUI_Workshop;
 class QAction;
 
-class XGUI_ActionsMgr: public QObject
+class XGUI_EXPORT XGUI_ActionsMgr: public QObject
 {
   Q_OBJECT
 
 public:
-  XGUI_ActionsMgr(QObject* theParent);
+  XGUI_ActionsMgr(XGUI_Workshop* theParent);
   virtual ~XGUI_ActionsMgr();
 
 
   void addCommand(XGUI_Command* theCmd);
+
+  /// Register a command in SALOME mode
+  /// \param theId - string ID of the command
+  /// \param theCmd - command object
+  void addCommand(QString theId, QAction* theCmd);
+
   void saveCommandsState();
   void restoreCommandState();
 
@@ -34,6 +43,8 @@ private:
   QStringList myNestedActions;
   QMap<QString, QAction*> myActions;
   QMap<QString, bool> myActionsState;
+
+  XGUI_Workshop* myWorkshop;
 };
 
 #endif /* XGUI_ACTIONSMGR_H_ */