X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PolylineOp.h;h=2192aa5fe4df7aa955b62f43dcd8efde547b9b34;hb=a1431f03eac1d1aed4203d0568d987c41ce939b3;hp=d337760364507648d58021db0ba39a454e69aeb9;hpb=5f1c089db35b75a592625b708921df2320563363;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.h b/src/HYDROGUI/HYDROGUI_PolylineOp.h index d3377603..2192aa5f 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.h +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.h @@ -25,7 +25,10 @@ #include "HYDROGUI_Operation.h" -#include +#include + +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