Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Angle presentation from NewGEOM_2.0.0. It is moved here to prepare a patch for OCCT...
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_QtEvents.h
diff --git
a/src/XGUI/XGUI_QtEvents.h
b/src/XGUI/XGUI_QtEvents.h
index 4fdb3385744e7c20eb504db6ffc7f5acd3d3213e..0a3528bd70a16324dbda57380b49215680ac197c 100644
(file)
--- a/
src/XGUI/XGUI_QtEvents.h
+++ b/
src/XGUI/XGUI_QtEvents.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
/*
* XGUI_QEvents.h
*
/*
* XGUI_QEvents.h
*
@@
-16,25
+18,36
@@
#include <QEvent>
#include <QString>
#include <QEvent>
#include <QString>
+/**
+* \ingroup GUI
+* Class of event to send application events in multi thread environment
+*/
class XGUI_EXPORT PostponeMessageQtEvent : public QEvent
{
public:
class XGUI_EXPORT PostponeMessageQtEvent : public QEvent
{
public:
+ /// An event type
static QEvent::Type PostponeMessageQtEventType;
static QEvent::Type PostponeMessageQtEventType;
- PostponeMessageQtEvent(const boost::shared_ptr<Events_Message>& theMessage)
+ /// Constructor
+ /// \param theMessage an event message to send
+ PostponeMessageQtEvent(const std::shared_ptr<Events_Message>& theMessage)
: QEvent(PostponeMessageQtEventType),
myMessage(theMessage)
{
}
: QEvent(PostponeMessageQtEventType),
myMessage(theMessage)
{
}
+
+ /// Returns type of the event
static QEvent::Type type()
{
return PostponeMessageQtEventType;
}
static QEvent::Type type()
{
return PostponeMessageQtEventType;
}
- boost::shared_ptr<Events_Message> postponedMessage();
+ /// Returns current messasge
+ std::shared_ptr<Events_Message> postponedMessage();
private:
private:
- boost::shared_ptr<Events_Message> myMessage;
+ /// Message
+ std::shared_ptr<Events_Message> myMessage;
};
#endif /* XGUI_QEVENTS_H_ */
};
#endif /* XGUI_QEVENTS_H_ */