SALOMEGUI_NameDlg.h \
SALOMEGUI_SetValueDlg.h \
SALOMEGUI_SetupCurveDlg.h \
- SALOMEGUI_CloseDlg.h
+ SALOMEGUI_CloseDlg.h \
+ SALOME_Event.hxx
# .po files to transform in .qm
#include "SALOMEGUI_CloseDlg.h"
#include "SALOMEGUI_ActivateComponentDlg.h"
+#include "SALOME_Event.hxx"
+
// QT Includes
#include <qlabel.h>
#include <qlayout.h>
#include <qlineedit.h>
#include <qdatetime.h>
#include <qthread.h>
+#include <qwaitcondition.h>
#if QT_VERSION > 300
#include <qlistbox.h>
}
}
}
+ else if ( e->type() == QEvent::User + 1 ) { // SALOME_Event has type QEvent::User + 1
+ SALOME_Event* aSE = (SALOME_Event*)e;
+
+ // here we do the job...
+ for ( int i = 0; i < 100000; i++ ) {
+ }
+
+ if ( aSE->getWaitCondition() )
+ aSE->getWaitCondition()->wakeAll();
+ }
return QMainWindow::eventFilter( o, e );
}
--- /dev/null
+// File: SALOME_Event.hxx
+// Created: Mon Mar 29 16:36:52 2004
+// Author: Sergey ANIKIN
+// <san@startrex.nnov.opencascade.com>
+
+
+#ifndef SALOME_Event_HeaderFile
+#define SALOME_Event_HeaderFile
+
+#include <qevent.h>
+
+class QWaitCondition;
+
+class SALOME_Event : public QCustomEvent
+{
+public:
+ SALOME_Event( QWaitCondition* wc = 0 ) : QCustomEvent( (QEvent::Type)(QEvent::User + 1), (void*)wc ) {};
+
+ QWaitCondition* getWaitCondition() { return (QWaitCondition*)data(); }
+
+};
+
+#endif