5 #ifndef XGUI_ACTIONSMGR_H_
6 #define XGUI_ACTIONSMGR_H_
12 #include <QStringList>
18 class XGUI_EXPORT XGUI_ActionsMgr: public QObject
23 XGUI_ActionsMgr(XGUI_Workshop* theParent);
24 virtual ~XGUI_ActionsMgr();
27 void addCommand(XGUI_Command* theCmd);
29 /// Register a command in SALOME mode
30 /// \param theId - string ID of the command
31 /// \param theCmd - command object
32 void addCommand(QString theId, QAction* theCmd);
34 void saveCommandsState();
35 void restoreCommandState();
37 /// Set the action is checked
38 /// \param theId - string ID of the command
39 /// \praram theChecked - the new checked state
40 void setActionChecked(const QString& theId, const bool theChecked);
42 void updateAction(const QString&);
43 void setNestedActionsEnabled(bool);
46 void setActionsDisabled(bool isEnabled);
49 QStringList myNestedActions;
50 QMap<QString, QAction*> myActions;
51 QMap<QString, bool> myActionsState;
53 XGUI_Workshop* myWorkshop;
56 #endif /* XGUI_ACTIONSMGR_H_ */