X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSHAPERGUI%2FSHAPERGUI_DataModel.h;h=5eb87cc86a065ce6292ff7ed8c69296a950dadb9;hb=38dd97c8f7a3605ec6c362c3aefdefa3ee2675be;hp=e553f8cccda533b43e45d0778cd7ab09196e0df2;hpb=a9bdd72e4748283ea455fef89e11eb0eae3b7b48;p=modules%2Fshaper.git diff --git a/src/SHAPERGUI/SHAPERGUI_DataModel.h b/src/SHAPERGUI/SHAPERGUI_DataModel.h index e553f8ccc..5eb87cc86 100644 --- a/src/SHAPERGUI/SHAPERGUI_DataModel.h +++ b/src/SHAPERGUI/SHAPERGUI_DataModel.h @@ -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 -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