#include "HYDROGUI_Operation.h"
-#include <HYDROData_Polyline.h>
+#include <HYDROData_PolylineXY.h>
+
+class CurveCreator_Curve;
class HYDROGUI_PolylineOp : public HYDROGUI_Operation
{
HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool isEdit );
virtual ~HYDROGUI_PolylineOp();
+ void deleteSelected();
+ bool deleteEnabled();
+
+ virtual void updatePreviewZLayer( int theLayer );
+
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 );
+
+protected slots:
+ void onEditorSelectionChanged();
- virtual void startOperation();
+private:
+ void displayPreview();
+ void erasePreview();
private:
- bool myIsEdit;
- Handle(HYDROData_Polyline) myEditedObject;
+ bool myIsEdit;
+ Handle(HYDROData_PolylineXY) myEditedObject;
+ CurveCreator_Curve* myCurve;
};
#endif