]> SALOME platform Git repositories - modules/shaper.git/blob - src/NewGeom/NewGeom_DataModel.h
Salome HOME
184038a7fca5c39be89f4b45348ec22ebfe4bbb3
[modules/shaper.git] / src / NewGeom / NewGeom_DataModel.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3
4 #ifndef NEWGEOM_DATAMODEL_H
5 #define NEWGEOM_DATAMODEL_H
6
7 #include "NewGeom.h"
8 #include <LightApp_DataModel.h>
9
10 class NewGeom_Module;
11
12 class NewGeom_EXPORT NewGeom_DataModel : public LightApp_DataModel
13 {
14   Q_OBJECT
15  public:
16   NewGeom_DataModel(NewGeom_Module* theModule);
17   virtual ~NewGeom_DataModel();
18
19   virtual bool open(const QString& thePath, CAM_Study* theStudy, QStringList theFiles);
20   virtual bool save(QStringList& theFiles);
21   virtual bool saveAs(const QString& thePath, CAM_Study* theStudy, QStringList& theFiles);
22   virtual bool close();
23   virtual bool create(CAM_Study* theStudy);
24
25   virtual bool isModified() const;
26   virtual bool isSaved() const;
27
28   virtual void update(LightApp_DataObject* theObj = 0, LightApp_Study* theStudy = 0);
29
30  private:
31   QString myStudyPath;
32   NewGeom_Module* myModule;
33 };
34
35 #endif