Eneboo - Documentación para desarrolladores
|
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 00013 #ifndef QWT_PLOT_DICT 00014 #define QWT_PLOT_DICT 00015 00016 #include "qwt_global.h" 00017 #include "qwt_plot_item.h" 00018 00019 #if QT_VERSION < 0x040000 00020 #include <qvaluelist.h> 00021 typedef QValueListConstIterator<QwtPlotItem *> QwtPlotItemIterator; 00024 typedef QValueList<QwtPlotItem *> QwtPlotItemList; 00025 #else 00026 #include <qlist.h> 00027 typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator; 00030 typedef QList<QwtPlotItem *> QwtPlotItemList; 00031 #endif 00032 00042 class QWT_EXPORT QwtPlotDict 00043 { 00044 public: 00045 explicit QwtPlotDict(); 00046 ~QwtPlotDict(); 00047 00048 void setAutoDelete(bool); 00049 bool autoDelete() const; 00050 00051 const QwtPlotItemList& itemList() const; 00052 00053 void detachItems(int rtti = QwtPlotItem::Rtti_PlotItem, 00054 bool autoDelete = true); 00055 00056 private: 00057 friend class QwtPlotItem; 00058 00059 void attachItem(QwtPlotItem *, bool); 00060 00061 class PrivateData; 00062 PrivateData *d_data; 00063 }; 00064 00065 #endif