X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PolylineOp.h;h=2192aa5fe4df7aa955b62f43dcd8efde547b9b34;hb=a1431f03eac1d1aed4203d0568d987c41ce939b3;hp=be473d9774e553d6b6a3f71e6a5b7a517cf603de;hpb=e31b7d2c433d4e27a4023d9a43b34cfc6f147aaf;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.h b/src/HYDROGUI/HYDROGUI_PolylineOp.h index be473d97..2192aa5f 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.h +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.h @@ -25,19 +25,44 @@ #include "HYDROGUI_Operation.h" +#include + +class OCCViewer_ViewManager; +class CurveCreator_Curve; + class HYDROGUI_PolylineOp : public HYDROGUI_Operation { Q_OBJECT public: - HYDROGUI_PolylineOp( HYDROGUI_Module* theModule ); + 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 ); + +protected slots: + void onEditorSelectionChanged(); + +private: + void displayPreview(); + void erasePreview(); + +private: + OCCViewer_ViewManager* myViewManager; + bool myIsEdit; + Handle(HYDROData_PolylineXY) myEditedObject; + CurveCreator_Curve* myCurve; }; #endif