1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
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
*****************************************************************************/
16
#include "qwt_global.h"
17
#include "qwt_plot_item.h"
19
#if QT_VERSION < 0x040000
20
#include <qvaluelist.h>
21
typedef QValueListConstIterator<QwtPlotItem *> QwtPlotItemIterator;
22
/// \var typedef QValueList< QwtPlotItem *> QwtPlotItemList
23
/// \brief See QT 3.x assistant documentation for QValueList
24
typedef QValueList<QwtPlotItem *> QwtPlotItemList;
27
typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator;
28
/// \var typedef QList< QwtPlotItem *> QwtPlotItemList
29
/// \brief See QT 4.x assistant documentation for QList
30
typedef QList<QwtPlotItem *> QwtPlotItemList;
34
\brief A dictionary for plot items
36
QwtPlotDict organizes plot items in increasing z-order.
37
If autoDelete() is enabled, all attached items will be deleted
38
in the destructor of the dictionary.
40
\sa QwtPlotItem::attach(), QwtPlotItem::detach(), QwtPlotItem::z()
42
class QWT_EXPORT QwtPlotDict
45
explicit QwtPlotDict();
48
void setAutoDelete(bool);
49
bool autoDelete() const;
51
const QwtPlotItemList& itemList() const;
53
void detachItems(int rtti = QwtPlotItem::Rtti_PlotItem,
54
bool autoDelete = true);
57
friend class QwtPlotItem;
59
void attachItem(QwtPlotItem *, bool);