X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PolylineOp.h;h=614960dfecb719eeae3c0bc93ac8cc77b5b8c3d7;hb=5cae7e874afd2fc1b6f61023e8ebd33a933db3c7;hp=c56ec0a4937c8e5085b68422a32033f3156089b7;hpb=b475ac9f5ce7ab52045e70fec0c8e6f8ffb51432;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.h b/src/HYDROGUI/HYDROGUI_PolylineOp.h index c56ec0a4..614960df 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.h +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.h @@ -27,6 +27,10 @@ #include +class OCCViewer_ViewManager; +class CurveCreator_Curve; +class HYDROGUI_AISCurve; + class HYDROGUI_PolylineOp : public HYDROGUI_Operation { Q_OBJECT @@ -36,15 +40,28 @@ public: virtual ~HYDROGUI_PolylineOp(); 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: + void displayPreview(); + void erasePreview(); + +private: + OCCViewer_ViewManager* myViewManager; + bool myIsEdit; Handle(HYDROData_Polyline) myEditedObject; + CurveCreator_Curve* myCurve; + HYDROGUI_AISCurve* myAISCurve; }; #endif