From ad90060f6ae240bb66c10e5c5f2031bc4141b790 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 23 Jun 2005 12:45:14 +0000 Subject: [PATCH] studyActivated() virtual method has been added --- src/SalomeApp/SalomeApp_Application.cxx | 10 ++++++++++ src/SalomeApp/SalomeApp_Application.h | 3 +++ src/SalomeApp/SalomeApp_Module.h | 2 ++ 3 files changed, 15 insertions(+) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 7c54fa23c..8638fdc51 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -1601,3 +1601,13 @@ void SalomeApp_Application::updateObjectBrowser( const bool updateModels ) if ( objectBrowser() ) objectBrowser()->updateTree(); } + + +//************************************************************ +void SalomeApp_Application::onDesktopActivated() +{ + CAM_Application::onDesktopActivated(); + SalomeApp_Module* aModule = dynamic_cast(activeModule()); + if(aModule) + aModule->studyActivated(); +} diff --git a/src/SalomeApp/SalomeApp_Application.h b/src/SalomeApp/SalomeApp_Application.h index 1999ef00e..6970cf58f 100644 --- a/src/SalomeApp/SalomeApp_Application.h +++ b/src/SalomeApp/SalomeApp_Application.h @@ -148,6 +148,9 @@ protected: virtual void createPreferences( SalomeApp_Preferences* ); virtual void preferencesChanged( const QString&, const QString& ); +protected slots: + virtual void onDesktopActivated(); + private slots: void onNewWindow(); void onModuleActivation( QAction* ); diff --git a/src/SalomeApp/SalomeApp_Module.h b/src/SalomeApp/SalomeApp_Module.h index 8fe9ba985..7ac602462 100644 --- a/src/SalomeApp/SalomeApp_Module.h +++ b/src/SalomeApp/SalomeApp_Module.h @@ -67,6 +67,8 @@ public: virtual void selectionChanged(); virtual void preferencesChanged( const QString&, const QString& ); + virtual void studyActivated() {}; + public slots: virtual bool activateModule( SUIT_Study* ); virtual bool deactivateModule( SUIT_Study* ); -- 2.39.2