source: ntrip/trunk/BNC/qwt/qwt_plot_dict.h@ 10269

Last change on this file since 10269 was 8127, checked in by stoecker, 7 years ago

update qwt and qwtpolar, many QT5 fixes (unfinished)

File size: 1.6 KB
Line 
1/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10/*! \file !*/
11#ifndef QWT_PLOT_DICT
12#define QWT_PLOT_DICT
13
14#include "qwt_global.h"
15#include "qwt_plot_item.h"
16#include <qlist.h>
17
18/// \var typedef QList< QwtPlotItem *> QwtPlotItemList
19/// \brief See QT 4.x assistant documentation for QList
20typedef QList<QwtPlotItem *> QwtPlotItemList;
21typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator;
22
23/*!
24 \brief A dictionary for plot items
25
26 QwtPlotDict organizes 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 QwtPlotDict can be used to get access to all QwtPlotItem items - or all
30 items of a specific type - that are currently on the plot.
31
32 \sa QwtPlotItem::attach(), QwtPlotItem::detach(), QwtPlotItem::z()
33*/
34class QWT_EXPORT QwtPlotDict
35{
36public:
37 explicit QwtPlotDict();
38 virtual ~QwtPlotDict();
39
40 void setAutoDelete( bool );
41 bool autoDelete() const;
42
43 const QwtPlotItemList& itemList() const;
44 QwtPlotItemList itemList( int rtti ) const;
45
46 void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem,
47 bool autoDelete = true );
48
49protected:
50 void insertItem( QwtPlotItem * );
51 void removeItem( QwtPlotItem * );
52
53private:
54 class PrivateData;
55 PrivateData *d_data;
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.