From: smh Date: Tue, 30 Mar 2004 08:17:39 +0000 (+0000) Subject: Add test function : QApplication::postEvent(SALOME_Event) X-Git-Tag: Merge_with_Ecole_Ete_a6~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb08b636a853be8f70b427c6ba6f745799077185;p=modules%2Fvisu.git Add test function : QApplication::postEvent(SALOME_Event) --- 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 : "<