X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Zone.h;h=29d8a2b931c7421678d9ac5684cbc84db5a8ab36;hb=a1431f03eac1d1aed4203d0568d987c41ce939b3;hp=ee25b8023e3f2c262c0d9052381a0565bdd9c435;hpb=b9d55e17a365171d8448eab308aa104cee88bd3f;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Zone.h b/src/HYDROGUI/HYDROGUI_Zone.h index ee25b802..29d8a2b9 100644 --- a/src/HYDROGUI/HYDROGUI_Zone.h +++ b/src/HYDROGUI/HYDROGUI_Zone.h @@ -45,10 +45,12 @@ public: * \param theParent parent data object * \param theData reference to the corresponding object from data structure * \param theParentEntry entry of the parent data object (for reference objects) + * \param theIsInOperation if true then the tree is used for a browser within an operation, it is false by default */ - HYDROGUI_Zone( SUIT_DataObject* theParent, - Handle(HYDROData_Zone) theData, - const QString& theParentEntry ); + HYDROGUI_Zone( SUIT_DataObject* theParent, + Handle(HYDROData_Zone) theData, + const QString& theParentEntry, + const bool theIsInOperation = false ); /** * Returns the text for the specified column. @@ -65,29 +67,32 @@ public: */ bool isDraggable() const { return true; } + bool renameAllowed( const int = NameId ) const; + //bool setName( const QString& ); + /** * Returns true if it is a zone which needs merge of bathymetries. */ bool isMergingNeed() const; /** - * Returns the list of bathymetries names. + * Returns the list of altidude object names. */ - QStringList getBathymetries() const; + QStringList getAltitudes() const; /** - * Returns the merging type for conflict bathymetries. + * Returns the merging type for conflict altidudes. */ - HYDROData_Zone::MergeBathymetriesType getMergeType() const; + HYDROData_Zone::MergeAltitudesType getMergeType() const; /** - * Set the merging type for conflict bathymetries. + * Set the merging type for conflict altidudes. * If the type is Merge_Object then use the second parameter to set the merge bathymetry. */ - void setMergeType( int theMergeType, QString theBathymetryName = QString() ); + void setMergeType( int theMergeType, QString theAltitudeName = QString() ); private: QString getRefObjectNames() const; - QString getBathimetryName() const; + QString getAltitudeName() const; }; #endif