Salome HOME
Image positioning by two points.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.h
index 2502c970b541aad060833c3341893697e0da45a7..614960dfecb719eeae3c0bc93ac8cc77b5b8c3d7 100755 (executable)
@@ -27,9 +27,8 @@
 
 #include <HYDROData_Polyline.h>
 
-class CurveCreator_Curve;
-class SUIT_ViewManager;
 class OCCViewer_ViewManager;
+class CurveCreator_Curve;
 class HYDROGUI_AISCurve;
 
 class HYDROGUI_PolylineOp : public HYDROGUI_Operation
@@ -41,21 +40,23 @@ public:
   virtual ~HYDROGUI_PolylineOp();
 
 protected:
-  virtual HYDROGUI_InputPanel* createInputPanel() const;
+  virtual void               startOperation();
+  virtual void               abortOperation();
+  virtual void               commitOperation();
 
-  virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+  virtual HYDROGUI_InputPanel* createInputPanel() const;
 
-  virtual void startOperation();
-  
-  void onCreatePreview();
+  virtual bool               processApply( int& theUpdateFlags, QString& theErrorMsg );
 
 protected slots:
-  void onEditorSelectionChanged();
+  void                       onEditorSelectionChanged();
 
 private:
-  SUIT_ViewManager*           myActiveViewManager;
+  void                       displayPreview();
+  void                       erasePreview();
 
-  OCCViewer_ViewManager*      myPreviewViewManager;
+private:
+  OCCViewer_ViewManager*     myViewManager;
 
   bool                       myIsEdit;
   Handle(HYDROData_Polyline) myEditedObject;