Salome HOME
Fix for the bug #255: VTK viewer is not updated after modification of objects.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.h
index d337760364507648d58021db0ba39a454e69aeb9..2192aa5fe4df7aa955b62f43dcd8efde547b9b34 100755 (executable)
 
 #include "HYDROGUI_Operation.h"
 
-#include <HYDROData_Polyline.h>
+#include <HYDROData_PolylineXY.h>
+
+class OCCViewer_ViewManager;
+class CurveCreator_Curve;
 
 class HYDROGUI_PolylineOp : public HYDROGUI_Operation
 {
@@ -35,16 +38,31 @@ public:
   HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool isEdit );
   virtual ~HYDROGUI_PolylineOp();
 
+  void                       deleteSelected();
+  bool                       deleteEnabled();
+
 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:
-  bool                       myIsEdit;
-  Handle(HYDROData_Polyline) myEditedObject;
+  void                       displayPreview();
+  void                       erasePreview();
+
+private:
+  OCCViewer_ViewManager*       myViewManager;
+
+  bool                         myIsEdit;
+  Handle(HYDROData_PolylineXY) myEditedObject;
+  CurveCreator_Curve*          myCurve;
 };
 
 #endif