activateModule/deactivateModule functions are made "bool".

This commit is contained in:
asv 2005-06-08 12:45:25 +00:00
parent a2f0f70d59
commit 65482a36f6
2 changed files with 7 additions and 6 deletions

View File

@ -3009,24 +3009,25 @@ void SMESHGUI::initialize( CAM_Application* app )
popupMgr()->insert( separator(), -1, -1 );
}
void SMESHGUI::activateModule( SUIT_Study* study )
bool SMESHGUI::activateModule( SUIT_Study* study )
{
SalomeApp_Module::activateModule( study );
bool res = SalomeApp_Module::activateModule( study );
setMenuShown( true );
setToolShown( true );
return res;
//SetSettings( desktop() );
}
void SMESHGUI::deactivateModule( SUIT_Study* study )
bool SMESHGUI::deactivateModule( SUIT_Study* study )
{
setMenuShown( false );
setToolShown( false );
EmitSignalCloseAllDialogs();
SalomeApp_Module::deactivateModule( study );
return SalomeApp_Module::deactivateModule( study );
}
void SMESHGUI::OnGUIEvent()

View File

@ -97,8 +97,8 @@ public :
void EmitSignalCloseAllDialogs() ;
public slots:
virtual void deactivateModule( SUIT_Study* );
virtual void activateModule( SUIT_Study* );
virtual bool deactivateModule( SUIT_Study* );
virtual bool activateModule( SUIT_Study* );
private slots:
void OnGUIEvent();