// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-#ifndef NEWGEOM_DATAMODEL_H
-#define NEWGEOM_DATAMODEL_H
+#ifndef SHAPERGUI_DATAMODEL_H
+#define SHAPERGUI_DATAMODEL_H
-#include "NewGeom.h"
+#include "SHAPER_SHAPERGUI.h"
#include <LightApp_DataModel.h>
-class NewGeom_Module;
+class SHAPERGUI;
/**
* \ingroup Salome
* A Data Model class provides a connection of SALOME data structure and OpenParts application data model
*/
-class NewGeom_EXPORT NewGeom_DataModel : public LightApp_DataModel
+class SHAPERGUI_EXPORT SHAPERGUI_DataModel : public LightApp_DataModel
{
Q_OBJECT
public:
/// Constructor
/// \param theModule a module instance
- NewGeom_DataModel(NewGeom_Module* theModule);
- virtual ~NewGeom_DataModel();
+ SHAPERGUI_DataModel(SHAPERGUI* theModule);
+ virtual ~SHAPERGUI_DataModel();
/// Open a data file
/// \param thePath a path to the directory
/// \param theStudy a current study
virtual void update(LightApp_DataObject* theObj = 0, LightApp_Study* theStudy = 0);
+ /// Redefinition of virtual method: include the module dump in the common SALOME dump
+ virtual bool dumpPython( const QString&, CAM_Study*, bool, QStringList& );
+
protected:
/**
* Removes the directory with content if it exists
QString myStudyPath;
/// a path to the temporary directory, created by opening a document file
- QString myTmpDirectory;
+ QString myTmpDirectory;
/// it should be created because the files reading is postponed in the module. The directory
// should be removed after the model document is closed.
- NewGeom_Module* myModule;
+ SHAPERGUI* myModule;
};
#endif