#pragma once #include "ZxObjWmPointTool.h" #include "mGuiPlot_global.h" // 点工具 class M_GUI_PLOT_EXPORT ZxObjWmLineTool : public ZxObjWmPointTool { Q_OBJECT public: ZxObjWmLineTool(); protected: virtual Qt::CursorShape getCursorBy(const int& nOption, const int& nSubIndex); public: virtual bool onLeftDown(const QPointF& pt); virtual bool onLeftUp(const QPointF& pt); virtual bool onMouseMove(const QPointF& pt); virtual bool onMouseWheel(const QPointF& pt, int delta); virtual bool onLeftDoubleClick(const QPointF& pt); virtual void onKeyPress(QKeyEvent *event); virtual void onPaint(QPainter* painter, const ZxPaintParam& param); private: };