source: ntrip/trunk/BNC/qwtpolar/qwt_polar_itemdict.h@ 8109

Last change on this file since 8109 was 4272, checked in by mervart, 12 years ago
File size: 1.5 KB
Line 
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
18typedef QList<QwtPolarItem *>::ConstIterator QwtPolarItemIterator;
19/// \var typedef QList< QwtPolarItem *> QwtPolarItemList
20/// \brief See QT 4.x assistant documentation for QList
21typedef 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*/
32class QWT_POLAR_EXPORT QwtPolarItemDict
33{
34public:
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
46private:
47 friend class QwtPolarItem;
48
49 void attachItem( QwtPolarItem *, bool );
50
51 class PrivateData;
52 PrivateData *d_data;
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.