~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.2/doc/html/class_qwt_legend.html

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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&apos;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">
 
6
</head><body>
 
7
<!-- Generated by Doxygen 1.5.0 -->
 
8
<div class="tabs">
 
9
  <ul>
 
10
    <li><a href="index.html"><span>Main&nbsp;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&nbsp;Pages</span></a></li>
 
14
  </ul></div>
 
15
<div class="tabs">
 
16
  <ul>
 
17
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
 
18
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 
19
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
 
20
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 
21
  </ul></div>
 
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>
 
23
The legend widget. 
 
24
<p>
 
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>
 
27
 
 
28
<p>
 
29
 
 
30
<p>
 
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">
 
32
<tr><td></td></tr>
 
33
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
 
34
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> { <br>
 
35
&nbsp;&nbsp;<b>NoIdentifier</b> =  0, 
 
36
<br>
 
37
&nbsp;&nbsp;<b>FixedIdentifier</b> =  1, 
 
38
<br>
 
39
&nbsp;&nbsp;<b>AutoIdentifier</b> =  2
 
40
<br>
 
41
 }</td></tr>
 
42
 
 
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#b216dd2dba9ebf6cb0ed2dd621a652e0">LegendItemMode</a> { <br>
 
44
&nbsp;&nbsp;<b>ReadOnlyItem</b>, 
 
45
<br>
 
46
&nbsp;&nbsp;<b>ClickableItem</b>, 
 
47
<br>
 
48
&nbsp;&nbsp;<b>CheckableItem</b>
 
49
<br>
 
50
 }</td></tr>
 
51
 
 
52
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#df5a64070a546eaac36fc9afac56b7fb">QwtLegend</a> (QWidget *parent=NULL)</td></tr>
 
54
 
 
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#2dd3bc628652909b74e7ddb5db021ea5">~QwtLegend</a> ()</td></tr>
 
56
 
 
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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>
 
58
 
 
59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#60873718e29ae36f9b401b11da67e203">displayPolicy</a> () const</td></tr>
 
60
 
 
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&nbsp;</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>
 
63
 
 
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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#f3c8c317c6233654b99ed6d4243a55a5">itemMode</a> () const</td></tr>
 
66
 
 
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#3e5214dfc996d687ebe7bbd9f8f54459">identifierMode</a> () const</td></tr>
 
68
 
 
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">QWidget *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a52edeceb553ae703516c984f34d7ab7">contentsWidget</a> ()</td></tr>
 
70
 
 
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QWidget *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#66934c7b4b45c0213fa4cf6fa9e53943">contentsWidget</a> () const</td></tr>
 
72
 
 
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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>
 
74
 
 
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</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>
 
76
 
 
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">QWidget *&nbsp;</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>
 
78
 
 
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#efc3a36bedcc83e683bbfb767a471515">find</a> (const QWidget *) const</td></tr>
 
80
 
 
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&lt; QWidget * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#5874b47de81e98d771446ecfe71fd2f7">legendItems</a> () const</td></tr>
 
83
 
 
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#084177665b32798903176de57d962c6e">clear</a> ()</td></tr>
 
85
 
 
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ced18eb9dc01af9f89da7e52491a9ee1">isEmpty</a> () const</td></tr>
 
87
 
 
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#580d8abc257e4d44c969e8623f0b923e">itemCount</a> () const</td></tr>
 
89
 
 
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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#de86e158b8254fe76d42e85f9808c827">eventFilter</a> (QObject *, QEvent *)</td></tr>
 
92
 
 
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#e8a77d6e9fce19066d9ff7a77bdb5eff">sizeHint</a> () const</td></tr>
 
94
 
 
95
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ca45d07d5a22984cde5dd83f08213133">heightForWidth</a> (int w) const</td></tr>
 
96
 
 
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 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar</a> () const</td></tr>
 
99
 
 
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 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar</a> () const</td></tr>
 
102
 
 
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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#17c7054748f953e6e315068d7f6b39be">resizeEvent</a> (QResizeEvent *)</td></tr>
 
105
 
 
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#c44118481db62143950a7c74bc2832ab">layoutContents</a> ()</td></tr>
 
107
 
 
108
</table>
 
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">
 
114
        <tr>
 
115
          <td class="memname">enum <a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">QwtLegend::LegendDisplayPolicy</a>          </td>
 
116
        </tr>
 
117
      </table>
 
118
</div>
 
119
<div class="memdoc">
 
120
 
 
121
<p>
 
122
Display policy. 
 
123
<p>
 
124
<ul>
 
125
<li>NoIdentifier<br>
 
126
 The client code is responsible how to display of each legend item. The Qwt library will not interfere.</li></ul>
 
127
<p>
 
128
<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>
 
131
<p>
 
132
<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>
 
136
</li></ul>
 
137
<p>
 
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>
 
139
 
 
140
<p>
 
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>.
 
142
</div>
 
143
</div><p>
 
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">
 
148
        <tr>
 
149
          <td class="memname">enum <a class="el" href="class_qwt_legend.html#b216dd2dba9ebf6cb0ed2dd621a652e0">QwtLegend::LegendItemMode</a>          </td>
 
150
        </tr>
 
151
      </table>
 
152
</div>
 
153
<div class="memdoc">
 
154
 
 
155
<p>
 
156
Interaction mode for the legend items. 
 
157
<p>
 
158
 
 
159
<p>
 
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>.
 
161
</div>
 
162
</div><p>
 
163
<hr><h2>Constructor &amp; 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">
 
168
        <tr>
 
169
          <td class="memname">QwtLegend::QwtLegend           </td>
 
170
          <td>(</td>
 
171
          <td class="paramtype">QWidget *&nbsp;</td>
 
172
          <td class="paramname"> <em>parent</em> = <code>NULL</code>          </td>
 
173
          <td>&nbsp;)&nbsp;</td>
 
174
          <td width="100%"><code> [explicit]</code></td>
 
175
        </tr>
 
176
      </table>
 
177
</div>
 
178
<div class="memdoc">
 
179
 
 
180
<p>
 
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>&nbsp;</td><td>Parent widget </td></tr>
 
184
  </table>
 
185
</dl>
 
186
 
 
187
<p>
 
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>.
 
189
</div>
 
190
</div><p>
 
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">
 
195
        <tr>
 
196
          <td class="memname">QwtLegend::~QwtLegend           </td>
 
197
          <td>(</td>
 
198
          <td class="paramname">          </td>
 
199
          <td>&nbsp;)&nbsp;</td>
 
200
          <td width="100%"><code> [virtual]</code></td>
 
201
        </tr>
 
202
      </table>
 
203
</div>
 
204
<div class="memdoc">
 
205
 
 
206
<p>
 
207
Destructor. 
 
208
<p>
 
209
 
 
210
<p>
 
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>.
 
212
</div>
 
213
</div><p>
 
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">
 
219
        <tr>
 
220
          <td class="memname">void QwtLegend::setDisplayPolicy           </td>
 
221
          <td>(</td>
 
222
          <td class="paramtype"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a>&nbsp;</td>
 
223
          <td class="paramname"> <em>policy</em>, </td>
 
224
        </tr>
 
225
        <tr>
 
226
          <td class="paramkey"></td>
 
227
          <td></td>
 
228
          <td class="paramtype">int&nbsp;</td>
 
229
          <td class="paramname"> <em>mode</em></td><td>&nbsp;</td>
 
230
        </tr>
 
231
        <tr>
 
232
          <td></td>
 
233
          <td>)</td>
 
234
          <td></td><td></td><td width="100%"></td>
 
235
        </tr>
 
236
      </table>
 
237
</div>
 
238
<div class="memdoc">
 
239
 
 
240
<p>
 
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>&nbsp;</td><td>Legend display policy </td></tr>
 
245
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>Identifier mode (or'd ShowLine, ShowSymbol, ShowText)</td></tr>
 
246
  </table>
 
247
</dl>
 
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>
 
249
 
 
250
<p>
 
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>.
 
252
<p>
 
253
References QwtLegendItemManager::updateLegend().
 
254
</div>
 
255
</div><p>
 
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">
 
260
        <tr>
 
261
          <td class="memname"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">QwtLegend::LegendDisplayPolicy</a> QwtLegend::displayPolicy           </td>
 
262
          <td>(</td>
 
263
          <td class="paramname">          </td>
 
264
          <td>&nbsp;)&nbsp;</td>
 
265
          <td width="100%"> const</td>
 
266
        </tr>
 
267
      </table>
 
268
</div>
 
269
<div class="memdoc">
 
270
 
 
271
<p>
 
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>
 
274
 
 
275
<p>
 
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>.
 
277
<p>
 
278
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01367">QwtPlotCurve::updateLegend()</a>.
 
279
</div>
 
280
</div><p>
 
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">
 
285
        <tr>
 
286
          <td class="memname">int QwtLegend::identifierMode           </td>
 
287
          <td>(</td>
 
288
          <td class="paramname">          </td>
 
289
          <td>&nbsp;)&nbsp;</td>
 
290
          <td width="100%"> const</td>
 
291
        </tr>
 
292
      </table>
 
293
</div>
 
294
<div class="memdoc">
 
295
 
 
296
<p>
 
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. 
 
299
<p>
 
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>.
 
301
<p>
 
302
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01367">QwtPlotCurve::updateLegend()</a>.
 
303
</div>
 
304
</div><p>
 
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">
 
309
        <tr>
 
310
          <td class="memname">QWidget * QwtLegend::contentsWidget           </td>
 
311
          <td>(</td>
 
312
          <td class="paramname">          </td>
 
313
          <td>&nbsp;)&nbsp;</td>
 
314
          <td width="100%"></td>
 
315
        </tr>
 
316
      </table>
 
317
</div>
 
318
<div class="memdoc">
 
319
 
 
320
<p>
 
321
The contents widget is the only child of the viewport() and the parent widget of all legend items. 
 
322
<p>
 
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>.
 
324
<p>
 
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>.
 
326
</div>
 
327
</div><p>
 
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">
 
332
        <tr>
 
333
          <td class="memname">const QWidget * QwtLegend::contentsWidget           </td>
 
334
          <td>(</td>
 
335
          <td class="paramname">          </td>
 
336
          <td>&nbsp;)&nbsp;</td>
 
337
          <td width="100%"> const</td>
 
338
        </tr>
 
339
      </table>
 
340
</div>
 
341
<div class="memdoc">
 
342
 
 
343
<p>
 
344
The contents widget is the only child of the viewport() and the parent widget of all legend items. 
 
345
<p>
 
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>.
 
347
</div>
 
348
</div><p>
 
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">
 
353
        <tr>
 
354
          <td class="memname">void QwtLegend::insert           </td>
 
355
          <td>(</td>
 
356
          <td class="paramtype">const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *&nbsp;</td>
 
357
          <td class="paramname"> <em>plotItem</em>, </td>
 
358
        </tr>
 
359
        <tr>
 
360
          <td class="paramkey"></td>
 
361
          <td></td>
 
362
          <td class="paramtype">QWidget *&nbsp;</td>
 
363
          <td class="paramname"> <em>legendItem</em></td><td>&nbsp;</td>
 
364
        </tr>
 
365
        <tr>
 
366
          <td></td>
 
367
          <td>)</td>
 
368
          <td></td><td></td><td width="100%"></td>
 
369
        </tr>
 
370
      </table>
 
371
</div>
 
372
<div class="memdoc">
 
373
 
 
374
<p>
 
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>&nbsp;</td><td>Plot item </td></tr>
 
378
    <tr><td valign="top"></td><td valign="top"><em>legendItem</em>&nbsp;</td><td>New legend item </td></tr>
 
379
  </table>
 
380
</dl>
 
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>
 
382
 
 
383
<p>
 
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>.
 
385
<p>
 
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>.
 
387
<p>
 
388
Referenced by <a class="el" href="qwt__plot__item_8cpp-source.html#l00420">QwtPlotItem::updateLegend()</a>.
 
389
</div>
 
390
</div><p>
 
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">
 
395
        <tr>
 
396
          <td class="memname">void QwtLegend::remove           </td>
 
397
          <td>(</td>
 
398
          <td class="paramtype">const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *&nbsp;</td>
 
399
          <td class="paramname"> <em>plotItem</em>          </td>
 
400
          <td>&nbsp;)&nbsp;</td>
 
401
          <td width="100%"></td>
 
402
        </tr>
 
403
      </table>
 
404
</div>
 
405
<div class="memdoc">
 
406
 
 
407
<p>
 
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>&nbsp;</td><td>Plot item </td></tr>
 
412
  </table>
 
413
</dl>
 
414
 
 
415
<p>
 
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>.
 
417
</div>
 
418
</div><p>
 
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">
 
423
        <tr>
 
424
          <td class="memname">QWidget * QwtLegend::find           </td>
 
425
          <td>(</td>
 
426
          <td class="paramtype">const <a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> *&nbsp;</td>
 
427
          <td class="paramname"> <em>plotItem</em>          </td>
 
428
          <td>&nbsp;)&nbsp;</td>
 
429
          <td width="100%"> const</td>
 
430
        </tr>
 
431
      </table>
 
432
</div>
 
433
<div class="memdoc">
 
434
 
 
435
<p>
 
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>&nbsp;</td><td>Plot item </td></tr>
 
440
  </table>
 
441
</dl>
 
442
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Widget on the legend, or NULL </dd></dl>
 
443
 
 
444
<p>
 
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>.
 
446
<p>
 
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>.
 
448
</div>
 
449
</div><p>
 
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">
 
454
        <tr>
 
455
          <td class="memname"><a class="el" href="class_qwt_legend_item_manager.html">QwtLegendItemManager</a> * QwtLegend::find           </td>
 
456
          <td>(</td>
 
457
          <td class="paramtype">const QWidget *&nbsp;</td>
 
458
          <td class="paramname"> <em>legendItem</em>          </td>
 
459
          <td>&nbsp;)&nbsp;</td>
 
460
          <td width="100%"> const</td>
 
461
        </tr>
 
462
      </table>
 
463
</div>
 
464
<div class="memdoc">
 
465
 
 
466
<p>
 
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>&nbsp;</td><td>Plot item </td></tr>
 
471
  </table>
 
472
</dl>
 
473
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Widget on the legend, or NULL </dd></dl>
 
474
 
 
475
<p>
 
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>.
 
477
</div>
 
478
</div><p>
 
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">
 
483
        <tr>
 
484
          <td class="memname">void QwtLegend::clear           </td>
 
485
          <td>(</td>
 
486
          <td class="paramname">          </td>
 
487
          <td>&nbsp;)&nbsp;</td>
 
488
          <td width="100%"></td>
 
489
        </tr>
 
490
      </table>
 
491
</div>
 
492
<div class="memdoc">
 
493
 
 
494
<p>
 
495
Remove all items. 
 
496
<p>
 
497
 
 
498
<p>
 
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>.
 
500
</div>
 
501
</div><p>
 
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">
 
506
        <tr>
 
507
          <td class="memname">bool QwtLegend::isEmpty           </td>
 
508
          <td>(</td>
 
509
          <td class="paramname">          </td>
 
510
          <td>&nbsp;)&nbsp;</td>
 
511
          <td width="100%"> const</td>
 
512
        </tr>
 
513
      </table>
 
514
</div>
 
515
<div class="memdoc">
 
516
 
 
517
<p>
 
518
Return true, if there are no legend items. 
 
519
<p>
 
520
 
 
521
<p>
 
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>.
 
523
<p>
 
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>.
 
525
</div>
 
526
</div><p>
 
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">
 
531
        <tr>
 
532
          <td class="memname">uint QwtLegend::itemCount           </td>
 
533
          <td>(</td>
 
534
          <td class="paramname">          </td>
 
535
          <td>&nbsp;)&nbsp;</td>
 
536
          <td width="100%"> const</td>
 
537
        </tr>
 
538
      </table>
 
539
</div>
 
540
<div class="memdoc">
 
541
 
 
542
<p>
 
543
Return the number of legend items. 
 
544
<p>
 
545
 
 
546
<p>
 
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>.
 
548
</div>
 
549
</div><p>
 
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">
 
554
        <tr>
 
555
          <td class="memname">QSize QwtLegend::sizeHint           </td>
 
556
          <td>(</td>
 
557
          <td class="paramname">          </td>
 
558
          <td>&nbsp;)&nbsp;</td>
 
559
          <td width="100%"> const<code> [virtual]</code></td>
 
560
        </tr>
 
561
      </table>
 
562
</div>
 
563
<div class="memdoc">
 
564
 
 
565
<p>
 
566
Return a size hint. 
 
567
<p>
 
568
 
 
569
<p>
 
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>.
 
571
</div>
 
572
</div><p>
 
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">
 
577
        <tr>
 
578
          <td class="memname">int QwtLegend::heightForWidth           </td>
 
579
          <td>(</td>
 
580
          <td class="paramtype">int&nbsp;</td>
 
581
          <td class="paramname"> <em>width</em>          </td>
 
582
          <td>&nbsp;)&nbsp;</td>
 
583
          <td width="100%"> const<code> [virtual]</code></td>
 
584
        </tr>
 
585
      </table>
 
586
</div>
 
587
<div class="memdoc">
 
588
 
 
589
<p>
 
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>&nbsp;</td><td>Width </td></tr>
 
594
  </table>
 
595
</dl>
 
596
 
 
597
<p>
 
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>.
 
599
</div>
 
600
</div><p>
 
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">
 
605
        <tr>
 
606
          <td class="memname">void QwtLegend::resizeEvent           </td>
 
607
          <td>(</td>
 
608
          <td class="paramtype">QResizeEvent *&nbsp;</td>
 
609
          <td class="paramname"> <em>e</em>          </td>
 
610
          <td>&nbsp;)&nbsp;</td>
 
611
          <td width="100%"><code> [protected, virtual]</code></td>
 
612
        </tr>
 
613
      </table>
 
614
</div>
 
615
<div class="memdoc">
 
616
 
 
617
<p>
 
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>&nbsp;</td><td>Event </td></tr>
 
621
  </table>
 
622
</dl>
 
623
 
 
624
<p>
 
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>.
 
626
</div>
 
627
</div><p>
 
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">
 
632
        <tr>
 
633
          <td class="memname">void QwtLegend::layoutContents           </td>
 
634
          <td>(</td>
 
635
          <td class="paramname">          </td>
 
636
          <td>&nbsp;)&nbsp;</td>
 
637
          <td width="100%"><code> [protected, virtual]</code></td>
 
638
        </tr>
 
639
      </table>
 
640
</div>
 
641
<div class="memdoc">
 
642
 
 
643
<p>
 
644
Adjust contents widget and item layout to the size of the viewport(). 
 
645
<p>
 
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>.
 
647
<p>
 
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>.
 
649
</div>
 
650
</div><p>
 
651
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:34 2009 for Qwt User's Guide by&nbsp;
 
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>
 
654
</body>
 
655
</html>