Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_ABSTRACT_LEGEND_H
00011 #define QWT_ABSTRACT_LEGEND_H
00012
00013 #include "qwt_global.h"
00014 #include "qwt_legend_data.h"
00015 #include <qframe.h>
00016 #include <qlist.h>
00017
00018 class QVariant;
00019
00034 class QWT_EXPORT QwtAbstractLegend : public QFrame
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 explicit QwtAbstractLegend( QWidget *parent = NULL );
00040 virtual ~QwtAbstractLegend();
00041
00051 virtual void renderLegend( QPainter *painter,
00052 const QRectF &rect, bool fillBackground ) const = 0;
00053
00055 virtual bool isEmpty() const = 0;
00056
00057 virtual int scrollExtent( Qt::Orientation ) const;
00058
00059 public Q_SLOTS:
00060
00067 virtual void updateLegend( const QVariant &itemInfo,
00068 const QList<QwtLegendData> &data ) = 0;
00069 };
00070
00071 #endif