5 #ifndef XGUI_ACTIONSMGR_H_
6 #define XGUI_ACTIONSMGR_H_
10 #include <QStringList>
16 class XGUI_ActionsMgr: public QObject
21 XGUI_ActionsMgr(XGUI_Workshop* theParent);
22 virtual ~XGUI_ActionsMgr();
25 void addCommand(XGUI_Command* theCmd);
27 /// Register a command in SALOME mode
28 /// \param theId - string ID of the command
29 /// \param theCmd - command object
30 void addCommand(QString theId, QAction* theCmd);
32 void saveCommandsState();
33 void restoreCommandState();
35 void setNestedActionsEnabled(bool);
38 void setActionsDisabled(bool isEnabled);
41 QStringList myNestedActions;
42 QMap<QString, QAction*> myActions;
43 QMap<QString, bool> myActionsState;
45 XGUI_Workshop* myWorkshop;
48 #endif /* XGUI_ACTIONSMGR_H_ */