Salome HOME
Refs #275 - Coordinates projection
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_Widget.h
index 9243452dbac2606c9df53fea95263ec7070525ef..7ab17331db1cb62f909107616235a272e4078ee7 100644 (file)
@@ -56,7 +56,8 @@ public:
   enum ActionFlags {
     NoFlags              = 0x00000000,
     DisableDetectionMode = 0x00000001,
-    DisableNewSection    = 0x00000002
+    DisableNewSection    = 0x00000002,
+    DisableClosedSection = 0x00000004
   };
 
 public:
@@ -77,14 +78,13 @@ public:
   void setCurve( CurveCreator_ICurve* theCurve );
 
   QList<int> getSelectedSections();
-  QList< QPair< int, int > > getSelectedPoints();
 
   void  removeSelected();
   bool  removeEnabled();
 
 signals:
   void selectionChanged();
-  void subOperationStarted( QWidget* );
+  void subOperationStarted( QWidget*, bool );
   void subOperationFinished( QWidget* );
 
 public slots:
@@ -215,6 +215,7 @@ private:
   QPoint                      myDragStartPosition;
   int                         myDragInteractionStyle;
   CurveCreator_ICurve::SectionToPointList myDragPoints;
+  QMap<CurveCreator_ICurve::SectionToPoint, CurveCreator::Coordinates> myInitialDragPointsCoords;
   bool                        myDragged;
   QByteArray                  myGuiState;
 };