Debian Codegraph @

qwt/src/qwt_polar_itemdict.h

raw symbols SCIP
1 /******************************************************************************
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 #include "qwt_global.h"
13 #include "qwt_polar_item.h"
14 #include <qlist.h>
15
16 typedef QList< QwtPolarItem* >::ConstIterator QwtPolarItemIterator;
17 typedef QList< QwtPolarItem* > QwtPolarItemList;
18
19 /*!
20 \brief A dictionary for polar plot items
21
22 QwtPolarItemDict organizes polar plot items in increasing z-order.
23 If autoDelete() is enabled, all attached items will be deleted
24 in the destructor of the dictionary.
25
26 \sa QwtPolarItem::attach(), QwtPolarItem::detach(), QwtPolarItem::z()
27 */
28 class QWT_EXPORT QwtPolarItemDict
29 {
30 public:
31 explicit QwtPolarItemDict();
32 ~QwtPolarItemDict();
33
34 void setAutoDelete( bool );
35 bool autoDelete() const;
36
37 const QwtPolarItemList& itemList() const;
38
39 void detachItems( int rtti = QwtPolarItem::Rtti_PolarItem,
40 bool autoDelete = true );
41
42 protected:
43 void insertItem( QwtPolarItem* );
44 void removeItem( QwtPolarItem* );
45
46 private:
47 class PrivateData;
48 PrivateData* m_data;
49 };
50
51 #endif