#include "SALOMEGUI_CloseDlg.h"
#include "SALOMEGUI_ActivateComponentDlg.h"
+#include "SALOMEGUI_VisuMutex.hxx"
// QT Includes
#include <qlabel.h>
}
Engines::Component_var comp ;
+ if ( compName.compare("VISU") == 0 )
+ {
+ VISU::Mutex::callFromGUI = 1;
+ }
+
if ( compName.compare("SUPERV") == 0 ) {
comp = getEngine( "SuperVisionContainer", compName) ;
}
{
static int mySCnt = 0;
static int myQCnt = 0;
+
//static QMutex localMutex;
//static QMutex localSMutex;
+ int VISU::Mutex::callFromGUI;
+
Mutex::Mutex(QMutex* theMutex, QApplication* theQApp, int theDelay) :
myQApp(theQApp), myDelay(theDelay), myMutex(theMutex)
{
namespace VISU
{
-
+
class Mutex
{
QMutex* myMutex;
QApplication* myQApp;
int isQAppLocked, isSessionLocked, myDelay;
public:
+ static int callFromGUI;
Mutex(QMutex* theMutex, QApplication* theQApp, int theDelay = 0);
~Mutex();
};
#include "SALOME_NamingService.hxx"
#include "SALOME_Session_QThread.hxx"
+#include "SALOMEGUI_VisuMutex.hxx"
+
#include "QAD_Application.h"
#include "QAD_Desktop.h"
#include <qapplication.h>
_runningStudies= 0 ;
_orb = CORBA::ORB::_duplicate(orb) ;
_poa = PortableServer::POA::_duplicate(poa) ;
+ VISU::Mutex::callFromGUI = 0;
MESSAGE("constructor end");
}