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 );
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++ ) {
if( id!=-1 )
startOperation( id );
}
+
+void LightApp_Module::onViewManagerAdded( SUIT_ViewManager* )
+{
+}
+
+void LightApp_Module::onViewManagerRemoved( SUIT_ViewManager* )
+{
+}
class SUIT_Study;
class SUIT_DataObject;
class SUIT_Operation;
+class SUIT_ViewManager;
class CAM_Application;
class QtxPopupMgr;
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();