You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
727 B
C++
34 lines
727 B
C++
#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:
|
|
|
|
};
|