Salome HOME
version has been updated to 1.0
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.h
index 6ff93f05139866a7678a0bdde73329aef9263f3d..d79d582dff2cd5f89f3b416494f20a39bf7262d5 100755 (executable)
@@ -25,7 +25,7 @@
 
 #include "HYDROGUI_Operation.h"
 
-#include <HYDROData_Polyline.h>
+#include <HYDROData_PolylineXY.h>
 
 class CurveCreator_Curve;
 
@@ -37,17 +37,31 @@ public:
   HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool isEdit );
   virtual ~HYDROGUI_PolylineOp();
 
+  void                       deleteSelected();
+  bool                       deleteEnabled();
+
+  virtual void               updatePreviewZLayer( int theLayer );
+
 protected:
+  virtual void               startOperation();
+  virtual void               abortOperation();
+  virtual void               commitOperation();
+
   virtual HYDROGUI_InputPanel* createInputPanel() const;
 
-  virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+  virtual bool               processApply( int& theUpdateFlags, QString& theErrorMsg );
 
-  virtual void startOperation();
+protected slots:
+  void                       onEditorSelectionChanged();
+
+private:
+  void                       displayPreview();
+  void                       erasePreview();
 
 private:
-  bool                       myIsEdit;
-  Handle(HYDROData_Polyline) myEditedObject;
-  CurveCreator_Curve*        myCurve;
+  bool                         myIsEdit;
+  Handle(HYDROData_PolylineXY) myEditedObject;
+  CurveCreator_Curve*          myCurve;
 };
 
 #endif