Loading...
Searching...
No Matches
qwt_abstract_legend.h
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_ABSTRACT_LEGEND_H
#define QWT_ABSTRACT_LEGEND_H
#include "qwt_global.h"
#include <qframe.h>
class QwtLegendData;
template< typename T > class QList;
class QVariant;
class QWT_EXPORT QwtAbstractLegend : public QFrame
{
Q_OBJECT
public:
explicit QwtAbstractLegend( QWidget* parent = NULL );
virtual ~QwtAbstractLegend();
virtual void renderLegend( QPainter* painter,
const QRectF& rect, bool fillBackground ) const = 0;
virtual bool isEmpty() const = 0;
virtual int scrollExtent( Qt::Orientation ) const;
public Q_SLOTS:
virtual void updateLegend( const QVariant& itemInfo,
const QList< QwtLegendData >& data ) = 0;
};
#endif
QList
Definition qwt_abstract_legend.h:17
QwtAbstractLegend
Abstract base class for legend widgets.
Definition qwt_abstract_legend.h:35
QwtAbstractLegend::renderLegend
virtual void renderLegend(QPainter *painter, const QRectF &rect, bool fillBackground) const =0
QwtAbstractLegend::isEmpty
virtual bool isEmpty() const =0
QwtAbstractLegend::updateLegend
virtual void updateLegend(const QVariant &itemInfo, const QList< QwtLegendData > &data)=0
Update the entries for a plot item.
QwtLegendData
Attributes of an entry on a legend.
Definition qwt_legend_data.h:37