From: asl Date: Fri, 3 Mar 2006 08:41:20 +0000 (+0000) Subject: default empty implementation of new slots "onViewManagerAdded", "onViewManagerRemoved" X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=434fb2bbf688a62ede334446a9a7f7fe684d72ff;p=modules%2Fgui.git default empty implementation of new slots "onViewManagerAdded", "onViewManagerRemoved" --- diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 6b4de40b6..77d2623b9 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -129,6 +129,11 @@ bool LightApp_Module::activateModule( SUIT_Study* study ) if ( res && application() && application()->resourceMgr() ) application()->resourceMgr()->raiseTranslators( name() ); + connect( application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) ); + connect( application(), SIGNAL( viewManagerRemoved( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerRemoved( SUIT_ViewManager* ) ) ); + if ( mySwitchOp == 0 ) mySwitchOp = new LightApp_SwitchOp( this ); @@ -141,6 +146,11 @@ bool LightApp_Module::deactivateModule( SUIT_Study* study ) delete mySwitchOp; mySwitchOp = 0; + disconnect( application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) ); + disconnect( application(), SIGNAL( viewManagerRemoved( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerRemoved( SUIT_ViewManager* ) ) ); + // abort all operations MapOfOperation::const_iterator anIt; for( anIt = myOperations.begin(); anIt != myOperations.end(); anIt++ ) { @@ -449,3 +459,11 @@ void LightApp_Module::onShowHide() if( id!=-1 ) startOperation( id ); } + +void LightApp_Module::onViewManagerAdded( SUIT_ViewManager* ) +{ +} + +void LightApp_Module::onViewManagerRemoved( SUIT_ViewManager* ) +{ +} diff --git a/src/LightApp/LightApp_Module.h b/src/LightApp/LightApp_Module.h index 2df7aab61..afe552d12 100644 --- a/src/LightApp/LightApp_Module.h +++ b/src/LightApp/LightApp_Module.h @@ -20,6 +20,7 @@ class LightApp_Displayer; class SUIT_Study; class SUIT_DataObject; class SUIT_Operation; +class SUIT_ViewManager; class CAM_Application; class QtxPopupMgr; @@ -80,6 +81,8 @@ protected slots: virtual void onOperationStopped( SUIT_Operation* ); virtual void onOperationDestroyed(); virtual void onShowHide(); + virtual void onViewManagerAdded( SUIT_ViewManager* ); + virtual void onViewManagerRemoved( SUIT_ViewManager* ); protected: virtual QtxPopupMgr* popupMgr();