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: QwtArrowButton 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>QwtArrowButton Class Reference</h1><!-- doxytag: class="QwtArrowButton" --><a href="class_qwt_arrow_button-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
25
A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right.
29
Definition at line <a class="el" href="qwt__arrow__button_8h-source.html#l00023">23</a> of file <a class="el" href="qwt__arrow__button_8h-source.html">qwt_arrow_button.h</a>.<table border="0" cellpadding="0" cellspacing="0">
31
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
32
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#b0ad5aefdd56db10976796be717671e9">QwtArrowButton</a> (int num, Qt::ArrowType, QWidget *parent=NULL)</td></tr>
34
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#506ab071fa7ee92928ace7dcea774a73">~QwtArrowButton</a> ()</td></tr>
36
<tr><td class="memItemLeft" nowrap align="right" valign="top">Qt::ArrowType </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#7e9b1a97e6f6281aee4ada6293931d90">arrowType</a> () const</td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#680ecdc99fdc5971ddfabc643e1ed52a">num</a> () const</td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#db6261ccd02e32c824a8af86f0120aee">sizeHint</a> () const</td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#b5f5985f350107db6e785281135a187c">minimumSizeHint</a> () const</td></tr>
44
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#d9bdd4ed2e655aa19929ab436ec8ab45">paintEvent</a> (QPaintEvent *event)</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#fc342cb3eaa01afe5aa897b3fd6aa7c2">drawButtonLabel</a> (QPainter *p)</td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#54c272f2ca19627613415fb5e0bf0b88">drawArrow</a> (QPainter *, const QRect &, Qt::ArrowType) const</td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#5f4449198f900946579c843ff56e0a5a">labelRect</a> () const</td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#018b7b1a6c1e2b74f8edcb0421310cfa">arrowSize</a> (Qt::ArrowType, const QSize &boundingSize) const</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#17612daa99344272c4de1313a5c67b02">keyPressEvent</a> (QKeyEvent *)</td></tr>
58
<hr><h2>Constructor & Destructor Documentation</h2>
59
<a class="anchor" name="b0ad5aefdd56db10976796be717671e9"></a><!-- doxytag: member="QwtArrowButton::QwtArrowButton" ref="b0ad5aefdd56db10976796be717671e9" args="(int num, Qt::ArrowType, QWidget *parent=NULL)" -->
61
<div class="memproto">
62
<table class="memname">
64
<td class="memname">QwtArrowButton::QwtArrowButton </td>
66
<td class="paramtype">int </td>
67
<td class="paramname"> <em>num</em>, </td>
70
<td class="paramkey"></td>
72
<td class="paramtype">Qt::ArrowType </td>
73
<td class="paramname"> <em>arrowType</em>, </td>
76
<td class="paramkey"></td>
78
<td class="paramtype">QWidget * </td>
79
<td class="paramname"> <em>parent</em> = <code>NULL</code></td><td> </td>
84
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
91
<dl compact><dt><b>Parameters:</b></dt><dd>
92
<table border="0" cellspacing="2" cellpadding="0">
93
<tr><td valign="top"></td><td valign="top"><em>num</em> </td><td>Number of arrows </td></tr>
94
<tr><td valign="top"></td><td valign="top"><em>arrowType</em> </td><td>see Qt::ArowType in the Qt docs. </td></tr>
95
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Parent widget </td></tr>
100
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00058">58</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
103
<a class="anchor" name="506ab071fa7ee92928ace7dcea774a73"></a><!-- doxytag: member="QwtArrowButton::~QwtArrowButton" ref="506ab071fa7ee92928ace7dcea774a73" args="()" -->
104
<div class="memitem">
105
<div class="memproto">
106
<table class="memname">
108
<td class="memname">QwtArrowButton::~QwtArrowButton </td>
110
<td class="paramname"> </td>
111
<td> ) </td>
112
<td width="100%"><code> [virtual]</code></td>
123
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00083">83</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
126
<hr><h2>Member Function Documentation</h2>
127
<a class="anchor" name="7e9b1a97e6f6281aee4ada6293931d90"></a><!-- doxytag: member="QwtArrowButton::arrowType" ref="7e9b1a97e6f6281aee4ada6293931d90" args="() const" -->
128
<div class="memitem">
129
<div class="memproto">
130
<table class="memname">
132
<td class="memname">Qt::ArrowType QwtArrowButton::arrowType </td>
134
<td class="paramname"> </td>
135
<td> ) </td>
136
<td width="100%"> const</td>
143
The direction of the arrows.
147
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00092">92</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
150
<a class="anchor" name="680ecdc99fdc5971ddfabc643e1ed52a"></a><!-- doxytag: member="QwtArrowButton::num" ref="680ecdc99fdc5971ddfabc643e1ed52a" args="() const" -->
151
<div class="memitem">
152
<div class="memproto">
153
<table class="memname">
155
<td class="memname">int QwtArrowButton::num </td>
157
<td class="paramname"> </td>
158
<td> ) </td>
159
<td width="100%"> const</td>
166
The number of arrows.
170
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00100">100</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
173
<a class="anchor" name="db6261ccd02e32c824a8af86f0120aee"></a><!-- doxytag: member="QwtArrowButton::sizeHint" ref="db6261ccd02e32c824a8af86f0120aee" args="() const" -->
174
<div class="memitem">
175
<div class="memproto">
176
<table class="memname">
178
<td class="memname">QSize QwtArrowButton::sizeHint </td>
180
<td class="paramname"> </td>
181
<td> ) </td>
182
<td width="100%"> const<code> [virtual]</code></td>
189
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a size hint </dd></dl>
192
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00286">286</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
194
References <a class="el" href="qwt__arrow__button_8cpp-source.html#l00294">minimumSizeHint()</a>.
197
<a class="anchor" name="b5f5985f350107db6e785281135a187c"></a><!-- doxytag: member="QwtArrowButton::minimumSizeHint" ref="b5f5985f350107db6e785281135a187c" args="() const" -->
198
<div class="memitem">
199
<div class="memproto">
200
<table class="memname">
202
<td class="memname">QSize QwtArrowButton::minimumSizeHint </td>
204
<td class="paramname"> </td>
205
<td> ) </td>
206
<td width="100%"> const<code> [virtual]</code></td>
213
Return a minimum size hint.
217
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00294">294</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
219
References <a class="el" href="qwt__arrow__button_8cpp-source.html#l00331">arrowSize()</a>.
221
Referenced by <a class="el" href="qwt__arrow__button_8cpp-source.html#l00286">sizeHint()</a>.
224
<a class="anchor" name="d9bdd4ed2e655aa19929ab436ec8ab45"></a><!-- doxytag: member="QwtArrowButton::paintEvent" ref="d9bdd4ed2e655aa19929ab436ec8ab45" args="(QPaintEvent *event)" -->
225
<div class="memitem">
226
<div class="memproto">
227
<table class="memname">
229
<td class="memname">void QwtArrowButton::paintEvent </td>
231
<td class="paramtype">QPaintEvent * </td>
232
<td class="paramname"> <em>event</em> </td>
233
<td> ) </td>
234
<td width="100%"><code> [protected, virtual]</code></td>
241
Paint event handler <dl compact><dt><b>Parameters:</b></dt><dd>
242
<table border="0" cellspacing="2" cellpadding="0">
243
<tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>Paint event </td></tr>
248
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00143">143</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
250
References <a class="el" href="qwt__arrow__button_8cpp-source.html#l00157">drawButtonLabel()</a>.
253
<a class="anchor" name="fc342cb3eaa01afe5aa897b3fd6aa7c2"></a><!-- doxytag: member="QwtArrowButton::drawButtonLabel" ref="fc342cb3eaa01afe5aa897b3fd6aa7c2" args="(QPainter *p)" -->
254
<div class="memitem">
255
<div class="memproto">
256
<table class="memname">
258
<td class="memname">void QwtArrowButton::drawButtonLabel </td>
260
<td class="paramtype">QPainter * </td>
261
<td class="paramname"> <em>painter</em> </td>
262
<td> ) </td>
263
<td width="100%"><code> [protected, virtual]</code></td>
270
Draw the button label.
272
<dl compact><dt><b>Parameters:</b></dt><dd>
273
<table border="0" cellspacing="2" cellpadding="0">
274
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
277
<dl class="see" compact><dt><b>See also:</b></dt><dd>The Qt Manual on QPushButton </dd></dl>
280
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00157">157</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
282
References <a class="el" href="qwt__arrow__button_8cpp-source.html#l00331">arrowSize()</a>, <a class="el" href="qwt__arrow__button_8cpp-source.html#l00240">drawArrow()</a>, and <a class="el" href="qwt__arrow__button_8cpp-source.html#l00108">labelRect()</a>.
284
Referenced by <a class="el" href="qwt__arrow__button_8cpp-source.html#l00143">paintEvent()</a>.
287
<a class="anchor" name="54c272f2ca19627613415fb5e0bf0b88"></a><!-- doxytag: member="QwtArrowButton::drawArrow" ref="54c272f2ca19627613415fb5e0bf0b88" args="(QPainter *, const QRect &, Qt::ArrowType) const" -->
288
<div class="memitem">
289
<div class="memproto">
290
<table class="memname">
292
<td class="memname">void QwtArrowButton::drawArrow </td>
294
<td class="paramtype">QPainter * </td>
295
<td class="paramname"> <em>painter</em>, </td>
298
<td class="paramkey"></td>
300
<td class="paramtype">const QRect & </td>
301
<td class="paramname"> <em>r</em>, </td>
304
<td class="paramkey"></td>
306
<td class="paramtype">Qt::ArrowType </td>
307
<td class="paramname"> <em>arrowType</em></td><td> </td>
312
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
319
Draw an arrow int a bounding rect<p>
320
<dl compact><dt><b>Parameters:</b></dt><dd>
321
<table border="0" cellspacing="2" cellpadding="0">
322
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
323
<tr><td valign="top"></td><td valign="top"><em>r</em> </td><td>Rectangle where to paint the arrow </td></tr>
324
<tr><td valign="top"></td><td valign="top"><em>arrowType</em> </td><td>Arrow type </td></tr>
329
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00240">240</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
331
Referenced by <a class="el" href="qwt__arrow__button_8cpp-source.html#l00157">drawButtonLabel()</a>.
334
<a class="anchor" name="5f4449198f900946579c843ff56e0a5a"></a><!-- doxytag: member="QwtArrowButton::labelRect" ref="5f4449198f900946579c843ff56e0a5a" args="() const" -->
335
<div class="memitem">
336
<div class="memproto">
337
<table class="memname">
339
<td class="memname">QRect QwtArrowButton::labelRect </td>
341
<td class="paramname"> </td>
342
<td> ) </td>
343
<td width="100%"> const<code> [protected, virtual]</code></td>
350
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the bounding rect for the label </dd></dl>
353
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00108">108</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
355
Referenced by <a class="el" href="qwt__arrow__button_8cpp-source.html#l00157">drawButtonLabel()</a>.
358
<a class="anchor" name="018b7b1a6c1e2b74f8edcb0421310cfa"></a><!-- doxytag: member="QwtArrowButton::arrowSize" ref="018b7b1a6c1e2b74f8edcb0421310cfa" args="(Qt::ArrowType, const QSize &boundingSize) const" -->
359
<div class="memitem">
360
<div class="memproto">
361
<table class="memname">
363
<td class="memname">QSize QwtArrowButton::arrowSize </td>
365
<td class="paramtype">Qt::ArrowType </td>
366
<td class="paramname"> <em>arrowType</em>, </td>
369
<td class="paramkey"></td>
371
<td class="paramtype">const QSize & </td>
372
<td class="paramname"> <em>boundingSize</em></td><td> </td>
377
<td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
384
Calculate the size for a arrow that fits into a rect of a given size<p>
385
<dl compact><dt><b>Parameters:</b></dt><dd>
386
<table border="0" cellspacing="2" cellpadding="0">
387
<tr><td valign="top"></td><td valign="top"><em>arrowType</em> </td><td>Arrow type </td></tr>
388
<tr><td valign="top"></td><td valign="top"><em>boundingSize</em> </td><td>Bounding size </td></tr>
391
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Size of the arrow </dd></dl>
394
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00331">331</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
396
Referenced by <a class="el" href="qwt__arrow__button_8cpp-source.html#l00157">drawButtonLabel()</a>, and <a class="el" href="qwt__arrow__button_8cpp-source.html#l00294">minimumSizeHint()</a>.
399
<a class="anchor" name="17612daa99344272c4de1313a5c67b02"></a><!-- doxytag: member="QwtArrowButton::keyPressEvent" ref="17612daa99344272c4de1313a5c67b02" args="(QKeyEvent *)" -->
400
<div class="memitem">
401
<div class="memproto">
402
<table class="memname">
404
<td class="memname">void QwtArrowButton::keyPressEvent </td>
406
<td class="paramtype">QKeyEvent * </td>
407
<td class="paramname"> </td>
408
<td> ) </td>
409
<td width="100%"><code> [protected, virtual]</code></td>
416
autoRepeat for the space keys
420
Definition at line <a class="el" href="qwt__arrow__button_8cpp-source.html#l00361">361</a> of file <a class="el" href="qwt__arrow__button_8cpp-source.html">qwt_arrow_button.cpp</a>.
423
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:47:51 2008 for Qwt User's Guide by
424
<a href="http://www.doxygen.org/index.html">
425
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>