]> SALOME platform Git repositories - modules/shaper.git/blob - src/XGUI/XGUI_QtEvents.h
Salome HOME
Merge branch 'master' into BR_PYTHON_PLUGIN
[modules/shaper.git] / src / XGUI / XGUI_QtEvents.h
1 /*
2  * XGUI_QEvents.h
3  *
4  *  Created on: Sep 12, 2014
5  *      Author: sbh
6  */
7
8 #ifndef XGUI_QTEVENTS_H_
9 #define XGUI_QTEVENTS_H_
10
11 #include <XGUI.h>
12
13 #include <ModelAPI_ResultPart.h>
14 #include <Events_Message.h>
15
16 #include <QEvent>
17 #include <QString>
18
19 class XGUI_EXPORT PostponeMessageQtEvent : public QEvent
20 {
21  public:
22   static QEvent::Type PostponeMessageQtEventType;
23
24   PostponeMessageQtEvent(const boost::shared_ptr<Events_Message>& theMessage)
25       : QEvent(PostponeMessageQtEventType),
26       myMessage(theMessage)
27   {
28   }
29   static QEvent::Type type()
30   {
31     return PostponeMessageQtEventType;
32   }
33
34   boost::shared_ptr<Events_Message> postponedMessage();
35
36  private:
37   boost::shared_ptr<Events_Message> myMessage;
38 };
39
40 #endif /* XGUI_QEVENTS_H_ */