X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_QtEvents.h;h=04af0ce7a0257ad252722088687a33f25c59d55b;hb=08a596f683652d0694b58dbb14eadfe11163c803;hp=7aa6fc34f2dafcc3df5e0628d1a2fba94675f453;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_QtEvents.h b/src/XGUI/XGUI_QtEvents.h index 7aa6fc34f..04af0ce7a 100644 --- a/src/XGUI/XGUI_QtEvents.h +++ b/src/XGUI/XGUI_QtEvents.h @@ -1,11 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -/* - * XGUI_QEvents.h - * - * Created on: Sep 12, 2014 - * Author: sbh - */ +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef XGUI_QTEVENTS_H_ #define XGUI_QTEVENTS_H_ @@ -18,24 +29,35 @@ #include #include +/** +* \ingroup GUI +* Class of event to send application events in multi thread environment +*/ class XGUI_EXPORT PostponeMessageQtEvent : public QEvent { public: + /// An event type static QEvent::Type PostponeMessageQtEventType; + /// Constructor + /// \param theMessage an event message to send PostponeMessageQtEvent(const std::shared_ptr& theMessage) : QEvent(PostponeMessageQtEventType), myMessage(theMessage) { } + + /// Returns type of the event static QEvent::Type type() { return PostponeMessageQtEventType; } + /// Returns current messasge std::shared_ptr postponedMessage(); private: + /// Message std::shared_ptr myMessage; };