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(QAction* theCmd);
29 void saveCommandsState();
30 void restoreCommandState();
32 /// Set the action is checked
33 /// \param theId - string ID of the command
34 /// \praram theChecked - the new checked state
35 void setActionChecked(const QString& theId, const bool theChecked);
37 void updateAction(const QString&);
38 void setNestedActionsEnabled(bool);
41 void setActionsDisabled(bool isEnabled);
44 QStringList myNestedActions;
45 QMap<QString, QAction*> myActions;
46 QMap<QString, bool> myActionsState;
48 XGUI_Workshop* myWorkshop;
51 #endif /* XGUI_ACTIONSMGR_H_ */