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.
nmWATI/Include/iPlot/iPlotCurveT/Objects/ZxObjBandTool.h

37 lines
701 B
C

#pragma once
#include "ZxObjToolBase.h"
// 矩形tool
class I_PLOTCURVE_T_EXPORT ZxObjBandTool : public ZxObjToolBase
{
Q_OBJECT
public:
ZxObjBandTool();
// ~ZxObjBandTool();
public:
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);
protected:
RectPos m_oHitPos;
};