1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtCounter Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_counter.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-types">Public Types</a> |
- <a href="#pub-slots">Public Slots</a> |
- <a href="#signals">Signals</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_counter-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtCounter Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>The Counter Widget.
- <a href="class_qwt_counter.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__counter_8h_source.html">qwt_counter.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtCounter:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_counter__inherit__graph.png" border="0" usemap="#a_qwt_counter_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_counter_inherit__map" id="a_qwt_counter_inherit__map">
- <area shape="rect" title="The Counter Widget." alt="" coords="5,80,97,107"/>
- <area shape="rect" title=" " alt="" coords="15,5,88,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
- Public Types</h2></td></tr>
- <tr class="memitem:a027cfd91946ca9a19a1d606411e0f374"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">Button</a> { <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179">Button1</a>,
- <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d">Button2</a>,
- <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a30b64d40b31283807f1a4f3d57af0e74">Button3</a>,
- <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374aca8e93a2d129f7cc91f54f5f4da20c5f">ButtonCnt</a>
- }</td></tr>
- <tr class="memdesc:a027cfd91946ca9a19a1d606411e0f374"><td class="mdescLeft"> </td><td class="mdescRight">Button index. <a href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">More...</a><br /></td></tr>
- <tr class="separator:a027cfd91946ca9a19a1d606411e0f374"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
- Public Slots</h2></td></tr>
- <tr class="memitem:a429a2e986aa46c1231643df5d4c78970"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970">setValue</a> (double)</td></tr>
- <tr class="memdesc:a429a2e986aa46c1231643df5d4c78970"><td class="mdescLeft"> </td><td class="mdescRight">Set a new value without adjusting to the step raster. <a href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970">More...</a><br /></td></tr>
- <tr class="separator:a429a2e986aa46c1231643df5d4c78970"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
- Signals</h2></td></tr>
- <tr class="memitem:a694ed7277e137e44bccc5918b4c15ecc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a694ed7277e137e44bccc5918b4c15ecc">buttonReleased</a> (double <a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value</a>)</td></tr>
- <tr class="separator:a694ed7277e137e44bccc5918b4c15ecc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:add02928c348417fbfadd7095d058f331"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged</a> (double <a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value</a>)</td></tr>
- <tr class="separator:add02928c348417fbfadd7095d058f331"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:aee94cdbaf1f3d22e110fd3535dbca34a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter</a> (QWidget *parent=NULL)</td></tr>
- <tr class="separator:aee94cdbaf1f3d22e110fd3535dbca34a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6469133eb210b470023a3dcc735aec4d"><td class="memItemLeft" align="right" valign="top"><a id="a6469133eb210b470023a3dcc735aec4d"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a6469133eb210b470023a3dcc735aec4d">~QwtCounter</a> ()</td></tr>
- <tr class="memdesc:a6469133eb210b470023a3dcc735aec4d"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a6469133eb210b470023a3dcc735aec4d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa06625ab417f82fdc82790e3376af708"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aa06625ab417f82fdc82790e3376af708">setValid</a> (bool)</td></tr>
- <tr class="separator:aa06625ab417f82fdc82790e3376af708"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a613e5d3f2111f7263cf540156d9413e9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a613e5d3f2111f7263cf540156d9413e9">isValid</a> () const</td></tr>
- <tr class="separator:a613e5d3f2111f7263cf540156d9413e9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8fc7d115682f295dfcc64fa8312ccdeb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8fc7d115682f295dfcc64fa8312ccdeb">setWrapping</a> (bool)</td></tr>
- <tr class="memdesc:a8fc7d115682f295dfcc64fa8312ccdeb"><td class="mdescLeft"> </td><td class="mdescRight">En/Disable wrapping. <a href="class_qwt_counter.html#a8fc7d115682f295dfcc64fa8312ccdeb">More...</a><br /></td></tr>
- <tr class="separator:a8fc7d115682f295dfcc64fa8312ccdeb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5cb416959b578a1615e000bc8c40e359"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a5cb416959b578a1615e000bc8c40e359">wrapping</a> () const</td></tr>
- <tr class="separator:a5cb416959b578a1615e000bc8c40e359"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a59c836008c9c9e2c9c3048cbd5c80778"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a59c836008c9c9e2c9c3048cbd5c80778">isReadOnly</a> () const</td></tr>
- <tr class="separator:a59c836008c9c9e2c9c3048cbd5c80778"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad34441cf06c68478b826e5b85fbb3ba7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ad34441cf06c68478b826e5b85fbb3ba7">setReadOnly</a> (bool)</td></tr>
- <tr class="memdesc:ad34441cf06c68478b826e5b85fbb3ba7"><td class="mdescLeft"> </td><td class="mdescRight">Allow/disallow the user to manually edit the value. <a href="class_qwt_counter.html#ad34441cf06c68478b826e5b85fbb3ba7">More...</a><br /></td></tr>
- <tr class="separator:ad34441cf06c68478b826e5b85fbb3ba7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a900729c8f73830b549ea065e5c6dc4f9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons</a> (int)</td></tr>
- <tr class="separator:a900729c8f73830b549ea065e5c6dc4f9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab7aa5fbf0041f6e1d99c1ceafbc8bb10"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ab7aa5fbf0041f6e1d99c1ceafbc8bb10">numButtons</a> () const</td></tr>
- <tr class="separator:ab7aa5fbf0041f6e1d99c1ceafbc8bb10"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac308bb656eaa001641bdef6524d40ce6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps</a> (<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a>, int numSteps)</td></tr>
- <tr class="separator:ac308bb656eaa001641bdef6524d40ce6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a91149ef07b94558456479357d6f98151"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a91149ef07b94558456479357d6f98151">incSteps</a> (<a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a>) const</td></tr>
- <tr class="separator:a91149ef07b94558456479357d6f98151"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aacbb4750fdd028ef4ad0fba7e874afaf"><td class="memItemLeft" align="right" valign="top"><a id="aacbb4750fdd028ef4ad0fba7e874afaf"></a>
- virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aacbb4750fdd028ef4ad0fba7e874afaf">sizeHint</a> () const</td></tr>
- <tr class="memdesc:aacbb4750fdd028ef4ad0fba7e874afaf"><td class="mdescLeft"> </td><td class="mdescRight">A size hint. <br /></td></tr>
- <tr class="separator:aacbb4750fdd028ef4ad0fba7e874afaf"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8dfcf202ef15050184788f24b069c4b7"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8dfcf202ef15050184788f24b069c4b7">singleStep</a> () const</td></tr>
- <tr class="separator:a8dfcf202ef15050184788f24b069c4b7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aeeb79c9b83b2050baf9d7e6e47f1fa67"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67">setSingleStep</a> (double stepSize)</td></tr>
- <tr class="memdesc:aeeb79c9b83b2050baf9d7e6e47f1fa67"><td class="mdescLeft"> </td><td class="mdescRight">Set the step size of the counter. <a href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67">More...</a><br /></td></tr>
- <tr class="separator:aeeb79c9b83b2050baf9d7e6e47f1fa67"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad794d0d2589a38113933ae764e87ce22"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22">setRange</a> (double min, double max)</td></tr>
- <tr class="memdesc:ad794d0d2589a38113933ae764e87ce22"><td class="mdescLeft"> </td><td class="mdescRight">Set the minimum and maximum values. <a href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22">More...</a><br /></td></tr>
- <tr class="separator:ad794d0d2589a38113933ae764e87ce22"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a13dcb52e2b6a6ad9ab42f99cc51e677c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum</a> () const</td></tr>
- <tr class="separator:a13dcb52e2b6a6ad9ab42f99cc51e677c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4f5847dca54ada119623908730568f4d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a4f5847dca54ada119623908730568f4d">setMinimum</a> (double)</td></tr>
- <tr class="separator:a4f5847dca54ada119623908730568f4d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8cedf22e415018876353a17c8a8758b5"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum</a> () const</td></tr>
- <tr class="separator:a8cedf22e415018876353a17c8a8758b5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af097141eaa83c32c7eb7d4234079f95a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#af097141eaa83c32c7eb7d4234079f95a">setMaximum</a> (double)</td></tr>
- <tr class="separator:af097141eaa83c32c7eb7d4234079f95a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae56a556a72955b6d10419f2c41779383"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ae56a556a72955b6d10419f2c41779383">setStepButton1</a> (int nSteps)</td></tr>
- <tr class="separator:ae56a556a72955b6d10419f2c41779383"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:affdd91a6698ff0c90e24e69ff410924f"><td class="memItemLeft" align="right" valign="top"><a id="affdd91a6698ff0c90e24e69ff410924f"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#affdd91a6698ff0c90e24e69ff410924f">stepButton1</a> () const</td></tr>
- <tr class="memdesc:affdd91a6698ff0c90e24e69ff410924f"><td class="mdescLeft"> </td><td class="mdescRight">returns the number of increment steps for button 1 <br /></td></tr>
- <tr class="separator:affdd91a6698ff0c90e24e69ff410924f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0d764a96706593d8c8b51338e92abfcc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a0d764a96706593d8c8b51338e92abfcc">setStepButton2</a> (int nSteps)</td></tr>
- <tr class="separator:a0d764a96706593d8c8b51338e92abfcc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acec167b50ae44afe5ff8e9233e77a939"><td class="memItemLeft" align="right" valign="top"><a id="acec167b50ae44afe5ff8e9233e77a939"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#acec167b50ae44afe5ff8e9233e77a939">stepButton2</a> () const</td></tr>
- <tr class="memdesc:acec167b50ae44afe5ff8e9233e77a939"><td class="mdescLeft"> </td><td class="mdescRight">returns the number of increment steps for button 2 <br /></td></tr>
- <tr class="separator:acec167b50ae44afe5ff8e9233e77a939"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8b55539578de083793b8310cb8909294"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a8b55539578de083793b8310cb8909294">setStepButton3</a> (int nSteps)</td></tr>
- <tr class="separator:a8b55539578de083793b8310cb8909294"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a259de8df2b8928139d1fc4738694eac8"><td class="memItemLeft" align="right" valign="top"><a id="a259de8df2b8928139d1fc4738694eac8"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a259de8df2b8928139d1fc4738694eac8">stepButton3</a> () const</td></tr>
- <tr class="memdesc:a259de8df2b8928139d1fc4738694eac8"><td class="mdescLeft"> </td><td class="mdescRight">returns the number of increment steps for button 3 <br /></td></tr>
- <tr class="separator:a259de8df2b8928139d1fc4738694eac8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1881fcb0f81052bd7787523246d19515"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value</a> () const</td></tr>
- <tr class="separator:a1881fcb0f81052bd7787523246d19515"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:ad855f1cec9068fd73cce5e2e29fb5771"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#ad855f1cec9068fd73cce5e2e29fb5771">event</a> (QEvent *)</td></tr>
- <tr class="separator:ad855f1cec9068fd73cce5e2e29fb5771"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acdada1ba1d5873b9c8b3f75d63b4685a"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#acdada1ba1d5873b9c8b3f75d63b4685a">wheelEvent</a> (QWheelEvent *)</td></tr>
- <tr class="separator:acdada1ba1d5873b9c8b3f75d63b4685a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aafdc19bff96fcafc4b8ed8e3bf7bf07b"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_counter.html#aafdc19bff96fcafc4b8ed8e3bf7bf07b">keyPressEvent</a> (QKeyEvent *)</td></tr>
- <tr class="separator:aafdc19bff96fcafc4b8ed8e3bf7bf07b"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>The Counter Widget. </p>
- <p>A Counter consists of a label displaying a number and one ore more (up to three) push buttons on each side of the label which can be used to increment or decrement the counter's value.</p>
- <p>A counter has a range from a minimum value to a maximum value and a step size. When the wrapping property is set the counter is circular.</p>
- <p>The number of steps by which a button increments or decrements the value can be specified using <a class="el" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps()</a>. The number of buttons can be changed with <a class="el" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons()</a>.</p>
- <p>Example: </p><div class="fragment"><div class="line"><span class="preprocessor">#include <qwt_counter.h></span></div>
- <div class="line"> </div>
- <div class="line"><a class="code" href="class_qwt_counter.html">QwtCounter</a> *counter = <span class="keyword">new</span> <a class="code" href="class_qwt_counter.html#aee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter</a>(parent);</div>
- <div class="line"> </div>
- <div class="line">counter-><a class="code" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22">setRange</a>(0.0, 100.0); <span class="comment">// From 0.0 to 100</span></div>
- <div class="line">counter-><a class="code" href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67">setSingleStep</a>( 1.0 ); <span class="comment">// Step size 1.0</span></div>
- <div class="line">counter-><a class="code" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons</a>(2); <span class="comment">// Two buttons each side</span></div>
- <div class="line">counter-><a class="code" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps</a>(<a class="code" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179">QwtCounter::Button1</a>, 1); <span class="comment">// Button 1 increments 1 step</span></div>
- <div class="line">counter-><a class="code" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps</a>(<a class="code" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d">QwtCounter::Button2</a>, 20); <span class="comment">// Button 2 increments 20 steps</span></div>
- <div class="line"> </div>
- <div class="line">connect(counter, SIGNAL(<a class="code" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged</a>(<span class="keywordtype">double</span>)), myClass, SLOT(newValue(<span class="keywordtype">double</span>)));</div>
- </div><!-- fragment --> </div><h2 class="groupheader">Member Enumeration Documentation</h2>
- <a id="a027cfd91946ca9a19a1d606411e0f374"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a027cfd91946ca9a19a1d606411e0f374">◆ </a></span>Button</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Button index. </p>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179"></a>Button1 </td><td class="fielddoc"><p>Button intended for minor steps. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d"></a>Button2 </td><td class="fielddoc"><p>Button intended for medium steps. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374a30b64d40b31283807f1a4f3d57af0e74"></a>Button3 </td><td class="fielddoc"><p>Button intended for large steps. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="a027cfd91946ca9a19a1d606411e0f374aca8e93a2d129f7cc91f54f5f4da20c5f"></a>ButtonCnt </td><td class="fielddoc"><p>Number of buttons. </p>
- </td></tr>
- </table>
- </div>
- </div>
- <h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="aee94cdbaf1f3d22e110fd3535dbca34a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aee94cdbaf1f3d22e110fd3535dbca34a">◆ </a></span>QwtCounter()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QwtCounter::QwtCounter </td>
- <td>(</td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>The counter is initialized with a range is set to [0.0, 1.0] with 0.01 as single step size. The value is invalid.</p>
- <p>The default number of buttons is set to 2. The default increments are: </p><ul>
- <li>Button 1: 1 step </li>
- <li>Button 2: 10 steps </li>
- <li>Button 3: 100 steps</li>
- </ul>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">parent</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a694ed7277e137e44bccc5918b4c15ecc"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a694ed7277e137e44bccc5918b4c15ecc">◆ </a></span>buttonReleased</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::buttonReleased </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">signal</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>This signal is emitted when a button has been released </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>The new value </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="ad855f1cec9068fd73cce5e2e29fb5771"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad855f1cec9068fd73cce5e2e29fb5771">◆ </a></span>event()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtCounter::event </td>
- <td>(</td>
- <td class="paramtype">QEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle QEvent::PolishRequest events </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Event </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>see QWidget::event() </dd></dl>
- </div>
- </div>
- <a id="a91149ef07b94558456479357d6f98151"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a91149ef07b94558456479357d6f98151">◆ </a></span>incSteps()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int QwtCounter::incSteps </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> </td>
- <td class="paramname"><em>button</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>The number of steps by which a specified button increments the value or 0 if the button is invalid. </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">button</td><td>Button index</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">setIncSteps()</a> </dd></dl>
- </div>
- </div>
- <a id="a59c836008c9c9e2c9c3048cbd5c80778"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a59c836008c9c9e2c9c3048cbd5c80778">◆ </a></span>isReadOnly()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtCounter::isReadOnly </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True, when the line line edit is read only. (default is no) </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad34441cf06c68478b826e5b85fbb3ba7" title="Allow/disallow the user to manually edit the value.">setReadOnly()</a> </dd></dl>
- </div>
- </div>
- <a id="a613e5d3f2111f7263cf540156d9413e9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a613e5d3f2111f7263cf540156d9413e9">◆ </a></span>isValid()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtCounter::isValid </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True, if the value is valid </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#aa06625ab417f82fdc82790e3376af708">setValid()</a>, <a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970" title="Set a new value without adjusting to the step raster.">setValue()</a> </dd></dl>
- </div>
- </div>
- <a id="aafdc19bff96fcafc4b8ed8e3bf7bf07b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aafdc19bff96fcafc4b8ed8e3bf7bf07b">◆ </a></span>keyPressEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::keyPressEvent </td>
- <td>(</td>
- <td class="paramtype">QKeyEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle key events</p>
- <ul>
- <li>Ctrl + Qt::Key_Home<br />
- Step to <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a></li>
- <li>Ctrl + Qt::Key_End<br />
- Step to <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a></li>
- <li>Qt::Key_Up<br />
- Increment by incSteps(QwtCounter::Button1)</li>
- <li>Qt::Key_Down<br />
- Decrement by incSteps(QwtCounter::Button1)</li>
- <li>Qt::Key_PageUp<br />
- Increment by incSteps(QwtCounter::Button2)</li>
- <li>Qt::Key_PageDown<br />
- Decrement by incSteps(QwtCounter::Button2)</li>
- <li>Shift + Qt::Key_PageUp<br />
- Increment by incSteps(QwtCounter::Button3)</li>
- <li>Shift + Qt::Key_PageDown<br />
- Decrement by incSteps(QwtCounter::Button3)</li>
- </ul>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Key event </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a8cedf22e415018876353a17c8a8758b5"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8cedf22e415018876353a17c8a8758b5">◆ </a></span>maximum()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QwtCounter::maximum </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>The maximum of the range </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values.">setRange()</a>, <a class="el" href="class_qwt_counter.html#af097141eaa83c32c7eb7d4234079f95a">setMaximum()</a>, <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a> </dd></dl>
- </div>
- </div>
- <a id="a13dcb52e2b6a6ad9ab42f99cc51e677c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a13dcb52e2b6a6ad9ab42f99cc51e677c">◆ </a></span>minimum()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QwtCounter::minimum </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>The minimum of the range </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values.">setRange()</a>, <a class="el" href="class_qwt_counter.html#a4f5847dca54ada119623908730568f4d">setMinimum()</a>, <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> </dd></dl>
- </div>
- </div>
- <a id="ab7aa5fbf0041f6e1d99c1ceafbc8bb10"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab7aa5fbf0041f6e1d99c1ceafbc8bb10">◆ </a></span>numButtons()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int QwtCounter::numButtons </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>The number of buttons on each side of the widget. </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">setNumButtons()</a> </dd></dl>
- </div>
- </div>
- <a id="ac308bb656eaa001641bdef6524d40ce6"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac308bb656eaa001641bdef6524d40ce6">◆ </a></span>setIncSteps()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setIncSteps </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374">QwtCounter::Button</a> </td>
- <td class="paramname"><em>button</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>numSteps</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Specify the number of steps by which the value is incremented or decremented when a specified button is pushed.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">button</td><td>Button index </td></tr>
- <tr><td class="paramname">numSteps</td><td>Number of steps</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a91149ef07b94558456479357d6f98151">incSteps()</a> </dd></dl>
- </div>
- </div>
- <a id="af097141eaa83c32c7eb7d4234079f95a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af097141eaa83c32c7eb7d4234079f95a">◆ </a></span>setMaximum()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setMaximum </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the maximum value of the range</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>Maximum value </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values.">setRange()</a>, <a class="el" href="class_qwt_counter.html#a4f5847dca54ada119623908730568f4d">setMinimum()</a>, <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> </dd></dl>
- </div>
- </div>
- <a id="a4f5847dca54ada119623908730568f4d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4f5847dca54ada119623908730568f4d">◆ </a></span>setMinimum()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setMinimum </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the minimum value of the range</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>Minimum value </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22" title="Set the minimum and maximum values.">setRange()</a>, <a class="el" href="class_qwt_counter.html#af097141eaa83c32c7eb7d4234079f95a">setMaximum()</a>, <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a></dd></dl>
- <dl class="section note"><dt>Note</dt><dd>The maximum is adjusted if necessary to ensure that the range remains valid. </dd></dl>
- </div>
- </div>
- <a id="a900729c8f73830b549ea065e5c6dc4f9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a900729c8f73830b549ea065e5c6dc4f9">◆ </a></span>setNumButtons()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setNumButtons </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>numButtons</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Specify the number of buttons on each side of the label</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">numButtons</td><td>Number of buttons </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#ab7aa5fbf0041f6e1d99c1ceafbc8bb10">numButtons()</a> </dd></dl>
- </div>
- </div>
- <a id="ad794d0d2589a38113933ae764e87ce22"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad794d0d2589a38113933ae764e87ce22">◆ </a></span>setRange()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setRange </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>min</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>max</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the minimum and maximum values. </p>
- <p>The maximum is adjusted if necessary to ensure that the range remains valid. The value might be modified to be inside of the range.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">min</td><td>Minimum value </td></tr>
- <tr><td class="paramname">max</td><td>Maximum value</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a>, <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> </dd></dl>
- </div>
- </div>
- <a id="ad34441cf06c68478b826e5b85fbb3ba7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad34441cf06c68478b826e5b85fbb3ba7">◆ </a></span>setReadOnly()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setReadOnly </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Allow/disallow the user to manually edit the value. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">on</td><td>True disable editing </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a59c836008c9c9e2c9c3048cbd5c80778">isReadOnly()</a> </dd></dl>
- </div>
- </div>
- <a id="aeeb79c9b83b2050baf9d7e6e47f1fa67"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aeeb79c9b83b2050baf9d7e6e47f1fa67">◆ </a></span>setSingleStep()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setSingleStep </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>stepSize</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the step size of the counter. </p>
- <p>A value <= 0.0 disables stepping</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">stepSize</td><td>Single step size </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a8dfcf202ef15050184788f24b069c4b7">singleStep()</a> </dd></dl>
- </div>
- </div>
- <a id="ae56a556a72955b6d10419f2c41779383"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae56a556a72955b6d10419f2c41779383">◆ </a></span>setStepButton1()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setStepButton1 </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>nSteps</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the number of increment steps for button 1 </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">nSteps</td><td>Number of steps </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a0d764a96706593d8c8b51338e92abfcc"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0d764a96706593d8c8b51338e92abfcc">◆ </a></span>setStepButton2()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setStepButton2 </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>nSteps</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the number of increment steps for button 2 </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">nSteps</td><td>Number of steps </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a8b55539578de083793b8310cb8909294"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8b55539578de083793b8310cb8909294">◆ </a></span>setStepButton3()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setStepButton3 </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>nSteps</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the number of increment steps for button 3 </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">nSteps</td><td>Number of steps </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="aa06625ab417f82fdc82790e3376af708"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa06625ab417f82fdc82790e3376af708">◆ </a></span>setValid()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setValid </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the counter to be in valid/invalid state</p>
- <p>When the counter is set to invalid, no numbers are displayed and the buttons are disabled.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">on</td><td>If true the counter will be set as valid</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970" title="Set a new value without adjusting to the step raster.">setValue()</a>, <a class="el" href="class_qwt_counter.html#a613e5d3f2111f7263cf540156d9413e9">isValid()</a> </dd></dl>
- </div>
- </div>
- <a id="a429a2e986aa46c1231643df5d4c78970"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a429a2e986aa46c1231643df5d4c78970">◆ </a></span>setValue</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setValue </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">slot</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set a new value without adjusting to the step raster. </p>
- <p>The state of the counter is set to be valid.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>New value</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a613e5d3f2111f7263cf540156d9413e9">isValid()</a>, <a class="el" href="class_qwt_counter.html#a1881fcb0f81052bd7787523246d19515">value()</a>, <a class="el" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged()</a> </dd></dl>
- <dl class="section warning"><dt>Warning</dt><dd>The value is clipped when it lies outside the range. </dd></dl>
- </div>
- </div>
- <a id="a8fc7d115682f295dfcc64fa8312ccdeb"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8fc7d115682f295dfcc64fa8312ccdeb">◆ </a></span>setWrapping()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::setWrapping </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>En/Disable wrapping. </p>
- <p>If wrapping is true stepping up from <a class="el" href="class_qwt_counter.html#a8cedf22e415018876353a17c8a8758b5">maximum()</a> value will take you to the <a class="el" href="class_qwt_counter.html#a13dcb52e2b6a6ad9ab42f99cc51e677c">minimum()</a> value and vice versa.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">on</td><td>En/Disable wrapping </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a5cb416959b578a1615e000bc8c40e359">wrapping()</a> </dd></dl>
- </div>
- </div>
- <a id="a8dfcf202ef15050184788f24b069c4b7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8dfcf202ef15050184788f24b069c4b7">◆ </a></span>singleStep()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QwtCounter::singleStep </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Single step size </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67" title="Set the step size of the counter.">setSingleStep()</a> </dd></dl>
- </div>
- </div>
- <a id="a1881fcb0f81052bd7787523246d19515"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1881fcb0f81052bd7787523246d19515">◆ </a></span>value()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">double QwtCounter::value </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Current value of the counter </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a429a2e986aa46c1231643df5d4c78970" title="Set a new value without adjusting to the step raster.">setValue()</a>, <a class="el" href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">valueChanged()</a> </dd></dl>
- </div>
- </div>
- <a id="add02928c348417fbfadd7095d058f331"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#add02928c348417fbfadd7095d058f331">◆ </a></span>valueChanged</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::valueChanged </td>
- <td>(</td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>value</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">signal</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>This signal is emitted when the counter's value has changed </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">value</td><td>The new value </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="acdada1ba1d5873b9c8b3f75d63b4685a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acdada1ba1d5873b9c8b3f75d63b4685a">◆ </a></span>wheelEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtCounter::wheelEvent </td>
- <td>(</td>
- <td class="paramtype">QWheelEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle wheel events </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Wheel event </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a5cb416959b578a1615e000bc8c40e359"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5cb416959b578a1615e000bc8c40e359">◆ </a></span>wrapping()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtCounter::wrapping </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True, when wrapping is set </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_counter.html#a8fc7d115682f295dfcc64fa8312ccdeb" title="En/Disable wrapping.">setWrapping()</a> </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <div class="ttc" id="aclass_qwt_counter_html_ad794d0d2589a38113933ae764e87ce22"><div class="ttname"><a href="class_qwt_counter.html#ad794d0d2589a38113933ae764e87ce22">QwtCounter::setRange</a></div><div class="ttdeci">void setRange(double min, double max)</div><div class="ttdoc">Set the minimum and maximum values.</div><div class="ttdef"><b>Definition:</b> qwt_counter.cpp:241</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_aee94cdbaf1f3d22e110fd3535dbca34a"><div class="ttname"><a href="class_qwt_counter.html#aee94cdbaf1f3d22e110fd3535dbca34a">QwtCounter::QwtCounter</a></div><div class="ttdeci">QwtCounter(QWidget *parent=NULL)</div><div class="ttdef"><b>Definition:</b> qwt_counter.cpp:63</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179"><div class="ttname"><a href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a1b29fe43c7d59986eb5854ddaf6f7179">QwtCounter::Button1</a></div><div class="ttdeci">@ Button1</div><div class="ttdoc">Button intended for minor steps.</div><div class="ttdef"><b>Definition:</b> qwt_counter.h:70</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_ac308bb656eaa001641bdef6524d40ce6"><div class="ttname"><a href="class_qwt_counter.html#ac308bb656eaa001641bdef6524d40ce6">QwtCounter::setIncSteps</a></div><div class="ttdeci">void setIncSteps(QwtCounter::Button, int numSteps)</div><div class="ttdef"><b>Definition:</b> qwt_counter.cpp:403</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d"><div class="ttname"><a href="class_qwt_counter.html#a027cfd91946ca9a19a1d606411e0f374a6015e556fcb8c4d45126dee5435b478d">QwtCounter::Button2</a></div><div class="ttdeci">@ Button2</div><div class="ttdoc">Button intended for medium steps.</div><div class="ttdef"><b>Definition:</b> qwt_counter.h:73</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_a900729c8f73830b549ea065e5c6dc4f9"><div class="ttname"><a href="class_qwt_counter.html#a900729c8f73830b549ea065e5c6dc4f9">QwtCounter::setNumButtons</a></div><div class="ttdeci">void setNumButtons(int)</div><div class="ttdef"><b>Definition:</b> qwt_counter.cpp:362</div></div>
- <div class="ttc" id="aclass_qwt_counter_html"><div class="ttname"><a href="class_qwt_counter.html">QwtCounter</a></div><div class="ttdoc">The Counter Widget.</div><div class="ttdef"><b>Definition:</b> qwt_counter.h:49</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_add02928c348417fbfadd7095d058f331"><div class="ttname"><a href="class_qwt_counter.html#add02928c348417fbfadd7095d058f331">QwtCounter::valueChanged</a></div><div class="ttdeci">void valueChanged(double value)</div></div>
- <div class="ttc" id="aclass_qwt_counter_html_aeeb79c9b83b2050baf9d7e6e47f1fa67"><div class="ttname"><a href="class_qwt_counter.html#aeeb79c9b83b2050baf9d7e6e47f1fa67">QwtCounter::setSingleStep</a></div><div class="ttdeci">void setSingleStep(double stepSize)</div><div class="ttdoc">Set the step size of the counter.</div><div class="ttdef"><b>Definition:</b> qwt_counter.cpp:319</div></div>
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_counter.html">QwtCounter</a></li>
- <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
- </ul>
- </div>
- </body>
- </html>
|