return SalomeApp_Module::deactivateModule( theStudy );
}
+void MEDModule::studyClosed(SUIT_Study* study)
+{
+ STDLOG("MEDModule::studyClosed()");
+ _presentationController->resetPVSession();
+
+ SalomeApp_Module::studyClosed(study);
+}
+
//
// =====================================================================
// This part add custom widgets (a dockwidget containing a tree view
public slots:
virtual bool activateModule(SUIT_Study* theStudy);
virtual bool deactivateModule(SUIT_Study* theStudy);
+ virtual void studyClosed( SUIT_Study* theStudy);
virtual void onDblClick(const QModelIndex& index);
virtual void onClick(const QModelIndex& index);
std::string PresentationController::presentationName2Type(const std::string& name) {
return std::regex_replace(name, std::regex("MEDPresentation"), std::string(""));
-}
\ No newline at end of file
+}
+
+void PresentationController::resetPVSession()
+{
+ QStringList commands;
+ commands += QString("pvs.ResetSession()");
+ _consoleDriver->exec(commands);
+}
void emitPresentationSignal(const PresentationEvent* event);
+ void resetPVSession();
+
signals:
void presentationSignal(const PresentationEvent*);