Salome HOME
refs #1327: debug of scaling operations
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataModel.h
index a7e1ed7c0783ed7d5ce53a5383bf9b06c2e11e28..2b7d92176c7bd94a8f5b232b6fcd805d6d783f3f 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.
@@ -252,6 +255,14 @@ public:
    */
   static QString partitionName( const ObjectKind theObjectKind );
 
+  /**
+   * Creates the default Strickler table object: both GUI data object and corresponding model object
+   * \param theDocument a document into which created object will be added
+   * \param theParent a created object will be appended as a child of this GUI object
+   */
+  void                 createDefaultStricklerTable( const Handle(HYDROData_Document)& theDocument,
+                                                    LightApp_DataObject*              theParent );
+
 protected:
   /**
    * Returns the document for the current study
@@ -321,13 +332,6 @@ protected:
                                      const QString&           theParentEntry,
                                      const bool               theIsBuildTree ,
                                      const bool               theIsInOperation = false );
-  /**
-   * Creates the default Strickler table object: both GUI data object and corresponding model object
-   * \param theDocument a document into which created object will be added
-   * \param theParent a created object will be appended as a child of this GUI object
-   */
-  void                 createDefaultStricklerTable( const Handle(HYDROData_Document)& theDocument,
-                                                    LightApp_DataObject*              theParent );
   /**
    * Build partition for object.
    * \param theObject gui object for which the partition will be build
@@ -369,6 +373,17 @@ protected:
   static SUIT_DataObject* findChildByName( const SUIT_DataObject* theFather,
                                            const QString& theName );
 
+  void updateDocument();
+
+  /**
+   * Set object visibility state.
+   * \param theModelObject the data model object
+   * \param theDataObject the GUI object
+   */
+  void setObjectVisibilityState( Handle(HYDROData_Entity) theModelObject,
+                                 HYDROGUI_DataObject* theObject );
+                                 
+
 protected:
   QString myStudyURL; ///< the saved/opened document URL
   QByteArray myStates;