Salome HOME
Fix for the bug #42: point C is not activated, but point C is shown in preview in...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Zone.h
index 1ecc1545dbf60b86185d15f867ba07d13aee2026..ee25b8023e3f2c262c0d9052381a0565bdd9c435 100644 (file)
@@ -53,20 +53,39 @@ public:
   /**
    * Returns the text for the specified column.
    */
-  QString text( const int = NameId ) const override;
+  QString     text( const int = NameId ) const;
 
   /**
    * Returns the color for the specified column.
    */
-  QColor  color( const ColorRole, const int = NameId ) const override;
+  QColor      color( const ColorRole theColorRole, const int theColumnId = NameId ) const;
+
+  /**
+   * Return true because zones are draggable.
+   */
+  bool        isDraggable() const { return true; }
 
   /**
    * Returns true if it is a zone which needs merge of bathymetries.
    */
-  bool    isMergingNeed() const override;
+  bool        isMergingNeed() const;
 
+  /**
+   * Returns the list of bathymetries names.
+   */
   QStringList getBathymetries() const;
 
+  /**
+   * Returns the merging type for conflict bathymetries.
+   */
+  HYDROData_Zone::MergeBathymetriesType getMergeType() const;
+
+  /**
+   * Set the merging type for conflict bathymetries. 
+   * If the type is Merge_Object then use the second parameter to set the merge bathymetry.
+   */
+  void        setMergeType( int theMergeType, QString theBathymetryName = QString() );
+
 private:
   QString getRefObjectNames() const;
   QString getBathimetryName() const;