1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtLegend Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtLegend Class Reference</h1><!-- doxytag: class="QwtLegend" --><a href="class_qwt_legend-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
25
The <a class="el" href="class_qwt_legend.html">QwtLegend</a> widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a <a class="el" href="class_qwt_legend_item.html">QwtLegendItem</a>.<p>
26
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html">QwtLegendItem</a>, <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> <a class="el" href="class_qwt_plot.html">QwtPlot</a> </dd></dl>
31
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00036">36</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.<table border="0" cellpadding="0" cellspacing="0">
33
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
34
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> { <br>
35
<b>NoIdentifier</b> = 0,
37
<b>FixedIdentifier</b> = 1,
39
<b>AutoIdentifier</b> = 2
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#b216dd2dba9ebf6cb0ed2dd621a652e0">LegendItemMode</a> { <br>
44
<b>ReadOnlyItem</b>,
46
<b>ClickableItem</b>,
48
<b>CheckableItem</b>
52
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#df5a64070a546eaac36fc9afac56b7fb">QwtLegend</a> (QWidget *parent=NULL)</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#2dd3bc628652909b74e7ddb5db021ea5">~QwtLegend</a> ()</td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#37846930eba18ab0d9490a7425ef08d8">setDisplayPolicy</a> (<a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> policy, int mode)</td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#60873718e29ae36f9b401b11da67e203">displayPolicy</a> () const</td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="edd86919e56a407bcdd2ae867a672dd1"></a><!-- doxytag: member="QwtLegend::setItemMode" ref="edd86919e56a407bcdd2ae867a672dd1" args="(LegendItemMode)" -->
62
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#edd86919e56a407bcdd2ae867a672dd1">setItemMode</a> (<a class="el" href="class_qwt_legend.html#b216dd2dba9ebf6cb0ed2dd621a652e0">LegendItemMode</a>)</td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f3c8c317c6233654b99ed6d4243a55a5"></a><!-- doxytag: member="QwtLegend::itemMode" ref="f3c8c317c6233654b99ed6d4243a55a5" args="() const" -->
65
<a class="el" href="class_qwt_legend.html#b216dd2dba9ebf6cb0ed2dd621a652e0">LegendItemMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#f3c8c317c6233654b99ed6d4243a55a5">itemMode</a> () const</td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#3e5214dfc996d687ebe7bbd9f8f54459">identifierMode</a> () const</td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a52edeceb553ae703516c984f34d7ab7">contentsWidget</a> ()</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#66934c7b4b45c0213fa4cf6fa9e53943">contentsWidget</a> () const</td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#f736d6053c6e891ad4579aa83b1a705d">insert</a> (const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *, QWidget *)</td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#562535312e3d65616bc63d35a2ec5b7b">remove</a> (const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *)</td></tr>
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ac522d61f5b3e6864d3e0083da52b83c">find</a> (const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *) const</td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#efc3a36bedcc83e683bbfb767a471515">find</a> (const QWidget *) const</td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5874b47de81e98d771446ecfe71fd2f7"></a><!-- doxytag: member="QwtLegend::legendItems" ref="5874b47de81e98d771446ecfe71fd2f7" args="() const" -->
82
virtual QList< QWidget * > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#5874b47de81e98d771446ecfe71fd2f7">legendItems</a> () const</td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#084177665b32798903176de57d962c6e">clear</a> ()</td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ced18eb9dc01af9f89da7e52491a9ee1">isEmpty</a> () const</td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#580d8abc257e4d44c969e8623f0b923e">itemCount</a> () const</td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de86e158b8254fe76d42e85f9808c827"></a><!-- doxytag: member="QwtLegend::eventFilter" ref="de86e158b8254fe76d42e85f9808c827" args="(QObject *, QEvent *)" -->
91
virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#de86e158b8254fe76d42e85f9808c827">eventFilter</a> (QObject *, QEvent *)</td></tr>
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#e8a77d6e9fce19066d9ff7a77bdb5eff">sizeHint</a> () const</td></tr>
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ca45d07d5a22984cde5dd83f08213133">heightForWidth</a> (int w) const</td></tr>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e2babbf9e2f0df29f07bdb9230b82d"></a><!-- doxytag: member="QwtLegend::horizontalScrollBar" ref="35e2babbf9e2f0df29f07bdb9230b82d" args="() const" -->
98
QScrollBar * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar</a> () const</td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2e567054b220ba850e4c1b7800a2ad82"></a><!-- doxytag: member="QwtLegend::verticalScrollBar" ref="2e567054b220ba850e4c1b7800a2ad82" args="() const" -->
101
QScrollBar * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar</a> () const</td></tr>
103
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#17c7054748f953e6e315068d7f6b39be">resizeEvent</a> (QResizeEvent *)</td></tr>
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#c44118481db62143950a7c74bc2832ab">layoutContents</a> ()</td></tr>
109
<hr><h2>Member Enumeration Documentation</h2>
110
<a class="anchor" name="898db0483371da91c694c34502f09ecd"></a><!-- doxytag: member="QwtLegend::LegendDisplayPolicy" ref="898db0483371da91c694c34502f09ecd" args="" -->
111
<div class="memitem">
112
<div class="memproto">
113
<table class="memname">
115
<td class="memname">enum <a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">QwtLegend::LegendDisplayPolicy</a> </td>
126
The client code is responsible how to display of each legend item. The Qwt library will not interfere.</li></ul>
129
<li>FixedIdentifier<br>
130
All legend items are displayed with the <a class="el" href="class_qwt_legend_item.html#9f84379e79c1856a6bd4970a719d97bd">QwtLegendItem::IdentifierMode</a> to be passed in 'mode'.</li></ul>
133
<li>AutoIdentifier<br>
134
Each legend item is displayed with a mode that is a bitwise or of<ul>
135
<li>QwtLegendItem::ShowLine (if its curve is drawn with a line) and</li><li>QwtLegendItem::ShowSymbol (if its curve is drawn with symbols) and</li><li>QwtLegendItem::ShowText (if the has a title).</li></ul>
138
Default is AutoIdentifier. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#37846930eba18ab0d9490a7425ef08d8">setDisplayPolicy()</a>, <a class="el" href="class_qwt_legend.html#60873718e29ae36f9b401b11da67e203">displayPolicy()</a>, <a class="el" href="class_qwt_legend_item.html#9f84379e79c1856a6bd4970a719d97bd">QwtLegendItem::IdentifierMode</a> </dd></dl>
141
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00062">62</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.
144
<a class="anchor" name="b216dd2dba9ebf6cb0ed2dd621a652e0"></a><!-- doxytag: member="QwtLegend::LegendItemMode" ref="b216dd2dba9ebf6cb0ed2dd621a652e0" args="" -->
145
<div class="memitem">
146
<div class="memproto">
147
<table class="memname">
149
<td class="memname">enum <a class="el" href="class_qwt_legend.html#b216dd2dba9ebf6cb0ed2dd621a652e0">QwtLegend::LegendItemMode</a> </td>
156
Interaction mode for the legend items.
160
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00070">70</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.
163
<hr><h2>Constructor & Destructor Documentation</h2>
164
<a class="anchor" name="df5a64070a546eaac36fc9afac56b7fb"></a><!-- doxytag: member="QwtLegend::QwtLegend" ref="df5a64070a546eaac36fc9afac56b7fb" args="(QWidget *parent=NULL)" -->
165
<div class="memitem">
166
<div class="memproto">
167
<table class="memname">
169
<td class="memname">QwtLegend::QwtLegend </td>
171
<td class="paramtype">QWidget * </td>
172
<td class="paramname"> <em>parent</em> = <code>NULL</code> </td>
173
<td> ) </td>
174
<td width="100%"><code> [explicit]</code></td>
181
<dl compact><dt><b>Parameters:</b></dt><dd>
182
<table border="0" cellspacing="2" cellpadding="0">
183
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Parent widget </td></tr>
188
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00258">258</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
191
<a class="anchor" name="2dd3bc628652909b74e7ddb5db021ea5"></a><!-- doxytag: member="QwtLegend::~QwtLegend" ref="2dd3bc628652909b74e7ddb5db021ea5" args="()" -->
192
<div class="memitem">
193
<div class="memproto">
194
<table class="memname">
196
<td class="memname">QwtLegend::~QwtLegend </td>
198
<td class="paramname"> </td>
199
<td> ) </td>
200
<td width="100%"><code> [virtual]</code></td>
211
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00283">283</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
214
<hr><h2>Member Function Documentation</h2>
215
<a class="anchor" name="37846930eba18ab0d9490a7425ef08d8"></a><!-- doxytag: member="QwtLegend::setDisplayPolicy" ref="37846930eba18ab0d9490a7425ef08d8" args="(LegendDisplayPolicy policy, int mode)" -->
216
<div class="memitem">
217
<div class="memproto">
218
<table class="memname">
220
<td class="memname">void QwtLegend::setDisplayPolicy </td>
222
<td class="paramtype"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> </td>
223
<td class="paramname"> <em>policy</em>, </td>
226
<td class="paramkey"></td>
228
<td class="paramtype">int </td>
229
<td class="paramname"> <em>mode</em></td><td> </td>
234
<td></td><td></td><td width="100%"></td>
241
Set the legend display policy to:<p>
242
<dl compact><dt><b>Parameters:</b></dt><dd>
243
<table border="0" cellspacing="2" cellpadding="0">
244
<tr><td valign="top"></td><td valign="top"><em>policy</em> </td><td>Legend display policy </td></tr>
245
<tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>Identifier mode (or'd ShowLine, ShowSymbol, ShowText)</td></tr>
248
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#60873718e29ae36f9b401b11da67e203">displayPolicy</a>, <a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> </dd></dl>
251
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00296">296</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
253
References QwtLegendItemManager::updateLegend().
256
<a class="anchor" name="60873718e29ae36f9b401b11da67e203"></a><!-- doxytag: member="QwtLegend::displayPolicy" ref="60873718e29ae36f9b401b11da67e203" args="() const" -->
257
<div class="memitem">
258
<div class="memproto">
259
<table class="memname">
261
<td class="memname"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">QwtLegend::LegendDisplayPolicy</a> QwtLegend::displayPolicy </td>
263
<td class="paramname"> </td>
264
<td> ) </td>
265
<td width="100%"> const</td>
272
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the legend display policy. Default is LegendDisplayPolicy::Auto. </dd></dl>
273
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#37846930eba18ab0d9490a7425ef08d8">setDisplayPolicy</a>, <a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> </dd></dl>
276
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00324">324</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
278
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01367">QwtPlotCurve::updateLegend()</a>.
281
<a class="anchor" name="3e5214dfc996d687ebe7bbd9f8f54459"></a><!-- doxytag: member="QwtLegend::identifierMode" ref="3e5214dfc996d687ebe7bbd9f8f54459" args="() const" -->
282
<div class="memitem">
283
<div class="memproto">
284
<table class="memname">
286
<td class="memname">int QwtLegend::identifierMode </td>
288
<td class="paramname"> </td>
289
<td> ) </td>
290
<td width="100%"> const</td>
297
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed.</dd></dl>
298
Default is ShowLine | ShowSymbol | ShowText.
300
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00346">346</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
302
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01367">QwtPlotCurve::updateLegend()</a>.
305
<a class="anchor" name="a52edeceb553ae703516c984f34d7ab7"></a><!-- doxytag: member="QwtLegend::contentsWidget" ref="a52edeceb553ae703516c984f34d7ab7" args="()" -->
306
<div class="memitem">
307
<div class="memproto">
308
<table class="memname">
310
<td class="memname">QWidget * QwtLegend::contentsWidget </td>
312
<td class="paramname"> </td>
313
<td> ) </td>
314
<td width="100%"></td>
321
The contents widget is the only child of the viewport() and the parent widget of all legend items.
323
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00355">355</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
325
Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00386">insert()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00282">QwtPlot::printLegend()</a>.
328
<a class="anchor" name="66934c7b4b45c0213fa4cf6fa9e53943"></a><!-- doxytag: member="QwtLegend::contentsWidget" ref="66934c7b4b45c0213fa4cf6fa9e53943" args="() const" -->
329
<div class="memitem">
330
<div class="memproto">
331
<table class="memname">
333
<td class="memname">const QWidget * QwtLegend::contentsWidget </td>
335
<td class="paramname"> </td>
336
<td> ) </td>
337
<td width="100%"> const</td>
344
The contents widget is the only child of the viewport() and the parent widget of all legend items.
346
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00375">375</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
349
<a class="anchor" name="f736d6053c6e891ad4579aa83b1a705d"></a><!-- doxytag: member="QwtLegend::insert" ref="f736d6053c6e891ad4579aa83b1a705d" args="(const QwtLegendItemManager *, QWidget *)" -->
350
<div class="memitem">
351
<div class="memproto">
352
<table class="memname">
354
<td class="memname">void QwtLegend::insert </td>
356
<td class="paramtype">const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> * </td>
357
<td class="paramname"> <em>plotItem</em>, </td>
360
<td class="paramkey"></td>
362
<td class="paramtype">QWidget * </td>
363
<td class="paramname"> <em>legendItem</em></td><td> </td>
368
<td></td><td></td><td width="100%"></td>
375
Insert a new item for a plot item <dl compact><dt><b>Parameters:</b></dt><dd>
376
<table border="0" cellspacing="2" cellpadding="0">
377
<tr><td valign="top"></td><td valign="top"><em>plotItem</em> </td><td>Plot item </td></tr>
378
<tr><td valign="top"></td><td valign="top"><em>legendItem</em> </td><td>New legend item </td></tr>
381
<dl class="note" compact><dt><b>Note:</b></dt><dd>The parent of item will be changed to <a class="el" href="class_qwt_legend.html#a52edeceb553ae703516c984f34d7ab7">QwtLegend::contentsWidget()</a> </dd></dl>
384
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00386">386</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
386
References <a class="el" href="qwt__legend_8cpp-source.html#l00355">contentsWidget()</a>, and <a class="el" href="qwt__legend_8cpp-source.html#l00543">layoutContents()</a>.
388
Referenced by <a class="el" href="qwt__plot__item_8cpp-source.html#l00420">QwtPlotItem::updateLegend()</a>.
391
<a class="anchor" name="562535312e3d65616bc63d35a2ec5b7b"></a><!-- doxytag: member="QwtLegend::remove" ref="562535312e3d65616bc63d35a2ec5b7b" args="(const QwtLegendItemManager *)" -->
392
<div class="memitem">
393
<div class="memproto">
394
<table class="memname">
396
<td class="memname">void QwtLegend::remove </td>
398
<td class="paramtype">const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> * </td>
399
<td class="paramname"> <em>plotItem</em> </td>
400
<td> ) </td>
401
<td width="100%"></td>
408
Find the corresponding item for a plotItem and remove it from the item list.<p>
409
<dl compact><dt><b>Parameters:</b></dt><dd>
410
<table border="0" cellspacing="2" cellpadding="0">
411
<tr><td valign="top"></td><td valign="top"><em>plotItem</em> </td><td>Plot item </td></tr>
416
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00482">482</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
419
<a class="anchor" name="ac522d61f5b3e6864d3e0083da52b83c"></a><!-- doxytag: member="QwtLegend::find" ref="ac522d61f5b3e6864d3e0083da52b83c" args="(const QwtLegendItemManager *) const" -->
420
<div class="memitem">
421
<div class="memproto">
422
<table class="memname">
424
<td class="memname">QWidget * QwtLegend::find </td>
426
<td class="paramtype">const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> * </td>
427
<td class="paramname"> <em>plotItem</em> </td>
428
<td> ) </td>
429
<td width="100%"> const</td>
436
Find the widget that represents a plot item<p>
437
<dl compact><dt><b>Parameters:</b></dt><dd>
438
<table border="0" cellspacing="2" cellpadding="0">
439
<tr><td valign="top"></td><td valign="top"><em>plotItem</em> </td><td>Plot item </td></tr>
442
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Widget on the legend, or NULL </dd></dl>
445
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00460">460</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
447
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00366">QwtPlotPrintFilter::reset()</a>, <a class="el" href="qwt__plot__item_8cpp-source.html#l00420">QwtPlotItem::updateLegend()</a>, and <a class="el" href="qwt__plot__curve_8cpp-source.html#l01367">QwtPlotCurve::updateLegend()</a>.
450
<a class="anchor" name="efc3a36bedcc83e683bbfb767a471515"></a><!-- doxytag: member="QwtLegend::find" ref="efc3a36bedcc83e683bbfb767a471515" args="(const QWidget *) const" -->
451
<div class="memitem">
452
<div class="memproto">
453
<table class="memname">
455
<td class="memname"><a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> * QwtLegend::find </td>
457
<td class="paramtype">const QWidget * </td>
458
<td class="paramname"> <em>legendItem</em> </td>
459
<td> ) </td>
460
<td width="100%"> const</td>
467
Find the widget that represents a plot item<p>
468
<dl compact><dt><b>Parameters:</b></dt><dd>
469
<table border="0" cellspacing="2" cellpadding="0">
470
<tr><td valign="top"></td><td valign="top"><em>plotItem</em> </td><td>Plot item </td></tr>
473
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Widget on the legend, or NULL </dd></dl>
476
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00471">471</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
479
<a class="anchor" name="084177665b32798903176de57d962c6e"></a><!-- doxytag: member="QwtLegend::clear" ref="084177665b32798903176de57d962c6e" args="()" -->
480
<div class="memitem">
481
<div class="memproto">
482
<table class="memname">
484
<td class="memname">void QwtLegend::clear </td>
486
<td class="paramname"> </td>
487
<td> ) </td>
488
<td width="100%"></td>
499
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00490">490</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
502
<a class="anchor" name="ced18eb9dc01af9f89da7e52491a9ee1"></a><!-- doxytag: member="QwtLegend::isEmpty" ref="ced18eb9dc01af9f89da7e52491a9ee1" args="() const" -->
503
<div class="memitem">
504
<div class="memproto">
505
<table class="memname">
507
<td class="memname">bool QwtLegend::isEmpty </td>
509
<td class="paramname"> </td>
510
<td> ) </td>
511
<td width="100%"> const</td>
518
Return true, if there are no legend items.
522
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00617">617</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
524
Referenced by <a class="el" href="qwt__plot__layout_8cpp-source.html#l01041">QwtPlotLayout::activate()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00073">QwtPlot::print()</a>.
527
<a class="anchor" name="580d8abc257e4d44c969e8623f0b923e"></a><!-- doxytag: member="QwtLegend::itemCount" ref="580d8abc257e4d44c969e8623f0b923e" args="() const" -->
528
<div class="memitem">
529
<div class="memproto">
530
<table class="memname">
532
<td class="memname">uint QwtLegend::itemCount </td>
534
<td class="paramname"> </td>
535
<td> ) </td>
536
<td width="100%"> const</td>
543
Return the number of legend items.
547
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00623">623</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
550
<a class="anchor" name="e8a77d6e9fce19066d9ff7a77bdb5eff"></a><!-- doxytag: member="QwtLegend::sizeHint" ref="e8a77d6e9fce19066d9ff7a77bdb5eff" args="() const" -->
551
<div class="memitem">
552
<div class="memproto">
553
<table class="memname">
555
<td class="memname">QSize QwtLegend::sizeHint </td>
557
<td class="paramname"> </td>
558
<td> ) </td>
559
<td width="100%"> const<code> [virtual]</code></td>
570
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00506">506</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
573
<a class="anchor" name="ca45d07d5a22984cde5dd83f08213133"></a><!-- doxytag: member="QwtLegend::heightForWidth" ref="ca45d07d5a22984cde5dd83f08213133" args="(int w) const" -->
574
<div class="memitem">
575
<div class="memproto">
576
<table class="memname">
578
<td class="memname">int QwtLegend::heightForWidth </td>
580
<td class="paramtype">int </td>
581
<td class="paramname"> <em>width</em> </td>
582
<td> ) </td>
583
<td width="100%"> const<code> [virtual]</code></td>
590
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The preferred height, for the width w. </dd></dl>
591
<dl compact><dt><b>Parameters:</b></dt><dd>
592
<table border="0" cellspacing="2" cellpadding="0">
593
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width </td></tr>
598
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00518">518</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
601
<a class="anchor" name="17c7054748f953e6e315068d7f6b39be"></a><!-- doxytag: member="QwtLegend::resizeEvent" ref="17c7054748f953e6e315068d7f6b39be" args="(QResizeEvent *)" -->
602
<div class="memitem">
603
<div class="memproto">
604
<table class="memname">
606
<td class="memname">void QwtLegend::resizeEvent </td>
608
<td class="paramtype">QResizeEvent * </td>
609
<td class="paramname"> <em>e</em> </td>
610
<td> ) </td>
611
<td width="100%"><code> [protected, virtual]</code></td>
618
Resize event <dl compact><dt><b>Parameters:</b></dt><dd>
619
<table border="0" cellspacing="2" cellpadding="0">
620
<tr><td valign="top"></td><td valign="top"><em>e</em> </td><td>Event </td></tr>
625
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00654">654</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
628
<a class="anchor" name="c44118481db62143950a7c74bc2832ab"></a><!-- doxytag: member="QwtLegend::layoutContents" ref="c44118481db62143950a7c74bc2832ab" args="()" -->
629
<div class="memitem">
630
<div class="memproto">
631
<table class="memname">
633
<td class="memname">void QwtLegend::layoutContents </td>
635
<td class="paramname"> </td>
636
<td> ) </td>
637
<td width="100%"><code> [protected, virtual]</code></td>
644
Adjust contents widget and item layout to the size of the viewport().
646
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00543">543</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
648
Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00578">eventFilter()</a>, and <a class="el" href="qwt__legend_8cpp-source.html#l00386">insert()</a>.
651
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:34 2009 for Qwt User's Guide by
652
<a href="http://www.doxygen.org/index.html">
653
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>