Salome HOME
[MEDCalc] Support for ELNO field + minor GUI bug fix.
[modules/med.git] / src / MEDCalc / gui / WorkspaceController.cxx
index ad2c1e231383e3ccc724931b834ac07099c3bf4b..dd59a244776e709b9d1a9052e1951f3ac087960f 100644 (file)
@@ -36,6 +36,7 @@
 #include <SUIT_ResourceMgr.h>
 
 #include <QTimer>
+#include <QMessageBox>
 
 /*!
  * This class defines a DockWidget plugged in the SALOME application,
@@ -313,12 +314,21 @@ void WorkspaceController::processMedEvent(const MEDCALC::MedEvent* event) {
   else if ( event->type == MEDCALC::EVENT_REMOVE_PRESENTATION ) {
     emit workspaceSignal(event); // forward to PresentationController
   }
+  else if ( event->type == MEDCALC::EVENT_MODIFY_PRESENTATION ) {
+      emit workspaceSignal(event); // forward to PresentationController
+  }
   else if ( event->type == MEDCALC::EVENT_PLAY_TEST ) {
     emit workspaceSignal(event); // forward to TestController
   }
   else if ( event->type == MEDCALC::EVENT_QUIT_SALOME ) {
     emit workspaceSignal(event); // forward to TestController
   }
+  else if ( event->type == MEDCALC::EVENT_ERROR ) {
+      std::string msg(event->msg);
+      QMessageBox::warning(_salomeModule->getApp()->desktop(), "Error", QString::fromStdString(msg));
+  }
+  else
+    STDLOG("WorkspaceController::processMedEvent(): Unhandled event!!!");
 }
 
 /*!