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

34 lines
726 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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;
};