]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
default empty implementation of new slots "onViewManagerAdded", "onViewManagerRemoved"
authorasl <asl@opencascade.com>
Fri, 3 Mar 2006 08:41:20 +0000 (08:41 +0000)
committerasl <asl@opencascade.com>
Fri, 3 Mar 2006 08:41:20 +0000 (08:41 +0000)
src/LightApp/LightApp_Module.cxx
src/LightApp/LightApp_Module.h

index 6b4de40b649e25cdae499bd90b535b894043cde6..77d2623b9fb4323453f5a8560157ff37e78dc292 100644 (file)
@@ -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* )
+{
+}
index 2df7aab616a7ddca5269fe6aad3f7690ff335c4c..afe552d12934d95821fa5291aeb76794cbeeca7d 100644 (file)
@@ -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();