Salome HOME
Updated copyright comment
[modules/med.git] / src / MEDCalc / gui / TestController.hxx
index 9f5acfd6f9f0a67d8620527a947fe75f08c37219..17893365b712b9b775757d343758f0ebfa996b6d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016  CEA/DEN, EDF R&D
+// Copyright (C) 2016-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -29,7 +29,7 @@ class SUIT_Desktop;
 class QAction;
 namespace MEDCALC {
   class MedEvent;
-};
+}
 
 class TestController: public QObject {
   Q_OBJECT
@@ -40,8 +40,10 @@ public:
 
   void createActions();
 
+  bool isMainEventLoopStarted() const { return _myEventLoopStarted; }
 
-
+  bool eventFilter(QObject *obj, QEvent *event);
+  
 protected:
   virtual void customEvent(QEvent * event);
 
@@ -62,11 +64,16 @@ protected:
   pqTestUtility * _tester;
   QAction * _lock_action;
 
+private slots:
+  void onMainEventLoopStarting();
+
 private:
   const int _playEventType;
   const int _quitEventType;
 
   bool _aboutToPlayTest;
+
+  bool _myEventLoopStarted;
 };
 
 #endif /* SRC_MEDCALC_GUI_TESTCONTROLLER_HXX_ */