Salome HOME
0023270: [CEA 1822] PARAVIS GUI widgets should be instanciated only when needed:...
[modules/gui.git] / src / PyInterp / PyInterp_Event.h
index e1b6398e7db2e14f3a94651a86be927c1c6c42b9..e812adbe1b0a2eb4a612a3f08fffefed91b14992 100644 (file)
@@ -1,5 +1,4 @@
-
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-//  File   : PyInterp_Request.h
-//  Author : Sergey Anikin, OCC, Adrien Bruneton (CEA/DEN)
-//  Module : GUI
+//  File   : PyInterp_Event.h
+//  Author : Sergey Anikin (OPEN CASCADE S.A.S.), Adrien Bruneton (CEA/DEN)
 
 #ifndef PYINTERP_EVENT_H
 #define PYINTERP_EVENT_H
 
 #include "PyInterp.h"
 
-#include <SALOME_Event.h>
-
 #include <QEvent>
 
 class PyInterp_Request;
 
-class PyInterp_ExecuteEvent: public SALOME_Event
-{
-public:
-  PyInterp_ExecuteEvent( PyInterp_Request* r )
-    : myRequest( r ) {}
-
-  virtual void Execute();
-
-protected:
-  PyInterp_Request* myRequest;
-};
-
-/**
- * Events thrown by the interpreter having executed a command and indicating
- * the return status.
- */
 class PYINTERP_EXPORT PyInterp_Event : public QEvent
 {
   PyInterp_Event();
   PyInterp_Event( const PyInterp_Event& );
 
 public:
-  //Execution state
-  enum { ES_NOTIFY = QEvent::User + 5000, ES_OK, ES_ERROR, ES_INCOMPLETE,
-         ES_TAB_COMPLETE_OK, ES_TAB_COMPLETE_ERR, ES_LAST };
-
-  PyInterp_Event( int type, PyInterp_Request* request )
-    : QEvent( (QEvent::Type)type ), myRequest( request ) {}
-
+  // Execution state
+  enum {
+    ES_NOTIFY = QEvent::User + 5000,
+    ES_OK,
+    ES_ERROR,
+    ES_INCOMPLETE,
+    ES_LAST };
+
+  PyInterp_Event( int type, PyInterp_Request* request );
   virtual ~PyInterp_Event();
 
-  PyInterp_Request* GetRequest() const { return myRequest; }
-  operator PyInterp_Request*() const { return myRequest; }
+  PyInterp_Request* GetRequest() const;
+  operator PyInterp_Request*() const;
 
 private:
   PyInterp_Request* myRequest;