00001
00002
00003
00004
00005
00006
00007
00008
00009
00011 #ifndef QWT_PLOT_DICT
00012 #define QWT_PLOT_DICT
00013
00014 #include "qwt_global.h"
00015 #include "qwt_plot_item.h"
00016 #include <qlist.h>
00017
00020 typedef QList<QwtPlotItem *> QwtPlotItemList;
00021 typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator;
00022
00032 class QWT_EXPORT QwtPlotDict
00033 {
00034 public:
00035 explicit QwtPlotDict();
00036 virtual ~QwtPlotDict();
00037
00038 void setAutoDelete( bool );
00039 bool autoDelete() const;
00040
00041 const QwtPlotItemList& itemList() const;
00042 QwtPlotItemList itemList( int rtti ) const;
00043
00044 void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem,
00045 bool autoDelete = true );
00046
00047 private:
00048 friend class QwtPlotItem;
00049
00050 void attachItem( QwtPlotItem *, bool );
00051
00052 class PrivateData;
00053 PrivateData *d_data;
00054 };
00055
00056 #endif