}
- void SUPERVGUI::activateModule( SUIT_Study* theStudy )
+bool SUPERVGUI::activateModule( SUIT_Study* theStudy )
{
- SalomeApp_Module::activateModule( theStudy );
+ if ( CORBA::is_nil( engine ) )
+ return false;
+
+ if ( !SalomeApp_Module::activateModule( theStudy ) )
+ return false;
+
+
//---------------------------------------
setMenuShown( true );
connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
this, SLOT( setMain( SUIT_ViewWindow* ) ) );
+ return true;
}
QString SUPERVGUI::engineIOR() const
return QString( "" );
}
-void SUPERVGUI::deactivateModule( SUIT_Study* theStudy )
+bool SUPERVGUI::deactivateModule( SUIT_Study* theStudy )
{
setMenuShown( false );
setToolShown( false );
this, SLOT( setMain( SUIT_ViewWindow* ) ) );
//---------------------------------------
- SalomeApp_Module::deactivateModule( theStudy );
+ return SalomeApp_Module::deactivateModule( theStudy );
}
CAM_DataModel* SUPERVGUI::createDataModel()
void OnGUIEvent();
public slots:
- virtual void activateModule( SUIT_Study* );
- virtual void deactivateModule( SUIT_Study* );
+ virtual bool activateModule( SUIT_Study* );
+ virtual bool deactivateModule( SUIT_Study* );
protected:
virtual CAM_DataModel* createDataModel();