Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI_DataModel.h
index f07b913bf03a45092bd94e8f734f781cefbbe862..e95824ae7b02b84f5d70c371cae025dcce30845c 100644 (file)
@@ -1,8 +1,25 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-
-#ifndef NEWGEOM_DATAMODEL_H
-#define NEWGEOM_DATAMODEL_H
+// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or
+// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+//
+
+#ifndef SHAPERGUI_DATAMODEL_H
+#define SHAPERGUI_DATAMODEL_H
 
 #include "SHAPER_SHAPERGUI.h"
 #include <LightApp_DataModel.h>
@@ -61,6 +78,9 @@ class SHAPERGUI_EXPORT SHAPERGUI_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,7 +93,7 @@ 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.