]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
debug IPAL9411: redefine virtual methods createEmptyStudy and activateModule
authormsv <msv@opencascade.com>
Wed, 13 Jul 2005 06:35:33 +0000 (06:35 +0000)
committermsv <msv@opencascade.com>
Wed, 13 Jul 2005 06:35:33 +0000 (06:35 +0000)
in order to call updateTree of object browser. It is due to removing call of
updateTree during treating the signal rootChanged of CAM_Study.

src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/SalomeApp_Application.h

index d5ff6ffff4f16b6bb7b684337b10ab93cae89f26..18fde6a4a78682107791018f0fa3735b9001c71e 100644 (file)
@@ -1691,3 +1691,17 @@ void SalomeApp_Application::onDesktopActivated()
   if(aModule)
     aModule->studyActivated();
 }
+
+void SalomeApp_Application::createEmptyStudy()
+{
+  CAM_Application::createEmptyStudy();
+  if ( objectBrowser() )
+    objectBrowser()->updateTree();
+}
+
+bool SalomeApp_Application::activateModule( CAM_Module* mod )
+{
+  CAM_Application::activateModule( mod );
+  if ( objectBrowser() )
+    objectBrowser()->updateTree();
+}
index 7ccc854423a13bd95996dd37f919cbffd66d4240..94ed79b40cb78adb0b8fde5aae74177045b511ad 100644 (file)
@@ -101,6 +101,8 @@ public:
 
   virtual void                        contextMenuPopup( const QString&, QPopupMenu*, QString& );
 
+  virtual void                        createEmptyStudy();
+
   static CORBA::ORB_var               orb();
   static SALOMEDSClient_StudyManager* studyMgr();
   static SALOME_NamingService*        namingService();
@@ -143,6 +145,7 @@ protected:
   virtual void                        afterCloseDoc();
 
   virtual void                        moduleAdded( CAM_Module* );
+  virtual bool                        activateModule( CAM_Module* = 0 );
 
   SalomeApp_Preferences*              preferences( const bool ) const;