~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.0/doc/man/man3/QwtAbstractSlider.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-05-26 10:26:31 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526102631-bp95mfccnrb957nx
Tags: 5.1.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtAbstractSlider" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtAbstractSlider \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
Inherits \fBQwtDoubleRange\fP.
10
 
.PP
11
 
Inherited by \fBQwtDial\fP, \fBQwtKnob\fP, \fBQwtSlider\fP, and \fBQwtWheel\fP.
12
 
.PP
13
 
.SH "Detailed Description"
14
 
.PP 
15
 
An abstract base class for slider widgets. 
16
 
 
17
 
\fBQwtAbstractSlider\fP 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 \fBgetValue()\fP and \fBgetScrollMode()\fP members, and should react to a \fBvalueChange()\fP, which normally requires repainting. 
18
 
.PP
19
 
Definition at line 28 of file qwt_abstract_slider.h.
20
 
.SS "Public Types"
21
 
 
22
 
.in +1c
23
 
.ti -1c
24
 
.RI "enum \fBScrollMode\fP { \fBScrNone\fP, \fBScrMouse\fP, \fBScrTimer\fP, \fBScrDirect\fP, \fBScrPage\fP }"
25
 
.br
26
 
.in -1c
27
 
.SS "Public Slots"
28
 
 
29
 
.in +1c
30
 
.ti -1c
31
 
.RI "virtual void \fBsetValue\fP (double val)"
32
 
.br
33
 
.ti -1c
34
 
.RI "virtual void \fBfitValue\fP (double val)"
35
 
.br
36
 
.ti -1c
37
 
.RI "virtual void \fBincValue\fP (int steps)"
38
 
.br
39
 
.ti -1c
40
 
.RI "virtual void \fBsetReadOnly\fP (bool)"
41
 
.br
42
 
.in -1c
43
 
.SS "Signals"
44
 
 
45
 
.in +1c
46
 
.ti -1c
47
 
.RI "void \fBvalueChanged\fP (double value)"
48
 
.br
49
 
.ti -1c
50
 
.RI "void \fBsliderPressed\fP ()"
51
 
.br
52
 
.ti -1c
53
 
.RI "void \fBsliderReleased\fP ()"
54
 
.br
55
 
.ti -1c
56
 
.RI "void \fBsliderMoved\fP (double value)"
57
 
.br
58
 
.in -1c
59
 
.SS "Public Member Functions"
60
 
 
61
 
.in +1c
62
 
.ti -1c
63
 
.RI "\fBQwtAbstractSlider\fP (Qt::Orientation, QWidget *parent=NULL)"
64
 
.br
65
 
.ti -1c
66
 
.RI "virtual \fB~QwtAbstractSlider\fP ()"
67
 
.br
68
 
.ti -1c
69
 
.RI "void \fBsetUpdateTime\fP (int t)"
70
 
.br
71
 
.ti -1c
72
 
.RI "void \fBstopMoving\fP ()"
73
 
.br
74
 
.ti -1c
75
 
.RI "void \fBsetTracking\fP (bool enable)"
76
 
.br
77
 
.ti -1c
78
 
.RI "virtual void \fBsetMass\fP (double val)"
79
 
.br
80
 
.ti -1c
81
 
.RI "virtual double \fBmass\fP () const"
82
 
.br
83
 
.ti -1c
84
 
.RI "virtual void \fBsetOrientation\fP (Qt::Orientation o)"
85
 
.br
86
 
.ti -1c
87
 
.RI "Qt::Orientation \fBorientation\fP () const"
88
 
.br
89
 
.ti -1c
90
 
.RI "bool \fBisReadOnly\fP () const"
91
 
.br
92
 
.ti -1c
93
 
.RI "bool \fBisValid\fP () const"
94
 
.br
95
 
.ti -1c
96
 
.RI "void \fBsetValid\fP (bool valid)"
97
 
.br
98
 
.in -1c
99
 
.SS "Protected Member Functions"
100
 
 
101
 
.in +1c
102
 
.ti -1c
103
 
.RI "virtual void \fBsetPosition\fP (const QPoint &)"
104
 
.br
105
 
.ti -1c
106
 
.RI "virtual void \fBvalueChange\fP ()"
107
 
.br
108
 
.ti -1c
109
 
.RI "virtual void \fBtimerEvent\fP (QTimerEvent *e)"
110
 
.br
111
 
.ti -1c
112
 
.RI "virtual void \fBmousePressEvent\fP (QMouseEvent *e)"
113
 
.br
114
 
.ti -1c
115
 
.RI "virtual void \fBmouseReleaseEvent\fP (QMouseEvent *e)"
116
 
.br
117
 
.ti -1c
118
 
.RI "virtual void \fBmouseMoveEvent\fP (QMouseEvent *e)"
119
 
.br
120
 
.ti -1c
121
 
.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *e)"
122
 
.br
123
 
.ti -1c
124
 
.RI "virtual void \fBwheelEvent\fP (QWheelEvent *e)"
125
 
.br
126
 
.ti -1c
127
 
.RI "virtual double \fBgetValue\fP (const QPoint &p)=0"
128
 
.br
129
 
.ti -1c
130
 
.RI "virtual void \fBgetScrollMode\fP (const QPoint &p, int &scrollMode, int &direction)=0"
131
 
.br
132
 
.ti -1c
133
 
.RI "void \fBsetMouseOffset\fP (double)"
134
 
.br
135
 
.ti -1c
136
 
.RI "double \fBmouseOffset\fP () const"
137
 
.br
138
 
.ti -1c
139
 
.RI "int \fBscrollMode\fP () const"
140
 
.br
141
 
.in -1c
142
 
.SH "Member Enumeration Documentation"
143
 
.PP 
144
 
.SS "enum \fBQwtAbstractSlider::ScrollMode\fP"
145
 
.PP
146
 
Scroll mode 
147
 
.PP
148
 
\fBSee also:\fP
149
 
.RS 4
150
 
\fBgetScrollMode()\fP 
151
 
.RE
152
 
.PP
153
 
 
154
 
.PP
155
 
Definition at line 50 of file qwt_abstract_slider.h.
156
 
.SH "Constructor & Destructor Documentation"
157
 
.PP 
158
 
.SS "QwtAbstractSlider::QwtAbstractSlider (Qt::Orientation orientation, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
159
 
.PP
160
 
Constructor. 
161
 
.PP
162
 
\fBParameters:\fP
163
 
.RS 4
164
 
\fIorientation\fP Orientation 
165
 
.br
166
 
\fIparent\fP Parent widget 
167
 
.RE
168
 
.PP
169
 
 
170
 
.PP
171
 
Definition at line 54 of file qwt_abstract_slider.cpp.
172
 
.SS "QwtAbstractSlider::~QwtAbstractSlider ()\fC [virtual]\fP"
173
 
.PP
174
 
Destructor. 
175
 
.PP
176
 
Definition at line 68 of file qwt_abstract_slider.cpp.
177
 
.SH "Member Function Documentation"
178
 
.PP 
179
 
.SS "void QwtAbstractSlider::setUpdateTime (int t)"
180
 
.PP
181
 
Specify the update interval for automatic scrolling. 
182
 
.PP
183
 
\fBParameters:\fP
184
 
.RS 4
185
 
\fIt\fP update interval in milliseconds 
186
 
.RE
187
 
.PP
188
 
\fBSee also:\fP
189
 
.RS 4
190
 
\fBgetScrollMode()\fP 
191
 
.RE
192
 
.PP
193
 
 
194
 
.PP
195
 
Definition at line 138 of file qwt_abstract_slider.cpp.
196
 
.SS "void QwtAbstractSlider::stopMoving ()"
197
 
.PP
198
 
Stop updating if automatic scrolling is active. 
199
 
.PP
200
 
Definition at line 124 of file qwt_abstract_slider.cpp.
201
 
.PP
202
 
Referenced by fitValue(), incValue(), mousePressEvent(), mouseReleaseEvent(), setValue(), and timerEvent().
203
 
.SS "void QwtAbstractSlider::setTracking (bool enable)"
204
 
.PP
205
 
Enables or disables tracking. 
206
 
.PP
207
 
If tracking is enabled, the slider emits a \fBvalueChanged()\fP signal whenever its value changes (the default behaviour). If tracking is disabled, the value changed() signal will only be emitted if:
208
 
.PD 0
209
 
 
210
 
.IP "\(bu" 2
211
 
the user releases the mouse button and the value has changed or 
212
 
.IP "\(bu" 2
213
 
at the end of automatic scrolling.
214
 
.PP
215
 
Tracking is enabled by default. 
216
 
.PP
217
 
\fBParameters:\fP
218
 
.RS 4
219
 
\fIenable\fP \fCtrue\fP (enable) or \fCfalse\fP (disable) tracking. 
220
 
.RE
221
 
.PP
222
 
 
223
 
.PP
224
 
Definition at line 296 of file qwt_abstract_slider.cpp.
225
 
.SS "void QwtAbstractSlider::setMass (double val)\fC [virtual]\fP"
226
 
.PP
227
 
Set the slider's mass for flywheel effect. 
228
 
.PP
229
 
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.
230
 
.PP
231
 
Derived widgets may overload this function to make it public.
232
 
.PP
233
 
\fBParameters:\fP
234
 
.RS 4
235
 
\fIval\fP New mass in kg
236
 
.RE
237
 
.PP
238
 
\fBSee also:\fP
239
 
.RS 4
240
 
\fBmass()\fP 
241
 
.RE
242
 
.PP
243
 
 
244
 
.PP
245
 
Reimplemented in \fBQwtWheel\fP.
246
 
.PP
247
 
Definition at line 507 of file qwt_abstract_slider.cpp.
248
 
.PP
249
 
Referenced by QwtWheel::setMass().
250
 
.SS "double QwtAbstractSlider::mass () const\fC [virtual]\fP"
251
 
.PP
252
 
\fBReturns:\fP
253
 
.RS 4
254
 
mass 
255
 
.RE
256
 
.PP
257
 
\fBSee also:\fP
258
 
.RS 4
259
 
\fBsetMass()\fP 
260
 
.RE
261
 
.PP
262
 
 
263
 
.PP
264
 
Reimplemented in \fBQwtWheel\fP.
265
 
.PP
266
 
Definition at line 521 of file qwt_abstract_slider.cpp.
267
 
.PP
268
 
Referenced by QwtWheel::mass().
269
 
.SS "void QwtAbstractSlider::setOrientation (Qt::Orientation o)\fC [virtual]\fP"
270
 
.PP
271
 
Set the orientation. 
272
 
.PP
273
 
\fBParameters:\fP
274
 
.RS 4
275
 
\fIo\fP Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. 
276
 
.RE
277
 
.PP
278
 
 
279
 
.PP
280
 
Reimplemented in \fBQwtSlider\fP, and \fBQwtWheel\fP.
281
 
.PP
282
 
Definition at line 108 of file qwt_abstract_slider.cpp.
283
 
.PP
284
 
Referenced by QwtWheel::setOrientation(), and QwtSlider::setOrientation().
285
 
.SS "Qt::Orientation QwtAbstractSlider::orientation () const"
286
 
.PP
287
 
\fBReturns:\fP
288
 
.RS 4
289
 
Orientation 
290
 
.RE
291
 
.PP
292
 
\fBSee also:\fP
293
 
.RS 4
294
 
\fBsetOrientation()\fP 
295
 
.RE
296
 
.PP
297
 
 
298
 
.PP
299
 
Definition at line 117 of file qwt_abstract_slider.cpp.
300
 
.PP
301
 
Referenced by QwtSlider::drawSlider(), QwtSlider::drawThumb(), QwtWheel::drawWheel(), QwtWheel::drawWheelBackground(), QwtSlider::getScrollMode(), QwtWheel::getValue(), QwtSlider::getValue(), keyPressEvent(), QwtSlider::layoutSlider(), QwtWheel::minimumSizeHint(), QwtSlider::minimumSizeHint(), QwtWheel::setOrientation(), and QwtSlider::setOrientation().
302
 
.SS "bool QwtAbstractSlider::isReadOnly () const"
303
 
.PP
304
 
In read only mode the slider can't be controlled by mouse or keyboard.
305
 
.PP
306
 
\fBReturns:\fP
307
 
.RS 4
308
 
true if read only 
309
 
.RE
310
 
.PP
311
 
\fBSee also:\fP
312
 
.RS 4
313
 
\fBsetReadOnly()\fP 
314
 
.RE
315
 
.PP
316
 
 
317
 
.PP
318
 
Definition at line 98 of file qwt_abstract_slider.cpp.
319
 
.PP
320
 
Referenced by QwtDial::drawFocusIndicator(), QwtDial::keyPressEvent(), QwtCompass::keyPressEvent(), keyPressEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
321
 
.SS "bool QwtAbstractSlider::isValid () const\fC [inline]\fP"
322
 
.PP
323
 
\fBSee also:\fP
324
 
.RS 4
325
 
QwtDblRange::isValid 
326
 
.RE
327
 
.PP
328
 
 
329
 
.PP
330
 
Reimplemented from \fBQwtDoubleRange\fP.
331
 
.PP
332
 
Definition at line 87 of file qwt_abstract_slider.h.
333
 
.PP
334
 
References QwtDoubleRange::isValid().
335
 
.PP
336
 
Referenced by QwtDial::drawContents(), QwtKnob::drawKnob(), QwtAnalogClock::drawNeedle(), QwtCompass::drawScaleContents(), QwtSlider::drawSlider(), QwtDial::keyPressEvent(), keyPressEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
337
 
.SS "void QwtAbstractSlider::setValid (bool valid)\fC [inline]\fP"
338
 
.PP
339
 
\fBSee also:\fP
340
 
.RS 4
341
 
QwtDblRange::isValid 
342
 
.RE
343
 
.PP
344
 
 
345
 
.PP
346
 
Reimplemented from \fBQwtDoubleRange\fP.
347
 
.PP
348
 
Definition at line 92 of file qwt_abstract_slider.h.
349
 
.PP
350
 
References QwtDoubleRange::setValid().
351
 
.PP
352
 
Referenced by QwtAnalogClock::setTime().
353
 
.SS "void QwtAbstractSlider::setValue (double val)\fC [virtual, slot]\fP"
354
 
.PP
355
 
Move the slider to a specified value. 
356
 
.PP
357
 
This function can be used to move the slider to a value which is not an integer multiple of the step size. 
358
 
.PP
359
 
\fBParameters:\fP
360
 
.RS 4
361
 
\fIval\fP new value 
362
 
.RE
363
 
.PP
364
 
\fBSee also:\fP
365
 
.RS 4
366
 
\fBfitValue()\fP 
367
 
.RE
368
 
.PP
369
 
 
370
 
.PP
371
 
Reimplemented from \fBQwtDoubleRange\fP.
372
 
.PP
373
 
Definition at line 535 of file qwt_abstract_slider.cpp.
374
 
.PP
375
 
References QwtDoubleRange::setValue(), and stopMoving().
376
 
.PP
377
 
Referenced by QwtDial::keyPressEvent(), QwtCompass::keyPressEvent(), and QwtAnalogClock::setTime().
378
 
.SS "void QwtAbstractSlider::fitValue (double value)\fC [virtual, slot]\fP"
379
 
.PP
380
 
Set the slider's value to the nearest integer multiple of the step size. 
381
 
.PP
382
 
\fBParameters:\fP
383
 
.RS 4
384
 
\fIvaleu\fP Value 
385
 
.RE
386
 
.PP
387
 
\fBSee also:\fP
388
 
.RS 4
389
 
\fBsetValue()\fP, \fBincValue()\fP 
390
 
.RE
391
 
.PP
392
 
 
393
 
.PP
394
 
Reimplemented from \fBQwtDoubleRange\fP.
395
 
.PP
396
 
Definition at line 550 of file qwt_abstract_slider.cpp.
397
 
.PP
398
 
References QwtDoubleRange::fitValue(), and stopMoving().
399
 
.SS "void QwtAbstractSlider::incValue (int steps)\fC [virtual, slot]\fP"
400
 
.PP
401
 
Increment the value by a specified number of steps. 
402
 
.PP
403
 
\fBParameters:\fP
404
 
.RS 4
405
 
\fIsteps\fP number of steps 
406
 
.RE
407
 
.PP
408
 
\fBSee also:\fP
409
 
.RS 4
410
 
\fBsetValue()\fP 
411
 
.RE
412
 
.PP
413
 
 
414
 
.PP
415
 
Reimplemented from \fBQwtDoubleRange\fP.
416
 
.PP
417
 
Definition at line 562 of file qwt_abstract_slider.cpp.
418
 
.PP
419
 
References QwtDoubleRange::incValue(), and stopMoving().
420
 
.SS "void QwtAbstractSlider::setReadOnly (bool readOnly)\fC [virtual, slot]\fP"
421
 
.PP
422
 
En/Disable read only mode
423
 
.PP
424
 
In read only mode the slider can't be controlled by mouse or keyboard.
425
 
.PP
426
 
\fBParameters:\fP
427
 
.RS 4
428
 
\fIreadOnly\fP Enables in case of true 
429
 
.RE
430
 
.PP
431
 
\fBSee also:\fP
432
 
.RS 4
433
 
\fBisReadOnly()\fP 
434
 
.RE
435
 
.PP
436
 
 
437
 
.PP
438
 
Definition at line 85 of file qwt_abstract_slider.cpp.
439
 
.SS "void QwtAbstractSlider::valueChanged (double value)\fC [signal]\fP"
440
 
.PP
441
 
Notify a change of value. 
442
 
.PP
443
 
In the default setting (tracking enabled), this signal will be emitted every time the value changes ( see \fBsetTracking()\fP ). 
444
 
.PP
445
 
\fBParameters:\fP
446
 
.RS 4
447
 
\fIvalue\fP new value 
448
 
.RE
449
 
.PP
450
 
 
451
 
.PP
452
 
Referenced by valueChange().
453
 
.SS "void QwtAbstractSlider::sliderPressed ()\fC [signal]\fP"
454
 
.PP
455
 
This signal is emitted when the user presses the movable part of the slider (start ScrMouse Mode). 
456
 
.PP
457
 
Referenced by mousePressEvent().
458
 
.SS "void QwtAbstractSlider::sliderReleased ()\fC [signal]\fP"
459
 
.PP
460
 
This signal is emitted when the user releases the movable part of the slider. 
461
 
.PP
462
 
Referenced by mouseReleaseEvent().
463
 
.SS "void QwtAbstractSlider::sliderMoved (double value)\fC [signal]\fP"
464
 
.PP
465
 
This signal is emitted when the user moves the slider with the mouse. 
466
 
.PP
467
 
\fBParameters:\fP
468
 
.RS 4
469
 
\fIvalue\fP new value 
470
 
.RE
471
 
.PP
472
 
 
473
 
.PP
474
 
Referenced by QwtDial::keyPressEvent(), keyPressEvent(), mouseMoveEvent(), and wheelEvent().
475
 
.SS "void QwtAbstractSlider::setPosition (const QPoint & p)\fC [protected, virtual]\fP"
476
 
.PP
477
 
Move the slider to a specified point, adjust the value and emit signals if necessary. 
478
 
.PP
479
 
Definition at line 276 of file qwt_abstract_slider.cpp.
480
 
.PP
481
 
References QwtDoubleRange::fitValue(), and getValue().
482
 
.PP
483
 
Referenced by mouseMoveEvent(), and mouseReleaseEvent().
484
 
.SS "void QwtAbstractSlider::valueChange ()\fC [protected, virtual]\fP"
485
 
.PP
486
 
Notify change of value
487
 
.PP
488
 
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 \fBvalueChanged()\fP signal if tracking is enabled. 
489
 
.PP
490
 
Reimplemented from \fBQwtDoubleRange\fP.
491
 
.PP
492
 
Reimplemented in \fBQwtDial\fP, \fBQwtSlider\fP, and \fBQwtWheel\fP.
493
 
.PP
494
 
Definition at line 484 of file qwt_abstract_slider.cpp.
495
 
.PP
496
 
References QwtDoubleRange::value(), and valueChanged().
497
 
.PP
498
 
Referenced by QwtWheel::valueChange(), QwtSlider::valueChange(), and QwtDial::valueChange().
499
 
.SS "void QwtAbstractSlider::timerEvent (QTimerEvent * e)\fC [protected, virtual]\fP"
500
 
.PP
501
 
Qt timer event 
502
 
.PP
503
 
\fBParameters:\fP
504
 
.RS 4
505
 
\fIe\fP Timer event 
506
 
.RE
507
 
.PP
508
 
 
509
 
.PP
510
 
Definition at line 417 of file qwt_abstract_slider.cpp.
511
 
.PP
512
 
References QwtDoubleRange::exactValue(), QwtDoubleRange::fitValue(), QwtDoubleRange::incPages(), QwtDoubleRange::step(), stopMoving(), and QwtDoubleRange::value().
513
 
.SS "void QwtAbstractSlider::mousePressEvent (QMouseEvent * e)\fC [protected, virtual]\fP"
514
 
.PP
515
 
Mouse press event handler. 
516
 
.PP
517
 
Definition at line 147 of file qwt_abstract_slider.cpp.
518
 
.PP
519
 
References getScrollMode(), getValue(), isReadOnly(), isValid(), sliderPressed(), stopMoving(), and QwtDoubleRange::value().
520
 
.SS "void QwtAbstractSlider::mouseReleaseEvent (QMouseEvent * e)\fC [protected, virtual]\fP"
521
 
.PP
522
 
Mouse Release Event handler. 
523
 
.PP
524
 
Definition at line 196 of file qwt_abstract_slider.cpp.
525
 
.PP
526
 
References QwtDoubleRange::fitValue(), QwtDoubleRange::incPages(), isReadOnly(), isValid(), setPosition(), sliderReleased(), QwtDoubleRange::step(), stopMoving(), and QwtDoubleRange::value().
527
 
.SS "void QwtAbstractSlider::mouseMoveEvent (QMouseEvent * e)\fC [protected, virtual]\fP"
528
 
.PP
529
 
Mouse Move Event handler 
530
 
.PP
531
 
\fBParameters:\fP
532
 
.RS 4
533
 
\fIe\fP Mouse event 
534
 
.RE
535
 
.PP
536
 
 
537
 
.PP
538
 
Definition at line 305 of file qwt_abstract_slider.cpp.
539
 
.PP
540
 
References QwtDoubleRange::exactPrevValue(), QwtDoubleRange::exactValue(), isReadOnly(), isValid(), QwtDoubleRange::prevValue(), setPosition(), sliderMoved(), and QwtDoubleRange::value().
541
 
.SS "void QwtAbstractSlider::keyPressEvent (QKeyEvent * e)\fC [protected, virtual]\fP"
542
 
.PP
543
 
Handles key events
544
 
.PP
545
 
.IP "\(bu" 2
546
 
Key_Down, KeyLeft
547
 
.br
548
 
 Decrement by 1
549
 
.IP "\(bu" 2
550
 
Key_Up, Key_Right
551
 
.br
552
 
 Increment by 1
553
 
.PP
554
 
.PP
555
 
\fBParameters:\fP
556
 
.RS 4
557
 
\fIe\fP Key event 
558
 
.RE
559
 
.PP
560
 
\fBSee also:\fP
561
 
.RS 4
562
 
\fBisReadOnly()\fP 
563
 
.RE
564
 
.PP
565
 
 
566
 
.PP
567
 
Reimplemented in \fBQwtCompass\fP, and \fBQwtDial\fP.
568
 
.PP
569
 
Definition at line 371 of file qwt_abstract_slider.cpp.
570
 
.PP
571
 
References QwtDoubleRange::incValue(), isReadOnly(), isValid(), orientation(), QwtDoubleRange::prevValue(), sliderMoved(), and QwtDoubleRange::value().
572
 
.SS "void QwtAbstractSlider::wheelEvent (QWheelEvent * e)\fC [protected, virtual]\fP"
573
 
.PP
574
 
Wheel Event handler 
575
 
.PP
576
 
\fBParameters:\fP
577
 
.RS 4
578
 
\fIe\fP Whell event 
579
 
.RE
580
 
.PP
581
 
 
582
 
.PP
583
 
Definition at line 336 of file qwt_abstract_slider.cpp.
584
 
.PP
585
 
References getScrollMode(), QwtDoubleRange::incPages(), isReadOnly(), isValid(), QwtDoubleRange::prevValue(), sliderMoved(), and QwtDoubleRange::value().
586
 
.SS "virtual double QwtAbstractSlider::getValue (const QPoint & p)\fC [protected, pure virtual]\fP"
587
 
.PP
588
 
Determine the value corresponding to a specified poind. 
589
 
.PP
590
 
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. 
591
 
.PP
592
 
\fBParameters:\fP
593
 
.RS 4
594
 
\fIp\fP point 
595
 
.RE
596
 
.PP
597
 
 
598
 
.PP
599
 
Implemented in \fBQwtDial\fP, \fBQwtSlider\fP, and \fBQwtWheel\fP.
600
 
.PP
601
 
Referenced by mousePressEvent(), and setPosition().
602
 
.SS "virtual void QwtAbstractSlider::getScrollMode (const QPoint & p, int & scrollMode, int & direction)\fC [protected, pure virtual]\fP"
603
 
.PP
604
 
Determine what to do when the user presses a mouse button. 
605
 
.PP
606
 
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. \fBQwtAbstractSlider\fP knows the following modes:
607
 
.IP "\fBQwtAbstractSlider::ScrNone \fP" 1c
608
 
Scrolling switched off. Don't change the value. 
609
 
.IP "\fBQwtAbstractSlider::ScrMouse \fP" 1c
610
 
Change the value while the user keeps the button pressed and moves the mouse. 
611
 
.IP "\fBQwtAbstractSlider::ScrTimer \fP" 1c
612
 
Automatic scrolling. Increment the value in the specified direction as long as the user keeps the button pressed. 
613
 
.IP "\fBQwtAbstractSlider::ScrPage \fP" 1c
614
 
Automatic scrolling. Same as ScrTimer, but increment by page size.
615
 
.PP
616
 
.PP
617
 
\fBParameters:\fP
618
 
.RS 4
619
 
\fIp\fP point where the mouse was pressed 
620
 
.RE
621
 
.PP
622
 
\fBReturn values:\fP
623
 
.RS 4
624
 
\fIscrollMode\fP The scrolling mode 
625
 
.br
626
 
\fIdirection\fP direction: 1, 0, or -1. 
627
 
.RE
628
 
.PP
629
 
 
630
 
.PP
631
 
Implemented in \fBQwtDial\fP, \fBQwtSlider\fP, and \fBQwtWheel\fP.
632
 
.PP
633
 
Referenced by mousePressEvent(), and wheelEvent().
634
 
 
635
 
.SH "Author"
636
 
.PP 
637
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.