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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2011-06-10 11:22:47 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110610112247-0i1019vvmzaq6p86
Tags: 6.0.0-1
* New upstream release (Closes: #624107):
  - drop Qt3 support. (Closes: #604379, #626868)
* Register documentation with doc-base. (Closes: #626567)
* Drop patches:
  - 01_makefiles.diff
  - 02_add_missing_warnings.diff
  - 03_qwt_branch_pull_r544.diff
* Add qwt_install_paths.patch to fix the hardcoded installation paths.
* Update debian/control:
  - drop libqt3-mt-dev build dependency.
  - bump Standards-Version to 3.9.2 (no changes).
  - drop Qt3 related packages.
  - due to bump soname (and as we dropper Qt3 support):
    - libqwt5-qt4-dev -> libqwt-dev
    - libqwt5-qt4 -> libqwt6
    - libqwt5-doc -> libqwt-doc
* Update debian/copyright file.
* Update debian/rules: drop Qt3 packages support.

Show diffs side-by-side

added added

removed removed

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