X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Widget.h;h=225e864d49a06aac4b0ff31b7f95b1492c5eb3f7;hb=e38481b5d965c3736d2c8eda39b1a30bd125147b;hp=d0559c50b67cc7bc586b97a7e93f585cab502b47;hpb=c832083dc42c0c489271ce585a670afafa172ddb;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.h b/src/HYDROCurveCreator/CurveCreator_Widget.h index d0559c50..225e864d 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.h +++ b/src/HYDROCurveCreator/CurveCreator_Widget.h @@ -65,6 +65,9 @@ public: QList getSelectedSections(); QList< QPair< int, int > > getSelectedPoints(); + void removeSelected(); + bool removeEnabled(); + signals: void selectionChanged(); void subOperationStarted( QWidget* ); @@ -130,8 +133,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, @@ -178,6 +181,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;