Qwt User's Guide svn
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 
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
qmi style