Salome HOME
Roll-back previous integration
authorsmh <smh@opencascade.com>
Tue, 30 Mar 2004 09:38:14 +0000 (09:38 +0000)
committersmh <smh@opencascade.com>
Tue, 30 Mar 2004 09:38:14 +0000 (09:38 +0000)
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_Gen_i.hh

index 1b0d1a3c345a0d416c19f02855535e2365eef4c1..3441da6c4e9a8bacacb0b990c68dcc95e0565ea8 100644 (file)
 #include <qstring.h>
 #include <qfileinfo.h>
 
-#include "SALOME_Event.hxx"
-#include <qwaitcondition.h>
-#define EVENT_TIMEOUT 300000
-
 using namespace std;
 
 static QFileInfo aFileInfo;
@@ -891,24 +887,4 @@ 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 : "<<myMutex);
-    if(myMutex){
-      QWaitCondition wc;
-      QApplication::postEvent( qApp, new SALOME_Event( &wc ) );
-      if ( ! wc.wait( EVENT_TIMEOUT ) ) {
-       INFOS( "VISU_Gen_i::DoSomething  ERROR ! VISU_Gen is used from GUI." );
-      }
-      MESSAGE( "VISU_Gen_i::DoSomething : myCounter = " << ++myCounter ); 
-      return;
-    }
-    myVisuGen->DoSomething();
-  }
-  /*! SAN & VSR : Test QT_EVENT
-    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-  */
-};
+};
\ No newline at end of file
index df9a352c47c31d400ebc7b0480a65e844ea9e1ab..2b4dfc34f4c98f5cfbe2930e8c8322b99f43c7fe 100644 (file)
@@ -38,13 +38,6 @@ namespace VISU{
     virtual char* GetID();
     virtual VISU::VISUType GetType() { return VISU::TVISUGEN;};
 
-/*! SAN & VSR : Test QT_EVENT 
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-*/
-    virtual void DoSomething();
-/*! SAN & VSR : Test QT_EVENT
-<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-*/
     virtual void SetCurrentStudy(SALOMEDS::Study_ptr theStudy);
     virtual SALOMEDS::Study_ptr GetCurrentStudy();