Salome HOME
Fix for the bug #45: check and warning when the same image is used in 2 arguments.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.h
index 2502c970b541aad060833c3341893697e0da45a7..2192aa5fe4df7aa955b62f43dcd8efde547b9b34 100755 (executable)
 
 #include "HYDROGUI_Operation.h"
 
-#include <HYDROData_Polyline.h>
+#include <HYDROData_PolylineXY.h>
 
-class CurveCreator_Curve;
-class SUIT_ViewManager;
 class OCCViewer_ViewManager;
-class HYDROGUI_AISCurve;
+class CurveCreator_Curve;
 
 class HYDROGUI_PolylineOp : public HYDROGUI_Operation
 {
@@ -40,27 +38,31 @@ public:
   HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool isEdit );
   virtual ~HYDROGUI_PolylineOp();
 
+  void                       deleteSelected();
+  bool                       deleteEnabled();
+
 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;
-  CurveCreator_Curve*        myCurve;
-  HYDROGUI_AISCurve*         myAISCurve;
+  bool                         myIsEdit;
+  Handle(HYDROData_PolylineXY) myEditedObject;
+  CurveCreator_Curve*          myCurve;
 };
 
 #endif