[go: up one dir, main page]

File: toLegendChart.html

package info (click to toggle)
tora 1.3.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,632 kB
  • ctags: 7,487
  • sloc: cpp: 68,518; perl: 1,475; ansic: 291; sh: 173; makefile: 51
file content (106 lines) | stat: -rw-r--r-- 6,837 bytes parent folder | download
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
<HTML>
<HEAD>
<TITLE>class toLegendChart</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class toLegendChart</h1>
		</TD>
		<TD valign="top" align="right" colspan="1"> A widget that displays a legend to other charts. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="tolegendchart_h.html">tolegendchart.h</A>&gt;</code></TD></TR>
<TR><TH>Inherits</TH><TD><A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> <small>(qt)</small> <small>[public ]</small></TD></TR>
<TR><TH><A HREF="full-list-toLegendChart.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref5">toLegendChart</A></b> (int columns,<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *parent=NULL,const char *name=NULL,WFlags f=0) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref6">setTitle</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &title=QString::null) 
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &&nbsp;<b><A HREF="#ref7">title</A></b> (void) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref8">setLabels</A></b> (std::list<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &labels) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref9">addLabel</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &label) 
</LI>
<LI>std::list<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &&nbsp;<b><A HREF="#ref10">labels</A></b> (void) 
</LI>
<LI>virtual  <A HREF="http://doc.trolltech.com/qsize.html">QSize</A> &nbsp;<b><A HREF="#ref11">sizeHint</A></b> () 
</LI>
</ul><h4>Protected Methods</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref12">paintEvent</A></b> (<A HREF="http://doc.trolltech.com/qpaintevent.html">QPaintEvent</A> *e) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> A widget that displays a legend to other charts.
 </p>
<A NAME="toLegendChart"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toLegendChart</strong> (int columns,<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *parent=NULL,const char *name=NULL,WFlags f=0)
<br></td><td align="right"><h3><strong>toLegendChart</strong></h3></td></tr></table><p></p><p> Create a new legend.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>columns</i></TD><TD align="left" valign="top">Columns.
</TD></TR>
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">Parent widget.
</TD></TR>
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">Name of widget.
</TD></TR>
<TR><TD align="left" valign="top"><i>f</i></TD><TD align="left" valign="top">Widget flags.
   </TD></TR>
</TABLE></P>
<A NAME="setTitle"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setTitle</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &title=QString::null)
<br></td><td align="right"><h3><strong>setTitle</strong></h3></td></tr></table><p></p><p> Set title of the chart. Set to empty string to not display title.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>title</i></TD><TD align="left" valign="top">Title of chart.
   </TD></TR>
</TABLE></P>
<A NAME="title"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &&nbsp;<strong>title</strong> (void)
<br></td><td align="right"><h3><strong>title</strong></h3></td></tr></table><p></p><p> Get title of chart.
</p>
<p><b>Returns</b>: Title of chart.
   </p>
<A NAME="setLabels"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setLabels</strong> (std::list<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &labels)
<br></td><td align="right"><h3><strong>setLabels</strong></h3></td></tr></table><p></p><p> Set list of chart labels.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>labels</i></TD><TD align="left" valign="top">List of labels, if label is empty it will not appear in legend.
   </TD></TR>
</TABLE></P>
<A NAME="addLabel"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>addLabel</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &label)
<br></td><td align="right"><h3><strong>addLabel</strong></h3></td></tr></table><p></p><p> Add a value to the chart.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>value</i></TD><TD align="left" valign="top">New value to add.
</TD></TR>
<TR><TD align="left" valign="top"><i>label</i></TD><TD align="left" valign="top">Label of this new value.
   </TD></TR>
</TABLE></P>
<A NAME="labels"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>std::list<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>> &&nbsp;<strong>labels</strong> (void)
<br></td><td align="right"><h3><strong>labels</strong></h3></td></tr></table><p></p><p> Get labels of chart.
</p>
<p><b>Returns</b>: List of labels.
   </p>
<A NAME="sizeHint"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qsize.html">QSize</A> &nbsp;<strong>sizeHint</strong> ()
<br></td><td align="right"><h3><strong>sizeHint</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Reimplemented for internal reasons.
   </p>
<p>Reimplemented from <A HREF="http://doc.trolltech.com/qwidget.html#290bcd">QWidget</A>.</p>
<A NAME="paintEvent"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>paintEvent</strong> (<A HREF="http://doc.trolltech.com/qpaintevent.html">QPaintEvent</A> *e)
<br></td><td align="right"><h3><strong>paintEvent</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p> Reimplemented for internal reasons.
   </p>
<p>Reimplemented from <A HREF="http://doc.trolltech.com/qwidget.html#ef2069">QWidget</A>.</p>
<HR>
	<table>
	</table>
</BODY>
</HTML>