Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.h
index 194412ec13b29edea9ec74b04c306a91b843f331..3390a83f3b87092cf9b0d8879bafc5625fddc007 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef XGUI_ACTIONSMGR_H_
 #define XGUI_ACTIONSMGR_H_
 
+#include "XGUI.h"
+
 #include <QObject>
 #include <QMap>
 #include <QStringList>
@@ -13,7 +15,7 @@ class XGUI_Command;
 class XGUI_Workshop;
 class QAction;
 
-class XGUI_ActionsMgr: public QObject
+class XGUI_EXPORT XGUI_ActionsMgr: public QObject
 {
   Q_OBJECT
 
@@ -22,16 +24,17 @@ public:
   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 addCommand(QAction* theCmd);
 
   void saveCommandsState();
   void restoreCommandState();
 
+  /// Set the action is checked
+  /// \param theId - string ID of the command
+  /// \praram theChecked - the new checked state
+  void setActionChecked(const QString& theId, const bool theChecked);
+
+  void updateAction(const QString&);
   void setNestedActionsEnabled(bool);
 
 public slots: