X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PolylineOp.h;h=2192aa5fe4df7aa955b62f43dcd8efde547b9b34;hb=a1431f03eac1d1aed4203d0568d987c41ce939b3;hp=6ff93f05139866a7678a0bdde73329aef9263f3d;hpb=ed25fab026dbb34e7bb7f5198bf54c9c20135f3f;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.h b/src/HYDROGUI/HYDROGUI_PolylineOp.h index 6ff93f05..2192aa5f 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.h +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.h @@ -25,8 +25,9 @@ #include "HYDROGUI_Operation.h" -#include +#include +class OCCViewer_ViewManager; class CurveCreator_Curve; class HYDROGUI_PolylineOp : public HYDROGUI_Operation @@ -37,17 +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, QString& theErrorMsg ); + virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg ); - virtual void startOperation(); +protected slots: + void onEditorSelectionChanged(); private: - bool myIsEdit; - Handle(HYDROData_Polyline) myEditedObject; - CurveCreator_Curve* myCurve; + void displayPreview(); + void erasePreview(); + +private: + OCCViewer_ViewManager* myViewManager; + + bool myIsEdit; + Handle(HYDROData_PolylineXY) myEditedObject; + CurveCreator_Curve* myCurve; }; #endif