X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Widget.h;h=03cfd0948a1ff4c188eab8a1b95b5a038ce82d3e;hb=1f844eb06506171b54541cc0caf1a0c237fe0dbf;hp=2ca9f1d6190832091d02603068ad1821a67ac67a;hpb=250cc05073a53b76e9636df07bb6dace89a1e094;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.h b/src/HYDROCurveCreator/CurveCreator_Widget.h index 2ca9f1d6..03cfd094 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.h +++ b/src/HYDROCurveCreator/CurveCreator_Widget.h @@ -130,8 +130,8 @@ protected: DetectionMode }; - typedef QPair< int, int > SectionToPoint; - typedef QList< SectionToPoint > SectionToPointList; + typedef std::pair< int, int > SectionToPoint; + typedef std::deque< SectionToPoint > SectionToPointList; private: QAction* createAction( ActionId theId, const QString& theName, const QPixmap& theImage, @@ -157,7 +157,7 @@ private: void startCurveModification( SectionToPointList& thePoints, const bool theFillPoints = true ); - void finishCurveModification( const SectionToPointList& thePoints ); + void finishCurveModification( const SectionToPointList& thePoints = SectionToPointList() ); // curve algorithm int findLocalPointIndex( int theSectionId, float theX, float theY ); @@ -178,6 +178,8 @@ private: int getSectionId( const int theRowId ) const; int getPointId( const int theRowId ) const; + bool contains( const SectionToPointList& theList, const SectionToPoint& theValue ) const; + private: QMap myActionMap; CurveCreator_ICurve* myCurve;