Salome HOME
Merge remote-tracking branch 'origin/BR_LAND_COVER_MAP' into BR_LAND_COVER_REMOVING
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataModel.h
index 6707dd2edd8b0cdc4013f6413b689450520ae2eb..6d735d86fb522659a30562395f1484838be258ef 100644 (file)
@@ -51,6 +51,11 @@ public:
   HYDROGUI_DataModel( CAM_Module* theModule );
   virtual ~HYDROGUI_DataModel();
 
+  /**
+   * Creates the document into the data model. Reimplemented.
+   */
+  virtual bool create( CAM_Study* );
+
   /**
    * Open the document into the data model. Reimplemented.
    * \param theURL opened study path
@@ -145,8 +150,7 @@ public:
    * Create a new region in the given calculation case containing given zones. 
    */
   bool createNewRegion( Handle(HYDROData_CalculationCase) theCase,
-                        const QList<HYDROGUI_Zone*>& theZonesList,
-                        const bool theLandCover );
+                        const QList<HYDROGUI_Zone*>& theZonesList );
 
   /**
    * Correct an internal model object according to the current document mode
@@ -231,8 +235,7 @@ public:
    * \param theLandCover if true - land cover regions will be represented in the tree
    */
   void buildCaseTree( SUIT_DataObject*                  theParent,
-                      Handle(HYDROData_CalculationCase) theCase,
-                      const bool theLandCover );
+                      Handle(HYDROData_CalculationCase) theCase );
 
   /**
    * Updates the object subtree.
@@ -369,6 +372,8 @@ protected:
   static SUIT_DataObject* findChildByName( const SUIT_DataObject* theFather,
                                            const QString& theName );
 
+  void updateDocument();
+
   /**
    * Set object visibility state.
    * \param theModelObject the data model object