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