#include "HYDROGUI_Operation.h"
+#include <HYDROData_Polyline.h>
+
+class CurveCreator_Curve;
+class SUIT_ViewManager;
+class OCCViewer_ViewManager;
+class HYDROGUI_AISCurve;
+
class HYDROGUI_PolylineOp : public HYDROGUI_Operation
{
Q_OBJECT
public:
- HYDROGUI_PolylineOp( HYDROGUI_Module* theModule );
+ HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool isEdit );
virtual ~HYDROGUI_PolylineOp();
protected:
virtual HYDROGUI_InputPanel* createInputPanel() const;
- virtual bool processApply( int& theUpdateFlags );
+ virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+
+ virtual void startOperation();
+
+ void onCreatePreview();
+
+protected slots:
+ void onEditorSelectionChanged();
+
+private:
+ SUIT_ViewManager* myActiveViewManager;
+
+ OCCViewer_ViewManager* myPreviewViewManager;
+ bool myIsEdit;
+ Handle(HYDROData_Polyline) myEditedObject;
+ CurveCreator_Curve* myCurve;
+ HYDROGUI_AISCurve* myAISCurve;
};
#endif