/**
* 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;