Salome HOME
Preferences Editor.
[modules/gui.git] / src / SalomeApp / SalomeApp_Module.cxx
index d1cc44ba1b8c881030c2e1ce3becf4191c6c8a1a..f131285ab79ad7adc2c2b44c1e2e79d6138edcfc 100644 (file)
@@ -37,16 +37,19 @@ void SalomeApp_Module::initialize( CAM_Application* app )
     resMgr->raiseTranslators( name() );
 }
 
-void SalomeApp_Module::activateModule( SUIT_Study* study )
+bool SalomeApp_Module::activateModule( SUIT_Study* study )
 {
-  CAM_Module::activateModule( study );
+  bool res = CAM_Module::activateModule( study );
 
-  if ( application() && application()->resourceMgr() )
+  if ( res && application() && application()->resourceMgr() )
     application()->resourceMgr()->raiseTranslators( name() );
+    
+  return res;
 }
 
-void SalomeApp_Module::deactivateModule( SUIT_Study* )
+bool SalomeApp_Module::deactivateModule( SUIT_Study* )
 {
+  return true;
 }
 
 void SalomeApp_Module::selectionChanged()
@@ -65,15 +68,6 @@ void SalomeApp_Module::viewManagers( QStringList& ) const
 {
 }
 
-QString SalomeApp_Module::engineIOR() const
-{
-  // Return an empty string by default, to avoid any "default behavior".
-  // It means that SALOMEDS persistence is not used by a module by default.
-  // Each module can override this method to return either its actual engine's IOR,
-  // or simple the result returned by SalomeApp_Application::defaultEngineIOR()
-  return QString( "" );
-}
-
 SalomeApp_Application* SalomeApp_Module::getApp() const
 {
   return (SalomeApp_Application*)application();