1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User's Guide: QwtAnalogClock Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>QwtAnalogClock Class Reference</h1>Inheritance diagram for QwtAnalogClock:<p><center><img src="class_qwt_analog_clock__inherit__graph.png" border="0" usemap="#_qwt_analog_clock__inherit__map" alt="Inheritance graph"></center>
<map name="_qwt_analog_clock__inherit__map">
<area href="class_qwt_dial.html" shape="rect" coords="33,168,92,192" alt="">
<area href="class_qwt_slider_base.html" shape="rect" coords="12,93,113,117" alt="">
<area href="class_qwt_dbl_range.html" shape="rect" coords="15,19,110,43" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtAnalogClock:<p><center><img src="class_qwt_analog_clock__coll__graph.png" border="0" usemap="#_qwt_analog_clock__coll__map" alt="Collaboration graph"></center>
<map name="_qwt_analog_clock__coll__map">
<area href="class_qwt_dial.html" shape="rect" coords="265,186,324,210" alt="">
<area href="class_qwt_dial_scale_draw.html" shape="rect" coords="124,277,249,301" alt="">
<area href="class_qwt_slider_base.html" shape="rect" coords="244,96,345,120" alt="">
<area href="class_qwt_dbl_range.html" shape="rect" coords="246,18,342,42" alt="">
<area href="class_qwt_scale_draw.html" shape="rect" coords="74,186,176,210" alt="">
<area href="class_qwt_di_map.html" shape="rect" coords="6,96,81,120" alt="">
<area href="class_qwt_scale_div.html" shape="rect" coords="105,96,196,120" alt="">
<area href="class_qwt_dial_needle.html" shape="rect" coords="389,96,490,120" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_analog_clock-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
An analog clock.
<p>
<div align="center">
<img src="analogclock.gif" alt="analogclock.gif">
</div>
<p>
<dl compact><dt><b>Example</b></dt><dd><div class="fragment"><pre> #include <qwt_analog_clock.h>
QwtAnalogClock *clock = new QwtAnalogClock(...);
clock->scaleDraw()->setPenWidth(3);
clock->setLineWidth(6);
clock->setFrameShadow(QwtDial::Sunken);
clock->setTime();
// update the clock every second
QTimer *timer = new QTimer(clock);
timer->connect(timer, SIGNAL(timeout()), clock, SLOT(setCurrentTime()));
timer->start(1000);
</pre></div></dd></dl>
Qwt is missing a set of good looking hands. Contributions are very welcome.<p>
<dl compact><dt><b>Note:</b></dt><dd>The examples/dials example shows how to use QwtAnalogClock. </dd></dl>
<p>
Definition at line <a class="el" href="qwt__analog__clock_8h-source.html#l00045">45</a> of file <a class="el" href="qwt__analog__clock_8h-source.html">qwt_analog_clock.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><b>Hand</b> { <br>
<b>SecondHand</b>,
<br>
<b>MinuteHand</b>,
<br>
<b>HourHand</b>,
<br>
<b>NHands</b>
<br>
}</td></tr>
<tr><td colspan=2><br><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#i0">setCurrentTime</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#i1">setTime</a> (const QTime &=QTime::currentTime())</td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#a0">QwtAnalogClock</a> (QWidget *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#a1">~QwtAnalogClock</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#a2">setHand</a> (Hand, <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> *)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#a3">hand</a> (Hand) const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#a4">hand</a> (Hand)</td></tr>
<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual QString </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#b0">scaleLabel</a> (double) const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#b1">drawNeedle</a> (QPainter *, const QPoint &, int radius, double direction, QPalette::ColorGroup) const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_analog_clock.html#b2">drawHand</a> (QPainter *, Hand, const QPoint &, int radius, double direction, QPalette::ColorGroup) const</td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="QwtAnalogClock::QwtAnalogClock" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtAnalogClock::QwtAnalogClock </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">QWidget * </td>
<td class="mdname" nowrap> <em>parent</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const char * </td>
<td class="mdname" nowrap> <em>name</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructor <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>parent</em> </td><td>Parent widget </td></tr>
<tr><td></td><td valign=top><em>name</em> </td><td>Widget name </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00008">8</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
References <a class="el" href="qwt__analog__clock_8cpp-source.html#l00099">hand()</a>, <a class="el" href="qwt__analog__clock_8cpp-source.html#l00072">setHand()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00810">QwtDial::setOrigin()</a>, <a class="el" href="qwt__drange_8cpp-source.html#l00169">QwtDblRange::setRange()</a>, <a class="el" href="qwt__sldbase_8cpp-source.html#l00053">QwtSliderBase::setReadOnly()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00730">QwtDial::setScale()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00754">QwtDial::setScaleOptions()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00776">QwtDial::setScaleTicks()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00120">QwtDialSimpleNeedle::setWidth()</a>, and <a class="el" href="qwt__dial_8cpp-source.html#l00344">QwtDial::setWrapping()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="QwtAnalogClock::~QwtAnalogClock" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtAnalogClock::~<a class="el" href="class_qwt_analog_clock.html">QwtAnalogClock</a> </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Destructor.
<p>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00050">50</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b2" doxytag="QwtAnalogClock::drawHand" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAnalogClock::drawHand </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">QPainter * </td>
<td class="mdname" nowrap> <em>painter</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>Hand </td>
<td class="mdname" nowrap> <em>hd</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const QPoint & </td>
<td class="mdname" nowrap> <em>center</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>radius</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>direction</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>QPalette::ColorGroup </td>
<td class="mdname" nowrap> <em>cg</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Draw a clock hand<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>painter</em> </td><td>Painter </td></tr>
<tr><td></td><td valign=top><em>hd</em> </td><td>Specify the type of hand </td></tr>
<tr><td></td><td valign=top><em>center</em> </td><td>Center of the clock </td></tr>
<tr><td></td><td valign=top><em>radius</em> </td><td>Maximum length for the hands </td></tr>
<tr><td></td><td valign=top><em>direction</em> </td><td>Direction of the hand in degrees, counter clockwise </td></tr>
<tr><td></td><td valign=top><em>cg</em> </td><td>ColorGroup </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00191">191</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
References <a class="el" href="class_qwt_dial_needle.html#a2">QwtDialNeedle::draw()</a>, and <a class="el" href="qwt__analog__clock_8cpp-source.html#l00099">hand()</a>.
<p>
Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00162">drawNeedle()</a>. </td>
</tr>
</table>
<a class="anchor" name="b1" doxytag="QwtAnalogClock::drawNeedle" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAnalogClock::drawNeedle </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">QPainter * </td>
<td class="mdname" nowrap> <em>painter</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const QPoint & </td>
<td class="mdname" nowrap> <em>center</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>radius</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>double </td>
<td class="mdname" nowrap> <em>direction</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>QPalette::ColorGroup </td>
<td class="mdname" nowrap> <em>cg</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const<code> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Draw the needle.
<p>
A clock has no single needle but three hands instead. drawNeedle translates <a class="el" href="class_qwt_dbl_range.html#a6">value()</a> into directions for the hands and calls <a class="el" href="class_qwt_analog_clock.html#b2">drawHand()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>painter</em> </td><td>Painter </td></tr>
<tr><td></td><td valign=top><em>center</em> </td><td>Center of the clock </td></tr>
<tr><td></td><td valign=top><em>radius</em> </td><td>Maximum length for the hands </td></tr>
<tr><td></td><td valign=top><em>direction</em> </td><td>Dummy, not used. </td></tr>
<tr><td></td><td valign=top><em>cg</em> </td><td>ColorGroup</td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#b2">QwtAnalogClock::drawHand()</a> </dd></dl>
<p>
Reimplemented from <a class="el" href="class_qwt_dial.html#b8">QwtDial</a>.
<p>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00162">162</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
References <a class="el" href="qwt__analog__clock_8cpp-source.html#l00191">drawHand()</a>, <a class="el" href="qwt__sldbase_8h-source.html#l00066">QwtSliderBase::isValid()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00822">QwtDial::origin()</a>, and <a class="el" href="qwt__drange_8cpp-source.html#l00360">QwtDblRange::value()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="QwtAnalogClock::hand" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * QwtAnalogClock::hand </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">Hand </td>
<td class="mdname1" valign="top" nowrap> <em>hd</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>Clock hand </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>hd</em> </td><td>Specifies the type of hand </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#a2">QwtAnalogClock::setHand</a> </dd></dl>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00086">86</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="QwtAnalogClock::hand" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * QwtAnalogClock::hand </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">Hand </td>
<td class="mdname1" valign="top" nowrap> <em>hd</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>Clock hand </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>hd</em> </td><td>Specifies the type of hand </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#a2">QwtAnalogClock::setHand</a> </dd></dl>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00099">99</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00191">drawHand()</a>, and <a class="el" href="qwt__analog__clock_8cpp-source.html#l00008">QwtAnalogClock()</a>. </td>
</tr>
</table>
<a class="anchor" name="b0" doxytag="QwtAnalogClock::scaleLabel" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QString QwtAnalogClock::scaleLabel </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">double </td>
<td class="mdname1" valign="top" nowrap> <em>value</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Find the scale label for a given value<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>value</em> </td><td>Value </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Label </dd></dl>
<p>
Reimplemented from <a class="el" href="class_qwt_dial.html#b9">QwtDial</a>.
<p>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00136">136</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="i0" doxytag="QwtAnalogClock::setCurrentTime" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAnalogClock::setCurrentTime </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [slot]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Set the current time.
<p>
This is the same as <a class="el" href="class_qwt_analog_clock.html#i1">QwtAnalogClock::setTime()</a>, but Qt < 3.0 cant handle default parameters for slots. Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00110">110</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
References <a class="el" href="qwt__analog__clock_8cpp-source.html#l00119">setTime()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="QwtAnalogClock::setHand" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAnalogClock::setHand </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">Hand </td>
<td class="mdname" nowrap> <em>hand</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * </td>
<td class="mdname" nowrap> <em>needle</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Set a clockhand <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>hand</em> </td><td>Specifies the type of hand </td></tr>
<tr><td></td><td valign=top><em>needle</em> </td><td>Hand </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#a3">QwtAnalogClock::hand()</a> </dd></dl>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00072">72</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00008">QwtAnalogClock()</a>. </td>
</tr>
</table>
<a class="anchor" name="i1" doxytag="QwtAnalogClock::setTime" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtAnalogClock::setTime </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const QTime & </td>
<td class="mdname1" valign="top" nowrap> <em>time</em> = <code>QTime::currentTime()</code> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [slot]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Set a time <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>time</em> </td><td>Time to display </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00119">119</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.
<p>
References <a class="el" href="qwt__sldbase_8h-source.html#l00071">QwtSliderBase::setValid()</a>, and <a class="el" href="qwt__sldbase_8cpp-source.html#l00506">QwtSliderBase::setValue()</a>.
<p>
Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00110">setCurrentTime()</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:22 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|