- Main Page
- Classes
- Files
- Related Pages

# qwt_plot_dict.h

    00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
    00002  * Qwt Widget Library
    00003  * Copyright (C) 1997   Josef Wilgen
    00004  * Copyright (C) 2002   Uwe Rathmann
    00005  *
    00006  * This library is free software; you can redistribute it and/or
    00007  * modify it under the terms of the Qwt License, Version 1.0
    00008  *****************************************************************************/
    00009
    00010 // vim: expandtab
    00011
    00012 #ifndef QWT_PLOT_DICT
    00013 #define QWT_PLOT_DICT
    00014
    00015 #include "qwt_global.h"
    00016 #include "qwt_plot_item.h"
    00017
    00018 #if QT_VERSION < 0x040000
    00019 #include <qvaluelist.h>
    00020 typedef QValueListConstIterator<QwtPlotItem *> QwtPlotItemIterator;
    00021 typedef QValueList<QwtPlotItem *> QwtPlotItemList;
    00022 #else
    00023 #include <qlist.h>
    00024 typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator;
    00025 typedef QList<QwtPlotItem *> QwtPlotItemList;
    00026 #endif
    00027
    00037 class QWT_EXPORT QwtPlotDict
    00038 {
    00039 public:
    00040     explicit QwtPlotDict();
    00041     ~QwtPlotDict();
    00042
    00043     void setAutoDelete(bool);
    00044     bool autoDelete() const;
    00045
    00046     const QwtPlotItemList& itemList() const;
    00047
    00048     void detachItems(int rtti = QwtPlotItem::Rtti_PlotItem,
    00049         bool autoDelete = true);
    00050
    00051 private:
    00052     friend class QwtPlotItem;
    00053
    00054     void attachItem(QwtPlotItem *, bool);
    00055
    00056     class PrivateData;
    00057     PrivateData *d_data;
    00058 };
    00059
    00060 #endif