Salome HOME
refs #618
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataModel.h
index 671a6969a86dc361ad8ae20ef602b06196a7f71d..33d6a07f4886c0a3847e13ec85dc08c5eeedf996 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
@@ -144,7 +149,9 @@ public:
   /**
    * Create a new region in the given calculation case containing given zones. 
    */
-  bool createNewRegion( Handle(HYDROData_CalculationCase) theCase, const QList<HYDROGUI_Zone*>& theZonesList );
+  bool createNewRegion( Handle(HYDROData_CalculationCase) theCase,
+                        const QList<HYDROGUI_Zone*>& theZonesList,
+                        const bool theLandCover );
 
   /**
    * Correct an internal model object according to the current document mode
@@ -226,9 +233,11 @@ public:
    * Creates the Calculation Case subtree for usage within an operation dialog.
    * \param theParent a created object will be appended as a child of this GUI object
    * \param theCase the calculation case model object
+   * \param theLandCover if true - land cover regions will be represented in the tree
    */
   void buildCaseTree( SUIT_DataObject*                  theParent,
-                      Handle(HYDROData_CalculationCase) theCase );
+                      Handle(HYDROData_CalculationCase) theCase,
+                      const bool theLandCover );
 
   /**
    * Updates the object subtree.
@@ -365,6 +374,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