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 00034 class QWT_EXPORT QwtPlotDict 00035 { 00036 public: 00037 explicit QwtPlotDict(); 00038 virtual ~QwtPlotDict(); 00039 00040 void setAutoDelete( bool ); 00041 bool autoDelete() const; 00042 00043 const QwtPlotItemList& itemList() const; 00044 QwtPlotItemList itemList( int rtti ) const; 00045 00046 void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem, 00047 bool autoDelete = true ); 00048 00049 protected: 00050 void insertItem( QwtPlotItem * ); 00051 void removeItem( QwtPlotItem * ); 00052 00053 private: 00054 class PrivateData; 00055 PrivateData *d_data; 00056 }; 00057 00058 #endif