Salome HOME
Image positioning by two points.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.h
index d337760364507648d58021db0ba39a454e69aeb9..614960dfecb719eeae3c0bc93ac8cc77b5b8c3d7 100755 (executable)
 
 #include <HYDROData_Polyline.h>
 
+class OCCViewer_ViewManager;
+class CurveCreator_Curve;
+class HYDROGUI_AISCurve;
+
 class HYDROGUI_PolylineOp : public HYDROGUI_Operation
 {
   Q_OBJECT
@@ -36,15 +40,28 @@ public:
   virtual ~HYDROGUI_PolylineOp();
 
 protected:
+  virtual void               startOperation();
+  virtual void               abortOperation();
+  virtual void               commitOperation();
+
   virtual HYDROGUI_InputPanel* createInputPanel() const;
 
-  virtual bool processApply( int& theUpdateFlags );
+  virtual bool               processApply( int& theUpdateFlags, QString& theErrorMsg );
 
-  virtual void startOperation();
+protected slots:
+  void                       onEditorSelectionChanged();
 
 private:
+  void                       displayPreview();
+  void                       erasePreview();
+
+private:
+  OCCViewer_ViewManager*     myViewManager;
+
   bool                       myIsEdit;
   Handle(HYDROData_Polyline) myEditedObject;
+  CurveCreator_Curve*        myCurve;
+  HYDROGUI_AISCurve*         myAISCurve;
 };
 
 #endif