]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Method notebook() is removed; the wrapper SalomeApp_Notebook should be used instead
authorasl <asl@opencascade.com>
Sat, 21 Nov 2009 12:15:33 +0000 (12:15 +0000)
committerasl <asl@opencascade.com>
Sat, 21 Nov 2009 12:15:33 +0000 (12:15 +0000)
src/SalomeApp/SalomeApp_Study.cxx
src/SalomeApp/SalomeApp_Study.h

index ed23c52ec7e086555be82d61a53abf8045c625ca..07c2c424e27c2a056075cbfc43a2ac964841413d 100644 (file)
@@ -80,24 +80,6 @@ _PTR(Study) SalomeApp_Study::studyDS() const
   return myStudyDS;
 }
 
-/*!
-  Return instance of notebook
-*/
-SALOME::Notebook_ptr SalomeApp_Study::notebook() const
-{
-  if( CORBA::is_nil( myNotebook ) )
-  {
-    SALOME::Notebook_var aRes;
-    SALOMEDS_Study* aStudy = dynamic_cast<SALOMEDS_Study*>( myStudyDS.operator->() );
-    if( aStudy )
-      aRes = aStudy->GetStudy()->GetNotebook();
-
-    const_cast<SalomeApp_Study*>( this )->myNotebook = aRes._retn();
-  }
-
-  return myNotebook;
-}
-
 /*!
   Create document.
 */
index a8d5b900bf20a24e817ee5607ff69c32cb77bd0c..ed24e906951d782f65313771d66407781000f2c5 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "SalomeApp.h"
 #include <LightApp_Study.h>
-#include CORBA_CLIENT_HEADER( SALOME_Notebook )
 
 #ifdef WIN32
 #pragma warning( disable:4251 )
@@ -79,8 +78,6 @@ public:
   virtual void        restoreState(int savePoint);
   void                markAsSavedIn(QString theFileName);
 
-  SALOME::Notebook_ptr notebook() const;
-
 protected:
   virtual void        saveModuleData ( QString theModuleName, QStringList theListOfFiles );
   virtual void        openModuleData ( QString theModuleName, QStringList& theListOfFiles );
@@ -104,8 +101,7 @@ private:
   QString             newStudyName() const;
 
 private:
-  _PTR(Study)          myStudyDS;
-  SALOME::Notebook_ptr myNotebook;
+  _PTR(Study)         myStudyDS;
 };
 
 #ifdef WIN32