From: smh Date: Tue, 30 Mar 2004 09:45:30 +0000 (+0000) Subject: postEvent() usage testing X-Git-Tag: mergeto_Event_Server_20Apr04~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e31844629a29627a86ca93967509d401013aee0;p=modules%2Fvisu.git postEvent() usage testing --- 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 : "<