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.
*/
#include "SalomeApp.h"
#include <LightApp_Study.h>
-#include CORBA_CLIENT_HEADER( SALOME_Notebook )
#ifdef WIN32
#pragma warning( disable:4251 )
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 );
QString newStudyName() const;
private:
- _PTR(Study) myStudyDS;
- SALOME::Notebook_ptr myNotebook;
+ _PTR(Study) myStudyDS;
};
#ifdef WIN32