]> SALOME platform Git repositories - modules/shaper.git/blob - src/XGUI/XGUI_HistoryMenu.h
Salome HOME
History for undo and redo commands
[modules/shaper.git] / src / XGUI / XGUI_HistoryMenu.h
1 /*
2  * XGUI_HistoryMenu.h
3  *
4  *  Created on: Feb 2, 2015
5  *      Author: sbh
6  */
7
8 #ifndef XGUI_HISTORYMENU_H_
9 #define XGUI_HISTORYMENU_H_
10
11 #include <XGUI.h>
12 #include <QMenu>
13
14 class QListWidget;
15 class QToolButton;
16 class QListWidgetItem;
17
18 class XGUI_EXPORT XGUI_HistoryMenu : public QMenu
19 {
20   Q_OBJECT
21  public:
22   explicit XGUI_HistoryMenu(QToolButton* theParent);
23   virtual ~XGUI_HistoryMenu();
24
25  signals:
26   void actionsSelected(int);
27
28  public slots:
29   void setHistory(const QList<QAction*>&);
30
31  protected slots:
32   void setStackSelectedTo(QListWidgetItem *);
33   void onItemPressed(QListWidgetItem *);
34
35  private:
36   QListWidget* myHistoryList;
37 };
38
39 #endif /* XGUI_OPERATIONSSTACKPOPUP_H_ */