Salome HOME
Test scenario playback made cleaner and less path dependent.
[modules/med.git] / src / MEDCalc / gui / TestController.hxx
index 7ce0b7bf30be824382b350f9e3964ba0f7421635..9f5acfd6f9f0a67d8620527a947fe75f08c37219 100644 (file)
@@ -40,14 +40,19 @@ public:
 
   void createActions();
 
+
+
+protected:
+  virtual void customEvent(QEvent * event);
+
 public slots:
   void processWorkspaceEvent(const MEDCALC::MedEvent* event);
 
   void onRecordTest();
   void onPlayTest();
-  void onPlayTestScenario();
-  void onLockViewSize();
-  void onTakeSnapshot();
+//  void onPlayTestFile();
+  void onLockViewSize() const;
+  void onTakeSnapshot() const;
   void onRequestTermination();
 
 protected:
@@ -56,7 +61,12 @@ protected:
 
   pqTestUtility * _tester;
   QAction * _lock_action;
-  QString _test_scenario;
+
+private:
+  const int _playEventType;
+  const int _quitEventType;
+
+  bool _aboutToPlayTest;
 };
 
 #endif /* SRC_MEDCALC_GUI_TESTCONTROLLER_HXX_ */