Qwt User's Guide 6.0.2

- Main Page
- Related Pages
- Classes

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 private:
50 friend class QwtPlotItem;
51
52 void attachItem( QwtPlotItem *, bool );
53
54 class PrivateData;
55 PrivateData *d_data;
56 };
57
58 #endif