Salome HOME
a3d7dea19192b14da881cd1c233ec2ddea70a268
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.h
1 /*
2  * XGUI_ActionsMgr.h
3  */
4
5 #ifndef XGUI_ACTIONSMGR_H_
6 #define XGUI_ACTIONSMGR_H_
7
8 #include <QObject>
9 #include <QMap>
10 #include <QStringList>
11
12 class XGUI_Command;
13 class QAction;
14
15 class XGUI_ActionsMgr: public QObject
16 {
17   Q_OBJECT
18
19 public:
20   XGUI_ActionsMgr(QObject* theParent);
21   virtual ~XGUI_ActionsMgr();
22
23   void addCommand(XGUI_Command* theCmd);
24   void restoreCommandState();
25   void saveCommandsState();
26
27 public slots:
28   void setActionsDisabled(bool isEnabled);
29
30 private:
31   QMap<QString, QAction*> myActions;
32   QMap<QString, bool> myActionsState;
33 };
34
35 #endif /* XGUI_ACTIONSMGR_H_ */