qwt_abstract_legend.h
Go to the documentation of this file.
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
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 


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:56