From fb08b636a853be8f70b427c6ba6f745799077185 Mon Sep 17 00:00:00 2001 From: smh Date: Tue, 30 Mar 2004 08:17:39 +0000 Subject: [PATCH] Add test function : QApplication::postEvent(SALOME_Event) --- idl/VISU_Gen.idl | 7 +++++++ src/VISU_I/VISU_Gen_i.cc | 24 ++++++++++++++++++++++++ src/VISU_I/VISU_Gen_i.hh | 7 +++++++ 3 files changed, 38 insertions(+) diff --git a/idl/VISU_Gen.idl b/idl/VISU_Gen.idl index 77957a23..22dd69bb 100644 --- a/idl/VISU_Gen.idl +++ b/idl/VISU_Gen.idl @@ -961,6 +961,13 @@ post-processing presentations from given %Result and %Table object reference, us provided by %ViewManager. */ interface VISU_Gen : Engines::Component, SALOMEDS::Driver, Base{ +/*! SAN & VSR : Test QT_EVENT +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +*/ + void DoSomething(); +/*! SAN & VSR : Test QT_EVENT +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +*/ /*! Sets a definite study to be current. */ void SetCurrentStudy(in SALOMEDS::Study theStudy); diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index a7d9986f..1b0d1a3c 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -57,6 +57,10 @@ #include #include +#include "SALOME_Event.hxx" +#include +#define EVENT_TIMEOUT 300000 + using namespace std; static QFileInfo aFileInfo; @@ -887,4 +891,24 @@ namespace VISU{ return myVisuGen->PasteInto(theStream,theObjectID,theObject); } + /*! SAN & VSR : Test QT_EVENT + >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + */ + void VISU_Gen_i::DoSomething() { + static int myCounter = 0; + MESSAGE("VISU_Gen_i::DoSomething : "<