Salome HOME
Issue #1303 Reordering menu items: Sketch action enable state
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.h
index 3788197734e5ad3352bb732bd34e9dd2696cb80b..f1f4e80ca571c2203b6264128d33b71a33a9c3a3 100644 (file)
@@ -45,7 +45,8 @@ class XGUI_EXPORT XGUI_ActionsMgr : public QObject, public Events_Listener
     Accept = 1,
     Help = 2,
     AbortAll = 3,
-    AcceptAll = 4
+    AcceptAll = 4,
+    Preview = 5
   };
 
   //! Add a command in the manager.
@@ -99,8 +100,8 @@ class XGUI_EXPORT XGUI_ActionsMgr : public QObject, public Events_Listener
   //! Updates actions according to current selection in the viewer
   void updateOnViewSelection();
   
-  //! Sets all actions to isEnabled state.
-  void setAllEnabled(bool isEnabled);
+  //! Sets all actions to enabled state.
+  void setAllEnabled();
   
   //! Sets all nested actions to isEnabled state for the command with given ID.
   //! If ID is empty - all nested actions will be affected.