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.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ZxObjRectTool.h"
|
|
|
|
|
|
|
|
|
|
// 图例tool,从矩形框重载
|
|
|
|
|
class ZxSubLegend;
|
|
|
|
|
class I_PLOTCURVE_T_EXPORT ZxSubLegendTool : public ZxObjRectTool
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
ZxSubLegendTool();
|
|
|
|
|
~ZxSubLegendTool();
|
|
|
|
|
|
|
|
|
|
void setObjLegend(ZxSubLegend* p);
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
virtual QRectF getMovingBound(ZxRenderItem* pObj);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
ZxSubLegend* m_pObjLegend;
|
|
|
|
|
};
|