QwtWheel.3 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. .TH "QwtWheel" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtWheel \- The Wheel Widget\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_wheel\&.h>\fP
  11. .PP
  12. Inherits QWidget\&.
  13. .SS "Public Slots"
  14. .in +1c
  15. .ti -1c
  16. .RI "void \fBsetValue\fP (double)"
  17. .br
  18. .RI "Set a new value without adjusting to the step raster\&. "
  19. .ti -1c
  20. .RI "void \fBsetTotalAngle\fP (double)"
  21. .br
  22. .RI "Set the total angle which the wheel can be turned\&. "
  23. .ti -1c
  24. .RI "void \fBsetViewAngle\fP (double)"
  25. .br
  26. .RI "Specify the visible portion of the wheel\&. "
  27. .ti -1c
  28. .RI "void \fBsetMass\fP (double)"
  29. .br
  30. .RI "Set the slider's mass for flywheel effect\&. "
  31. .in -1c
  32. .SS "Signals"
  33. .in +1c
  34. .ti -1c
  35. .RI "void \fBvalueChanged\fP (double \fBvalue\fP)"
  36. .br
  37. .RI "Notify a change of value\&. "
  38. .ti -1c
  39. .RI "void \fBwheelPressed\fP ()"
  40. .br
  41. .ti -1c
  42. .RI "void \fBwheelReleased\fP ()"
  43. .br
  44. .ti -1c
  45. .RI "void \fBwheelMoved\fP (double \fBvalue\fP)"
  46. .br
  47. .in -1c
  48. .SS "Public Member Functions"
  49. .in +1c
  50. .ti -1c
  51. .RI "\fBQwtWheel\fP (QWidget *parent=NULL)"
  52. .br
  53. .RI "Constructor\&. "
  54. .ti -1c
  55. .RI "virtual \fB~QwtWheel\fP ()"
  56. .br
  57. .RI "Destructor\&. "
  58. .ti -1c
  59. .RI "double \fBvalue\fP () const"
  60. .br
  61. .ti -1c
  62. .RI "void \fBsetOrientation\fP (Qt::Orientation)"
  63. .br
  64. .RI "Set the wheel's orientation\&. "
  65. .ti -1c
  66. .RI "Qt::Orientation \fBorientation\fP () const"
  67. .br
  68. .ti -1c
  69. .RI "double \fBtotalAngle\fP () const"
  70. .br
  71. .ti -1c
  72. .RI "double \fBviewAngle\fP () const"
  73. .br
  74. .ti -1c
  75. .RI "void \fBsetTickCount\fP (int)"
  76. .br
  77. .RI "Adjust the number of grooves in the wheel's surface\&. "
  78. .ti -1c
  79. .RI "int \fBtickCount\fP () const"
  80. .br
  81. .ti -1c
  82. .RI "void \fBsetWheelWidth\fP (int)"
  83. .br
  84. .RI "Set the width of the wheel\&. "
  85. .ti -1c
  86. .RI "int \fBwheelWidth\fP () const"
  87. .br
  88. .ti -1c
  89. .RI "void \fBsetWheelBorderWidth\fP (int)"
  90. .br
  91. .RI "Set the wheel border width of the wheel\&. "
  92. .ti -1c
  93. .RI "int \fBwheelBorderWidth\fP () const"
  94. .br
  95. .ti -1c
  96. .RI "void \fBsetBorderWidth\fP (int)"
  97. .br
  98. .RI "Set the border width\&. "
  99. .ti -1c
  100. .RI "int \fBborderWidth\fP () const"
  101. .br
  102. .ti -1c
  103. .RI "void \fBsetInverted\fP (bool)"
  104. .br
  105. .RI "En/Disable inverted appearance\&. "
  106. .ti -1c
  107. .RI "bool \fBisInverted\fP () const"
  108. .br
  109. .ti -1c
  110. .RI "void \fBsetWrapping\fP (bool)"
  111. .br
  112. .RI "En/Disable wrapping\&. "
  113. .ti -1c
  114. .RI "bool \fBwrapping\fP () const"
  115. .br
  116. .ti -1c
  117. .RI "void \fBsetSingleStep\fP (double)"
  118. .br
  119. .RI "Set the step size of the counter\&. "
  120. .ti -1c
  121. .RI "double \fBsingleStep\fP () const"
  122. .br
  123. .ti -1c
  124. .RI "void \fBsetPageStepCount\fP (int)"
  125. .br
  126. .RI "Set the page step count\&. "
  127. .ti -1c
  128. .RI "int \fBpageStepCount\fP () const"
  129. .br
  130. .ti -1c
  131. .RI "void \fBsetStepAlignment\fP (bool on)"
  132. .br
  133. .RI "En/Disable step alignment\&. "
  134. .ti -1c
  135. .RI "bool \fBstepAlignment\fP () const"
  136. .br
  137. .ti -1c
  138. .RI "void \fBsetRange\fP (double min, double max)"
  139. .br
  140. .RI "Set the minimum and maximum values\&. "
  141. .ti -1c
  142. .RI "void \fBsetMinimum\fP (double)"
  143. .br
  144. .ti -1c
  145. .RI "double \fBminimum\fP () const"
  146. .br
  147. .ti -1c
  148. .RI "void \fBsetMaximum\fP (double)"
  149. .br
  150. .ti -1c
  151. .RI "double \fBmaximum\fP () const"
  152. .br
  153. .ti -1c
  154. .RI "void \fBsetUpdateInterval\fP (int)"
  155. .br
  156. .RI "Specify the update interval when the wheel is flying\&. "
  157. .ti -1c
  158. .RI "int \fBupdateInterval\fP () const"
  159. .br
  160. .ti -1c
  161. .RI "void \fBsetTracking\fP (bool)"
  162. .br
  163. .RI "En/Disable tracking\&. "
  164. .ti -1c
  165. .RI "bool \fBisTracking\fP () const"
  166. .br
  167. .ti -1c
  168. .RI "double \fBmass\fP () const"
  169. .br
  170. .in -1c
  171. .SS "Protected Member Functions"
  172. .in +1c
  173. .ti -1c
  174. .RI "virtual void \fBpaintEvent\fP (QPaintEvent *)"
  175. .br
  176. .RI "Qt Paint Event\&. "
  177. .ti -1c
  178. .RI "virtual void \fBmousePressEvent\fP (QMouseEvent *)"
  179. .br
  180. .RI "Mouse press event handler\&. "
  181. .ti -1c
  182. .RI "virtual void \fBmouseReleaseEvent\fP (QMouseEvent *)"
  183. .br
  184. .RI "Mouse Release Event handler\&. "
  185. .ti -1c
  186. .RI "virtual void \fBmouseMoveEvent\fP (QMouseEvent *)"
  187. .br
  188. .RI "Mouse Move Event handler\&. "
  189. .ti -1c
  190. .RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
  191. .br
  192. .ti -1c
  193. .RI "virtual void \fBwheelEvent\fP (QWheelEvent *)"
  194. .br
  195. .RI "Handle wheel events\&. "
  196. .ti -1c
  197. .RI "virtual void \fBtimerEvent\fP (QTimerEvent *)"
  198. .br
  199. .RI "Qt timer event\&. "
  200. .ti -1c
  201. .RI "void \fBstopFlying\fP ()"
  202. .br
  203. .RI "Stop the flying movement of the wheel\&. "
  204. .ti -1c
  205. .RI "QRect \fBwheelRect\fP () const"
  206. .br
  207. .ti -1c
  208. .RI "virtual QSize \fBsizeHint\fP () const"
  209. .br
  210. .ti -1c
  211. .RI "virtual QSize \fBminimumSizeHint\fP () const"
  212. .br
  213. .ti -1c
  214. .RI "virtual void \fBdrawTicks\fP (QPainter *, const QRectF &)"
  215. .br
  216. .ti -1c
  217. .RI "virtual void \fBdrawWheelBackground\fP (QPainter *, const QRectF &)"
  218. .br
  219. .ti -1c
  220. .RI "virtual double \fBvalueAt\fP (const QPoint &) const"
  221. .br
  222. .in -1c
  223. .SH "Detailed Description"
  224. .PP
  225. The Wheel Widget\&.
  226. The wheel widget can be used to change values over a very large range in very small steps\&. Using the \fBsetMass()\fP member, it can be configured as a flying wheel\&.
  227. .PP
  228. The default range of the wheel is [0\&.0, 100\&.0]
  229. .PP
  230. \fBSee also\fP
  231. .RS 4
  232. The radio example\&.
  233. .RE
  234. .PP
  235. .SH "Member Function Documentation"
  236. .PP
  237. .SS "int QwtWheel::borderWidth () const"
  238. .PP
  239. \fBReturns\fP
  240. .RS 4
  241. Border width
  242. .RE
  243. .PP
  244. \fBSee also\fP
  245. .RS 4
  246. \fBsetBorderWidth()\fP
  247. .RE
  248. .PP
  249. .SS "void QwtWheel::drawTicks (QPainter * painter, const QRectF & rect)\fC [protected]\fP, \fC [virtual]\fP"
  250. Draw the Wheel's ticks
  251. .PP
  252. \fBParameters\fP
  253. .RS 4
  254. \fIpainter\fP Painter
  255. .br
  256. \fIrect\fP Geometry for the wheel
  257. .RE
  258. .PP
  259. .SS "void QwtWheel::drawWheelBackground (QPainter * painter, const QRectF & rect)\fC [protected]\fP, \fC [virtual]\fP"
  260. Draw the Wheel's background gradient
  261. .PP
  262. \fBParameters\fP
  263. .RS 4
  264. \fIpainter\fP Painter
  265. .br
  266. \fIrect\fP Geometry for the wheel
  267. .RE
  268. .PP
  269. .SS "bool QwtWheel::isInverted () const"
  270. .PP
  271. \fBReturns\fP
  272. .RS 4
  273. True, when the wheel is inverted
  274. .RE
  275. .PP
  276. \fBSee also\fP
  277. .RS 4
  278. \fBsetInverted()\fP
  279. .RE
  280. .PP
  281. .SS "bool QwtWheel::isTracking () const"
  282. .PP
  283. \fBReturns\fP
  284. .RS 4
  285. True, when tracking is enabled
  286. .RE
  287. .PP
  288. \fBSee also\fP
  289. .RS 4
  290. \fBsetTracking()\fP, \fBvalueChanged()\fP, \fBwheelMoved()\fP
  291. .RE
  292. .PP
  293. .SS "void QwtWheel::keyPressEvent (QKeyEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  294. Handle key events
  295. .PP
  296. .IP "\(bu" 2
  297. Qt::Key_Home
  298. .br
  299. Step to \fBminimum()\fP
  300. .IP "\(bu" 2
  301. Qt::Key_End
  302. .br
  303. Step to \fBmaximum()\fP
  304. .IP "\(bu" 2
  305. Qt::Key_Up
  306. .br
  307. In case of a horizontal or not inverted vertical wheel the value will be incremented by the step size\&. For an inverted vertical wheel the value will be decremented by the step size\&.
  308. .IP "\(bu" 2
  309. Qt::Key_Down
  310. .br
  311. In case of a horizontal or not inverted vertical wheel the value will be decremented by the step size\&. For an inverted vertical wheel the value will be incremented by the step size\&.
  312. .IP "\(bu" 2
  313. Qt::Key_PageUp
  314. .br
  315. The value will be incremented by pageStepSize() * singleStepSize()\&.
  316. .IP "\(bu" 2
  317. Qt::Key_PageDown
  318. .br
  319. The value will be decremented by pageStepSize() * singleStepSize()\&.
  320. .PP
  321. .PP
  322. \fBParameters\fP
  323. .RS 4
  324. \fIevent\fP Key event
  325. .RE
  326. .PP
  327. .SS "double QwtWheel::mass () const"
  328. .PP
  329. \fBReturns\fP
  330. .RS 4
  331. mass
  332. .RE
  333. .PP
  334. \fBSee also\fP
  335. .RS 4
  336. \fBsetMass()\fP
  337. .RE
  338. .PP
  339. .SS "double QwtWheel::maximum () const"
  340. .PP
  341. \fBReturns\fP
  342. .RS 4
  343. The maximum of the range
  344. .RE
  345. .PP
  346. \fBSee also\fP
  347. .RS 4
  348. \fBsetRange()\fP, \fBsetMaximum()\fP, \fBminimum()\fP
  349. .RE
  350. .PP
  351. .SS "double QwtWheel::minimum () const"
  352. .PP
  353. \fBReturns\fP
  354. .RS 4
  355. The minimum of the range
  356. .RE
  357. .PP
  358. \fBSee also\fP
  359. .RS 4
  360. \fBsetRange()\fP, \fBsetMinimum()\fP, \fBmaximum()\fP
  361. .RE
  362. .PP
  363. .SS "QSize QwtWheel::minimumSizeHint () const\fC [protected]\fP, \fC [virtual]\fP"
  364. .PP
  365. \fBReturns\fP
  366. .RS 4
  367. Minimum size hint
  368. .RE
  369. .PP
  370. \fBWarning\fP
  371. .RS 4
  372. The return value is based on the wheel width\&.
  373. .RE
  374. .PP
  375. .SS "void QwtWheel::mouseMoveEvent (QMouseEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  376. .PP
  377. Mouse Move Event handler\&. Turn the wheel according to the mouse position
  378. .PP
  379. \fBParameters\fP
  380. .RS 4
  381. \fIevent\fP Mouse event
  382. .RE
  383. .PP
  384. .SS "void QwtWheel::mousePressEvent (QMouseEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  385. .PP
  386. Mouse press event handler\&. Start movement of the wheel\&.
  387. .PP
  388. \fBParameters\fP
  389. .RS 4
  390. \fIevent\fP Mouse event
  391. .RE
  392. .PP
  393. .SS "void QwtWheel::mouseReleaseEvent (QMouseEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  394. .PP
  395. Mouse Release Event handler\&. When the wheel has no mass the movement of the wheel stops, otherwise it starts flying\&.
  396. .PP
  397. \fBParameters\fP
  398. .RS 4
  399. \fIevent\fP Mouse event
  400. .RE
  401. .PP
  402. .SS "Qt::Orientation QwtWheel::orientation () const"
  403. .PP
  404. \fBReturns\fP
  405. .RS 4
  406. Orientation
  407. .RE
  408. .PP
  409. \fBSee also\fP
  410. .RS 4
  411. \fBsetOrientation()\fP
  412. .RE
  413. .PP
  414. .SS "int QwtWheel::pageStepCount () const"
  415. .PP
  416. \fBReturns\fP
  417. .RS 4
  418. Page step count
  419. .RE
  420. .PP
  421. \fBSee also\fP
  422. .RS 4
  423. \fBsetPageStepCount()\fP, \fBsingleStep()\fP
  424. .RE
  425. .PP
  426. .SS "void QwtWheel::paintEvent (QPaintEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  427. .PP
  428. Qt Paint Event\&.
  429. .PP
  430. \fBParameters\fP
  431. .RS 4
  432. \fIevent\fP Paint event
  433. .RE
  434. .PP
  435. .SS "void QwtWheel::setBorderWidth (int width)"
  436. .PP
  437. Set the border width\&. The border defaults to 2\&.
  438. .PP
  439. \fBParameters\fP
  440. .RS 4
  441. \fIwidth\fP Border width
  442. .RE
  443. .PP
  444. \fBSee also\fP
  445. .RS 4
  446. \fBborderWidth()\fP
  447. .RE
  448. .PP
  449. .SS "void QwtWheel::setInverted (bool on)"
  450. .PP
  451. En/Disable inverted appearance\&. An inverted wheel increases its values in the opposite direction\&. The direction of an inverted horizontal wheel will be from right to left an inverted vertical wheel will increase from bottom to top\&.
  452. .PP
  453. \fBParameters\fP
  454. .RS 4
  455. \fIon\fP En/Disable inverted appearance
  456. .RE
  457. .PP
  458. \fBSee also\fP
  459. .RS 4
  460. \fBisInverted()\fP
  461. .RE
  462. .PP
  463. .SS "void QwtWheel::setMass (double mass)\fC [slot]\fP"
  464. .PP
  465. Set the slider's mass for flywheel effect\&. If the slider's mass is greater then 0, it will continue to move after the mouse button has been released\&. Its speed decreases with time at a rate depending on the slider's mass\&. A large mass means that it will continue to move for a long time\&.
  466. .PP
  467. Derived widgets may overload this function to make it public\&.
  468. .PP
  469. \fBParameters\fP
  470. .RS 4
  471. \fImass\fP New mass in kg
  472. .RE
  473. .PP
  474. \fBSee also\fP
  475. .RS 4
  476. \fBmass()\fP
  477. .RE
  478. .PP
  479. .SS "void QwtWheel::setMaximum (double value)"
  480. Set the maximum value of the range
  481. .PP
  482. \fBParameters\fP
  483. .RS 4
  484. \fIvalue\fP Maximum value
  485. .RE
  486. .PP
  487. \fBSee also\fP
  488. .RS 4
  489. \fBsetRange()\fP, \fBsetMinimum()\fP, \fBmaximum()\fP
  490. .RE
  491. .PP
  492. .SS "void QwtWheel::setMinimum (double value)"
  493. Set the minimum value of the range
  494. .PP
  495. \fBParameters\fP
  496. .RS 4
  497. \fIvalue\fP Minimum value
  498. .RE
  499. .PP
  500. \fBSee also\fP
  501. .RS 4
  502. \fBsetRange()\fP, \fBsetMaximum()\fP, \fBminimum()\fP
  503. .RE
  504. .PP
  505. \fBNote\fP
  506. .RS 4
  507. The maximum is adjusted if necessary to ensure that the range remains valid\&.
  508. .RE
  509. .PP
  510. .SS "void QwtWheel::setOrientation (Qt::Orientation orientation)"
  511. .PP
  512. Set the wheel's orientation\&. The default orientation is Qt::Horizontal\&.
  513. .PP
  514. \fBParameters\fP
  515. .RS 4
  516. \fIorientation\fP Qt::Horizontal or Qt::Vertical\&.
  517. .RE
  518. .PP
  519. \fBSee also\fP
  520. .RS 4
  521. \fBorientation()\fP
  522. .RE
  523. .PP
  524. .SS "void QwtWheel::setPageStepCount (int count)"
  525. .PP
  526. Set the page step count\&. pageStepCount is a multiplicator for the single step size that typically corresponds to the user pressing PageUp or PageDown\&.
  527. .PP
  528. A value of 0 disables page stepping\&.
  529. .PP
  530. The default value is 1\&.
  531. .PP
  532. \fBParameters\fP
  533. .RS 4
  534. \fIcount\fP Multiplicator for the single step size
  535. .RE
  536. .PP
  537. \fBSee also\fP
  538. .RS 4
  539. \fBpageStepCount()\fP, \fBsetSingleStep()\fP
  540. .RE
  541. .PP
  542. .SS "void QwtWheel::setRange (double min, double max)"
  543. .PP
  544. Set the minimum and maximum values\&. The maximum is adjusted if necessary to ensure that the range remains valid\&. The value might be modified to be inside of the range\&.
  545. .PP
  546. \fBParameters\fP
  547. .RS 4
  548. \fImin\fP Minimum value
  549. .br
  550. \fImax\fP Maximum value
  551. .RE
  552. .PP
  553. \fBSee also\fP
  554. .RS 4
  555. \fBminimum()\fP, \fBmaximum()\fP
  556. .RE
  557. .PP
  558. .SS "void QwtWheel::setSingleStep (double stepSize)"
  559. .PP
  560. Set the step size of the counter\&. A value <= 0\&.0 disables stepping
  561. .PP
  562. \fBParameters\fP
  563. .RS 4
  564. \fIstepSize\fP Single step size
  565. .RE
  566. .PP
  567. \fBSee also\fP
  568. .RS 4
  569. \fBsingleStep()\fP, \fBsetPageStepCount()\fP
  570. .RE
  571. .PP
  572. .SS "void QwtWheel::setStepAlignment (bool on)"
  573. .PP
  574. En/Disable step alignment\&. When step alignment is enabled value changes initiated by user input ( mouse, keyboard, wheel ) are aligned to the multiples of the single step\&.
  575. .PP
  576. \fBParameters\fP
  577. .RS 4
  578. \fIon\fP On/Off
  579. .RE
  580. .PP
  581. \fBSee also\fP
  582. .RS 4
  583. \fBstepAlignment()\fP, \fBsetSingleStep()\fP
  584. .RE
  585. .PP
  586. .SS "void QwtWheel::setTickCount (int count)"
  587. .PP
  588. Adjust the number of grooves in the wheel's surface\&. The number of grooves is limited to 6 <= count <= 50\&. Values outside this range will be clipped\&. The default value is 10\&.
  589. .PP
  590. \fBParameters\fP
  591. .RS 4
  592. \fIcount\fP Number of grooves per 360 degrees
  593. .RE
  594. .PP
  595. \fBSee also\fP
  596. .RS 4
  597. \fBtickCount()\fP
  598. .RE
  599. .PP
  600. .SS "void QwtWheel::setTotalAngle (double angle)\fC [slot]\fP"
  601. .PP
  602. Set the total angle which the wheel can be turned\&. One full turn of the wheel corresponds to an angle of 360 degrees\&. A total angle of n*360 degrees means that the wheel has to be turned n times around its axis to get from the minimum value to the maximum value\&.
  603. .PP
  604. The default setting of the total angle is 360 degrees\&.
  605. .PP
  606. \fBParameters\fP
  607. .RS 4
  608. \fIangle\fP total angle in degrees
  609. .RE
  610. .PP
  611. \fBSee also\fP
  612. .RS 4
  613. \fBtotalAngle()\fP
  614. .RE
  615. .PP
  616. .SS "void QwtWheel::setTracking (bool enable)"
  617. .PP
  618. En/Disable tracking\&. If tracking is enabled (the default), the wheel emits the \fBvalueChanged()\fP signal while the wheel is moving\&. If tracking is disabled, the wheel emits the \fBvalueChanged()\fP signal only when the wheel movement is terminated\&.
  619. .PP
  620. The \fBwheelMoved()\fP signal is emitted regardless id tracking is enabled or not\&.
  621. .PP
  622. \fBParameters\fP
  623. .RS 4
  624. \fIenable\fP On/Off
  625. .RE
  626. .PP
  627. \fBSee also\fP
  628. .RS 4
  629. \fBisTracking()\fP
  630. .RE
  631. .PP
  632. .SS "void QwtWheel::setUpdateInterval (int interval)"
  633. .PP
  634. Specify the update interval when the wheel is flying\&. Default and minimum value is 50 ms\&.
  635. .PP
  636. \fBParameters\fP
  637. .RS 4
  638. \fIinterval\fP Interval in milliseconds
  639. .RE
  640. .PP
  641. \fBSee also\fP
  642. .RS 4
  643. \fBupdateInterval()\fP, \fBsetMass()\fP, \fBsetTracking()\fP
  644. .RE
  645. .PP
  646. .SS "void QwtWheel::setValue (double value)\fC [slot]\fP"
  647. .PP
  648. Set a new value without adjusting to the step raster\&.
  649. .PP
  650. \fBParameters\fP
  651. .RS 4
  652. \fIvalue\fP New value
  653. .RE
  654. .PP
  655. \fBSee also\fP
  656. .RS 4
  657. \fBvalue()\fP, \fBvalueChanged()\fP
  658. .RE
  659. .PP
  660. \fBWarning\fP
  661. .RS 4
  662. The value is clipped when it lies outside the range\&.
  663. .RE
  664. .PP
  665. .SS "void QwtWheel::setViewAngle (double angle)\fC [slot]\fP"
  666. .PP
  667. Specify the visible portion of the wheel\&. You may use this function for fine-tuning the appearance of the wheel\&. The default value is 175 degrees\&. The value is limited from 10 to 175 degrees\&.
  668. .PP
  669. \fBParameters\fP
  670. .RS 4
  671. \fIangle\fP Visible angle in degrees
  672. .RE
  673. .PP
  674. \fBSee also\fP
  675. .RS 4
  676. \fBviewAngle()\fP, \fBsetTotalAngle()\fP
  677. .RE
  678. .PP
  679. .SS "void QwtWheel::setWheelBorderWidth (int borderWidth)"
  680. .PP
  681. Set the wheel border width of the wheel\&. The wheel border must not be smaller than 1 and is limited in dependence on the wheel's size\&. Values outside the allowed range will be clipped\&.
  682. .PP
  683. The wheel border defaults to 2\&.
  684. .PP
  685. \fBParameters\fP
  686. .RS 4
  687. \fIborderWidth\fP Border width
  688. .RE
  689. .PP
  690. \fBSee also\fP
  691. .RS 4
  692. internalBorder()
  693. .RE
  694. .PP
  695. .SS "void QwtWheel::setWheelWidth (int width)"
  696. .PP
  697. Set the width of the wheel\&. Corresponds to the wheel height for horizontal orientation, and the wheel width for vertical orientation\&.
  698. .PP
  699. \fBParameters\fP
  700. .RS 4
  701. \fIwidth\fP the wheel's width
  702. .RE
  703. .PP
  704. \fBSee also\fP
  705. .RS 4
  706. \fBwheelWidth()\fP
  707. .RE
  708. .PP
  709. .SS "void QwtWheel::setWrapping (bool on)"
  710. .PP
  711. En/Disable wrapping\&. If wrapping is true stepping up from \fBmaximum()\fP value will take you to the \fBminimum()\fP value and vice versa\&.
  712. .PP
  713. \fBParameters\fP
  714. .RS 4
  715. \fIon\fP En/Disable wrapping
  716. .RE
  717. .PP
  718. \fBSee also\fP
  719. .RS 4
  720. \fBwrapping()\fP
  721. .RE
  722. .PP
  723. .SS "double QwtWheel::singleStep () const"
  724. .PP
  725. \fBReturns\fP
  726. .RS 4
  727. Single step size
  728. .RE
  729. .PP
  730. \fBSee also\fP
  731. .RS 4
  732. \fBsetSingleStep()\fP
  733. .RE
  734. .PP
  735. .SS "QSize QwtWheel::sizeHint () const\fC [protected]\fP, \fC [virtual]\fP"
  736. .PP
  737. \fBReturns\fP
  738. .RS 4
  739. a size hint
  740. .RE
  741. .PP
  742. .SS "bool QwtWheel::stepAlignment () const"
  743. .PP
  744. \fBReturns\fP
  745. .RS 4
  746. True, when the step alignment is enabled
  747. .RE
  748. .PP
  749. \fBSee also\fP
  750. .RS 4
  751. \fBsetStepAlignment()\fP, \fBsingleStep()\fP
  752. .RE
  753. .PP
  754. .SS "int QwtWheel::tickCount () const"
  755. .PP
  756. \fBReturns\fP
  757. .RS 4
  758. Number of grooves in the wheel's surface\&.
  759. .RE
  760. .PP
  761. \fBSee also\fP
  762. .RS 4
  763. setTickCnt()
  764. .RE
  765. .PP
  766. .SS "void QwtWheel::timerEvent (QTimerEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  767. .PP
  768. Qt timer event\&. The flying wheel effect is implemented using a timer
  769. .PP
  770. \fBParameters\fP
  771. .RS 4
  772. \fIevent\fP Timer event
  773. .RE
  774. .PP
  775. \fBSee also\fP
  776. .RS 4
  777. \fBupdateInterval()\fP
  778. .RE
  779. .PP
  780. .SS "double QwtWheel::totalAngle () const"
  781. .PP
  782. \fBReturns\fP
  783. .RS 4
  784. Total angle which the wheel can be turned\&.
  785. .RE
  786. .PP
  787. \fBSee also\fP
  788. .RS 4
  789. \fBsetTotalAngle()\fP
  790. .RE
  791. .PP
  792. .SS "int QwtWheel::updateInterval () const"
  793. .PP
  794. \fBReturns\fP
  795. .RS 4
  796. Update interval when the wheel is flying
  797. .RE
  798. .PP
  799. \fBSee also\fP
  800. .RS 4
  801. \fBsetUpdateInterval()\fP, \fBmass()\fP, \fBisTracking()\fP
  802. .RE
  803. .PP
  804. .SS "double QwtWheel::value () const"
  805. .PP
  806. \fBReturns\fP
  807. .RS 4
  808. Current value of the wheel
  809. .RE
  810. .PP
  811. \fBSee also\fP
  812. .RS 4
  813. \fBsetValue()\fP, \fBvalueChanged()\fP
  814. .RE
  815. .PP
  816. .SS "double QwtWheel::valueAt (const QPoint & pos) const\fC [protected]\fP, \fC [virtual]\fP"
  817. Determine the value corresponding to a specified point
  818. .PP
  819. \fBParameters\fP
  820. .RS 4
  821. \fIpos\fP Position
  822. .RE
  823. .PP
  824. \fBReturns\fP
  825. .RS 4
  826. Value corresponding to pos
  827. .RE
  828. .PP
  829. .SS "void QwtWheel::valueChanged (double value)\fC [signal]\fP"
  830. .PP
  831. Notify a change of value\&. When tracking is enabled this signal will be emitted every time the value changes\&.
  832. .PP
  833. \fBParameters\fP
  834. .RS 4
  835. \fIvalue\fP new value
  836. .RE
  837. .PP
  838. \fBSee also\fP
  839. .RS 4
  840. \fBsetTracking()\fP
  841. .RE
  842. .PP
  843. .SS "double QwtWheel::viewAngle () const"
  844. .PP
  845. \fBReturns\fP
  846. .RS 4
  847. Visible portion of the wheel
  848. .RE
  849. .PP
  850. \fBSee also\fP
  851. .RS 4
  852. \fBsetViewAngle()\fP, \fBtotalAngle()\fP
  853. .RE
  854. .PP
  855. .SS "int QwtWheel::wheelBorderWidth () const"
  856. .PP
  857. \fBReturns\fP
  858. .RS 4
  859. Wheel border width
  860. .RE
  861. .PP
  862. \fBSee also\fP
  863. .RS 4
  864. \fBsetWheelBorderWidth()\fP
  865. .RE
  866. .PP
  867. .SS "void QwtWheel::wheelEvent (QWheelEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
  868. .PP
  869. Handle wheel events\&. In/Decrement the value
  870. .PP
  871. \fBParameters\fP
  872. .RS 4
  873. \fIevent\fP Wheel event
  874. .RE
  875. .PP
  876. .SS "void QwtWheel::wheelMoved (double value)\fC [signal]\fP"
  877. This signal is emitted when the user moves the wheel with the mouse\&.
  878. .PP
  879. \fBParameters\fP
  880. .RS 4
  881. \fIvalue\fP new value
  882. .RE
  883. .PP
  884. .SS "void QwtWheel::wheelPressed ()\fC [signal]\fP"
  885. This signal is emitted when the user presses the the wheel with the mouse
  886. .SS "QRect QwtWheel::wheelRect () const\fC [protected]\fP"
  887. .PP
  888. \fBReturns\fP
  889. .RS 4
  890. Rectangle of the wheel without the outer border
  891. .RE
  892. .PP
  893. .SS "void QwtWheel::wheelReleased ()\fC [signal]\fP"
  894. This signal is emitted when the user releases the mouse
  895. .SS "int QwtWheel::wheelWidth () const"
  896. .PP
  897. \fBReturns\fP
  898. .RS 4
  899. Width of the wheel
  900. .RE
  901. .PP
  902. \fBSee also\fP
  903. .RS 4
  904. \fBsetWheelWidth()\fP
  905. .RE
  906. .PP
  907. .SS "bool QwtWheel::wrapping () const"
  908. .PP
  909. \fBReturns\fP
  910. .RS 4
  911. True, when wrapping is set
  912. .RE
  913. .PP
  914. \fBSee also\fP
  915. .RS 4
  916. \fBsetWrapping()\fP
  917. .RE
  918. .PP
  919. .SH "Author"
  920. .PP
  921. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.