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

« back to all changes in this revision

Viewing changes to qwt-5.1.1/doc/man/man3/QwtDial.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtDial" 3 "24 May 2008" "Version 5.1.1" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtDial \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
Inherits \fBQwtAbstractSlider\fP.
10
 
.PP
11
 
Inherited by \fBQwtAnalogClock\fP, and \fBQwtCompass\fP.
12
 
.PP
13
 
.SH "Detailed Description"
14
 
.PP 
15
 
\fBQwtDial\fP class provides a rounded range control. 
16
 
 
17
 
\fBQwtDial\fP is intended as base class for dial widgets like speedometers, compass widgets, clocks ...
18
 
.PP
19
 
.PP
20
 
A dial contains a scale and a needle indicating the current value of the dial. Depending on Mode one of them is fixed and the other is rotating. If not \fBisReadOnly()\fP the dial can be rotated by dragging the mouse or using keyboard inputs (see \fBkeyPressEvent()\fP). A dial might be wrapping, what means a rotation below/above one limit continues on the other limit (f.e compass). The scale might cover any arc of the dial, its values are related to the \fBorigin()\fP of the dial.
21
 
.PP
22
 
Qwt is missing a set of good looking needles (\fBQwtDialNeedle\fP). Contributions are very welcome.
23
 
.PP
24
 
\fBSee also:\fP
25
 
.RS 4
26
 
\fBQwtCompass\fP, \fBQwtAnalogClock\fP, \fBQwtDialNeedle\fP 
27
 
.RE
28
 
.PP
29
 
\fBNote:\fP
30
 
.RS 4
31
 
The examples/dials example shows different types of dials. 
32
 
.RE
33
 
.PP
34
 
 
35
 
.PP
36
 
Definition at line 67 of file qwt_dial.h.
37
 
.SS "Public Types"
38
 
 
39
 
.in +1c
40
 
.ti -1c
41
 
.RI "enum \fBShadow\fP { \fBPlain\fP =  QFrame::Plain, \fBRaised\fP =  QFrame::Raised, \fBSunken\fP =  QFrame::Sunken }"
42
 
.br
43
 
.ti -1c
44
 
.RI "enum \fBScaleOptions\fP { \fBScaleBackbone\fP =  1, \fBScaleTicks\fP =  2, \fBScaleLabel\fP =  4 }"
45
 
.br
46
 
.ti -1c
47
 
.RI "enum \fBMode\fP { \fBFixedColors\fP, \fBScaledColors\fP, \fBRotateNeedle\fP, \fBRotateScale\fP }"
48
 
.br
49
 
.in -1c
50
 
.SS "Public Member Functions"
51
 
 
52
 
.in +1c
53
 
.ti -1c
54
 
.RI "\fBQwtDial\fP (QWidget *parent=NULL)"
55
 
.br
56
 
.ti -1c
57
 
.RI "virtual \fB~QwtDial\fP ()"
58
 
.br
59
 
.ti -1c
60
 
.RI "void \fBsetFrameShadow\fP (\fBShadow\fP)"
61
 
.br
62
 
.ti -1c
63
 
.RI "\fBShadow\fP \fBframeShadow\fP () const"
64
 
.br
65
 
.ti -1c
66
 
.RI "bool \fBhasVisibleBackground\fP () const"
67
 
.br
68
 
.ti -1c
69
 
.RI "void \fBshowBackground\fP (bool)"
70
 
.br
71
 
.ti -1c
72
 
.RI "void \fBsetLineWidth\fP (int)"
73
 
.br
74
 
.ti -1c
75
 
.RI "int \fBlineWidth\fP () const"
76
 
.br
77
 
.ti -1c
78
 
.RI "void \fBsetMode\fP (\fBMode\fP)"
79
 
.br
80
 
.ti -1c
81
 
.RI "\fBMode\fP \fBmode\fP () const"
82
 
.br
83
 
.ti -1c
84
 
.RI "virtual void \fBsetWrapping\fP (bool)"
85
 
.br
86
 
.ti -1c
87
 
.RI "bool \fBwrapping\fP () const"
88
 
.br
89
 
.ti -1c
90
 
.RI "virtual void \fBsetScale\fP (int maxMajIntv, int maxMinIntv, double step=0.0)"
91
 
.br
92
 
.ti -1c
93
 
.RI "void \fBsetScaleArc\fP (double min, double max)"
94
 
.br
95
 
.ti -1c
96
 
.RI "void \fBsetScaleOptions\fP (int)"
97
 
.br
98
 
.ti -1c
99
 
.RI "void \fBsetScaleTicks\fP (int minLen, int medLen, int majLen, int penWidth=1)"
100
 
.br
101
 
.ti -1c
102
 
.RI "double \fBminScaleArc\fP () const"
103
 
.br
104
 
.ti -1c
105
 
.RI "double \fBmaxScaleArc\fP () const"
106
 
.br
107
 
.ti -1c
108
 
.RI "virtual void \fBsetOrigin\fP (double)"
109
 
.br
110
 
.ti -1c
111
 
.RI "double \fBorigin\fP () const"
112
 
.br
113
 
.ti -1c
114
 
.RI "virtual void \fBsetNeedle\fP (\fBQwtDialNeedle\fP *)"
115
 
.br
116
 
.ti -1c
117
 
.RI "const \fBQwtDialNeedle\fP * \fBneedle\fP () const"
118
 
.br
119
 
.ti -1c
120
 
.RI "\fBQwtDialNeedle\fP * \fBneedle\fP ()"
121
 
.br
122
 
.ti -1c
123
 
.RI "QRect \fBboundingRect\fP () const"
124
 
.br
125
 
.ti -1c
126
 
.RI "QRect \fBcontentsRect\fP () const"
127
 
.br
128
 
.ti -1c
129
 
.RI "virtual QRect \fBscaleContentsRect\fP () const"
130
 
.br
131
 
.ti -1c
132
 
.RI "virtual QSize \fBsizeHint\fP () const"
133
 
.br
134
 
.ti -1c
135
 
.RI "virtual QSize \fBminimumSizeHint\fP () const"
136
 
.br
137
 
.ti -1c
138
 
.RI "virtual void \fBsetScaleDraw\fP (\fBQwtDialScaleDraw\fP *)"
139
 
.br
140
 
.ti -1c
141
 
.RI "\fBQwtDialScaleDraw\fP * \fBscaleDraw\fP ()"
142
 
.br
143
 
.ti -1c
144
 
.RI "const \fBQwtDialScaleDraw\fP * \fBscaleDraw\fP () const"
145
 
.br
146
 
.in -1c
147
 
.SS "Protected Member Functions"
148
 
 
149
 
.in +1c
150
 
.ti -1c
151
 
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *)"
152
 
.br
153
 
.ti -1c
154
 
.RI "virtual void \fBresizeEvent\fP (QResizeEvent *)"
155
 
.br
156
 
.ti -1c
157
 
.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
158
 
.br
159
 
.ti -1c
160
 
.RI "virtual void \fBupdateMask\fP ()"
161
 
.br
162
 
.ti -1c
163
 
.RI "virtual void \fBdrawFrame\fP (QPainter *p)"
164
 
.br
165
 
.ti -1c
166
 
.RI "virtual void \fBdrawContents\fP (QPainter *) const"
167
 
.br
168
 
.ti -1c
169
 
.RI "virtual void \fBdrawFocusIndicator\fP (QPainter *) const"
170
 
.br
171
 
.ti -1c
172
 
.RI "virtual void \fBdrawScale\fP (QPainter *, const QPoint &center, int radius, double origin, double arcMin, double arcMax) const"
173
 
.br
174
 
.ti -1c
175
 
.RI "virtual void \fBdrawScaleContents\fP (QPainter *painter, const QPoint &center, int radius) const"
176
 
.br
177
 
.ti -1c
178
 
.RI "virtual void \fBdrawNeedle\fP (QPainter *, const QPoint &, int radius, double direction, QPalette::ColorGroup) const"
179
 
.br
180
 
.ti -1c
181
 
.RI "virtual \fBQwtText\fP \fBscaleLabel\fP (double) const"
182
 
.br
183
 
.ti -1c
184
 
.RI "void \fBupdateScale\fP ()"
185
 
.br
186
 
.ti -1c
187
 
.RI "virtual void \fBrangeChange\fP ()"
188
 
.br
189
 
.ti -1c
190
 
.RI "virtual void \fBvalueChange\fP ()"
191
 
.br
192
 
.ti -1c
193
 
.RI "virtual double \fBgetValue\fP (const QPoint &)"
194
 
.br
195
 
.ti -1c
196
 
.RI "virtual void \fBgetScrollMode\fP (const QPoint &, int &scrollMode, int &direction)"
197
 
.br
198
 
.in -1c
199
 
.SS "Friends"
200
 
 
201
 
.in +1c
202
 
.ti -1c
203
 
.RI "class \fBQwtDialScaleDraw\fP"
204
 
.br
205
 
.in -1c
206
 
.SH "Member Enumeration Documentation"
207
 
.PP 
208
 
.SS "enum \fBQwtDial::Shadow\fP"
209
 
.PP
210
 
Frame shadow. 
211
 
.PP
212
 
Unfortunately it is not possible to use QFrame::Shadow as a property of a widget that is not derived from QFrame. The following enum is made for the designer only. It is safe to use QFrame::Shadow instead. 
213
 
.PP
214
 
Definition at line 92 of file qwt_dial.h.
215
 
.SS "enum \fBQwtDial::ScaleOptions\fP"
216
 
.PP
217
 
see \fBQwtDial::setScaleOptions\fP 
218
 
.PP
219
 
Definition at line 100 of file qwt_dial.h.
220
 
.SS "enum \fBQwtDial::Mode\fP"
221
 
.PP
222
 
In case of RotateNeedle the needle is rotating, in case of RotateScale, the needle points to \fBorigin()\fP and the scale is rotating. 
223
 
.PP
224
 
Definition at line 112 of file qwt_dial.h.
225
 
.SH "Constructor & Destructor Documentation"
226
 
.PP 
227
 
.SS "QwtDial::QwtDial (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
228
 
.PP
229
 
Constructor. 
230
 
.PP
231
 
\fBParameters:\fP
232
 
.RS 4
233
 
\fIparent\fP Parent widget
234
 
.RE
235
 
.PP
236
 
Create a dial widget with no scale and no needle. The default origin is 90.0 with no valid value. It accepts mouse and keyboard inputs and has no step size. The default mode is QwtDial::RotateNeedle. 
237
 
.PP
238
 
Definition at line 143 of file qwt_dial.cpp.
239
 
.SS "QwtDial::~QwtDial ()\fC [virtual]\fP"
240
 
.PP
241
 
Destructor. 
242
 
.PP
243
 
Definition at line 207 of file qwt_dial.cpp.
244
 
.SH "Member Function Documentation"
245
 
.PP 
246
 
.SS "void QwtDial::setFrameShadow (\fBShadow\fP shadow)"
247
 
.PP
248
 
Sets the frame shadow value from the frame style. 
249
 
.PP
250
 
\fBParameters:\fP
251
 
.RS 4
252
 
\fIshadow\fP Frame shadow 
253
 
.RE
254
 
.PP
255
 
\fBSee also:\fP
256
 
.RS 4
257
 
\fBsetLineWidth()\fP, QFrame::setFrameShadow() 
258
 
.RE
259
 
.PP
260
 
 
261
 
.PP
262
 
Definition at line 244 of file qwt_dial.cpp.
263
 
.PP
264
 
References lineWidth().
265
 
.SS "\fBQwtDial::Shadow\fP QwtDial::frameShadow () const"
266
 
.PP
267
 
\fBReturns:\fP
268
 
.RS 4
269
 
Frame shadow /sa \fBsetFrameShadow()\fP, \fBlineWidth()\fP, QFrame::frameShadow 
270
 
.RE
271
 
.PP
272
 
 
273
 
.PP
274
 
Definition at line 258 of file qwt_dial.cpp.
275
 
.SS "bool QwtDial::hasVisibleBackground () const"
276
 
.PP
277
 
true when the area outside of the frame is visible
278
 
.PP
279
 
\fBSee also:\fP
280
 
.RS 4
281
 
\fBshowBackground()\fP, setMask() 
282
 
.RE
283
 
.PP
284
 
 
285
 
.PP
286
 
Definition at line 234 of file qwt_dial.cpp.
287
 
.PP
288
 
Referenced by resizeEvent().
289
 
.SS "void QwtDial::showBackground (bool show)"
290
 
.PP
291
 
Show/Hide the area outside of the frame 
292
 
.PP
293
 
\fBParameters:\fP
294
 
.RS 4
295
 
\fIshow\fP Show if true, hide if false
296
 
.RE
297
 
.PP
298
 
\fBSee also:\fP
299
 
.RS 4
300
 
\fBhasVisibleBackground()\fP, setMask() 
301
 
.RE
302
 
.PP
303
 
\fBWarning:\fP
304
 
.RS 4
305
 
When \fBQwtDial\fP is a toplevel widget the window border might disappear too. 
306
 
.RE
307
 
.PP
308
 
 
309
 
.PP
310
 
Definition at line 220 of file qwt_dial.cpp.
311
 
.PP
312
 
References updateMask().
313
 
.SS "void QwtDial::setLineWidth (int lineWidth)"
314
 
.PP
315
 
Sets the line width
316
 
.PP
317
 
\fBParameters:\fP
318
 
.RS 4
319
 
\fIlineWidth\fP Line width 
320
 
.RE
321
 
.PP
322
 
\fBSee also:\fP
323
 
.RS 4
324
 
\fBsetFrameShadow()\fP 
325
 
.RE
326
 
.PP
327
 
 
328
 
.PP
329
 
Definition at line 269 of file qwt_dial.cpp.
330
 
.SS "int QwtDial::lineWidth () const"
331
 
.PP
332
 
\fBReturns:\fP
333
 
.RS 4
334
 
Line width of the frame 
335
 
.RE
336
 
.PP
337
 
\fBSee also:\fP
338
 
.RS 4
339
 
\fBsetLineWidth()\fP, \fBframeShadow()\fP, \fBlineWidth()\fP 
340
 
.RE
341
 
.PP
342
 
 
343
 
.PP
344
 
Definition at line 285 of file qwt_dial.cpp.
345
 
.PP
346
 
Referenced by contentsRect(), drawFrame(), minimumSizeHint(), setFrameShadow(), and sizeHint().
347
 
.SS "void QwtDial::setMode (\fBMode\fP mode)"
348
 
.PP
349
 
Change the mode of the meter. 
350
 
.PP
351
 
\fBParameters:\fP
352
 
.RS 4
353
 
\fImode\fP New mode
354
 
.RE
355
 
.PP
356
 
The value of the meter is indicated by the difference between north of the scale and the direction of the needle. In case of QwtDial::RotateNeedle north is pointing to the \fBorigin()\fP and the needle is rotating, in case of QwtDial::RotateScale, the needle points to \fBorigin()\fP and the scale is rotating.
357
 
.PP
358
 
The default mode is QwtDial::RotateNeedle.
359
 
.PP
360
 
\fBSee also:\fP
361
 
.RS 4
362
 
\fBmode()\fP, \fBsetValue()\fP, \fBsetOrigin()\fP 
363
 
.RE
364
 
.PP
365
 
 
366
 
.PP
367
 
Definition at line 359 of file qwt_dial.cpp.
368
 
.SS "\fBQwtDial::Mode\fP QwtDial::mode () const"
369
 
.PP
370
 
\fBReturns:\fP
371
 
.RS 4
372
 
mode of the dial.
373
 
.RE
374
 
.PP
375
 
The value of the dial is indicated by the difference between the origin and the direction of the needle. In case of QwtDial::RotateNeedle the scale arc is fixed to the \fBorigin()\fP and the needle is rotating, in case of QwtDial::RotateScale, the needle points to \fBorigin()\fP and the scale is rotating.
376
 
.PP
377
 
The default mode is QwtDial::RotateNeedle.
378
 
.PP
379
 
\fBSee also:\fP
380
 
.RS 4
381
 
\fBsetMode()\fP, \fBorigin()\fP, \fBsetScaleArc()\fP, \fBvalue()\fP 
382
 
.RE
383
 
.PP
384
 
 
385
 
.PP
386
 
Definition at line 382 of file qwt_dial.cpp.
387
 
.PP
388
 
Referenced by drawContents(), QwtCompass::drawScaleContents(), getValue(), and QwtCompass::keyPressEvent().
389
 
.SS "void QwtDial::setWrapping (bool wrapping)\fC [virtual]\fP"
390
 
.PP
391
 
Sets whether it is possible to step the value from the highest value to the lowest value and vice versa to on.
392
 
.PP
393
 
\fBParameters:\fP
394
 
.RS 4
395
 
\fIwrapping\fP en/disables wrapping
396
 
.RE
397
 
.PP
398
 
\fBSee also:\fP
399
 
.RS 4
400
 
\fBwrapping()\fP, \fBQwtDoubleRange::periodic()\fP 
401
 
.RE
402
 
.PP
403
 
\fBNote:\fP
404
 
.RS 4
405
 
The meaning of wrapping is like the wrapping property of QSpinBox, but not like it is used in QDial. 
406
 
.RE
407
 
.PP
408
 
 
409
 
.PP
410
 
Definition at line 397 of file qwt_dial.cpp.
411
 
.PP
412
 
References QwtDoubleRange::setPeriodic().
413
 
.SS "bool QwtDial::wrapping () const"
414
 
.PP
415
 
\fBwrapping()\fP holds whether it is possible to step the value from the highest value to the lowest value and vice versa.
416
 
.PP
417
 
\fBSee also:\fP
418
 
.RS 4
419
 
\fBsetWrapping()\fP, \fBQwtDoubleRange::setPeriodic()\fP 
420
 
.RE
421
 
.PP
422
 
\fBNote:\fP
423
 
.RS 4
424
 
The meaning of wrapping is like the wrapping property of QSpinBox, but not like it is used in QDial. 
425
 
.RE
426
 
.PP
427
 
 
428
 
.PP
429
 
Definition at line 410 of file qwt_dial.cpp.
430
 
.PP
431
 
References QwtDoubleRange::periodic().
432
 
.PP
433
 
Referenced by getValue().
434
 
.SS "void QwtDial::setScale (int maxMajIntv, int maxMinIntv, double step = \fC0.0\fP)\fC [virtual]\fP"
435
 
.PP
436
 
Change the intervals of the scale 
437
 
.PP
438
 
\fBSee also:\fP
439
 
.RS 4
440
 
QwtAbstractScaleDraw::setScale 
441
 
.RE
442
 
.PP
443
 
 
444
 
.PP
445
 
Definition at line 861 of file qwt_dial.cpp.
446
 
.PP
447
 
References updateScale().
448
 
.SS "void QwtDial::setScaleArc (double minArc, double maxArc)"
449
 
.PP
450
 
Change the arc of the scale
451
 
.PP
452
 
\fBParameters:\fP
453
 
.RS 4
454
 
\fIminArc\fP Lower limit 
455
 
.br
456
 
\fImaxArc\fP Upper limit 
457
 
.RE
458
 
.PP
459
 
 
460
 
.PP
461
 
Definition at line 976 of file qwt_dial.cpp.
462
 
.SS "void QwtDial::setScaleOptions (int options)"
463
 
.PP
464
 
A wrapper method for accessing the scale draw.
465
 
.PP
466
 
.IP "\(bu" 2
467
 
options == 0
468
 
.br
469
 
 No visible scale: setScaleDraw(NULL)
470
 
.IP "\(bu" 2
471
 
options & ScaleBackbone
472
 
.br
473
 
 En/disable the backbone of the scale.
474
 
.IP "\(bu" 2
475
 
options & ScaleTicks
476
 
.br
477
 
 En/disable the ticks of the scale.
478
 
.IP "\(bu" 2
479
 
options & ScaleLabel
480
 
.br
481
 
 En/disable scale labels
482
 
.PP
483
 
.PP
484
 
\fBSee also:\fP
485
 
.RS 4
486
 
\fBQwtAbstractScaleDraw::enableComponent\fP 
487
 
.RE
488
 
.PP
489
 
 
490
 
.PP
491
 
Definition at line 884 of file qwt_dial.cpp.
492
 
.PP
493
 
References QwtAbstractScaleDraw::enableComponent(), and setScaleDraw().
494
 
.SS "void QwtDial::setScaleTicks (int minLen, int medLen, int majLen, int penWidth = \fC1\fP)"
495
 
.PP
496
 
See: \fBQwtAbstractScaleDraw::setTickLength\fP, \fBQwtDialScaleDraw::setPenWidth\fP. 
497
 
.PP
498
 
Definition at line 904 of file qwt_dial.cpp.
499
 
.PP
500
 
References QwtDialScaleDraw::setPenWidth(), and QwtAbstractScaleDraw::setTickLength().
501
 
.SS "double QwtDial::minScaleArc () const"
502
 
.PP
503
 
\fBReturns:\fP
504
 
.RS 4
505
 
Lower limit of the scale arc 
506
 
.RE
507
 
.PP
508
 
 
509
 
.PP
510
 
Definition at line 934 of file qwt_dial.cpp.
511
 
.SS "double QwtDial::maxScaleArc () const"
512
 
.PP
513
 
\fBReturns:\fP
514
 
.RS 4
515
 
Upper limit of the scale arc 
516
 
.RE
517
 
.PP
518
 
 
519
 
.PP
520
 
Definition at line 940 of file qwt_dial.cpp.
521
 
.SS "void QwtDial::setOrigin (double origin)\fC [virtual]\fP"
522
 
.PP
523
 
Change the origin. 
524
 
.PP
525
 
The origin is the angle where scale and needle is relative to.
526
 
.PP
527
 
\fBParameters:\fP
528
 
.RS 4
529
 
\fIorigin\fP New origin 
530
 
.RE
531
 
.PP
532
 
\fBSee also:\fP
533
 
.RS 4
534
 
\fBorigin()\fP 
535
 
.RE
536
 
.PP
537
 
 
538
 
.PP
539
 
Definition at line 953 of file qwt_dial.cpp.
540
 
.SS "double QwtDial::origin () const"
541
 
.PP
542
 
The origin is the angle where scale and needle is relative to.
543
 
.PP
544
 
\fBReturns:\fP
545
 
.RS 4
546
 
Origin of the dial 
547
 
.RE
548
 
.PP
549
 
\fBSee also:\fP
550
 
.RS 4
551
 
\fBsetOrigin()\fP 
552
 
.RE
553
 
.PP
554
 
 
555
 
.PP
556
 
Definition at line 965 of file qwt_dial.cpp.
557
 
.PP
558
 
Referenced by drawContents(), QwtAnalogClock::drawNeedle(), QwtCompass::drawScaleContents(), and QwtCompass::keyPressEvent().
559
 
.SS "void QwtDial::setNeedle (\fBQwtDialNeedle\fP * needle)\fC [virtual]\fP"
560
 
.PP
561
 
Set a needle for the dial
562
 
.PP
563
 
Qwt is missing a set of good looking needles. Contributions are very welcome.
564
 
.PP
565
 
\fBParameters:\fP
566
 
.RS 4
567
 
\fIneedle\fP Needle 
568
 
.RE
569
 
.PP
570
 
\fBWarning:\fP
571
 
.RS 4
572
 
The needle will be deleted, when a different needle is set or in \fB~QwtDial()\fP 
573
 
.RE
574
 
.PP
575
 
 
576
 
.PP
577
 
Definition at line 771 of file qwt_dial.cpp.
578
 
.PP
579
 
References needle().
580
 
.SS "const \fBQwtDialNeedle\fP * QwtDial::needle () const"
581
 
.PP
582
 
\fBReturns:\fP
583
 
.RS 4
584
 
needle 
585
 
.RE
586
 
.PP
587
 
\fBSee also:\fP
588
 
.RS 4
589
 
\fBsetNeedle()\fP 
590
 
.RE
591
 
.PP
592
 
 
593
 
.PP
594
 
Definition at line 787 of file qwt_dial.cpp.
595
 
.PP
596
 
Referenced by QwtAnalogClock::drawHand(), QwtAnalogClock::setHand(), and setNeedle().
597
 
.SS "\fBQwtDialNeedle\fP * QwtDial::needle ()"
598
 
.PP
599
 
\fBReturns:\fP
600
 
.RS 4
601
 
needle 
602
 
.RE
603
 
.PP
604
 
\fBSee also:\fP
605
 
.RS 4
606
 
\fBsetNeedle()\fP 
607
 
.RE
608
 
.PP
609
 
 
610
 
.PP
611
 
Definition at line 796 of file qwt_dial.cpp.
612
 
.SS "QRect QwtDial::boundingRect () const"
613
 
.PP
614
 
\fBReturns:\fP
615
 
.RS 4
616
 
bounding rect of the dial including the frame 
617
 
.RE
618
 
.PP
619
 
\fBSee also:\fP
620
 
.RS 4
621
 
\fBsetLineWidth()\fP, \fBscaleContentsRect()\fP, \fBcontentsRect()\fP 
622
 
.RE
623
 
.PP
624
 
 
625
 
.PP
626
 
Definition at line 311 of file qwt_dial.cpp.
627
 
.PP
628
 
Referenced by contentsRect(), drawContents(), drawFrame(), and updateMask().
629
 
.SS "QRect QwtDial::contentsRect () const"
630
 
.PP
631
 
\fBReturns:\fP
632
 
.RS 4
633
 
bounding rect of the circle inside the frame 
634
 
.RE
635
 
.PP
636
 
\fBSee also:\fP
637
 
.RS 4
638
 
\fBsetLineWidth()\fP, \fBscaleContentsRect()\fP, \fBboundingRect()\fP 
639
 
.RE
640
 
.PP
641
 
 
642
 
.PP
643
 
Definition at line 294 of file qwt_dial.cpp.
644
 
.PP
645
 
References boundingRect(), and lineWidth().
646
 
.PP
647
 
Referenced by drawFocusIndicator(), getScrollMode(), and scaleContentsRect().
648
 
.SS "QRect QwtDial::scaleContentsRect () const\fC [virtual]\fP"
649
 
.PP
650
 
\fBReturns:\fP
651
 
.RS 4
652
 
rect inside the scale 
653
 
.RE
654
 
.PP
655
 
\fBSee also:\fP
656
 
.RS 4
657
 
\fBsetLineWidth()\fP, \fBboundingRect()\fP, \fBcontentsRect()\fP 
658
 
.RE
659
 
.PP
660
 
 
661
 
.PP
662
 
Definition at line 324 of file qwt_dial.cpp.
663
 
.PP
664
 
References contentsRect().
665
 
.PP
666
 
Referenced by drawContents().
667
 
.SS "QSize QwtDial::sizeHint () const\fC [virtual]\fP"
668
 
.PP
669
 
\fBReturns:\fP
670
 
.RS 4
671
 
Size hint 
672
 
.RE
673
 
.PP
674
 
 
675
 
.PP
676
 
Definition at line 1001 of file qwt_dial.cpp.
677
 
.PP
678
 
References lineWidth().
679
 
.SS "QSize QwtDial::minimumSizeHint () const\fC [virtual]\fP"
680
 
.PP
681
 
Return a minimum size hint. 
682
 
.PP
683
 
\fBWarning:\fP
684
 
.RS 4
685
 
The return value of \fBQwtDial::minimumSizeHint()\fP depends on the font and the scale. 
686
 
.RE
687
 
.PP
688
 
 
689
 
.PP
690
 
Definition at line 1017 of file qwt_dial.cpp.
691
 
.PP
692
 
References lineWidth().
693
 
.SS "void QwtDial::setScaleDraw (\fBQwtDialScaleDraw\fP * scaleDraw)\fC [virtual]\fP"
694
 
.PP
695
 
Set an individual scale draw
696
 
.PP
697
 
\fBParameters:\fP
698
 
.RS 4
699
 
\fIscaleDraw\fP Scale draw 
700
 
.RE
701
 
.PP
702
 
\fBWarning:\fP
703
 
.RS 4
704
 
The previous scale draw is deleted 
705
 
.RE
706
 
.PP
707
 
 
708
 
.PP
709
 
Definition at line 844 of file qwt_dial.cpp.
710
 
.PP
711
 
References scaleDraw(), and updateScale().
712
 
.PP
713
 
Referenced by setScaleOptions().
714
 
.SS "\fBQwtDialScaleDraw\fP * QwtDial::scaleDraw ()"
715
 
.PP
716
 
Return the scale draw. 
717
 
.PP
718
 
Definition at line 827 of file qwt_dial.cpp.
719
 
.PP
720
 
Referenced by setScaleDraw().
721
 
.SS "const \fBQwtDialScaleDraw\fP * QwtDial::scaleDraw () const"
722
 
.PP
723
 
Return the scale draw. 
724
 
.PP
725
 
Definition at line 833 of file qwt_dial.cpp.
726
 
.SS "void QwtDial::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP"
727
 
.PP
728
 
Paint the dial 
729
 
.PP
730
 
\fBParameters:\fP
731
 
.RS 4
732
 
\fIe\fP Paint event 
733
 
.RE
734
 
.PP
735
 
 
736
 
.PP
737
 
Definition at line 431 of file qwt_dial.cpp.
738
 
.PP
739
 
References drawContents(), drawFocusIndicator(), and drawFrame().
740
 
.SS "void QwtDial::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP"
741
 
.PP
742
 
Resize the dial widget 
743
 
.PP
744
 
\fBParameters:\fP
745
 
.RS 4
746
 
\fIe\fP Resize event 
747
 
.RE
748
 
.PP
749
 
 
750
 
.PP
751
 
Definition at line 419 of file qwt_dial.cpp.
752
 
.PP
753
 
References hasVisibleBackground(), and updateMask().
754
 
.SS "void QwtDial::keyPressEvent (QKeyEvent * e)\fC [protected, virtual]\fP"
755
 
.PP
756
 
Handles key events
757
 
.PP
758
 
.IP "\(bu" 2
759
 
Key_Down, KeyLeft
760
 
.br
761
 
 Decrement by 1
762
 
.IP "\(bu" 2
763
 
Key_Prior
764
 
.br
765
 
 Decrement by \fBpageSize()\fP
766
 
.IP "\(bu" 2
767
 
Key_Home
768
 
.br
769
 
 Set the value to \fBminValue()\fP
770
 
.PP
771
 
.PP
772
 
.IP "\(bu" 2
773
 
Key_Up, KeyRight
774
 
.br
775
 
 Increment by 1
776
 
.IP "\(bu" 2
777
 
Key_Next
778
 
.br
779
 
 Increment by \fBpageSize()\fP
780
 
.IP "\(bu" 2
781
 
Key_End
782
 
.br
783
 
 Set the value to \fBmaxValue()\fP
784
 
.PP
785
 
.PP
786
 
\fBSee also:\fP
787
 
.RS 4
788
 
\fBisReadOnly()\fP 
789
 
.RE
790
 
.PP
791
 
 
792
 
.PP
793
 
Reimplemented from \fBQwtAbstractSlider\fP.
794
 
.PP
795
 
Reimplemented in \fBQwtCompass\fP.
796
 
.PP
797
 
Definition at line 1187 of file qwt_dial.cpp.
798
 
.PP
799
 
References QwtDoubleRange::incValue(), QwtAbstractSlider::isReadOnly(), QwtAbstractSlider::isValid(), QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), QwtDoubleRange::pageSize(), QwtDoubleRange::prevValue(), QwtAbstractSlider::setValue(), QwtAbstractSlider::sliderMoved(), and QwtDoubleRange::value().
800
 
.PP
801
 
Referenced by QwtCompass::keyPressEvent().
802
 
.SS "void QwtDial::updateMask ()\fC [protected, virtual]\fP"
803
 
.PP
804
 
Update the mask of the dial. 
805
 
.PP
806
 
In case of 'hasVisibleBackground() == false', the backgound is transparent by a mask.
807
 
.PP
808
 
\fBSee also:\fP
809
 
.RS 4
810
 
\fBshowBackground()\fP, \fBhasVisibleBackground()\fP 
811
 
.RE
812
 
.PP
813
 
 
814
 
.PP
815
 
Definition at line 1246 of file qwt_dial.cpp.
816
 
.PP
817
 
References boundingRect().
818
 
.PP
819
 
Referenced by resizeEvent(), and showBackground().
820
 
.SS "void QwtDial::drawFrame (QPainter * painter)\fC [protected, virtual]\fP"
821
 
.PP
822
 
Draw the frame around the dial
823
 
.PP
824
 
\fBParameters:\fP
825
 
.RS 4
826
 
\fIpainter\fP Painter 
827
 
.RE
828
 
.PP
829
 
\fBSee also:\fP
830
 
.RS 4
831
 
\fBlineWidth()\fP, \fBframeShadow()\fP 
832
 
.RE
833
 
.PP
834
 
 
835
 
.PP
836
 
Definition at line 510 of file qwt_dial.cpp.
837
 
.PP
838
 
References boundingRect(), QwtPainter::drawRoundFrame(), and lineWidth().
839
 
.PP
840
 
Referenced by paintEvent().
841
 
.SS "void QwtDial::drawContents (QPainter * painter) const\fC [protected, virtual]\fP"
842
 
.PP
843
 
Draw the contents inside the frame. 
844
 
.PP
845
 
QColorGroup::Background is the background color outside of the frame. QColorGroup::Base is the background color inside the frame. QColorGroup::Foreground is the background color inside the scale.
846
 
.PP
847
 
\fBParameters:\fP
848
 
.RS 4
849
 
\fIpainter\fP Painter 
850
 
.RE
851
 
.PP
852
 
\fBSee also:\fP
853
 
.RS 4
854
 
\fBboundingRect()\fP, \fBcontentsRect()\fP, \fBscaleContentsRect()\fP, QWidget::setPalette 
855
 
.RE
856
 
.PP
857
 
 
858
 
.PP
859
 
Definition at line 572 of file qwt_dial.cpp.
860
 
.PP
861
 
References boundingRect(), drawNeedle(), drawScale(), drawScaleContents(), QwtAbstractSlider::isValid(), QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), mode(), origin(), scaleContentsRect(), and QwtDoubleRange::value().
862
 
.PP
863
 
Referenced by paintEvent().
864
 
.SS "void QwtDial::drawFocusIndicator (QPainter * painter) const\fC [protected, virtual]\fP"
865
 
.PP
866
 
Draw a dotted round circle, if !isReadOnly()
867
 
.PP
868
 
\fBParameters:\fP
869
 
.RS 4
870
 
\fIpainter\fP Painter 
871
 
.RE
872
 
.PP
873
 
 
874
 
.PP
875
 
Definition at line 463 of file qwt_dial.cpp.
876
 
.PP
877
 
References contentsRect(), and QwtAbstractSlider::isReadOnly().
878
 
.PP
879
 
Referenced by paintEvent().
880
 
.SS "void QwtDial::drawScale (QPainter * painter, const QPoint & center, int radius, double origin, double minArc, double maxArc) const\fC [protected, virtual]\fP"
881
 
.PP
882
 
Draw the scale
883
 
.PP
884
 
\fBParameters:\fP
885
 
.RS 4
886
 
\fIpainter\fP Painter 
887
 
.br
888
 
\fIcenter\fP Center of the dial 
889
 
.br
890
 
\fIradius\fP Radius of the scale 
891
 
.br
892
 
\fIorigin\fP Origin of the scale 
893
 
.br
894
 
\fIminArc\fP Minimum of the arc 
895
 
.br
896
 
\fImaxArc\fP Minimum of the arc
897
 
.RE
898
 
.PP
899
 
\fBSee also:\fP
900
 
.RS 4
901
 
QwtAbstractScaleDraw::setAngleRange 
902
 
.RE
903
 
.PP
904
 
 
905
 
.PP
906
 
Definition at line 704 of file qwt_dial.cpp.
907
 
.PP
908
 
Referenced by drawContents().
909
 
.SS "void QwtDial::drawScaleContents (QPainter * painter, const QPoint & center, int radius) const\fC [protected, virtual]\fP"
910
 
.PP
911
 
Draw the contents inside the scale
912
 
.PP
913
 
Paints nothing.
914
 
.PP
915
 
\fBParameters:\fP
916
 
.RS 4
917
 
\fIpainter\fP Painter 
918
 
.br
919
 
\fIcenter\fP Center of the contents circle 
920
 
.br
921
 
\fIradius\fP Radius of the contents circle 
922
 
.RE
923
 
.PP
924
 
 
925
 
.PP
926
 
Reimplemented in \fBQwtCompass\fP.
927
 
.PP
928
 
Definition at line 755 of file qwt_dial.cpp.
929
 
.PP
930
 
Referenced by drawContents().
931
 
.SS "void QwtDial::drawNeedle (QPainter * painter, const QPoint & center, int radius, double direction, QPalette::ColorGroup cg) const\fC [protected, virtual]\fP"
932
 
.PP
933
 
Draw the needle
934
 
.PP
935
 
\fBParameters:\fP
936
 
.RS 4
937
 
\fIpainter\fP Painter 
938
 
.br
939
 
\fIcenter\fP Center of the dial 
940
 
.br
941
 
\fIradius\fP Length for the needle 
942
 
.br
943
 
\fIdirection\fP Direction of the needle in degrees, counter clockwise 
944
 
.br
945
 
\fIcg\fP ColorGroup 
946
 
.RE
947
 
.PP
948
 
 
949
 
.PP
950
 
Reimplemented in \fBQwtAnalogClock\fP.
951
 
.PP
952
 
Definition at line 682 of file qwt_dial.cpp.
953
 
.PP
954
 
Referenced by drawContents().
955
 
.SS "\fBQwtText\fP QwtDial::scaleLabel (double value) const\fC [protected, virtual]\fP"
956
 
.PP
957
 
Find the label for a value
958
 
.PP
959
 
\fBParameters:\fP
960
 
.RS 4
961
 
\fIvalue\fP Value 
962
 
.RE
963
 
.PP
964
 
\fBReturns:\fP
965
 
.RS 4
966
 
label 
967
 
.RE
968
 
.PP
969
 
 
970
 
.PP
971
 
Reimplemented in \fBQwtAnalogClock\fP, and \fBQwtCompass\fP.
972
 
.PP
973
 
Definition at line 923 of file qwt_dial.cpp.
974
 
.PP
975
 
Referenced by QwtDialScaleDraw::label().
976
 
.SS "void QwtDial::updateScale ()\fC [protected]\fP"
977
 
.PP
978
 
Update the scale with the current attributes 
979
 
.PP
980
 
\fBSee also:\fP
981
 
.RS 4
982
 
\fBsetScale()\fP 
983
 
.RE
984
 
.PP
985
 
 
986
 
.PP
987
 
Definition at line 811 of file qwt_dial.cpp.
988
 
.PP
989
 
References QwtLinearScaleEngine::divideScale(), QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), and QwtLinearScaleEngine::transformation().
990
 
.PP
991
 
Referenced by rangeChange(), setScale(), and setScaleDraw().
992
 
.SS "void QwtDial::rangeChange ()\fC [protected, virtual]\fP"
993
 
.PP
994
 
\fBQwtDoubleRange\fP update hook. 
995
 
.PP
996
 
Reimplemented from \fBQwtDoubleRange\fP.
997
 
.PP
998
 
Definition at line 802 of file qwt_dial.cpp.
999
 
.PP
1000
 
References updateScale().
1001
 
.SS "void QwtDial::valueChange ()\fC [protected, virtual]\fP"
1002
 
.PP
1003
 
\fBQwtDoubleRange\fP update hook. 
1004
 
.PP
1005
 
Reimplemented from \fBQwtAbstractSlider\fP.
1006
 
.PP
1007
 
Definition at line 992 of file qwt_dial.cpp.
1008
 
.PP
1009
 
References QwtAbstractSlider::valueChange().
1010
 
.SS "double QwtDial::getValue (const QPoint & pos)\fC [protected, virtual]\fP"
1011
 
.PP
1012
 
Find the value for a given position
1013
 
.PP
1014
 
\fBParameters:\fP
1015
 
.RS 4
1016
 
\fIpos\fP Position 
1017
 
.RE
1018
 
.PP
1019
 
\fBReturns:\fP
1020
 
.RS 4
1021
 
Value 
1022
 
.RE
1023
 
.PP
1024
 
 
1025
 
.PP
1026
 
Implements \fBQwtAbstractSlider\fP.
1027
 
.PP
1028
 
Definition at line 1052 of file qwt_dial.cpp.
1029
 
.PP
1030
 
References QwtDoubleRange::maxValue(), QwtDoubleRange::minValue(), mode(), QwtAbstractSlider::mouseOffset(), QwtAbstractSlider::scrollMode(), QwtAbstractSlider::setMouseOffset(), QwtDoubleRange::value(), and wrapping().
1031
 
.SS "void QwtDial::getScrollMode (const QPoint & p, int & scrollMode, int & direction)\fC [protected, virtual]\fP"
1032
 
.PP
1033
 
\fBSee also:\fP
1034
 
.RS 4
1035
 
\fBQwtAbstractSlider::getScrollMode\fP 
1036
 
.RE
1037
 
.PP
1038
 
 
1039
 
.PP
1040
 
Implements \fBQwtAbstractSlider\fP.
1041
 
.PP
1042
 
Definition at line 1155 of file qwt_dial.cpp.
1043
 
.PP
1044
 
References contentsRect().
1045
 
 
1046
 
.SH "Author"
1047
 
.PP 
1048
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.