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: QwtAbstractSlider 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.4.6 -->
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>QwtAbstractSlider Class Reference</h1><!-- doxytag: class="QwtAbstractSlider" --><!-- doxytag: inherits="QwtDoubleRange" -->Inheritance diagram for QwtAbstractSlider:<p><center><img src="class_qwt_abstract_slider__inherit__graph.png" border="0" usemap="#_qwt_abstract_slider__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_abstract_slider__inherit__map">
24
<area href="class_qwt_dial.html" shape="rect" coords="100,157,167,181" alt="">
25
<area href="class_qwt_knob.html" shape="rect" coords="191,157,268,181" alt="">
26
<area href="class_qwt_slider.html" shape="rect" coords="292,157,372,181" alt="">
27
<area href="class_qwt_wheel.html" shape="rect" coords="396,157,479,181" alt="">
28
<area href="class_qwt_double_range.html" shape="rect" coords="217,8,343,32" alt="">
29
<area href="class_qwt_analog_clock.html" shape="rect" coords="7,232,127,256" alt="">
30
<area href="class_qwt_compass.html" shape="rect" coords="151,232,252,256" alt="">
32
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtAbstractSlider:<p><center><img src="class_qwt_abstract_slider__coll__graph.png" border="0" usemap="#_qwt_abstract_slider__coll__map" alt="Collaboration graph"></center>
33
<map name="_qwt_abstract_slider__coll__map">
34
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
36
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_abstract_slider-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
37
An abstract base class for slider widgets.
39
<a class="el" href="class_qwt_abstract_slider.html">QwtAbstractSlider</a> is a base class for slider widgets. It handles mouse events and updates the slider's value accordingly. Derived classes only have to implement the <a class="el" href="class_qwt_abstract_slider.html#6e26a993536813c2d9846a28f3c27aa7">getValue()</a> and <a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">getScrollMode()</a> members, and should react to a <a class="el" href="class_qwt_abstract_slider.html#2f04dc51e4402b51fef3250bcc99dc7f">valueChange()</a>, which normally requires repainting.
43
Definition at line <a class="el" href="qwt__abstract__slider_8h-source.html#l00028">28</a> of file <a class="el" href="qwt__abstract__slider_8h-source.html">qwt_abstract_slider.h</a>.<table border="0" cellpadding="0" cellspacing="0">
45
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#e4c0c4844ac6a35356f3c529a8eae154">ScrollMode</a> { <br>
47
<b>ScrNone</b>,
49
<b>ScrMouse</b>,
51
<b>ScrTimer</b>,
53
<b>ScrDirect</b>,
55
<b>ScrPage</b>
59
<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#c3713f8989b647cb79f0a5894991e36a">setValue</a> (double val)</td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#50ed1e265beaa1c8adbe718caa023e50">fitValue</a> (double val)</td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#5fccdb2ca370bba9ed4d29864fd80788">incValue</a> (int steps)</td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#9cc63283a2d4f0bcbb67fd331629a318">setReadOnly</a> (bool)</td></tr>
68
<tr><td colspan="2"><br><h2>Signals</h2></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_abstract_slider.html#6bc5c410cd56119c6ad50743c9a46af1">valueChanged</a> (double value)</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#fd92a0c79c113b3c5e9952d12cff80f5">sliderPressed</a> ()</td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#b94184da7a029a5f586671251ff380ea">sliderReleased</a> ()</td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#e59671d27931b545073e599a10967452">sliderMoved</a> (double value)</td></tr>
77
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#5d23c0db6786757d7523b7fbfb3c34c9">QwtAbstractSlider</a> (Qt::Orientation, QWidget *parent=NULL)</td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#31b9e0314988b7d547c9ded625014bbb">~QwtAbstractSlider</a> ()</td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#945ba36e1b8e20d362083f6737b0601d">setUpdateTime</a> (int t)</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_abstract_slider.html#b648229c972d0c3258d30b0c43eb5efc">stopMoving</a> ()</td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#91c03aada61745d8924f47319afefee1">setTracking</a> (bool enable)</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_abstract_slider.html#305b137fe4dd80cba307fe1b4bd46272">setMass</a> (double val)</td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#130105fc2001c53cea65f21b03f0b5db">mass</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_abstract_slider.html#6b0fdc50bfbb0a8bb40f0dc6bf493b2c">setOrientation</a> (Qt::Orientation o)</td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">Qt::Orientation </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#4d2521b9c31ec64b71d8e1771b156d88">orientation</a> () const </td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#040fd1fd03592c524314bf4b5539608d">isReadOnly</a> () const </td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#87c750f098cb5f70306a7908339cb88e">isValid</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_abstract_slider.html#79d99f14ebd47dfede8135845c90cedb">setValid</a> (bool valid)</td></tr>
102
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
103
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#f9849c5c21412c7308cac6ad6a420e47">setPosition</a> (const QPoint &)</td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#2f04dc51e4402b51fef3250bcc99dc7f">valueChange</a> ()</td></tr>
107
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#26f4d684524925891113d46ffe383b5d">timerEvent</a> (QTimerEvent *e)</td></tr>
109
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#60e33a71d34b23e9ebefebaa24cdd8c2">mousePressEvent</a> (QMouseEvent *e)</td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#8f27604396c9d2544931638b806c13e3">mouseReleaseEvent</a> (QMouseEvent *e)</td></tr>
113
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#f9599b94c6771181ede59a84e33c0e6e">mouseMoveEvent</a> (QMouseEvent *e)</td></tr>
115
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#4d55f8ffab93d8610bc026e00e3bdc81">keyPressEvent</a> (QKeyEvent *e)</td></tr>
117
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#25d5c9fe00c81e310304461fa6e8ec97">wheelEvent</a> (QWheelEvent *e)</td></tr>
119
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#6e26a993536813c2d9846a28f3c27aa7">getValue</a> (const QPoint &p)=0</td></tr>
121
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">getScrollMode</a> (const QPoint &p, int &scrollMode, int &direction)=0</td></tr>
123
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="120e5a03094ef0baf793000972a21722"></a><!-- doxytag: member="QwtAbstractSlider::setMouseOffset" ref="120e5a03094ef0baf793000972a21722" args="(double)" -->
124
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#120e5a03094ef0baf793000972a21722">setMouseOffset</a> (double)</td></tr>
126
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="138397a755057932b5da72f526fc74e6"></a><!-- doxytag: member="QwtAbstractSlider::mouseOffset" ref="138397a755057932b5da72f526fc74e6" args="() const " -->
127
double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#138397a755057932b5da72f526fc74e6">mouseOffset</a> () const </td></tr>
129
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4a1b9e022180a8567f09632388002396"></a><!-- doxytag: member="QwtAbstractSlider::scrollMode" ref="4a1b9e022180a8567f09632388002396" args="() const " -->
130
int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_slider.html#4a1b9e022180a8567f09632388002396">scrollMode</a> () const </td></tr>
133
<hr><h2>Member Enumeration Documentation</h2>
134
<a class="anchor" name="e4c0c4844ac6a35356f3c529a8eae154"></a><!-- doxytag: member="QwtAbstractSlider::ScrollMode" ref="e4c0c4844ac6a35356f3c529a8eae154" args="" --><p>
135
<table class="mdTable" cellpadding="2" cellspacing="0">
138
<table cellpadding="0" cellspacing="0" border="0">
140
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_abstract_slider.html#e4c0c4844ac6a35356f3c529a8eae154">QwtAbstractSlider::ScrollMode</a> </td>
146
<table cellspacing="5" cellpadding="0" border="0">
154
Scroll mode <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">getScrollMode()</a> </dd></dl>
157
Definition at line <a class="el" href="qwt__abstract__slider_8h-source.html#l00050">50</a> of file <a class="el" href="qwt__abstract__slider_8h-source.html">qwt_abstract_slider.h</a>. </td>
160
<hr><h2>Constructor & Destructor Documentation</h2>
161
<a class="anchor" name="5d23c0db6786757d7523b7fbfb3c34c9"></a><!-- doxytag: member="QwtAbstractSlider::QwtAbstractSlider" ref="5d23c0db6786757d7523b7fbfb3c34c9" args="(Qt::Orientation, QWidget *parent=NULL)" --><p>
162
<table class="mdTable" cellpadding="2" cellspacing="0">
165
<table cellpadding="0" cellspacing="0" border="0">
167
<td class="md" nowrap valign="top">QwtAbstractSlider::QwtAbstractSlider </td>
168
<td class="md" valign="top">( </td>
169
<td class="md" nowrap valign="top">Qt::Orientation </td>
170
<td class="mdname" nowrap> <em>orientation</em>, </td>
173
<td class="md" nowrap align="right"></td>
175
<td class="md" nowrap>QWidget * </td>
176
<td class="mdname" nowrap> <em>parent</em> = <code>NULL</code></td>
180
<td class="md">) </td>
181
<td class="md" colspan="2"><code> [explicit]</code></td>
187
<table cellspacing="5" cellpadding="0" border="0">
197
<dl compact><dt><b>Parameters:</b></dt><dd>
198
<table border="0" cellspacing="2" cellpadding="0">
199
<tr><td valign="top"></td><td valign="top"><em>orientation</em> </td><td>Orientation </td></tr>
200
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Parent widget </td></tr>
205
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00054">54</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>. </td>
208
<a class="anchor" name="31b9e0314988b7d547c9ded625014bbb"></a><!-- doxytag: member="QwtAbstractSlider::~QwtAbstractSlider" ref="31b9e0314988b7d547c9ded625014bbb" args="()" --><p>
209
<table class="mdTable" cellpadding="2" cellspacing="0">
212
<table cellpadding="0" cellspacing="0" border="0">
214
<td class="md" nowrap valign="top">QwtAbstractSlider::~QwtAbstractSlider </td>
215
<td class="md" valign="top">( </td>
216
<td class="mdname1" valign="top" nowrap> </td>
217
<td class="md" valign="top"> ) </td>
218
<td class="md" nowrap><code> [virtual]</code></td>
224
<table cellspacing="5" cellpadding="0" border="0">
236
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00068">68</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>. </td>
239
<hr><h2>Member Function Documentation</h2>
240
<a class="anchor" name="50ed1e265beaa1c8adbe718caa023e50"></a><!-- doxytag: member="QwtAbstractSlider::fitValue" ref="50ed1e265beaa1c8adbe718caa023e50" args="(double val)" --><p>
241
<table class="mdTable" cellpadding="2" cellspacing="0">
244
<table cellpadding="0" cellspacing="0" border="0">
246
<td class="md" nowrap valign="top">void QwtAbstractSlider::fitValue </td>
247
<td class="md" valign="top">( </td>
248
<td class="md" nowrap valign="top">double </td>
249
<td class="mdname1" valign="top" nowrap> <em>value</em> </td>
250
<td class="md" valign="top"> ) </td>
251
<td class="md" nowrap><code> [virtual, slot]</code></td>
257
<table cellspacing="5" cellpadding="0" border="0">
265
Set the slider's value to the nearest integer multiple of the step size.
267
<dl compact><dt><b>Parameters:</b></dt><dd>
268
<table border="0" cellspacing="2" cellpadding="0">
269
<tr><td valign="top"></td><td valign="top"><em>valeu</em> </td><td>Value </td></tr>
272
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#c3713f8989b647cb79f0a5894991e36a">setValue()</a>, <a class="el" href="class_qwt_abstract_slider.html#5fccdb2ca370bba9ed4d29864fd80788">incValue()</a> </dd></dl>
275
Reimplemented from <a class="el" href="class_qwt_double_range.html#63bc8ea5e7ecd776b7d32d21db1ea668">QwtDoubleRange</a>.
277
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00550">550</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
279
References <a class="el" href="qwt__double__range_8cpp-source.html#l00132">QwtDoubleRange::fitValue()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">stopMoving()</a>. </td>
282
<a class="anchor" name="dcb6819c88cfa27e9ea3d8828479ea0b"></a><!-- doxytag: member="QwtAbstractSlider::getScrollMode" ref="dcb6819c88cfa27e9ea3d8828479ea0b" args="(const QPoint &p, int &scrollMode, int &direction)=0" --><p>
283
<table class="mdTable" cellpadding="2" cellspacing="0">
286
<table cellpadding="0" cellspacing="0" border="0">
288
<td class="md" nowrap valign="top">virtual void QwtAbstractSlider::getScrollMode </td>
289
<td class="md" valign="top">( </td>
290
<td class="md" nowrap valign="top">const QPoint & </td>
291
<td class="mdname" nowrap> <em>p</em>, </td>
294
<td class="md" nowrap align="right"></td>
296
<td class="md" nowrap>int & </td>
297
<td class="mdname" nowrap> <em>scrollMode</em>, </td>
300
<td class="md" nowrap align="right"></td>
302
<td class="md" nowrap>int & </td>
303
<td class="mdname" nowrap> <em>direction</em></td>
307
<td class="md">) </td>
308
<td class="md" colspan="2"><code> [protected, pure virtual]</code></td>
314
<table cellspacing="5" cellpadding="0" border="0">
322
Determine what to do when the user presses a mouse button.
324
This function is abstract and has to be implemented by derived classes. It is called on a mousePress event. The derived class can determine what should happen next in dependence of the position where the mouse was pressed by returning scrolling mode and direction. <a class="el" href="class_qwt_abstract_slider.html">QwtAbstractSlider</a> knows the following modes:<dl>
325
<dt>QwtAbstractSlider::ScrNone </dt>
326
<dd>Scrolling switched off. Don't change the value. </dd>
327
<dt>QwtAbstractSlider::ScrMouse </dt>
328
<dd>Change the value while the user keeps the button pressed and moves the mouse. </dd>
329
<dt>QwtAbstractSlider::ScrTimer </dt>
330
<dd>Automatic scrolling. Increment the value in the specified direction as long as the user keeps the button pressed. </dd>
331
<dt>QwtAbstractSlider::ScrPage </dt>
332
<dd>Automatic scrolling. Same as ScrTimer, but increment by page size.</dd>
335
<dl compact><dt><b>Parameters:</b></dt><dd>
336
<table border="0" cellspacing="2" cellpadding="0">
337
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>point where the mouse was pressed </td></tr>
340
<dl compact><dt><b>Return values:</b></dt><dd>
341
<table border="0" cellspacing="2" cellpadding="0">
342
<tr><td valign="top"></td><td valign="top"><em>scrollMode</em> </td><td>The scrolling mode </td></tr>
343
<tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>direction: 1, 0, or -1. </td></tr>
348
Implemented in <a class="el" href="class_qwt_dial.html#59ee7746e97b37dca5dc80927bb167d1">QwtDial</a>, <a class="el" href="class_qwt_slider.html#1b901e8ce7cdb3b04cf00caf83dd81af">QwtSlider</a>, and <a class="el" href="class_qwt_wheel.html#2655146c5d017756566691e8142b8fcd">QwtWheel</a>.
350
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">mousePressEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">wheelEvent()</a>. </td>
353
<a class="anchor" name="6e26a993536813c2d9846a28f3c27aa7"></a><!-- doxytag: member="QwtAbstractSlider::getValue" ref="6e26a993536813c2d9846a28f3c27aa7" args="(const QPoint &p)=0" --><p>
354
<table class="mdTable" cellpadding="2" cellspacing="0">
357
<table cellpadding="0" cellspacing="0" border="0">
359
<td class="md" nowrap valign="top">virtual double QwtAbstractSlider::getValue </td>
360
<td class="md" valign="top">( </td>
361
<td class="md" nowrap valign="top">const QPoint & </td>
362
<td class="mdname1" valign="top" nowrap> <em>p</em> </td>
363
<td class="md" valign="top"> ) </td>
364
<td class="md" nowrap><code> [protected, pure virtual]</code></td>
370
<table cellspacing="5" cellpadding="0" border="0">
378
Determine the value corresponding to a specified poind.
380
This is an abstract virtual function which is called when the user presses or releases a mouse button or moves the mouse. It has to be implemented by the derived class. <dl compact><dt><b>Parameters:</b></dt><dd>
381
<table border="0" cellspacing="2" cellpadding="0">
382
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>point </td></tr>
387
Implemented in <a class="el" href="class_qwt_dial.html#7acb904d2f2e9b20178cd9a9d9b37d3f">QwtDial</a>, <a class="el" href="class_qwt_slider.html#9dce1bf10fdcd92feae56dd77a455358">QwtSlider</a>, and <a class="el" href="class_qwt_wheel.html#6bb116593e63e724059c894a6fc41097">QwtWheel</a>.
389
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">mousePressEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00276">setPosition()</a>. </td>
392
<a class="anchor" name="5fccdb2ca370bba9ed4d29864fd80788"></a><!-- doxytag: member="QwtAbstractSlider::incValue" ref="5fccdb2ca370bba9ed4d29864fd80788" args="(int steps)" --><p>
393
<table class="mdTable" cellpadding="2" cellspacing="0">
396
<table cellpadding="0" cellspacing="0" border="0">
398
<td class="md" nowrap valign="top">void QwtAbstractSlider::incValue </td>
399
<td class="md" valign="top">( </td>
400
<td class="md" nowrap valign="top">int </td>
401
<td class="mdname1" valign="top" nowrap> <em>steps</em> </td>
402
<td class="md" valign="top"> ) </td>
403
<td class="md" nowrap><code> [virtual, slot]</code></td>
409
<table cellspacing="5" cellpadding="0" border="0">
417
Increment the value by a specified number of steps.
419
<dl compact><dt><b>Parameters:</b></dt><dd>
420
<table border="0" cellspacing="2" cellpadding="0">
421
<tr><td valign="top"></td><td valign="top"><em>steps</em> </td><td>number of steps </td></tr>
424
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#c3713f8989b647cb79f0a5894991e36a">setValue()</a> </dd></dl>
427
Reimplemented from <a class="el" href="class_qwt_double_range.html#299c35c72e9b69f5a0e3dcd2b7da775b">QwtDoubleRange</a>.
429
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00562">562</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
431
References <a class="el" href="qwt__double__range_8cpp-source.html#l00259">QwtDoubleRange::incValue()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">stopMoving()</a>. </td>
434
<a class="anchor" name="040fd1fd03592c524314bf4b5539608d"></a><!-- doxytag: member="QwtAbstractSlider::isReadOnly" ref="040fd1fd03592c524314bf4b5539608d" args="() const " --><p>
435
<table class="mdTable" cellpadding="2" cellspacing="0">
438
<table cellpadding="0" cellspacing="0" border="0">
440
<td class="md" nowrap valign="top">bool QwtAbstractSlider::isReadOnly </td>
441
<td class="md" valign="top">( </td>
442
<td class="mdname1" valign="top" nowrap> </td>
443
<td class="md" valign="top"> ) </td>
444
<td class="md" nowrap> const</td>
450
<table cellspacing="5" cellpadding="0" border="0">
458
In read only mode the slider can't be controlled by mouse or keyboard.<p>
459
<dl compact><dt><b>Returns:</b></dt><dd>true if read only </dd></dl>
460
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#9cc63283a2d4f0bcbb67fd331629a318">setReadOnly()</a> </dd></dl>
463
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">98</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
465
Referenced by <a class="el" href="qwt__dial_8cpp-source.html#l00463">QwtDial::drawFocusIndicator()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01187">QwtDial::keyPressEvent()</a>, <a class="el" href="qwt__compass_8cpp-source.html#l00196">QwtCompass::keyPressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00371">keyPressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00305">mouseMoveEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">mousePressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">mouseReleaseEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">wheelEvent()</a>. </td>
468
<a class="anchor" name="87c750f098cb5f70306a7908339cb88e"></a><!-- doxytag: member="QwtAbstractSlider::isValid" ref="87c750f098cb5f70306a7908339cb88e" args="() const " --><p>
469
<table class="mdTable" cellpadding="2" cellspacing="0">
472
<table cellpadding="0" cellspacing="0" border="0">
474
<td class="md" nowrap valign="top">bool QwtAbstractSlider::isValid </td>
475
<td class="md" valign="top">( </td>
476
<td class="mdname1" valign="top" nowrap> </td>
477
<td class="md" valign="top"> ) </td>
478
<td class="md" nowrap> const<code> [inline]</code></td>
484
<table cellspacing="5" cellpadding="0" border="0">
492
<dl compact><dt><b>See also:</b></dt><dd>QwtDblRange::isValid </dd></dl>
495
Reimplemented from <a class="el" href="class_qwt_double_range.html#fc4921deb3f68a64cc08b0654a040bc6">QwtDoubleRange</a>.
497
Definition at line <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">87</a> of file <a class="el" href="qwt__abstract__slider_8h-source.html">qwt_abstract_slider.h</a>.
499
References <a class="el" href="qwt__double__range_8cpp-source.html#l00051">QwtDoubleRange::isValid()</a>.
501
Referenced by <a class="el" href="qwt__dial_8cpp-source.html#l00572">QwtDial::drawContents()</a>, <a class="el" href="qwt__knob_8cpp-source.html#l00189">QwtKnob::drawKnob()</a>, <a class="el" href="qwt__analog__clock_8cpp-source.html#l00191">QwtAnalogClock::drawNeedle()</a>, <a class="el" href="qwt__compass_8cpp-source.html#l00114">QwtCompass::drawScaleContents()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00319">QwtSlider::drawSlider()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01187">QwtDial::keyPressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00371">keyPressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00305">mouseMoveEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">mousePressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">mouseReleaseEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">wheelEvent()</a>. </td>
504
<a class="anchor" name="4d55f8ffab93d8610bc026e00e3bdc81"></a><!-- doxytag: member="QwtAbstractSlider::keyPressEvent" ref="4d55f8ffab93d8610bc026e00e3bdc81" args="(QKeyEvent *e)" --><p>
505
<table class="mdTable" cellpadding="2" cellspacing="0">
508
<table cellpadding="0" cellspacing="0" border="0">
510
<td class="md" nowrap valign="top">void QwtAbstractSlider::keyPressEvent </td>
511
<td class="md" valign="top">( </td>
512
<td class="md" nowrap valign="top">QKeyEvent * </td>
513
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
514
<td class="md" valign="top"> ) </td>
515
<td class="md" nowrap><code> [protected, virtual]</code></td>
521
<table cellspacing="5" cellpadding="0" border="0">
529
Handles key events<p>
531
<li>Key_Down, KeyLeft<br>
532
Decrement by 1</li><li>Key_Up, Key_Right<br>
533
Increment by 1</li></ul>
535
<dl compact><dt><b>Parameters:</b></dt><dd>
536
<table border="0" cellspacing="2" cellpadding="0">
537
<tr><td valign="top"></td><td valign="top"><em>e</em> </td><td>Key event </td></tr>
540
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#040fd1fd03592c524314bf4b5539608d">isReadOnly()</a> </dd></dl>
543
Reimplemented in <a class="el" href="class_qwt_compass.html#d4f31e6837ea045834fe67d192a4209d">QwtCompass</a>, and <a class="el" href="class_qwt_dial.html#61a2341a76abc20ea5bd72a0485be136">QwtDial</a>.
545
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00371">371</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
547
References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">isReadOnly()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">isValid()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">orientation()</a>. </td>
550
<a class="anchor" name="130105fc2001c53cea65f21b03f0b5db"></a><!-- doxytag: member="QwtAbstractSlider::mass" ref="130105fc2001c53cea65f21b03f0b5db" args="() const " --><p>
551
<table class="mdTable" cellpadding="2" cellspacing="0">
554
<table cellpadding="0" cellspacing="0" border="0">
556
<td class="md" nowrap valign="top">double QwtAbstractSlider::mass </td>
557
<td class="md" valign="top">( </td>
558
<td class="mdname1" valign="top" nowrap> </td>
559
<td class="md" valign="top"> ) </td>
560
<td class="md" nowrap> const<code> [virtual]</code></td>
566
<table cellspacing="5" cellpadding="0" border="0">
574
<dl compact><dt><b>Returns:</b></dt><dd>mass </dd></dl>
575
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#305b137fe4dd80cba307fe1b4bd46272">setMass()</a> </dd></dl>
578
Reimplemented in <a class="el" href="class_qwt_wheel.html#55de1496f0eef04da9bc293306a40df6">QwtWheel</a>.
580
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00521">521</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
582
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00168">QwtWheel::mass()</a>. </td>
585
<a class="anchor" name="f9599b94c6771181ede59a84e33c0e6e"></a><!-- doxytag: member="QwtAbstractSlider::mouseMoveEvent" ref="f9599b94c6771181ede59a84e33c0e6e" args="(QMouseEvent *e)" --><p>
586
<table class="mdTable" cellpadding="2" cellspacing="0">
589
<table cellpadding="0" cellspacing="0" border="0">
591
<td class="md" nowrap valign="top">void QwtAbstractSlider::mouseMoveEvent </td>
592
<td class="md" valign="top">( </td>
593
<td class="md" nowrap valign="top">QMouseEvent * </td>
594
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
595
<td class="md" valign="top"> ) </td>
596
<td class="md" nowrap><code> [protected, virtual]</code></td>
602
<table cellspacing="5" cellpadding="0" border="0">
610
Mouse Move Event handler <dl compact><dt><b>Parameters:</b></dt><dd>
611
<table border="0" cellspacing="2" cellpadding="0">
612
<tr><td valign="top"></td><td valign="top"><em>e</em> </td><td>Mouse event </td></tr>
617
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00305">305</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
619
References <a class="el" href="qwt__double__range_8cpp-source.html#l00380">QwtDoubleRange::exactPrevValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00374">QwtDoubleRange::exactValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">isReadOnly()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">isValid()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00386">QwtDoubleRange::prevValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00276">setPosition()</a>, <a class="el" href="class_qwt_abstract_slider.html#e59671d27931b545073e599a10967452">sliderMoved()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>. </td>
622
<a class="anchor" name="60e33a71d34b23e9ebefebaa24cdd8c2"></a><!-- doxytag: member="QwtAbstractSlider::mousePressEvent" ref="60e33a71d34b23e9ebefebaa24cdd8c2" args="(QMouseEvent *e)" --><p>
623
<table class="mdTable" cellpadding="2" cellspacing="0">
626
<table cellpadding="0" cellspacing="0" border="0">
628
<td class="md" nowrap valign="top">void QwtAbstractSlider::mousePressEvent </td>
629
<td class="md" valign="top">( </td>
630
<td class="md" nowrap valign="top">QMouseEvent * </td>
631
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
632
<td class="md" valign="top"> ) </td>
633
<td class="md" nowrap><code> [protected, virtual]</code></td>
639
<table cellspacing="5" cellpadding="0" border="0">
647
Mouse press event handler.
651
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">147</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
653
References <a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">getScrollMode()</a>, <a class="el" href="class_qwt_abstract_slider.html#6e26a993536813c2d9846a28f3c27aa7">getValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">isReadOnly()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">isValid()</a>, <a class="el" href="class_qwt_abstract_slider.html#fd92a0c79c113b3c5e9952d12cff80f5">sliderPressed()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">stopMoving()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>. </td>
656
<a class="anchor" name="8f27604396c9d2544931638b806c13e3"></a><!-- doxytag: member="QwtAbstractSlider::mouseReleaseEvent" ref="8f27604396c9d2544931638b806c13e3" args="(QMouseEvent *e)" --><p>
657
<table class="mdTable" cellpadding="2" cellspacing="0">
660
<table cellpadding="0" cellspacing="0" border="0">
662
<td class="md" nowrap valign="top">void QwtAbstractSlider::mouseReleaseEvent </td>
663
<td class="md" valign="top">( </td>
664
<td class="md" nowrap valign="top">QMouseEvent * </td>
665
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
666
<td class="md" valign="top"> ) </td>
667
<td class="md" nowrap><code> [protected, virtual]</code></td>
673
<table cellspacing="5" cellpadding="0" border="0">
681
Mouse Release Event handler.
685
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">196</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
687
References <a class="el" href="qwt__double__range_8cpp-source.html#l00132">QwtDoubleRange::fitValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00271">QwtDoubleRange::incPages()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">isReadOnly()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">isValid()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00276">setPosition()</a>, <a class="el" href="class_qwt_abstract_slider.html#b94184da7a029a5f586671251ff380ea">sliderReleased()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00313">QwtDoubleRange::step()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">stopMoving()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>. </td>
690
<a class="anchor" name="4d2521b9c31ec64b71d8e1771b156d88"></a><!-- doxytag: member="QwtAbstractSlider::orientation" ref="4d2521b9c31ec64b71d8e1771b156d88" args="() const " --><p>
691
<table class="mdTable" cellpadding="2" cellspacing="0">
694
<table cellpadding="0" cellspacing="0" border="0">
696
<td class="md" nowrap valign="top">Qt::Orientation QwtAbstractSlider::orientation </td>
697
<td class="md" valign="top">( </td>
698
<td class="mdname1" valign="top" nowrap> </td>
699
<td class="md" valign="top"> ) </td>
700
<td class="md" nowrap> const</td>
706
<table cellspacing="5" cellpadding="0" border="0">
714
<dl compact><dt><b>Returns:</b></dt><dd>Orientation </dd></dl>
715
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#6b0fdc50bfbb0a8bb40f0dc6bf493b2c">setOrientation()</a> </dd></dl>
718
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">117</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
720
Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00319">QwtSlider::drawSlider()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00395">QwtSlider::drawThumb()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00375">QwtWheel::drawWheel()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00197">QwtWheel::drawWheelBackground()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00494">QwtWheel::getValue()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00459">QwtSlider::getValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00371">keyPressEvent()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00546">QwtSlider::layoutSlider()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00642">QwtWheel::minimumSizeHint()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00777">QwtSlider::minimumSizeHint()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00325">QwtWheel::setOrientation()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00174">QwtSlider::setOrientation()</a>. </td>
723
<a class="anchor" name="305b137fe4dd80cba307fe1b4bd46272"></a><!-- doxytag: member="QwtAbstractSlider::setMass" ref="305b137fe4dd80cba307fe1b4bd46272" args="(double val)" --><p>
724
<table class="mdTable" cellpadding="2" cellspacing="0">
727
<table cellpadding="0" cellspacing="0" border="0">
729
<td class="md" nowrap valign="top">void QwtAbstractSlider::setMass </td>
730
<td class="md" valign="top">( </td>
731
<td class="md" nowrap valign="top">double </td>
732
<td class="mdname1" valign="top" nowrap> <em>val</em> </td>
733
<td class="md" valign="top"> ) </td>
734
<td class="md" nowrap><code> [virtual]</code></td>
740
<table cellspacing="5" cellpadding="0" border="0">
748
Set the slider's mass for flywheel effect.
750
If the slider's mass is greater then 0, it will continue to move after the mouse button has been released. Its speed decreases with time at a rate depending on the slider's mass. A large mass means that it will continue to move for a long time.<p>
751
Derived widgets may overload this function to make it public.<p>
752
<dl compact><dt><b>Parameters:</b></dt><dd>
753
<table border="0" cellspacing="2" cellpadding="0">
754
<tr><td valign="top"></td><td valign="top"><em>val</em> </td><td>New mass in kg</td></tr>
757
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#130105fc2001c53cea65f21b03f0b5db">mass()</a> </dd></dl>
760
Reimplemented in <a class="el" href="class_qwt_wheel.html#811ef1cf04a3d39eb017fcfe808bbd4f">QwtWheel</a>.
762
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00507">507</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
764
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00612">QwtWheel::setMass()</a>. </td>
767
<a class="anchor" name="6b0fdc50bfbb0a8bb40f0dc6bf493b2c"></a><!-- doxytag: member="QwtAbstractSlider::setOrientation" ref="6b0fdc50bfbb0a8bb40f0dc6bf493b2c" args="(Qt::Orientation o)" --><p>
768
<table class="mdTable" cellpadding="2" cellspacing="0">
771
<table cellpadding="0" cellspacing="0" border="0">
773
<td class="md" nowrap valign="top">void QwtAbstractSlider::setOrientation </td>
774
<td class="md" valign="top">( </td>
775
<td class="md" nowrap valign="top">Qt::Orientation </td>
776
<td class="mdname1" valign="top" nowrap> <em>o</em> </td>
777
<td class="md" valign="top"> ) </td>
778
<td class="md" nowrap><code> [virtual]</code></td>
784
<table cellspacing="5" cellpadding="0" border="0">
794
<dl compact><dt><b>Parameters:</b></dt><dd>
795
<table border="0" cellspacing="2" cellpadding="0">
796
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. </td></tr>
801
Reimplemented in <a class="el" href="class_qwt_slider.html#3a5d51f56dee5e51dc37bb6f546b16b5">QwtSlider</a>, and <a class="el" href="class_qwt_wheel.html#cae74c8161fd1df728f26253dd1defa8">QwtWheel</a>.
803
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00108">108</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
805
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00325">QwtWheel::setOrientation()</a>, and <a class="el" href="qwt__slider_8cpp-source.html#l00174">QwtSlider::setOrientation()</a>. </td>
808
<a class="anchor" name="f9849c5c21412c7308cac6ad6a420e47"></a><!-- doxytag: member="QwtAbstractSlider::setPosition" ref="f9849c5c21412c7308cac6ad6a420e47" args="(const QPoint &)" --><p>
809
<table class="mdTable" cellpadding="2" cellspacing="0">
812
<table cellpadding="0" cellspacing="0" border="0">
814
<td class="md" nowrap valign="top">void QwtAbstractSlider::setPosition </td>
815
<td class="md" valign="top">( </td>
816
<td class="md" nowrap valign="top">const QPoint & </td>
817
<td class="mdname1" valign="top" nowrap> <em>p</em> </td>
818
<td class="md" valign="top"> ) </td>
819
<td class="md" nowrap><code> [protected, virtual]</code></td>
825
<table cellspacing="5" cellpadding="0" border="0">
833
Move the slider to a specified point, adjust the value and emit signals if necessary.
835
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00276">276</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
837
References <a class="el" href="qwt__double__range_8cpp-source.html#l00132">QwtDoubleRange::fitValue()</a>, and <a class="el" href="class_qwt_abstract_slider.html#6e26a993536813c2d9846a28f3c27aa7">getValue()</a>.
839
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00305">mouseMoveEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">mouseReleaseEvent()</a>. </td>
842
<a class="anchor" name="9cc63283a2d4f0bcbb67fd331629a318"></a><!-- doxytag: member="QwtAbstractSlider::setReadOnly" ref="9cc63283a2d4f0bcbb67fd331629a318" args="(bool)" --><p>
843
<table class="mdTable" cellpadding="2" cellspacing="0">
846
<table cellpadding="0" cellspacing="0" border="0">
848
<td class="md" nowrap valign="top">void QwtAbstractSlider::setReadOnly </td>
849
<td class="md" valign="top">( </td>
850
<td class="md" nowrap valign="top">bool </td>
851
<td class="mdname1" valign="top" nowrap> <em>readOnly</em> </td>
852
<td class="md" valign="top"> ) </td>
853
<td class="md" nowrap><code> [virtual, slot]</code></td>
859
<table cellspacing="5" cellpadding="0" border="0">
867
En/Disable read only mode<p>
868
In read only mode the slider can't be controlled by mouse or keyboard.<p>
869
<dl compact><dt><b>Parameters:</b></dt><dd>
870
<table border="0" cellspacing="2" cellpadding="0">
871
<tr><td valign="top"></td><td valign="top"><em>readOnly</em> </td><td>Enables in case of true </td></tr>
874
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#040fd1fd03592c524314bf4b5539608d">isReadOnly()</a> </dd></dl>
877
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00085">85</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>. </td>
880
<a class="anchor" name="91c03aada61745d8924f47319afefee1"></a><!-- doxytag: member="QwtAbstractSlider::setTracking" ref="91c03aada61745d8924f47319afefee1" args="(bool enable)" --><p>
881
<table class="mdTable" cellpadding="2" cellspacing="0">
884
<table cellpadding="0" cellspacing="0" border="0">
886
<td class="md" nowrap valign="top">void QwtAbstractSlider::setTracking </td>
887
<td class="md" valign="top">( </td>
888
<td class="md" nowrap valign="top">bool </td>
889
<td class="mdname1" valign="top" nowrap> <em>enable</em> </td>
890
<td class="md" valign="top"> ) </td>
891
<td class="md" nowrap></td>
897
<table cellspacing="5" cellpadding="0" border="0">
905
Enables or disables tracking.
907
If tracking is enabled, the slider emits a <a class="el" href="class_qwt_abstract_slider.html#6bc5c410cd56119c6ad50743c9a46af1">valueChanged()</a> signal whenever its value changes (the default behaviour). If tracking is disabled, the value changed() signal will only be emitted if:<ul>
909
the user releases the mouse button and the value has changed or </li>
911
at the end of automatic scrolling.</li>
913
Tracking is enabled by default. <dl compact><dt><b>Parameters:</b></dt><dd>
914
<table border="0" cellspacing="2" cellpadding="0">
915
<tr><td valign="top"></td><td valign="top"><em>enable</em> </td><td><code>true</code> (enable) or <code>false</code> (disable) tracking. </td></tr>
920
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00296">296</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>. </td>
923
<a class="anchor" name="945ba36e1b8e20d362083f6737b0601d"></a><!-- doxytag: member="QwtAbstractSlider::setUpdateTime" ref="945ba36e1b8e20d362083f6737b0601d" args="(int t)" --><p>
924
<table class="mdTable" cellpadding="2" cellspacing="0">
927
<table cellpadding="0" cellspacing="0" border="0">
929
<td class="md" nowrap valign="top">void QwtAbstractSlider::setUpdateTime </td>
930
<td class="md" valign="top">( </td>
931
<td class="md" nowrap valign="top">int </td>
932
<td class="mdname1" valign="top" nowrap> <em>t</em> </td>
933
<td class="md" valign="top"> ) </td>
934
<td class="md" nowrap></td>
940
<table cellspacing="5" cellpadding="0" border="0">
948
Specify the update interval for automatic scrolling.
950
<dl compact><dt><b>Parameters:</b></dt><dd>
951
<table border="0" cellspacing="2" cellpadding="0">
952
<tr><td valign="top"></td><td valign="top"><em>t</em> </td><td>update interval in milliseconds </td></tr>
955
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">getScrollMode()</a> </dd></dl>
958
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00138">138</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>. </td>
961
<a class="anchor" name="79d99f14ebd47dfede8135845c90cedb"></a><!-- doxytag: member="QwtAbstractSlider::setValid" ref="79d99f14ebd47dfede8135845c90cedb" args="(bool valid)" --><p>
962
<table class="mdTable" cellpadding="2" cellspacing="0">
965
<table cellpadding="0" cellspacing="0" border="0">
967
<td class="md" nowrap valign="top">void QwtAbstractSlider::setValid </td>
968
<td class="md" valign="top">( </td>
969
<td class="md" nowrap valign="top">bool </td>
970
<td class="mdname1" valign="top" nowrap> <em>valid</em> </td>
971
<td class="md" valign="top"> ) </td>
972
<td class="md" nowrap><code> [inline]</code></td>
978
<table cellspacing="5" cellpadding="0" border="0">
986
<dl compact><dt><b>See also:</b></dt><dd>QwtDblRange::isValid </dd></dl>
989
Reimplemented from <a class="el" href="class_qwt_double_range.html#50a9c386663e170016a74cf8ee28ab8f">QwtDoubleRange</a>.
991
Definition at line <a class="el" href="qwt__abstract__slider_8h-source.html#l00092">92</a> of file <a class="el" href="qwt__abstract__slider_8h-source.html">qwt_abstract_slider.h</a>.
993
References <a class="el" href="qwt__double__range_8cpp-source.html#l00041">QwtDoubleRange::setValid()</a>. </td>
996
<a class="anchor" name="c3713f8989b647cb79f0a5894991e36a"></a><!-- doxytag: member="QwtAbstractSlider::setValue" ref="c3713f8989b647cb79f0a5894991e36a" args="(double val)" --><p>
997
<table class="mdTable" cellpadding="2" cellspacing="0">
1000
<table cellpadding="0" cellspacing="0" border="0">
1002
<td class="md" nowrap valign="top">void QwtAbstractSlider::setValue </td>
1003
<td class="md" valign="top">( </td>
1004
<td class="md" nowrap valign="top">double </td>
1005
<td class="mdname1" valign="top" nowrap> <em>val</em> </td>
1006
<td class="md" valign="top"> ) </td>
1007
<td class="md" nowrap><code> [virtual, slot]</code></td>
1013
<table cellspacing="5" cellpadding="0" border="0">
1021
Move the slider to a specified value.
1023
This function can be used to move the slider to a value which is not an integer multiple of the step size. <dl compact><dt><b>Parameters:</b></dt><dd>
1024
<table border="0" cellspacing="2" cellpadding="0">
1025
<tr><td valign="top"></td><td valign="top"><em>val</em> </td><td>new value </td></tr>
1028
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html#50ed1e265beaa1c8adbe718caa023e50">fitValue()</a> </dd></dl>
1031
Reimplemented from <a class="el" href="class_qwt_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">QwtDoubleRange</a>.
1033
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00535">535</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
1035
References <a class="el" href="qwt__double__range_8cpp-source.html#l00147">QwtDoubleRange::setValue()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">stopMoving()</a>.
1037
Referenced by <a class="el" href="qwt__dial_8cpp-source.html#l01187">QwtDial::keyPressEvent()</a>, and <a class="el" href="qwt__analog__clock_8cpp-source.html#l00151">QwtAnalogClock::setTime()</a>. </td>
1040
<a class="anchor" name="e59671d27931b545073e599a10967452"></a><!-- doxytag: member="QwtAbstractSlider::sliderMoved" ref="e59671d27931b545073e599a10967452" args="(double value)" --><p>
1041
<table class="mdTable" cellpadding="2" cellspacing="0">
1044
<table cellpadding="0" cellspacing="0" border="0">
1046
<td class="md" nowrap valign="top">void QwtAbstractSlider::sliderMoved </td>
1047
<td class="md" valign="top">( </td>
1048
<td class="md" nowrap valign="top">double </td>
1049
<td class="mdname1" valign="top" nowrap> <em>value</em> </td>
1050
<td class="md" valign="top"> ) </td>
1051
<td class="md" nowrap><code> [signal]</code></td>
1057
<table cellspacing="5" cellpadding="0" border="0">
1065
This signal is emitted when the user moves the slider with the mouse. <dl compact><dt><b>Parameters:</b></dt><dd>
1066
<table border="0" cellspacing="2" cellpadding="0">
1067
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>new value </td></tr>
1072
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00305">mouseMoveEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">wheelEvent()</a>. </td>
1075
<a class="anchor" name="fd92a0c79c113b3c5e9952d12cff80f5"></a><!-- doxytag: member="QwtAbstractSlider::sliderPressed" ref="fd92a0c79c113b3c5e9952d12cff80f5" args="()" --><p>
1076
<table class="mdTable" cellpadding="2" cellspacing="0">
1079
<table cellpadding="0" cellspacing="0" border="0">
1081
<td class="md" nowrap valign="top">void QwtAbstractSlider::sliderPressed </td>
1082
<td class="md" valign="top">( </td>
1083
<td class="mdname1" valign="top" nowrap> </td>
1084
<td class="md" valign="top"> ) </td>
1085
<td class="md" nowrap><code> [signal]</code></td>
1091
<table cellspacing="5" cellpadding="0" border="0">
1099
This signal is emitted when the user presses the movable part of the slider (start ScrMouse Mode).
1101
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">mousePressEvent()</a>. </td>
1104
<a class="anchor" name="b94184da7a029a5f586671251ff380ea"></a><!-- doxytag: member="QwtAbstractSlider::sliderReleased" ref="b94184da7a029a5f586671251ff380ea" args="()" --><p>
1105
<table class="mdTable" cellpadding="2" cellspacing="0">
1108
<table cellpadding="0" cellspacing="0" border="0">
1110
<td class="md" nowrap valign="top">void QwtAbstractSlider::sliderReleased </td>
1111
<td class="md" valign="top">( </td>
1112
<td class="mdname1" valign="top" nowrap> </td>
1113
<td class="md" valign="top"> ) </td>
1114
<td class="md" nowrap><code> [signal]</code></td>
1120
<table cellspacing="5" cellpadding="0" border="0">
1128
This signal is emitted when the user releases the movable part of the slider.
1130
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">mouseReleaseEvent()</a>. </td>
1133
<a class="anchor" name="b648229c972d0c3258d30b0c43eb5efc"></a><!-- doxytag: member="QwtAbstractSlider::stopMoving" ref="b648229c972d0c3258d30b0c43eb5efc" args="()" --><p>
1134
<table class="mdTable" cellpadding="2" cellspacing="0">
1137
<table cellpadding="0" cellspacing="0" border="0">
1139
<td class="md" nowrap valign="top">void QwtAbstractSlider::stopMoving </td>
1140
<td class="md" valign="top">( </td>
1141
<td class="mdname1" valign="top" nowrap> </td>
1142
<td class="md" valign="top"> ) </td>
1143
<td class="md" nowrap></td>
1149
<table cellspacing="5" cellpadding="0" border="0">
1157
Stop updating if automatic scrolling is active.
1161
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">124</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
1163
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00550">fitValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00562">incValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">mousePressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">mouseReleaseEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00535">setValue()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00417">timerEvent()</a>. </td>
1166
<a class="anchor" name="26f4d684524925891113d46ffe383b5d"></a><!-- doxytag: member="QwtAbstractSlider::timerEvent" ref="26f4d684524925891113d46ffe383b5d" args="(QTimerEvent *e)" --><p>
1167
<table class="mdTable" cellpadding="2" cellspacing="0">
1170
<table cellpadding="0" cellspacing="0" border="0">
1172
<td class="md" nowrap valign="top">void QwtAbstractSlider::timerEvent </td>
1173
<td class="md" valign="top">( </td>
1174
<td class="md" nowrap valign="top">QTimerEvent * </td>
1175
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
1176
<td class="md" valign="top"> ) </td>
1177
<td class="md" nowrap><code> [protected, virtual]</code></td>
1183
<table cellspacing="5" cellpadding="0" border="0">
1191
Qt timer event <dl compact><dt><b>Parameters:</b></dt><dd>
1192
<table border="0" cellspacing="2" cellpadding="0">
1193
<tr><td valign="top"></td><td valign="top"><em>e</em> </td><td>Timer event </td></tr>
1198
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00417">417</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
1200
References <a class="el" href="qwt__double__range_8cpp-source.html#l00374">QwtDoubleRange::exactValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00132">QwtDoubleRange::fitValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00271">QwtDoubleRange::incPages()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00313">QwtDoubleRange::step()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00124">stopMoving()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>. </td>
1203
<a class="anchor" name="2f04dc51e4402b51fef3250bcc99dc7f"></a><!-- doxytag: member="QwtAbstractSlider::valueChange" ref="2f04dc51e4402b51fef3250bcc99dc7f" args="()" --><p>
1204
<table class="mdTable" cellpadding="2" cellspacing="0">
1207
<table cellpadding="0" cellspacing="0" border="0">
1209
<td class="md" nowrap valign="top">void QwtAbstractSlider::valueChange </td>
1210
<td class="md" valign="top">( </td>
1211
<td class="mdname1" valign="top" nowrap> </td>
1212
<td class="md" valign="top"> ) </td>
1213
<td class="md" nowrap><code> [protected, virtual]</code></td>
1219
<table cellspacing="5" cellpadding="0" border="0">
1227
Notify change of value<p>
1228
This function can be reimplemented by derived classes in order to keep track of changes, i.e. repaint the widget. The default implementation emits a <a class="el" href="class_qwt_abstract_slider.html#6bc5c410cd56119c6ad50743c9a46af1">valueChanged()</a> signal if tracking is enabled.
1230
Reimplemented from <a class="el" href="class_qwt_double_range.html#1d50398342d6aa1d9cd86650ee29aff8">QwtDoubleRange</a>.
1232
Reimplemented in <a class="el" href="class_qwt_dial.html#d8803d79d9fbefdae55907728bb01894">QwtDial</a>, <a class="el" href="class_qwt_slider.html#62380259b0831ad98a1b0ad011f32bea">QwtSlider</a>, and <a class="el" href="class_qwt_wheel.html#0fa3d4f4189f7bb6ee0944cd30060eb5">QwtWheel</a>.
1234
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00484">484</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
1236
References <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>, and <a class="el" href="class_qwt_abstract_slider.html#6bc5c410cd56119c6ad50743c9a46af1">valueChanged()</a>.
1238
Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00582">QwtWheel::valueChange()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00684">QwtSlider::valueChange()</a>, and <a class="el" href="qwt__dial_8cpp-source.html#l00992">QwtDial::valueChange()</a>. </td>
1241
<a class="anchor" name="6bc5c410cd56119c6ad50743c9a46af1"></a><!-- doxytag: member="QwtAbstractSlider::valueChanged" ref="6bc5c410cd56119c6ad50743c9a46af1" args="(double value)" --><p>
1242
<table class="mdTable" cellpadding="2" cellspacing="0">
1245
<table cellpadding="0" cellspacing="0" border="0">
1247
<td class="md" nowrap valign="top">void QwtAbstractSlider::valueChanged </td>
1248
<td class="md" valign="top">( </td>
1249
<td class="md" nowrap valign="top">double </td>
1250
<td class="mdname1" valign="top" nowrap> <em>value</em> </td>
1251
<td class="md" valign="top"> ) </td>
1252
<td class="md" nowrap><code> [signal]</code></td>
1258
<table cellspacing="5" cellpadding="0" border="0">
1266
Notify a change of value.
1268
In the default setting (tracking enabled), this signal will be emitted every time the value changes ( see <a class="el" href="class_qwt_abstract_slider.html#91c03aada61745d8924f47319afefee1">setTracking()</a> ). <dl compact><dt><b>Parameters:</b></dt><dd>
1269
<table border="0" cellspacing="2" cellpadding="0">
1270
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>new value </td></tr>
1275
Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00484">valueChange()</a>. </td>
1278
<a class="anchor" name="25d5c9fe00c81e310304461fa6e8ec97"></a><!-- doxytag: member="QwtAbstractSlider::wheelEvent" ref="25d5c9fe00c81e310304461fa6e8ec97" args="(QWheelEvent *e)" --><p>
1279
<table class="mdTable" cellpadding="2" cellspacing="0">
1282
<table cellpadding="0" cellspacing="0" border="0">
1284
<td class="md" nowrap valign="top">void QwtAbstractSlider::wheelEvent </td>
1285
<td class="md" valign="top">( </td>
1286
<td class="md" nowrap valign="top">QWheelEvent * </td>
1287
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
1288
<td class="md" valign="top"> ) </td>
1289
<td class="md" nowrap><code> [protected, virtual]</code></td>
1295
<table cellspacing="5" cellpadding="0" border="0">
1303
Wheel Event handler <dl compact><dt><b>Parameters:</b></dt><dd>
1304
<table border="0" cellspacing="2" cellpadding="0">
1305
<tr><td valign="top"></td><td valign="top"><em>e</em> </td><td>Whell event </td></tr>
1310
Definition at line <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">336</a> of file <a class="el" href="qwt__abstract__slider_8cpp-source.html">qwt_abstract_slider.cpp</a>.
1312
References <a class="el" href="class_qwt_abstract_slider.html#dcb6819c88cfa27e9ea3d8828479ea0b">getScrollMode()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00271">QwtDoubleRange::incPages()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00098">isReadOnly()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">isValid()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00386">QwtDoubleRange::prevValue()</a>, <a class="el" href="class_qwt_abstract_slider.html#e59671d27931b545073e599a10967452">sliderMoved()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>. </td>
1315
<hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:22:51 2007 for Qwt User's Guide by
1316
<a href="http://www.doxygen.org/index.html">
1317
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>