#pragma once #include "Defines.h" #include "ZxObjToolBase.h" // 曲线工具 class I_PLOTCURVE_T_EXPORT ZxObjCurveBaseTool : public ZxObjToolBase { Q_OBJECT public: ZxObjCurveBaseTool(); ~ZxObjCurveBaseTool(); protected: // virtual bool onLeftDown(const QPointF& pt); // virtual bool onLeftUp(const QPointF& pt); // virtual bool onRightDown(const QPointF& pt); // virtual bool onRightUp(const QPointF& pt); // virtual bool onMouseMove(const QPointF& pt); virtual void onPaint(QPainter* painter, const ZxPaintParam& param); protected: virtual Qt::CursorShape getCursorBy(const int& nOption, const int& nSubIndex); };