[4272] | 1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
---|
| 2 | * QwtPolar Widget Library
|
---|
| 3 | * Copyright (C) 2008 Uwe Rathmann
|
---|
| 4 | *
|
---|
| 5 | * This library is free software; you can redistribute it and/or
|
---|
| 6 | * modify it under the terms of the Qwt License, Version 1.0
|
---|
| 7 | *****************************************************************************/
|
---|
| 8 |
|
---|
| 9 | #ifndef QWT_POLAR_ITEMDICT_H
|
---|
| 10 | #define QWT_POLAR_ITEMDICT_H
|
---|
| 11 |
|
---|
| 12 | /*! \file !*/
|
---|
| 13 |
|
---|
| 14 | #include "qwt_polar_global.h"
|
---|
| 15 | #include "qwt_polar_item.h"
|
---|
| 16 | #include <qlist.h>
|
---|
| 17 |
|
---|
| 18 | typedef QList<QwtPolarItem *>::ConstIterator QwtPolarItemIterator;
|
---|
| 19 | /// \var typedef QList< QwtPolarItem *> QwtPolarItemList
|
---|
| 20 | /// \brief See QT 4.x assistant documentation for QList
|
---|
| 21 | typedef QList<QwtPolarItem *> QwtPolarItemList;
|
---|
| 22 |
|
---|
| 23 | /*!
|
---|
| 24 | \brief A dictionary for polar plot items
|
---|
| 25 |
|
---|
| 26 | QwtPolarItemDict organizes polar plot items in increasing z-order.
|
---|
| 27 | If autoDelete() is enabled, all attached items will be deleted
|
---|
| 28 | in the destructor of the dictionary.
|
---|
| 29 |
|
---|
| 30 | \sa QwtPolarItem::attach(), QwtPolarItem::detach(), QwtPolarItem::z()
|
---|
| 31 | */
|
---|
| 32 | class QWT_POLAR_EXPORT QwtPolarItemDict
|
---|
| 33 | {
|
---|
| 34 | public:
|
---|
| 35 | explicit QwtPolarItemDict();
|
---|
| 36 | ~QwtPolarItemDict();
|
---|
| 37 |
|
---|
| 38 | void setAutoDelete( bool );
|
---|
| 39 | bool autoDelete() const;
|
---|
| 40 |
|
---|
| 41 | const QwtPolarItemList& itemList() const;
|
---|
| 42 |
|
---|
| 43 | void detachItems( int rtti = QwtPolarItem::Rtti_PolarItem,
|
---|
| 44 | bool autoDelete = true );
|
---|
| 45 |
|
---|
[8127] | 46 | protected:
|
---|
| 47 | void insertItem( QwtPolarItem * );
|
---|
| 48 | void removeItem( QwtPolarItem * );
|
---|
| 49 |
|
---|
[4272] | 50 | private:
|
---|
| 51 | class PrivateData;
|
---|
| 52 | PrivateData *d_data;
|
---|
| 53 | };
|
---|
| 54 |
|
---|
| 55 | #endif
|
---|