Qwt User's Guide 6.1.4

qwt_plot_dict.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
11 #ifndef QWT_PLOT_DICT
12 #define QWT_PLOT_DICT
13
14 #include "qwt_global.h"
15 #include "qwt_plot_item.h"
16 #include <qlist.h>
17
20 typedef QList<QwtPlotItem *> QwtPlotItemList;
21 typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator;
22
34 class QWT_EXPORT QwtPlotDict
35 {
36 public:
37 explicit QwtPlotDict();
38 virtual ~QwtPlotDict();
39
40 void setAutoDelete( bool );
41 bool autoDelete() const;
42
43 const QwtPlotItemList& itemList() const;
44 QwtPlotItemList itemList( int rtti ) const;
45
46 void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem,
47 bool autoDelete = true );
48
49 protected:
50 void insertItem( QwtPlotItem * );
51 void removeItem( QwtPlotItem * );
52
53 private:
54 class PrivateData;
55 PrivateData *d_data;
56 };
57
58 #endif
QwtPlotItem
Base class for items on the plot canvas.
Definition: qwt_plot_item.h:64
QwtPlotItem::Rtti_PlotItem
Unspecific value, that can be used, when it doesn&#39;t matter.
Definition: qwt_plot_item.h:76
QwtPlotDict
A dictionary for plot items.
Definition: qwt_plot_dict.h:34