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: QwtKnob 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>QwtKnob Class Reference</h1><!-- doxytag: class="QwtKnob" --><!-- doxytag: inherits="QwtAbstractSlider,QwtAbstractScale" -->Inheritance diagram for QwtKnob:<p><center><img src="class_qwt_knob__inherit__graph.png" border="0" usemap="#_qwt_knob__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_knob__inherit__map">
24
<area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt="">
25
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
26
<area href="class_qwt_abstract_scale.html" shape="rect" coords="159,83,287,107" alt="">
28
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtKnob:<p><center><img src="class_qwt_knob__coll__graph.png" border="0" usemap="#_qwt_knob__coll__map" alt="Collaboration graph"></center>
29
<map name="_qwt_knob__coll__map">
30
<area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt="">
31
<area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt="">
32
<area href="class_qwt_abstract_scale.html" shape="rect" coords="159,83,287,107" alt="">
34
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_knob-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
37
The <a class="el" href="class_qwt_knob.html">QwtKnob</a> widget imitates look and behaviour of a volume knob on a radio. It contains a scale around the knob which is set up automatically or can be configured manually (see <a class="el" href="class_qwt_abstract_scale.html">QwtAbstractScale</a>). Automatic scrolling is enabled when the user presses a mouse button on the scale. For a description of signals, slots and other members, see <a class="el" href="class_qwt_abstract_slider.html">QwtAbstractSlider</a>.<p>
39
<img src="knob.png" alt="knob.png">
41
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_slider.html">QwtAbstractSlider</a> and <a class="el" href="class_qwt_abstract_scale.html">QwtAbstractScale</a> for the descriptions of the inherited members. </dd></dl>
46
Definition at line <a class="el" href="qwt__knob_8h-source.html#l00034">34</a> of file <a class="el" href="qwt__knob_8h-source.html">qwt_knob.h</a>.<table border="0" cellpadding="0" cellspacing="0">
48
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#a72613ae9e19a921beffaf8c99ab87f0">Symbol</a> { <br>
50
<b>Line</b>,
52
<b>Dot</b>
56
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#767e89f3d4875da7d2074050572e0556">QwtKnob</a> (QWidget *parent=NULL)</td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#13f3e622b333c9918bc61844029f8a70">~QwtKnob</a> ()</td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#58e2966b2ebe5631991f293ab61558f3">setKnobWidth</a> (int w)</td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#a9470eed740c7175c7ccfc4406eb5fc2">knobWidth</a> () const </td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#82c6a859d63833894a6e66f0fdbf8f05">setTotalAngle</a> (double angle)</td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#804d957c14e08bd9b132985c892ab853">totalAngle</a> () const </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_knob.html#2e0a17648602bab3b1aaabfc3ba19441">setBorderWidth</a> (int bw)</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#3e19de6a4762aeaf2b95266b20961574">borderWidth</a> () const </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_knob.html#63421f4b0d0745608bb6c202b0492eaf">setSymbol</a> (<a class="el" href="class_qwt_knob.html#a72613ae9e19a921beffaf8c99ab87f0">Symbol</a>)</td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_knob.html#a72613ae9e19a921beffaf8c99ab87f0">Symbol</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#d99ead1799a7390f7e290062d548385b">symbol</a> () const </td></tr>
77
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#c5f92af50fdcbf0b501f18efd07294fd">sizeHint</a> () const </td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#03d014cd8d025bfeab6e004c53ab6e5b">minimumSizeHint</a> () const </td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#fea44f23da7f79a2b790178850c26edd">setScaleDraw</a> (<a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> *)</td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#a9c4c23e20fc59b3ca2bfed9fe1e3719">scaleDraw</a> () const </td></tr>
85
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#3154037eec8c76c24577b8bf1d92b871">scaleDraw</a> ()</td></tr>
87
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></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_knob.html#2b078ad2a814d2c464baec97d895b0b5">paintEvent</a> (QPaintEvent *e)</td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#577c1fa6f26397ca356e679cce3a5c8c">resizeEvent</a> (QResizeEvent *e)</td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#d47b2009eff62ba18205ddfd1f8a3410">draw</a> (QPainter *p, const QRect &ur)</td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#d6215b28cce14d6575332440ac0fd707">drawKnob</a> (QPainter *p, const QRect &r)</td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_knob.html#e30bd1ac7e8ce05e7714433864af6e3a">drawMarker</a> (QPainter *p, double arc, const QColor &c)</td></tr>
99
<hr><h2>Member Enumeration Documentation</h2>
100
<a class="anchor" name="a72613ae9e19a921beffaf8c99ab87f0"></a><!-- doxytag: member="QwtKnob::Symbol" ref="a72613ae9e19a921beffaf8c99ab87f0" args="" --><p>
101
<table class="mdTable" cellpadding="2" cellspacing="0">
104
<table cellpadding="0" cellspacing="0" border="0">
106
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_knob.html#a72613ae9e19a921beffaf8c99ab87f0">QwtKnob::Symbol</a> </td>
112
<table cellspacing="5" cellpadding="0" border="0">
120
Symbol <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#767e89f3d4875da7d2074050572e0556">QwtKnob::QwtKnob()</a> </dd></dl>
123
Definition at line <a class="el" href="qwt__knob_8h-source.html#l00049">49</a> of file <a class="el" href="qwt__knob_8h-source.html">qwt_knob.h</a>. </td>
126
<hr><h2>Constructor & Destructor Documentation</h2>
127
<a class="anchor" name="767e89f3d4875da7d2074050572e0556"></a><!-- doxytag: member="QwtKnob::QwtKnob" ref="767e89f3d4875da7d2074050572e0556" args="(QWidget *parent=NULL)" --><p>
128
<table class="mdTable" cellpadding="2" cellspacing="0">
131
<table cellpadding="0" cellspacing="0" border="0">
133
<td class="md" nowrap valign="top">QwtKnob::QwtKnob </td>
134
<td class="md" valign="top">( </td>
135
<td class="md" nowrap valign="top">QWidget * </td>
136
<td class="mdname1" valign="top" nowrap> <em>parent</em> = <code>NULL</code> </td>
137
<td class="md" valign="top"> ) </td>
138
<td class="md" nowrap><code> [explicit]</code></td>
144
<table cellspacing="5" cellpadding="0" border="0">
152
Constructor <dl compact><dt><b>Parameters:</b></dt><dd>
153
<table border="0" cellspacing="2" cellpadding="0">
154
<tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Parent widget </td></tr>
159
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00059">59</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
162
<a class="anchor" name="13f3e622b333c9918bc61844029f8a70"></a><!-- doxytag: member="QwtKnob::~QwtKnob" ref="13f3e622b333c9918bc61844029f8a70" args="()" --><p>
163
<table class="mdTable" cellpadding="2" cellspacing="0">
166
<table cellpadding="0" cellspacing="0" border="0">
168
<td class="md" nowrap valign="top">QwtKnob::~QwtKnob </td>
169
<td class="md" valign="top">( </td>
170
<td class="mdname1" valign="top" nowrap> </td>
171
<td class="md" valign="top"> ) </td>
172
<td class="md" nowrap><code> [virtual]</code></td>
178
<table cellspacing="5" cellpadding="0" border="0">
190
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00099">99</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
193
<hr><h2>Member Function Documentation</h2>
194
<a class="anchor" name="3e19de6a4762aeaf2b95266b20961574"></a><!-- doxytag: member="QwtKnob::borderWidth" ref="3e19de6a4762aeaf2b95266b20961574" args="() const " --><p>
195
<table class="mdTable" cellpadding="2" cellspacing="0">
198
<table cellpadding="0" cellspacing="0" border="0">
200
<td class="md" nowrap valign="top">int QwtKnob::borderWidth </td>
201
<td class="md" valign="top">( </td>
202
<td class="mdname1" valign="top" nowrap> </td>
203
<td class="md" valign="top"> ) </td>
204
<td class="md" nowrap> const</td>
210
<table cellspacing="5" cellpadding="0" border="0">
218
Return the border width.
222
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00475">475</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
225
<a class="anchor" name="d47b2009eff62ba18205ddfd1f8a3410"></a><!-- doxytag: member="QwtKnob::draw" ref="d47b2009eff62ba18205ddfd1f8a3410" args="(QPainter *p, const QRect &ur)" --><p>
226
<table class="mdTable" cellpadding="2" cellspacing="0">
229
<table cellpadding="0" cellspacing="0" border="0">
231
<td class="md" nowrap valign="top">void QwtKnob::draw </td>
232
<td class="md" valign="top">( </td>
233
<td class="md" nowrap valign="top">QPainter * </td>
234
<td class="mdname" nowrap> <em>p</em>, </td>
237
<td class="md" nowrap align="right"></td>
239
<td class="md" nowrap>const QRect & </td>
240
<td class="mdname" nowrap> <em>ur</em></td>
244
<td class="md">) </td>
245
<td class="md" colspan="2"><code> [protected]</code></td>
251
<table cellspacing="5" cellpadding="0" border="0">
263
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00382">382</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
265
References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00164">QwtAbstractScaleDraw::draw()</a>, and <a class="el" href="qwt__knob_8cpp-source.html#l00170">scaleDraw()</a>.
267
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00362">paintEvent()</a>. </td>
270
<a class="anchor" name="d6215b28cce14d6575332440ac0fd707"></a><!-- doxytag: member="QwtKnob::drawKnob" ref="d6215b28cce14d6575332440ac0fd707" args="(QPainter *p, const QRect &r)" --><p>
271
<table class="mdTable" cellpadding="2" cellspacing="0">
274
<table cellpadding="0" cellspacing="0" border="0">
276
<td class="md" nowrap valign="top">void QwtKnob::drawKnob </td>
277
<td class="md" valign="top">( </td>
278
<td class="md" nowrap valign="top">QPainter * </td>
279
<td class="mdname" nowrap> <em>painter</em>, </td>
282
<td class="md" nowrap align="right"></td>
284
<td class="md" nowrap>const QRect & </td>
285
<td class="mdname" nowrap> <em>r</em></td>
289
<td class="md">) </td>
290
<td class="md" colspan="2"><code> [protected]</code></td>
296
<table cellspacing="5" cellpadding="0" border="0">
306
<dl compact><dt><b>Parameters:</b></dt><dd>
307
<table border="0" cellspacing="2" cellpadding="0">
308
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>painter </td></tr>
309
<tr><td valign="top"></td><td valign="top"><em>r</em> </td><td>Bounding rectangle of the knob (without scale) </td></tr>
314
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00189">189</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
316
References <a class="el" href="qwt__knob_8cpp-source.html#l00405">drawMarker()</a>, and <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">QwtAbstractSlider::isValid()</a>. </td>
319
<a class="anchor" name="e30bd1ac7e8ce05e7714433864af6e3a"></a><!-- doxytag: member="QwtKnob::drawMarker" ref="e30bd1ac7e8ce05e7714433864af6e3a" args="(QPainter *p, double arc, const QColor &c)" --><p>
320
<table class="mdTable" cellpadding="2" cellspacing="0">
323
<table cellpadding="0" cellspacing="0" border="0">
325
<td class="md" nowrap valign="top">void QwtKnob::drawMarker </td>
326
<td class="md" valign="top">( </td>
327
<td class="md" nowrap valign="top">QPainter * </td>
328
<td class="mdname" nowrap> <em>p</em>, </td>
331
<td class="md" nowrap align="right"></td>
333
<td class="md" nowrap>double </td>
334
<td class="mdname" nowrap> <em>arc</em>, </td>
337
<td class="md" nowrap align="right"></td>
339
<td class="md" nowrap>const QColor & </td>
340
<td class="mdname" nowrap> <em>c</em></td>
344
<td class="md">) </td>
345
<td class="md" colspan="2"><code> [protected]</code></td>
351
<table cellspacing="5" cellpadding="0" border="0">
359
Draw the marker at the knob's front.
361
<dl compact><dt><b>Parameters:</b></dt><dd>
362
<table border="0" cellspacing="2" cellpadding="0">
363
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>Painter </td></tr>
364
<tr><td valign="top"></td><td valign="top"><em>arc</em> </td><td>Angle of the marker </td></tr>
365
<tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>Marker color </td></tr>
370
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00405">405</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
372
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00189">drawKnob()</a>. </td>
375
<a class="anchor" name="a9470eed740c7175c7ccfc4406eb5fc2"></a><!-- doxytag: member="QwtKnob::knobWidth" ref="a9470eed740c7175c7ccfc4406eb5fc2" args="() const " --><p>
376
<table class="mdTable" cellpadding="2" cellspacing="0">
379
<table cellpadding="0" cellspacing="0" border="0">
381
<td class="md" nowrap valign="top">int QwtKnob::knobWidth </td>
382
<td class="md" valign="top">( </td>
383
<td class="mdname1" valign="top" nowrap> </td>
384
<td class="md" valign="top"> ) </td>
385
<td class="md" nowrap> const</td>
391
<table cellspacing="5" cellpadding="0" border="0">
399
Return the width of the knob.
403
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00459">459</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
406
<a class="anchor" name="03d014cd8d025bfeab6e004c53ab6e5b"></a><!-- doxytag: member="QwtKnob::minimumSizeHint" ref="03d014cd8d025bfeab6e004c53ab6e5b" args="() const " --><p>
407
<table class="mdTable" cellpadding="2" cellspacing="0">
410
<table cellpadding="0" cellspacing="0" border="0">
412
<td class="md" nowrap valign="top">QSize QwtKnob::minimumSizeHint </td>
413
<td class="md" valign="top">( </td>
414
<td class="mdname1" valign="top" nowrap> </td>
415
<td class="md" valign="top"> ) </td>
416
<td class="md" nowrap> const<code> [virtual]</code></td>
422
<table cellspacing="5" cellpadding="0" border="0">
430
Return a minimum size hint.
432
<dl compact><dt><b>Warning:</b></dt><dd>The return value of <a class="el" href="class_qwt_knob.html#03d014cd8d025bfeab6e004c53ab6e5b">QwtKnob::minimumSizeHint()</a> depends on the font and the scale. </dd></dl>
435
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00536">536</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
437
References <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00269">QwtRoundScaleDraw::extent()</a>, and <a class="el" href="qwt__knob_8cpp-source.html#l00170">scaleDraw()</a>.
439
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00526">sizeHint()</a>. </td>
442
<a class="anchor" name="2b078ad2a814d2c464baec97d895b0b5"></a><!-- doxytag: member="QwtKnob::paintEvent" ref="2b078ad2a814d2c464baec97d895b0b5" args="(QPaintEvent *e)" --><p>
443
<table class="mdTable" cellpadding="2" cellspacing="0">
446
<table cellpadding="0" cellspacing="0" border="0">
448
<td class="md" nowrap valign="top">void QwtKnob::paintEvent </td>
449
<td class="md" valign="top">( </td>
450
<td class="md" nowrap valign="top">QPaintEvent * </td>
451
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
452
<td class="md" valign="top"> ) </td>
453
<td class="md" nowrap><code> [protected, virtual]</code></td>
459
<table cellspacing="5" cellpadding="0" border="0">
471
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00362">362</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
473
References <a class="el" href="qwt__knob_8cpp-source.html#l00382">draw()</a>. </td>
476
<a class="anchor" name="577c1fa6f26397ca356e679cce3a5c8c"></a><!-- doxytag: member="QwtKnob::resizeEvent" ref="577c1fa6f26397ca356e679cce3a5c8c" args="(QResizeEvent *e)" --><p>
477
<table class="mdTable" cellpadding="2" cellspacing="0">
480
<table cellpadding="0" cellspacing="0" border="0">
482
<td class="md" nowrap valign="top">void QwtKnob::resizeEvent </td>
483
<td class="md" valign="top">( </td>
484
<td class="md" nowrap valign="top">QResizeEvent * </td>
485
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
486
<td class="md" valign="top"> ) </td>
487
<td class="md" nowrap><code> [protected, virtual]</code></td>
493
<table cellspacing="5" cellpadding="0" border="0">
505
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00331">331</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
508
<a class="anchor" name="3154037eec8c76c24577b8bf1d92b871"></a><!-- doxytag: member="QwtKnob::scaleDraw" ref="3154037eec8c76c24577b8bf1d92b871" args="()" --><p>
509
<table class="mdTable" cellpadding="2" cellspacing="0">
512
<table cellpadding="0" cellspacing="0" border="0">
514
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * QwtKnob::scaleDraw </td>
515
<td class="md" valign="top">( </td>
516
<td class="mdname1" valign="top" nowrap> </td>
517
<td class="md" valign="top"> ) </td>
518
<td class="md" nowrap></td>
524
<table cellspacing="5" cellpadding="0" border="0">
532
<dl compact><dt><b>Returns:</b></dt><dd>the scale draw of the knob </dd></dl>
533
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#fea44f23da7f79a2b790178850c26edd">setScaleDraw()</a> </dd></dl>
536
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00179">179</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
538
References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00246">QwtAbstractScale::abstractScaleDraw()</a>. </td>
541
<a class="anchor" name="a9c4c23e20fc59b3ca2bfed9fe1e3719"></a><!-- doxytag: member="QwtKnob::scaleDraw" ref="a9c4c23e20fc59b3ca2bfed9fe1e3719" args="() const " --><p>
542
<table class="mdTable" cellpadding="2" cellspacing="0">
545
<table cellpadding="0" cellspacing="0" border="0">
547
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * QwtKnob::scaleDraw </td>
548
<td class="md" valign="top">( </td>
549
<td class="mdname1" valign="top" nowrap> </td>
550
<td class="md" valign="top"> ) </td>
551
<td class="md" nowrap> const</td>
557
<table cellspacing="5" cellpadding="0" border="0">
565
<dl compact><dt><b>Returns:</b></dt><dd>the scale draw of the knob </dd></dl>
566
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#fea44f23da7f79a2b790178850c26edd">setScaleDraw()</a> </dd></dl>
569
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00170">170</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
571
References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00246">QwtAbstractScale::abstractScaleDraw()</a>.
573
Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00382">draw()</a>, <a class="el" href="qwt__knob_8cpp-source.html#l00536">minimumSizeHint()</a>, <a class="el" href="qwt__knob_8cpp-source.html#l00161">setScaleDraw()</a>, and <a class="el" href="qwt__knob_8cpp-source.html#l00134">setTotalAngle()</a>. </td>
576
<a class="anchor" name="2e0a17648602bab3b1aaabfc3ba19441"></a><!-- doxytag: member="QwtKnob::setBorderWidth" ref="2e0a17648602bab3b1aaabfc3ba19441" args="(int bw)" --><p>
577
<table class="mdTable" cellpadding="2" cellspacing="0">
580
<table cellpadding="0" cellspacing="0" border="0">
582
<td class="md" nowrap valign="top">void QwtKnob::setBorderWidth </td>
583
<td class="md" valign="top">( </td>
584
<td class="md" nowrap valign="top">int </td>
585
<td class="mdname1" valign="top" nowrap> <em>bw</em> </td>
586
<td class="md" valign="top"> ) </td>
587
<td class="md" nowrap></td>
593
<table cellspacing="5" cellpadding="0" border="0">
601
Set the knob's border width.
603
<dl compact><dt><b>Parameters:</b></dt><dd>
604
<table border="0" cellspacing="2" cellpadding="0">
605
<tr><td valign="top"></td><td valign="top"><em>bw</em> </td><td>new border width </td></tr>
610
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00468">468</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
613
<a class="anchor" name="58e2966b2ebe5631991f293ab61558f3"></a><!-- doxytag: member="QwtKnob::setKnobWidth" ref="58e2966b2ebe5631991f293ab61558f3" args="(int w)" --><p>
614
<table class="mdTable" cellpadding="2" cellspacing="0">
617
<table cellpadding="0" cellspacing="0" border="0">
619
<td class="md" nowrap valign="top">void QwtKnob::setKnobWidth </td>
620
<td class="md" valign="top">( </td>
621
<td class="md" nowrap valign="top">int </td>
622
<td class="mdname1" valign="top" nowrap> <em>w</em> </td>
623
<td class="md" valign="top"> ) </td>
624
<td class="md" nowrap></td>
630
<table cellspacing="5" cellpadding="0" border="0">
638
Change the knob's width.
640
The specified width must be >= 5, or it will be clipped. <dl compact><dt><b>Parameters:</b></dt><dd>
641
<table border="0" cellspacing="2" cellpadding="0">
642
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>New width </td></tr>
647
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00452">452</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
650
<a class="anchor" name="fea44f23da7f79a2b790178850c26edd"></a><!-- doxytag: member="QwtKnob::setScaleDraw" ref="fea44f23da7f79a2b790178850c26edd" args="(QwtRoundScaleDraw *)" --><p>
651
<table class="mdTable" cellpadding="2" cellspacing="0">
654
<table cellpadding="0" cellspacing="0" border="0">
656
<td class="md" nowrap valign="top">void QwtKnob::setScaleDraw </td>
657
<td class="md" valign="top">( </td>
658
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * </td>
659
<td class="mdname1" valign="top" nowrap> <em>scaleDraw</em> </td>
660
<td class="md" valign="top"> ) </td>
661
<td class="md" nowrap></td>
667
<table cellspacing="5" cellpadding="0" border="0">
675
Change the scale draw of the knob<p>
676
For changing the labels of the scales, it is necessary to derive from <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> and overload <a class="el" href="class_qwt_abstract_scale_draw.html#4ff88bc827dd6c6ca9298de13483b61f">QwtRoundScaleDraw::label()</a>.<p>
677
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#3154037eec8c76c24577b8bf1d92b871">scaleDraw()</a> </dd></dl>
680
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00161">161</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
682
References <a class="el" href="qwt__knob_8cpp-source.html#l00170">scaleDraw()</a>, and <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00224">QwtAbstractScale::setAbstractScaleDraw()</a>. </td>
685
<a class="anchor" name="63421f4b0d0745608bb6c202b0492eaf"></a><!-- doxytag: member="QwtKnob::setSymbol" ref="63421f4b0d0745608bb6c202b0492eaf" args="(Symbol)" --><p>
686
<table class="mdTable" cellpadding="2" cellspacing="0">
689
<table cellpadding="0" cellspacing="0" border="0">
691
<td class="md" nowrap valign="top">void QwtKnob::setSymbol </td>
692
<td class="md" valign="top">( </td>
693
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_knob.html#a72613ae9e19a921beffaf8c99ab87f0">QwtKnob::Symbol</a> </td>
694
<td class="mdname1" valign="top" nowrap> <em>s</em> </td>
695
<td class="md" valign="top"> ) </td>
696
<td class="md" nowrap></td>
702
<table cellspacing="5" cellpadding="0" border="0">
710
Set the symbol of the knob.
712
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#d99ead1799a7390f7e290062d548385b">symbol()</a> </dd></dl>
715
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00108">108</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
718
<a class="anchor" name="82c6a859d63833894a6e66f0fdbf8f05"></a><!-- doxytag: member="QwtKnob::setTotalAngle" ref="82c6a859d63833894a6e66f0fdbf8f05" args="(double angle)" --><p>
719
<table class="mdTable" cellpadding="2" cellspacing="0">
722
<table cellpadding="0" cellspacing="0" border="0">
724
<td class="md" nowrap valign="top">void QwtKnob::setTotalAngle </td>
725
<td class="md" valign="top">( </td>
726
<td class="md" nowrap valign="top">double </td>
727
<td class="mdname1" valign="top" nowrap> <em>angle</em> </td>
728
<td class="md" valign="top"> ) </td>
729
<td class="md" nowrap></td>
735
<table cellspacing="5" cellpadding="0" border="0">
743
Set the total angle by which the knob can be turned.
745
<dl compact><dt><b>Parameters:</b></dt><dd>
746
<table border="0" cellspacing="2" cellpadding="0">
747
<tr><td valign="top"></td><td valign="top"><em>angle</em> </td><td>Angle in degrees.</td></tr>
750
The default angle is 270 degrees. It is possible to specify an angle of more than 360 degrees so that the knob can be turned several times around its axis.
752
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00134">134</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
754
References <a class="el" href="qwt__knob_8cpp-source.html#l00170">scaleDraw()</a>, and <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00135">QwtRoundScaleDraw::setAngleRange()</a>. </td>
757
<a class="anchor" name="c5f92af50fdcbf0b501f18efd07294fd"></a><!-- doxytag: member="QwtKnob::sizeHint" ref="c5f92af50fdcbf0b501f18efd07294fd" args="() const " --><p>
758
<table class="mdTable" cellpadding="2" cellspacing="0">
761
<table cellpadding="0" cellspacing="0" border="0">
763
<td class="md" nowrap valign="top">QSize QwtKnob::sizeHint </td>
764
<td class="md" valign="top">( </td>
765
<td class="mdname1" valign="top" nowrap> </td>
766
<td class="md" valign="top"> ) </td>
767
<td class="md" nowrap> const<code> [virtual]</code></td>
773
<table cellspacing="5" cellpadding="0" border="0">
781
<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_knob.html#03d014cd8d025bfeab6e004c53ab6e5b">minimumSizeHint()</a> </dd></dl>
784
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00526">526</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.
786
References <a class="el" href="qwt__knob_8cpp-source.html#l00536">minimumSizeHint()</a>. </td>
789
<a class="anchor" name="d99ead1799a7390f7e290062d548385b"></a><!-- doxytag: member="QwtKnob::symbol" ref="d99ead1799a7390f7e290062d548385b" args="() const " --><p>
790
<table class="mdTable" cellpadding="2" cellspacing="0">
793
<table cellpadding="0" cellspacing="0" border="0">
795
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_knob.html#a72613ae9e19a921beffaf8c99ab87f0">QwtKnob::Symbol</a> QwtKnob::symbol </td>
796
<td class="md" valign="top">( </td>
797
<td class="mdname1" valign="top" nowrap> </td>
798
<td class="md" valign="top"> ) </td>
799
<td class="md" nowrap> const</td>
805
<table cellspacing="5" cellpadding="0" border="0">
813
<dl compact><dt><b>Returns:</b></dt><dd>symbol of the knob </dd></dl>
814
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#63421f4b0d0745608bb6c202b0492eaf">setSymbol()</a> </dd></dl>
817
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00121">121</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
820
<a class="anchor" name="804d957c14e08bd9b132985c892ab853"></a><!-- doxytag: member="QwtKnob::totalAngle" ref="804d957c14e08bd9b132985c892ab853" args="() const " --><p>
821
<table class="mdTable" cellpadding="2" cellspacing="0">
824
<table cellpadding="0" cellspacing="0" border="0">
826
<td class="md" nowrap valign="top">double QwtKnob::totalAngle </td>
827
<td class="md" valign="top">( </td>
828
<td class="mdname1" valign="top" nowrap> </td>
829
<td class="md" valign="top"> ) </td>
830
<td class="md" nowrap> const</td>
836
<table cellspacing="5" cellpadding="0" border="0">
844
Return the total angle.
848
Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00147">147</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>. </td>
851
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:42:09 2007 for Qwt User's Guide by
852
<a href="http://www.doxygen.org/index.html">
853
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>