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: QwtCounter 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>QwtCounter Class Reference</h1><!-- doxytag: class="QwtCounter" --><!-- doxytag: inherits="QwtDoubleRange" -->Inheritance diagram for QwtCounter:<p><center><img src="class_qwt_counter__inherit__graph.png" border="0" usemap="#_qwt_counter__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_counter__inherit__map">
24
<area href="class_qwt_double_range.html" shape="rect" coords="7,8,132,32" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtCounter:<p><center><img src="class_qwt_counter__coll__graph.png" border="0" usemap="#_qwt_counter__coll__map" alt="Collaboration graph"></center>
27
<map name="_qwt_counter__coll__map">
28
<area href="class_qwt_double_range.html" shape="rect" coords="7,8,132,32" alt="">
30
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_counter-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
33
A Counter consists of a label displaying a number and one ore more (up to three) push buttons on each side of the label which can be used to increment or decrement the counter's value.<p>
34
A Counter has a range from a minimum value to a maximum value and a step size. The range can be specified using QwtDblRange::setRange(). The counter's value is an integer multiple of the step size. The number of steps by which a button increments or decrements the value can be specified using <a class="el" href="class_qwt_counter.html#6aa68e7fc717fb0e2e48a978301c96eb">QwtCounter::setIncSteps()</a>. The number of buttons can be changed with <a class="el" href="class_qwt_counter.html#e9241fda2e375becdb484cc2cf7752f4">QwtCounter::setNumButtons()</a>.<p>
35
Holding the space bar down with focus on a button is the fastest method to step through the counter values. When the counter underflows/overflows, the focus is set to the smallest up/down button and counting is disabled. Counting is re-enabled on a button release event (mouse or space bar).<p>
36
Example: <div class="fragment"><pre class="fragment"><span class="preprocessor">#include "../include/qwt_counter.h></span>
38
<a class="code" href="class_qwt_counter.html">QwtCounter</a> *cnt;
40
cnt = <span class="keyword">new</span> <a class="code" href="class_qwt_counter.html#ee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter</a>(parent, name);
42
cnt-><a class="code" href="class_qwt_double_range.html#43891011664b74b8e5454763a3f5ff21">setRange</a>(0.0, 100.0, 1.0); <span class="comment">// From 0.0 to 100, step 1.0</span>
43
cnt-><a class="code" href="class_qwt_counter.html#e9241fda2e375becdb484cc2cf7752f4">setNumButtons</a>(2); <span class="comment">// Two buttons each side</span>
44
cnt-><a class="code" href="class_qwt_counter.html#6aa68e7fc717fb0e2e48a978301c96eb">setIncSteps</a>(QwtCounter::Button1, 1); <span class="comment">// Button 1 increments 1 step</span>
45
cnt-><a class="code" href="class_qwt_counter.html#6aa68e7fc717fb0e2e48a978301c96eb">setIncSteps</a>(QwtCounter::Button2, 20); <span class="comment">// Button 2 increments 20 steps</span>
47
connect(cnt, SIGNAL(<a class="code" href="class_qwt_counter.html#dd02928c348417fbfadd7095d058f331">valueChanged</a>(<span class="keywordtype">double</span>)), my_class, SLOT(newValue(<span class="keywordtype">double</span>)));
52
Definition at line <a class="el" href="qwt__counter_8h-source.html#l00060">60</a> of file <a class="el" href="qwt__counter_8h-source.html">qwt_counter.h</a>.<table border="0" cellpadding="0" cellspacing="0">
54
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">Button</a> { <br>
56
<b>Button1</b>,
58
<b>Button2</b>,
60
<b>Button3</b>,
62
<b>ButtonCnt</b>
66
<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#694ed7277e137e44bccc5918b4c15ecc">buttonReleased</a> (double value)</td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#dd02928c348417fbfadd7095d058f331">valueChanged</a> (double value)</td></tr>
71
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter</a> (QWidget *parent=NULL)</td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#6469133eb210b470023a3dcc735aec4d">~QwtCounter</a> ()</td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#7f525030491d61796ca33097c17ff816">editable</a> () const</td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#2d2f4bf2813d2aa30c2fb9ec7a90163c">setEditable</a> (bool)</td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#e9241fda2e375becdb484cc2cf7752f4">setNumButtons</a> (int n)</td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#b7aa5fbf0041f6e1d99c1ceafbc8bb10">numButtons</a> () const</td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#6aa68e7fc717fb0e2e48a978301c96eb">setIncSteps</a> (<a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> btn, int nSteps)</td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#8daf96c94051c8221904d05acc963178">incSteps</a> (<a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> btn) const</td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#429a2e986aa46c1231643df5d4c78970">setValue</a> (double)</td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#acbb4750fdd028ef4ad0fba7e874afaf">sizeHint</a> () const</td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#19824b7542778b23372fb77fac75beb8">polish</a> ()</td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#b3eed7ad89bbbe417ae40f8b45d5a96b">step</a> () const</td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#b885e97d0071877dfefb73feb0adc0cd">setStep</a> (double s)</td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#20385d862dd11ac88efd3a64f80f0b27">minVal</a> () const</td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#8c1b902c0805f3581568b4d700e79221">setMinValue</a> (double m)</td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#757220571e23e96f00612b7d80baf43e">maxVal</a> () const</td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#fd1de4657645bd41a8ccdaa21a7dc591">setMaxValue</a> (double m)</td></tr>
106
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#e56a556a72955b6d10419f2c41779383">setStepButton1</a> (int nSteps)</td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ffdd91a6698ff0c90e24e69ff410924f">stepButton1</a> () const</td></tr>
110
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#0d764a96706593d8c8b51338e92abfcc">setStepButton2</a> (int nSteps)</td></tr>
112
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#cec167b50ae44afe5ff8e9233e77a939">stepButton2</a> () const</td></tr>
114
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#8b55539578de083793b8310cb8909294">setStepButton3</a> (int nSteps)</td></tr>
116
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#259de8df2b8928139d1fc4738694eac8">stepButton3</a> () const</td></tr>
118
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#1881fcb0f81052bd7787523246d19515">value</a> () const</td></tr>
120
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
121
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#d855f1cec9068fd73cce5e2e29fb5771">event</a> (QEvent *)</td></tr>
123
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cdada1ba1d5873b9c8b3f75d63b4685a"></a><!-- doxytag: member="QwtCounter::wheelEvent" ref="cdada1ba1d5873b9c8b3f75d63b4685a" args="(QWheelEvent *)" -->
124
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#cdada1ba1d5873b9c8b3f75d63b4685a">wheelEvent</a> (QWheelEvent *)</td></tr>
126
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#afdc19bff96fcafc4b8ed8e3bf7bf07b">keyPressEvent</a> (QKeyEvent *)</td></tr>
128
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#4fd4e750b1f5a852250e57778a3e4159">rangeChange</a> ()</td></tr>
131
<hr><h2>Member Enumeration Documentation</h2>
132
<a class="anchor" name="027cfd91946ca9a19a1d606411e0f374"></a><!-- doxytag: member="QwtCounter::Button" ref="027cfd91946ca9a19a1d606411e0f374" args="" -->
133
<div class="memitem">
134
<div class="memproto">
135
<table class="memname">
137
<td class="memname">enum <a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> </td>
146
Definition at line <a class="el" href="qwt__counter_8h-source.html#l00079">79</a> of file <a class="el" href="qwt__counter_8h-source.html">qwt_counter.h</a>.
149
<hr><h2>Constructor & Destructor Documentation</h2>
150
<a class="anchor" name="ee94cdbaf1f3d22e110fd3535dbca34a"></a><!-- doxytag: member="QwtCounter::QwtCounter" ref="ee94cdbaf1f3d22e110fd3535dbca34a" args="(QWidget *parent=NULL)" -->
151
<div class="memitem">
152
<div class="memproto">
153
<table class="memname">
155
<td class="memname">QwtCounter::QwtCounter </td>
157
<td class="paramtype">QWidget * </td>
158
<td class="paramname"> <em>parent</em> = <code>NULL</code> </td>
159
<td> ) </td>
160
<td width="100%"><code> [explicit]</code></td>
167
The default number of buttons is set to 2. The default increments are: <ul>
168
<li>Button 1: 1 step </li>
169
<li>Button 2: 10 steps </li>
170
<li>Button 3: 100 steps</li>
172
<dl compact><dt><b>Parameters:</b></dt><dd>
173
<table border="0" cellspacing="2" cellpadding="0">
174
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td></td></tr>
179
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00050">50</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
182
<a class="anchor" name="6469133eb210b470023a3dcc735aec4d"></a><!-- doxytag: member="QwtCounter::~QwtCounter" ref="6469133eb210b470023a3dcc735aec4d" args="()" -->
183
<div class="memitem">
184
<div class="memproto">
185
<table class="memname">
187
<td class="memname">QwtCounter::~QwtCounter </td>
189
<td class="paramname"> </td>
190
<td> ) </td>
191
<td width="100%"><code> [virtual]</code></td>
202
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00143">143</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
205
<hr><h2>Member Function Documentation</h2>
206
<a class="anchor" name="7f525030491d61796ca33097c17ff816"></a><!-- doxytag: member="QwtCounter::editable" ref="7f525030491d61796ca33097c17ff816" args="() const" -->
207
<div class="memitem">
208
<div class="memproto">
209
<table class="memname">
211
<td class="memname">bool QwtCounter::editable </td>
213
<td class="paramname"> </td>
214
<td> ) </td>
215
<td width="100%"> const</td>
222
returns whether the line edit is edatble. (default is yes)
226
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00198">198</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
229
<a class="anchor" name="2d2f4bf2813d2aa30c2fb9ec7a90163c"></a><!-- doxytag: member="QwtCounter::setEditable" ref="2d2f4bf2813d2aa30c2fb9ec7a90163c" args="(bool)" -->
230
<div class="memitem">
231
<div class="memproto">
232
<table class="memname">
234
<td class="memname">void QwtCounter::setEditable </td>
236
<td class="paramtype">bool </td>
237
<td class="paramname"> <em>editable</em> </td>
238
<td> ) </td>
239
<td width="100%"></td>
246
Allow/disallow the user to manually edit the value.
248
<dl compact><dt><b>Parameters:</b></dt><dd>
249
<table border="0" cellspacing="2" cellpadding="0">
250
<tr><td valign="top"></td><td valign="top"><em>editable</em> </td><td>true enables editing </td></tr>
253
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_counter.html#7f525030491d61796ca33097c17ff816">editable()</a> </dd></dl>
256
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00185">185</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
259
<a class="anchor" name="e9241fda2e375becdb484cc2cf7752f4"></a><!-- doxytag: member="QwtCounter::setNumButtons" ref="e9241fda2e375becdb484cc2cf7752f4" args="(int n)" -->
260
<div class="memitem">
261
<div class="memproto">
262
<table class="memname">
264
<td class="memname">void QwtCounter::setNumButtons </td>
266
<td class="paramtype">int </td>
267
<td class="paramname"> <em>n</em> </td>
268
<td> ) </td>
269
<td width="100%"></td>
276
Specify the number of buttons on each side of the label.
278
<dl compact><dt><b>Parameters:</b></dt><dd>
279
<table border="0" cellspacing="2" cellpadding="0">
280
<tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>Number of buttons </td></tr>
285
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00441">441</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
288
<a class="anchor" name="b7aa5fbf0041f6e1d99c1ceafbc8bb10"></a><!-- doxytag: member="QwtCounter::numButtons" ref="b7aa5fbf0041f6e1d99c1ceafbc8bb10" args="() const" -->
289
<div class="memitem">
290
<div class="memproto">
291
<table class="memname">
293
<td class="memname">int QwtCounter::numButtons </td>
295
<td class="paramname"> </td>
296
<td> ) </td>
297
<td width="100%"> const</td>
304
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of buttons on each side of the widget. </dd></dl>
307
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00466">466</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
310
<a class="anchor" name="6aa68e7fc717fb0e2e48a978301c96eb"></a><!-- doxytag: member="QwtCounter::setIncSteps" ref="6aa68e7fc717fb0e2e48a978301c96eb" args="(QwtCounter::Button btn, int nSteps)" -->
311
<div class="memitem">
312
<div class="memproto">
313
<table class="memname">
315
<td class="memname">void QwtCounter::setIncSteps </td>
317
<td class="paramtype"><a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> </td>
318
<td class="paramname"> <em>btn</em>, </td>
321
<td class="paramkey"></td>
323
<td class="paramtype">int </td>
324
<td class="paramname"> <em>nSteps</em></td><td> </td>
329
<td></td><td></td><td width="100%"></td>
336
Specify the number of steps by which the value is incremented or decremented when a specified button is pushed.<p>
337
<dl compact><dt><b>Parameters:</b></dt><dd>
338
<table border="0" cellspacing="2" cellpadding="0">
339
<tr><td valign="top"></td><td valign="top"><em>btn</em> </td><td>One of <code>QwtCounter::Button1</code>, <code>QwtCounter::Button2</code>, <code>QwtCounter::Button3</code> </td></tr>
340
<tr><td valign="top"></td><td valign="top"><em>nSteps</em> </td><td>Number of steps </td></tr>
345
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00355">355</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
347
Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00586">setStepButton1()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00598">setStepButton2()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00610">setStepButton3()</a>.
350
<a class="anchor" name="8daf96c94051c8221904d05acc963178"></a><!-- doxytag: member="QwtCounter::incSteps" ref="8daf96c94051c8221904d05acc963178" args="(QwtCounter::Button btn) const" -->
351
<div class="memitem">
352
<div class="memproto">
353
<table class="memname">
355
<td class="memname">int QwtCounter::incSteps </td>
357
<td class="paramtype"><a class="el" href="class_qwt_counter.html#027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> </td>
358
<td class="paramname"> <em>btn</em> </td>
359
<td> ) </td>
360
<td width="100%"> const</td>
367
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the number of steps by which a specified button increments the value or 0 if the button is invalid. </dd></dl>
368
<dl compact><dt><b>Parameters:</b></dt><dd>
369
<table border="0" cellspacing="2" cellpadding="0">
370
<tr><td valign="top"></td><td valign="top"><em>btn</em> </td><td>One of <code>QwtCounter::Button1</code>, <code>QwtCounter::Button2</code>, <code>QwtCounter::Button3</code> </td></tr>
375
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00367">367</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
377
Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00592">stepButton1()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00604">stepButton2()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00616">stepButton3()</a>.
380
<a class="anchor" name="429a2e986aa46c1231643df5d4c78970"></a><!-- doxytag: member="QwtCounter::setValue" ref="429a2e986aa46c1231643df5d4c78970" args="(double)" -->
381
<div class="memitem">
382
<div class="memproto">
383
<table class="memname">
385
<td class="memname">void QwtCounter::setValue </td>
387
<td class="paramtype">double </td>
388
<td class="paramname"> <em>v</em> </td>
389
<td> ) </td>
390
<td width="100%"><code> [virtual]</code></td>
399
<dl compact><dt><b>Parameters:</b></dt><dd>
400
<table border="0" cellspacing="2" cellpadding="0">
401
<tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>new value Calls <a class="el" href="class_qwt_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">QwtDoubleRange::setValue</a> and does all visual updates. </td></tr>
404
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">QwtDoubleRange::setValue</a> </dd></dl>
407
Reimplemented from <a class="el" href="class_qwt_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">QwtDoubleRange</a>.
409
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00382">382</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
411
References <a class="el" href="qwt__double__range_8cpp-source.html#l00150">QwtDoubleRange::setValue()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00621">value()</a>.
413
Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00236">keyPressEvent()</a>.
416
<a class="anchor" name="acbb4750fdd028ef4ad0fba7e874afaf"></a><!-- doxytag: member="QwtCounter::sizeHint" ref="acbb4750fdd028ef4ad0fba7e874afaf" args="() const" -->
417
<div class="memitem">
418
<div class="memproto">
419
<table class="memname">
421
<td class="memname">QSize QwtCounter::sizeHint </td>
423
<td class="paramname"> </td>
424
<td> ) </td>
425
<td width="100%"> const<code> [virtual]</code></td>
436
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00513">513</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
438
References <a class="el" href="qwt__double__range_8cpp-source.html#l00329">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00342">QwtDoubleRange::minValue()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00550">step()</a>.
441
<a class="anchor" name="19824b7542778b23372fb77fac75beb8"></a><!-- doxytag: member="QwtCounter::polish" ref="19824b7542778b23372fb77fac75beb8" args="()" -->
442
<div class="memitem">
443
<div class="memproto">
444
<table class="memname">
446
<td class="memname">void QwtCounter::polish </td>
448
<td class="paramname"> </td>
449
<td> ) </td>
450
<td width="100%"><code> [virtual]</code></td>
457
Sets the minimum width for the buttons
459
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00151">151</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
461
Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00206">event()</a>.
464
<a class="anchor" name="b3eed7ad89bbbe417ae40f8b45d5a96b"></a><!-- doxytag: member="QwtCounter::step" ref="b3eed7ad89bbbe417ae40f8b45d5a96b" args="() const" -->
465
<div class="memitem">
466
<div class="memproto">
467
<table class="memname">
469
<td class="memname">double QwtCounter::step </td>
471
<td class="paramname"> </td>
472
<td> ) </td>
473
<td width="100%"> const</td>
480
returns the step size
484
Reimplemented from <a class="el" href="class_qwt_double_range.html#09c68ddcd4b1e9f7cc3cf6a753db9f7d">QwtDoubleRange</a>.
486
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00550">550</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
488
References <a class="el" href="qwt__double__range_8cpp-source.html#l00316">QwtDoubleRange::step()</a>.
490
Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00580">setMaxValue()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00568">setMinValue()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00513">sizeHint()</a>.
493
<a class="anchor" name="b885e97d0071877dfefb73feb0adc0cd"></a><!-- doxytag: member="QwtCounter::setStep" ref="b885e97d0071877dfefb73feb0adc0cd" args="(double s)" -->
494
<div class="memitem">
495
<div class="memproto">
496
<table class="memname">
498
<td class="memname">void QwtCounter::setStep </td>
500
<td class="paramtype">double </td>
501
<td class="paramname"> <em>s</em> </td>
502
<td> ) </td>
503
<td width="100%"></td>
514
Reimplemented from <a class="el" href="class_qwt_double_range.html#29ed5fc66439def424a8ad773eea285d">QwtDoubleRange</a>.
516
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00556">556</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
518
References <a class="el" href="qwt__double__range_8cpp-source.html#l00211">QwtDoubleRange::setStep()</a>.
521
<a class="anchor" name="20385d862dd11ac88efd3a64f80f0b27"></a><!-- doxytag: member="QwtCounter::minVal" ref="20385d862dd11ac88efd3a64f80f0b27" args="() const" -->
522
<div class="memitem">
523
<div class="memproto">
524
<table class="memname">
526
<td class="memname">double QwtCounter::minVal </td>
528
<td class="paramname"> </td>
529
<td> ) </td>
530
<td width="100%"> const</td>
537
returns the minimum value of the range
541
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00562">562</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
543
References <a class="el" href="qwt__double__range_8cpp-source.html#l00342">QwtDoubleRange::minValue()</a>.
546
<a class="anchor" name="8c1b902c0805f3581568b4d700e79221"></a><!-- doxytag: member="QwtCounter::setMinValue" ref="8c1b902c0805f3581568b4d700e79221" args="(double m)" -->
547
<div class="memitem">
548
<div class="memproto">
549
<table class="memname">
551
<td class="memname">void QwtCounter::setMinValue </td>
553
<td class="paramtype">double </td>
554
<td class="paramname"> <em>m</em> </td>
555
<td> ) </td>
556
<td width="100%"></td>
563
sets the minimum value of the range
567
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00568">568</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
569
References <a class="el" href="qwt__double__range_8cpp-source.html#l00329">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00172">QwtDoubleRange::setRange()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00550">step()</a>.
572
<a class="anchor" name="757220571e23e96f00612b7d80baf43e"></a><!-- doxytag: member="QwtCounter::maxVal" ref="757220571e23e96f00612b7d80baf43e" args="() const" -->
573
<div class="memitem">
574
<div class="memproto">
575
<table class="memname">
577
<td class="memname">double QwtCounter::maxVal </td>
579
<td class="paramname"> </td>
580
<td> ) </td>
581
<td width="100%"> const</td>
588
returns the maximum value of the range
592
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00574">574</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
594
References <a class="el" href="qwt__double__range_8cpp-source.html#l00329">QwtDoubleRange::maxValue()</a>.
597
<a class="anchor" name="fd1de4657645bd41a8ccdaa21a7dc591"></a><!-- doxytag: member="QwtCounter::setMaxValue" ref="fd1de4657645bd41a8ccdaa21a7dc591" args="(double m)" -->
598
<div class="memitem">
599
<div class="memproto">
600
<table class="memname">
602
<td class="memname">void QwtCounter::setMaxValue </td>
604
<td class="paramtype">double </td>
605
<td class="paramname"> <em>m</em> </td>
606
<td> ) </td>
607
<td width="100%"></td>
614
sets the maximum value of the range
618
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00580">580</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
620
References <a class="el" href="qwt__double__range_8cpp-source.html#l00342">QwtDoubleRange::minValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00172">QwtDoubleRange::setRange()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00550">step()</a>.
623
<a class="anchor" name="e56a556a72955b6d10419f2c41779383"></a><!-- doxytag: member="QwtCounter::setStepButton1" ref="e56a556a72955b6d10419f2c41779383" args="(int nSteps)" -->
624
<div class="memitem">
625
<div class="memproto">
626
<table class="memname">
628
<td class="memname">void QwtCounter::setStepButton1 </td>
630
<td class="paramtype">int </td>
631
<td class="paramname"> <em>nSteps</em> </td>
632
<td> ) </td>
633
<td width="100%"></td>
640
set the number of increment steps for button 1
644
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00586">586</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
646
References <a class="el" href="qwt__counter_8cpp-source.html#l00355">setIncSteps()</a>.
649
<a class="anchor" name="ffdd91a6698ff0c90e24e69ff410924f"></a><!-- doxytag: member="QwtCounter::stepButton1" ref="ffdd91a6698ff0c90e24e69ff410924f" args="() const" -->
650
<div class="memitem">
651
<div class="memproto">
652
<table class="memname">
654
<td class="memname">int QwtCounter::stepButton1 </td>
656
<td class="paramname"> </td>
657
<td> ) </td>
658
<td width="100%"> const</td>
665
returns the number of increment steps for button 1
669
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00592">592</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
671
References <a class="el" href="qwt__counter_8cpp-source.html#l00367">incSteps()</a>.
674
<a class="anchor" name="0d764a96706593d8c8b51338e92abfcc"></a><!-- doxytag: member="QwtCounter::setStepButton2" ref="0d764a96706593d8c8b51338e92abfcc" args="(int nSteps)" -->
675
<div class="memitem">
676
<div class="memproto">
677
<table class="memname">
679
<td class="memname">void QwtCounter::setStepButton2 </td>
681
<td class="paramtype">int </td>
682
<td class="paramname"> <em>nSteps</em> </td>
683
<td> ) </td>
684
<td width="100%"></td>
691
set the number of increment steps for button 2
695
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00598">598</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
697
References <a class="el" href="qwt__counter_8cpp-source.html#l00355">setIncSteps()</a>.
700
<a class="anchor" name="cec167b50ae44afe5ff8e9233e77a939"></a><!-- doxytag: member="QwtCounter::stepButton2" ref="cec167b50ae44afe5ff8e9233e77a939" args="() const" -->
701
<div class="memitem">
702
<div class="memproto">
703
<table class="memname">
705
<td class="memname">int QwtCounter::stepButton2 </td>
707
<td class="paramname"> </td>
708
<td> ) </td>
709
<td width="100%"> const</td>
716
returns the number of increment steps for button 2
720
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00604">604</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
722
References <a class="el" href="qwt__counter_8cpp-source.html#l00367">incSteps()</a>.
725
<a class="anchor" name="8b55539578de083793b8310cb8909294"></a><!-- doxytag: member="QwtCounter::setStepButton3" ref="8b55539578de083793b8310cb8909294" args="(int nSteps)" -->
726
<div class="memitem">
727
<div class="memproto">
728
<table class="memname">
730
<td class="memname">void QwtCounter::setStepButton3 </td>
732
<td class="paramtype">int </td>
733
<td class="paramname"> <em>nSteps</em> </td>
734
<td> ) </td>
735
<td width="100%"></td>
742
set the number of increment steps for button 3
746
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00610">610</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
748
References <a class="el" href="qwt__counter_8cpp-source.html#l00355">setIncSteps()</a>.
751
<a class="anchor" name="259de8df2b8928139d1fc4738694eac8"></a><!-- doxytag: member="QwtCounter::stepButton3" ref="259de8df2b8928139d1fc4738694eac8" args="() const" -->
752
<div class="memitem">
753
<div class="memproto">
754
<table class="memname">
756
<td class="memname">int QwtCounter::stepButton3 </td>
758
<td class="paramname"> </td>
759
<td> ) </td>
760
<td width="100%"> const</td>
767
returns the number of increment steps for button 3
771
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00616">616</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
773
References <a class="el" href="qwt__counter_8cpp-source.html#l00367">incSteps()</a>.
776
<a class="anchor" name="1881fcb0f81052bd7787523246d19515"></a><!-- doxytag: member="QwtCounter::value" ref="1881fcb0f81052bd7787523246d19515" args="() const" -->
777
<div class="memitem">
778
<div class="memproto">
779
<table class="memname">
781
<td class="memname">double QwtCounter::value </td>
783
<td class="paramname"> </td>
784
<td> ) </td>
785
<td width="100%"> const<code> [virtual]</code></td>
792
Returns the current value.
796
Reimplemented from <a class="el" href="class_qwt_double_range.html#48f21cecc0cbd10f18b234d5bbe55faf">QwtDoubleRange</a>.
798
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00621">621</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
800
References <a class="el" href="qwt__double__range_8cpp-source.html#l00363">QwtDoubleRange::value()</a>.
802
Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00382">setValue()</a>.
805
<a class="anchor" name="694ed7277e137e44bccc5918b4c15ecc"></a><!-- doxytag: member="QwtCounter::buttonReleased" ref="694ed7277e137e44bccc5918b4c15ecc" args="(double value)" -->
806
<div class="memitem">
807
<div class="memproto">
808
<table class="memname">
810
<td class="memname">void QwtCounter::buttonReleased </td>
812
<td class="paramtype">double </td>
813
<td class="paramname"> <em>value</em> </td>
814
<td> ) </td>
815
<td width="100%"><code> [signal]</code></td>
822
This signal is emitted when a button has been released <dl compact><dt><b>Parameters:</b></dt><dd>
823
<table border="0" cellspacing="2" cellpadding="0">
824
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The new value </td></tr>
830
<a class="anchor" name="dd02928c348417fbfadd7095d058f331"></a><!-- doxytag: member="QwtCounter::valueChanged" ref="dd02928c348417fbfadd7095d058f331" args="(double value)" -->
831
<div class="memitem">
832
<div class="memproto">
833
<table class="memname">
835
<td class="memname">void QwtCounter::valueChanged </td>
837
<td class="paramtype">double </td>
838
<td class="paramname"> <em>value</em> </td>
839
<td> ) </td>
840
<td width="100%"><code> [signal]</code></td>
847
This signal is emitted when the counter's value has changed <dl compact><dt><b>Parameters:</b></dt><dd>
848
<table border="0" cellspacing="2" cellpadding="0">
849
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The new value </td></tr>
855
<a class="anchor" name="d855f1cec9068fd73cce5e2e29fb5771"></a><!-- doxytag: member="QwtCounter::event" ref="d855f1cec9068fd73cce5e2e29fb5771" args="(QEvent *)" -->
856
<div class="memitem">
857
<div class="memproto">
858
<table class="memname">
860
<td class="memname">bool QwtCounter::event </td>
862
<td class="paramtype">QEvent * </td>
863
<td class="paramname"> <em>e</em> </td>
864
<td> ) </td>
865
<td width="100%"><code> [protected, virtual]</code></td>
872
Handle PolishRequest events
874
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00206">206</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
876
References <a class="el" href="qwt__counter_8cpp-source.html#l00151">polish()</a>.
879
<a class="anchor" name="afdc19bff96fcafc4b8ed8e3bf7bf07b"></a><!-- doxytag: member="QwtCounter::keyPressEvent" ref="afdc19bff96fcafc4b8ed8e3bf7bf07b" args="(QKeyEvent *)" -->
880
<div class="memitem">
881
<div class="memproto">
882
<table class="memname">
884
<td class="memname">void QwtCounter::keyPressEvent </td>
886
<td class="paramtype">QKeyEvent * </td>
887
<td class="paramname"> <em>e</em> </td>
888
<td> ) </td>
889
<td width="100%"><code> [protected, virtual]</code></td>
896
Handles key events<p>
898
<li>Ctrl + Qt::Key_Home Step to <a class="el" href="class_qwt_double_range.html#d4cdcc335facc9cdcc12411ad0274169">minValue()</a></li><li>Ctrl + Qt::Key_End Step to <a class="el" href="class_qwt_double_range.html#dc07a0603792664d8400e3ba3c3a8f3a">maxValue()</a></li><li>Qt::Key_Up Increment by incSteps(QwtCounter::Button1)</li><li>Qt::Key_Down Decrement by incSteps(QwtCounter::Button1)</li><li>Qt::Key_PageUp Increment by incSteps(QwtCounter::Button2)</li><li>Qt::Key_PageDown Decrement by incSteps(QwtCounter::Button2)</li><li>Shift + Qt::Key_PageUp Increment by incSteps(QwtCounter::Button3)</li><li>Shift + Qt::Key_PageDown Decrement by incSteps(QwtCounter::Button3) </li></ul>
901
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00236">236</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
903
References <a class="el" href="qwt__double__range_8cpp-source.html#l00262">QwtDoubleRange::incValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00329">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00342">QwtDoubleRange::minValue()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00382">setValue()</a>.
906
<a class="anchor" name="4fd4e750b1f5a852250e57778a3e4159"></a><!-- doxytag: member="QwtCounter::rangeChange" ref="4fd4e750b1f5a852250e57778a3e4159" args="()" -->
907
<div class="memitem">
908
<div class="memproto">
909
<table class="memname">
911
<td class="memname">void QwtCounter::rangeChange </td>
913
<td class="paramname"> </td>
914
<td> ) </td>
915
<td width="100%"><code> [protected, virtual]</code></td>
922
Notify change of range.
924
This function updates the enabled property of all buttons contained in <a class="el" href="class_qwt_counter.html">QwtCounter</a>.
926
Reimplemented from <a class="el" href="class_qwt_double_range.html#3583134a1ac32706aa4742088bb9d4dc">QwtDoubleRange</a>.
928
Definition at line <a class="el" href="qwt__counter_8cpp-source.html#l00507">507</a> of file <a class="el" href="qwt__counter_8cpp-source.html">qwt_counter.cpp</a>.
931
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:24 2009 for Qwt User's Guide by
932
<a href="http://www.doxygen.org/index.html">
933
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>