Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI_DataModel.h
index e553f8cccda533b43e45d0778cd7ab09196e0df2..5eb87cc86a065ce6292ff7ed8c69296a950dadb9 100644 (file)
@@ -1,26 +1,26 @@
 // 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
@@ -61,6 +61,9 @@ class NewGeom_EXPORT NewGeom_DataModel : public LightApp_DataModel
   /// \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
@@ -73,11 +76,11 @@ protected:
   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