1 #ifndef SALOMEAPP_STUDY_H
2 #define SALOMEAPP_STUDY_H
9 #pragma warning( disable:4251 )
12 #include "SALOMEDSClient.hxx"
14 class SALOMEAPP_EXPORT SalomeApp_Study : public CAM_Study
19 SalomeApp_Study( SUIT_Application* );
20 virtual ~SalomeApp_Study();
22 virtual int id() const;
24 virtual void createDocument();
25 virtual bool openDocument( const QString& );
26 virtual bool loadDocument( const QString& );
28 virtual void saveDocument();
29 virtual bool saveDocumentAs( const QString& );
31 virtual void closeDocument(bool permanently = true);
33 virtual bool isSaved() const;
34 virtual bool isModified() const;
36 _PTR(Study) studyDS() const;
38 // to delete all references to object, whose have the same component
39 void deleteReferencesTo( _PTR( SObject ) );
42 void saved( SUIT_Study* );
43 void opened( SUIT_Study* );
44 void closed( SUIT_Study* );
45 void created( SUIT_Study* );
48 virtual void dataModelInserted( const CAM_DataModel* );
49 virtual bool openDataModel( const QString&, CAM_DataModel* );
50 void setStudyDS(const _PTR(Study)& s );
53 QString newStudyName() const;
56 _PTR(Study) myStudyDS;
61 #pragma warning( default:4251 )