# qwt_legend_itemmanager.h

    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_LEGEND_ITEM_MANAGER_H
    00011 #define QWT_LEGEND_ITEM_MANAGER_H
    00012
    00013 #include "qwt_global.h"
    00014
    00015 class QwtLegend;
    00016 class QWidget;
    00017 class QRectF;
    00018 class QPainter;
    00019
    00024 class QWT_EXPORT QwtLegendItemManager
    00025 {
    00026 public:
    00028     QwtLegendItemManager()
    00029     {
    00030     }
    00031
    00033     virtual ~QwtLegendItemManager()
    00034     {
    00035     }
    00036
    00042     virtual void updateLegend( QwtLegend *legend ) const = 0;
    00043
    00050     virtual QWidget *legendItem() const = 0;
    00051
    00060     virtual void drawLegendIdentifier( QPainter *, const QRectF & ) const
    00061     {
    00062     }
    00063 };
    00064
    00065 #endif
    00066