Qwt Polar User's Guide 1.0.0
|
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** 00002 * QwtPolar Widget Library 00003 * Copyright (C) 2008 Uwe Rathmann 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the Qwt License, Version 1.0 00007 *****************************************************************************/ 00008 00009 #ifndef QWT_POLAR_ITEMDICT_H 00010 #define QWT_POLAR_ITEMDICT_H 00011 00014 #include "qwt_polar_global.h" 00015 #include "qwt_polar_item.h" 00016 #include <qlist.h> 00017 00018 typedef QList<QwtPolarItem *>::ConstIterator QwtPolarItemIterator; 00021 typedef QList<QwtPolarItem *> QwtPolarItemList; 00022 00032 class QWT_POLAR_EXPORT QwtPolarItemDict 00033 { 00034 public: 00035 explicit QwtPolarItemDict(); 00036 ~QwtPolarItemDict(); 00037 00038 void setAutoDelete( bool ); 00039 bool autoDelete() const; 00040 00041 const QwtPolarItemList& itemList() const; 00042 00043 void detachItems( int rtti = QwtPolarItem::Rtti_PolarItem, 00044 bool autoDelete = true ); 00045 00046 private: 00047 friend class QwtPolarItem; 00048 00049 void attachItem( QwtPolarItem *, bool ); 00050 00051 class PrivateData; 00052 PrivateData *d_data; 00053 }; 00054 00055 #endif