File: class_qwt_legend.html

package info (click to toggle)
libqwt 4.2.0-4.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,832 kB
  • ctags: 5,512
  • sloc: cpp: 22,973; ansic: 244; makefile: 66
file content (856 lines) | stat: -rw-r--r-- 37,774 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User&apos;s Guide: QwtLegend Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>QwtLegend Class Reference</h1><a href="class_qwt_legend-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
The legend widget. 
<p>
The QwtLegend 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_button.html">QwtLegendButton</a>.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_button.html">QwtLegendButton</a>, <a class="el" href="class_qwt_plot.html">QwtPlot</a> </dd></dl>

<p>
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00158">158</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<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#w3">LegendDisplayPolicy</a> { <br>
&nbsp;&nbsp;<b>None</b> =  0, 
<br>
&nbsp;&nbsp;<b>Fixed</b> =  1, 
<br>
&nbsp;&nbsp;<b>Auto</b> =  2
<br>
 }</td></tr>

<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_legend.html#a0">QwtLegend</a> (QWidget *parent=0, const char *name=0)</td></tr>

<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#a1">setReadOnly</a> (bool readOnly)</td></tr>

<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#a2">isReadOnly</a> () const</td></tr>

<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#a3">setDisplayPolicy</a> (<a class="el" href="class_qwt_legend.html#w3">LegendDisplayPolicy</a> policy, int mode=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_qwt_legend.html#w3">LegendDisplayPolicy</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_legend.html#a4">displayPolicy</a> () const</td></tr>

<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#a5">identifierMode</a> () const</td></tr>

<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#a6">contentsWidget</a> ()</td></tr>

<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#a7">contentsWidget</a> () const</td></tr>

<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#a8">insertItem</a> (QWidget *, long key)</td></tr>

<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#a9">findItem</a> (long key)</td></tr>

<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#a10">findItem</a> (long key) const</td></tr>

<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#a11">takeItem</a> (long key)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual QWidgetIntDictIt&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_legend.html#a12">itemIterator</a> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_legend.html#a13">key</a> (const QWidget *) const</td></tr>

<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#a14">clear</a> ()</td></tr>

<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#a15">isEmpty</a> () const</td></tr>

<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#a16">itemCount</a> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_legend.html#a17">eventFilter</a> (QObject *, QEvent *)</td></tr>

<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#a18">sizeHint</a> () const</td></tr>

<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#a19">heightForWidth</a> (int w) const</td></tr>

<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<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#b0">viewportResizeEvent</a> (QResizeEvent *)</td></tr>

<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#b1">layoutContents</a> ()</td></tr>

</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="w3" doxytag="QwtLegend::LegendDisplayPolicy" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum <a class="el" href="class_qwt_legend.html#w3">QwtLegend::LegendDisplayPolicy</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Display policy. 
<p>
<ul>
<li>None<br>
 the client code is responsible how to display of each legend item. The Qwt library will not interfere.</li></ul>
<p>
<ul>
<li>Fixed<br>
 all legend items are displayed with the <a class="el" href="class_qwt_legend_item.html#w4">QwtLegendItem::IdentifierMode</a> to be passed in 'mode'.</li></ul>
<p>
<ul>
<li>Auto<br>
 each legend item is displayed with a mode that is a bitwise or of<ul>
<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>
</li></ul>
<p>
Default is LegendDisplayPolicy::Auto. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#a3">QwtLegend::setDisplayPolicy</a>, <a class="el" href="class_qwt_legend.html#a4">QwtLegend::displayPolicy</a>, <a class="el" href="class_qwt_legend_item.html#w4">QwtLegendItem::IdentifierMode</a> </dd></dl>
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00187">187</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.
<p>
Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00450">displayPolicy()</a>.    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="QwtLegend::QwtLegend" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> QwtLegend::QwtLegend           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">QWidget *&nbsp;</td>
          <td class="mdname" nowrap> <em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>name</em> = <code>0</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>parent</em>&nbsp;</td><td>Parent widget </td></tr>
    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>Widget name </td></tr>
  </table>
</dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00388">388</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a14" doxytag="QwtLegend::clear" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void QwtLegend::clear           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Remove all items. 
<p>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00565">565</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00932">QwtPlot::clear()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00988">QwtPlot::enableLegend()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00941">QwtPlot::removeCurves()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a7" doxytag="QwtLegend::contentsWidget" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const QWidget * QwtLegend::contentsWidget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The contents widget is the only child of the viewport() and the parent widget of all legend items. Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00481">481</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a6" doxytag="QwtLegend::contentsWidget" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> QWidget * QwtLegend::contentsWidget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The contents widget is the only child of the viewport() and the parent widget of all legend items. 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>.
<p>
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00644">QwtPlot::insertLegendItem()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00293">QwtPlot::printLegend()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l01060">QwtPlot::setLegendPosition()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00501">QwtPlot::updateTabOrder()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a4" doxytag="QwtLegend::displayPolicy" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="class_qwt_legend.html#w3">QwtLegend::LegendDisplayPolicy</a> QwtLegend::displayPolicy           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>the legend display policy. Default is LegendDisplayPolicy::Auto. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#a3">QwtLegend::setDisplayPolicy</a>, <a class="el" href="class_qwt_legend.html#w3">QwtLegend::LegendDisplayPolicy</a> </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00450">450</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
References <a class="el" href="qwt__legend_8h-source.html#l00187">LegendDisplayPolicy</a>.
<p>
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00708">QwtPlot::updateLegendItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a17" doxytag="QwtLegend::eventFilter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool QwtLegend::eventFilter           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">QObject *&nbsp;</td>
          <td class="mdname" nowrap>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>QEvent *&nbsp;</td>
          <td class="mdname" nowrap></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Event filter. 
<p>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00662">662</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
References <a class="el" href="qwt__legend_8cpp-source.html#l00553">key()</a>, <a class="el" href="qwt__legend_8cpp-source.html#l00629">layoutContents()</a>, and <a class="el" href="qwt__legend_8cpp-source.html#l00543">takeItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a10" doxytag="QwtLegend::findItem" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const QWidget * QwtLegend::findItem           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">long&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>key</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Find the item for a given key. 
<p>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00537">537</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a9" doxytag="QwtLegend::findItem" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> QWidget * QwtLegend::findItem           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">long&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>key</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Find the item for a given key. 
<p>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00531">531</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00988">QwtPlot::enableLegend()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l01037">QwtPlot::legendEnabled()</a>, <a class="el" href="qwt__plot__curve_8cpp-source.html#l00317">QwtPlot::removeCurve()</a>, and <a class="el" href="qwt__plot__curve_8cpp-source.html#l00669">QwtPlot::updateLegendItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a19" doxytag="QwtLegend::heightForWidth" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int QwtLegend::heightForWidth           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>w</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>The preferred height, for the width w. </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00608">608</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__layout_8cpp-source.html#l00395">QwtPlotLayout::minimumSizeHint()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a5" doxytag="QwtLegend::identifierMode" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int QwtLegend::identifierMode           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed.</dd></dl>
Default is ShowLine | ShowSymbol | ShowText. Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00462">462</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00708">QwtPlot::updateLegendItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a8" doxytag="QwtLegend::insertItem" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void QwtLegend::insertItem           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">QWidget *&nbsp;</td>
          <td class="mdname" nowrap> <em>item</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>long&nbsp;</td>
          <td class="mdname" nowrap> <em>key</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Insert a new item for a specific key. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>item</em>&nbsp;</td><td>New legend item </td></tr>
    <tr><td></td><td valign=top><em>key</em>&nbsp;</td><td>Unique key. Key must be &gt;= 0. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Note:</b></dt><dd>The parent of item will be changed to <a class="el" href="class_qwt_legend.html#a6">QwtLegend::contentsWidget()</a> <p>
In case of key &lt; 0, nothing will be inserted. </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00493">493</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
References <a class="el" href="qwt__legend_8cpp-source.html#l00629">layoutContents()</a>.
<p>
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00644">QwtPlot::insertLegendItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a15" doxytag="QwtLegend::isEmpty" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool QwtLegend::isEmpty           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return TRUE, if there are no legend items. 
<p>
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00239">239</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.
<p>
Referenced by <a class="el" href="qwt__plot__layout_8cpp-source.html#l00910">QwtPlotLayout::activate()</a>, <a class="el" href="qwt__plot__layout_8cpp-source.html#l00395">QwtPlotLayout::minimumSizeHint()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00095">QwtPlot::print()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00293">QwtPlot::printLegend()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="QwtLegend::isReadOnly" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool QwtLegend::isReadOnly           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
A mode telling <a class="el" href="class_qwt_plot.html">QwtPlot</a> to insert read only items <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#a1">setReadOnly</a> </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00424">424</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00644">QwtPlot::insertLegendItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a16" doxytag="QwtLegend::itemCount" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> uint QwtLegend::itemCount           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return the number of legend items. 
<p>
Definition at line <a class="el" href="qwt__legend_8h-source.html#l00245">245</a> of file <a class="el" href="qwt__legend_8h-source.html">qwt_legend.h</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00988">QwtPlot::enableLegend()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00385">QwtPlot::updateLayout()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a12" doxytag="QwtLegend::itemIterator" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> QWidgetIntDictIt QwtLegend::itemIterator           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return an item iterator. 
<p>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00591">591</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00124">QwtPlotPrintFilter::apply()</a>, and <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00284">QwtPlotPrintFilter::reset()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a13" doxytag="QwtLegend::key" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> long QwtLegend::key           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const QWidget *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>item</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return the key of an legend item. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>item</em>&nbsp;</td><td>Legend item </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>key of the item, or -1 if the item can't be found. </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00553">553</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00662">eventFilter()</a>, and <a class="el" href="qwt__plot_8cpp-source.html#l00921">QwtPlot::lgdClicked()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="b1" doxytag="QwtLegend::layoutContents" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void QwtLegend::layoutContents           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [protected, virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adjust contents widget and item layout to the size of the viewport(). Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00629">629</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
References <a class="el" href="qwt__dyngrid__layout_8cpp-source.html#l00476">QwtDynGridLayout::heightForWidth()</a>, and <a class="el" href="qwt__dyngrid__layout_8cpp-source.html#l00308">QwtDynGridLayout::maxItemWidth()</a>.
<p>
Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00662">eventFilter()</a>, and <a class="el" href="qwt__legend_8cpp-source.html#l00493">insertItem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a3" doxytag="QwtLegend::setDisplayPolicy" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void QwtLegend::setDisplayPolicy           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_legend.html#w3">LegendDisplayPolicy</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>policy</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>mode</em> = <code>-1</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the legend display policy to:<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>policy</em>&nbsp;</td><td>Legend display policy </td></tr>
    <tr><td></td><td valign=top><em>mode</em>&nbsp;</td><td>Identifier mode (or'd ShowLine, ShowSymbol, ShowText)</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#a4">QwtLegend::displayPolicy</a>, <a class="el" href="class_qwt_legend.html#w3">QwtLegend::LegendDisplayPolicy</a> </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00437">437</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l01191">QwtPlot::setLegendDisplayPolicy()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="QwtLegend::setReadOnly" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void QwtLegend::setReadOnly           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>readOnly</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
A mode telling <a class="el" href="class_qwt_plot.html">QwtPlot</a> to insert read only items <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#a2">isReadOnly</a> </dd></dl>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00415">415</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a18" doxytag="QwtLegend::sizeHint" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> QSize QwtLegend::sizeHint           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return a size hint. 
<p>
Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00597">597</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__layout_8cpp-source.html#l00395">QwtPlotLayout::minimumSizeHint()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a11" doxytag="QwtLegend::takeItem" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> QWidget * QwtLegend::takeItem           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">long&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>key</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Find the item for a given key and remove it from the item list. 
<p>
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>.
<p>
Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00662">eventFilter()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="b0" doxytag="QwtLegend::viewportResizeEvent" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void QwtLegend::viewportResizeEvent           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">QResizeEvent *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>e</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [protected, virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Resize the viewport() and post a QEvent::LayoutHint to <a class="el" href="class_qwt_legend.html#a6">QwtLegend::contentsWidget()</a> to update the layout. Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00692">692</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.    </td>
  </tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:29 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>