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/ZxObjRectTool.h

43 lines
894 B
C++

#pragma once
#include "ZxObjToolBase.h"
class ZxHandleHelper;
class ZxObjRect;
// 矩形tool
class I_PLOTCURVE_T_EXPORT ZxObjRectTool : public ZxObjToolBase
{
Q_OBJECT
public:
ZxObjRectTool();
~ZxObjRectTool();
virtual ZxHandleHelper* getHandleHelper();
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 QRectF getMovingBound(ZxRenderItem *pObj);
virtual Qt::CursorShape getCursorBy(const int& nOption,
const int& nSubIndex);
protected:
RectPos m_oHitPos;
ZxHandleHelper* m_pHandleHelper;
};