Qwt User's Guide 6.0.2

- Main Page
- Related Pages
- Classes

qwt_legend_itemmanager.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10 #ifndef QWT_LEGEND_ITEM_MANAGER_H
11 #define QWT_LEGEND_ITEM_MANAGER_H
12
13 #include "qwt_global.h"
14
15 class QwtLegend;
16 class QWidget;
17 class QRectF;
18 class QPainter;
19
24 class QWT_EXPORT QwtLegendItemManager
25 {
26 public:
28 QwtLegendItemManager()
29 {
30 }
31
33 virtual ~QwtLegendItemManager()
34 {
35 }
36
42 virtual void updateLegend( QwtLegend *legend ) const = 0;
43
50 virtual QWidget *legendItem() const = 0;
51
60 virtual void drawLegendIdentifier( QPainter *, const QRectF & ) const
61 {
62 }
63 };
64
65 #endif
66