123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310 |
- <!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: qwt_picker.h Source File</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('qwt__picker_8h_source.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="headertitle">
- <div class="title">qwt_picker.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span></div>
- <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Qwt Widget Library</span></div>
- <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 1997 Josef Wilgen</span></div>
- <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Copyright (C) 2002 Uwe Rathmann</span></div>
- <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div>
- <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
- <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
- <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *****************************************************************************/</span></div>
- <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
- <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#ifndef QWT_PICKER</span></div>
- <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#define QWT_PICKER 1</span></div>
- <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
- <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "qwt_global.h"</span></div>
- <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "qwt_text.h"</span></div>
- <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "qwt_event_pattern.h"</span></div>
- <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <qobject.h></span></div>
- <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <qpen.h></span></div>
- <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <qfont.h></span></div>
- <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <qrect.h></span></div>
- <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <qpainterpath.h></span></div>
- <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
- <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">class </span>QWidget;</div>
- <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">class </span>QMouseEvent;</div>
- <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">class </span>QWheelEvent;</div>
- <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">class </span>QKeyEvent;</div>
- <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">class </span><a class="code" href="class_qwt_picker_machine.html">QwtPickerMachine</a>;</div>
- <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">class </span><a class="code" href="class_qwt_widget_overlay.html">QwtWidgetOverlay</a>;</div>
- <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
- <div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_qwt_picker.html"> 98</a></span> <span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_picker.html">QwtPicker</a>: <span class="keyword">public</span> QObject, <span class="keyword">public</span> <a class="code" href="class_qwt_event_pattern.html">QwtEventPattern</a></div>
- <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {</div>
- <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  Q_OBJECT</div>
- <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
- <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  Q_ENUMS( <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> <a class="code" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3">ResizeMode</a> )</div>
- <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
- <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  Q_PROPERTY( <span class="keywordtype">bool</span> isEnabled READ isEnabled WRITE setEnabled )</div>
- <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  Q_PROPERTY( <a class="code" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3">ResizeMode</a> resizeMode READ resizeMode WRITE setResizeMode )</div>
- <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
- <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  Q_PROPERTY( <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode READ trackerMode WRITE setTrackerMode )</div>
- <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  Q_PROPERTY( QPen trackerPen READ trackerPen WRITE setTrackerPen )</div>
- <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  Q_PROPERTY( QFont trackerFont READ trackerFont WRITE setTrackerFont )</div>
- <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
- <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  Q_PROPERTY( <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> rubberBand READ rubberBand WRITE setRubberBand )</div>
- <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  Q_PROPERTY( QPen rubberBandPen READ rubberBandPen WRITE setRubberBandPen )</div>
- <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
- <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">public</span>:</div>
- <div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894"> 122</a></span>  <span class="keyword">enum</span> <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a></div>
- <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  {</div>
- <div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894abe995b2c285314bf9fc459581e100934"> 125</a></span>  NoRubberBand = 0,</div>
- <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
- <div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0"> 128</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0">HLineRubberBand</a>,</div>
- <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
- <div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86"> 131</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86">VLineRubberBand</a>,</div>
- <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
- <div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097"> 134</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097">CrossRubberBand</a>,</div>
- <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
- <div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a"> 137</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a">RectRubberBand</a>,</div>
- <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
- <div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef"> 140</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef">EllipseRubberBand</a>,</div>
- <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
- <div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945"> 143</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945">PolygonRubberBand</a>,</div>
- <div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
- <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  UserRubberBand = 100</div>
- <div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a96f40f8cc50bd940f0338a68ba159b8e"> 150</a></span>  };</div>
- <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div>
- <div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93"> 156</a></span>  <span class="keyword">enum</span> <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a></div>
- <div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  {</div>
- <div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a"> 159</a></span>  <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a">AlwaysOff</a>,</div>
- <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
- <div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0"> 162</a></span>  <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0">AlwaysOn</a>,</div>
- <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
- <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  ActiveOnly</div>
- <div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a973f3446b39ea41b5dc3b31593ecb64a"> 166</a></span>  };</div>
- <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div>
- <div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3"> 176</a></span>  <span class="keyword">enum</span> <a class="code" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3">ResizeMode</a></div>
- <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  {</div>
- <div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588"> 179</a></span>  <a class="code" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588">Stretch</a>,</div>
- <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
- <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  KeepSize</div>
- <div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3ae873df582534c398b2f753763b0eb780"> 183</a></span>  };</div>
- <div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
- <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">explicit</span> <a class="code" href="class_qwt_picker.html">QwtPicker</a>( QWidget *parent );</div>
- <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">explicit</span> <a class="code" href="class_qwt_picker.html">QwtPicker</a>( RubberBand rubberBand,</div>
- <div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  DisplayMode trackerMode, QWidget * );</div>
- <div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
- <div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keyword">virtual</span> ~<a class="code" href="class_qwt_picker.html">QwtPicker</a>();</div>
- <div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div>
- <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">void</span> setStateMachine( <a class="code" href="class_qwt_picker_machine.html">QwtPickerMachine</a> * );</div>
- <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">const</span> <a class="code" href="class_qwt_picker_machine.html">QwtPickerMachine</a> *stateMachine() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="class_qwt_picker_machine.html">QwtPickerMachine</a> *stateMachine();</div>
- <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
- <div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordtype">void</span> setRubberBand( RubberBand );</div>
- <div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  RubberBand rubberBand() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
- <div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">void</span> setTrackerMode( DisplayMode );</div>
- <div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  DisplayMode trackerMode() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
- <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">void</span> setResizeMode( ResizeMode );</div>
- <div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  ResizeMode resizeMode() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
- <div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordtype">void</span> setRubberBandPen( <span class="keyword">const</span> QPen & );</div>
- <div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  QPen rubberBandPen() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div>
- <div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">void</span> setTrackerPen( <span class="keyword">const</span> QPen & );</div>
- <div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  QPen trackerPen() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
- <div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordtype">void</span> setTrackerFont( <span class="keyword">const</span> QFont & );</div>
- <div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  QFont trackerFont() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  </div>
- <div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordtype">bool</span> isEnabled() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordtype">bool</span> isActive() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
- <div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> eventFilter( QObject *, QEvent * );</div>
- <div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  </div>
- <div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  QWidget *parentWidget();</div>
- <div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keyword">const</span> QWidget *parentWidget() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
- <div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">virtual</span> QPainterPath pickArea() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div>
- <div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawRubberBand( QPainter * ) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawTracker( QPainter * ) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
- <div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keyword">virtual</span> QRegion rubberBandMask() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
- <div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">virtual</span> <a class="code" href="class_qwt_text.html">QwtText</a> trackerText( <span class="keyword">const</span> QPoint &pos ) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  QPoint trackerPosition() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keyword">virtual</span> QRect trackerRect( <span class="keyword">const</span> QFont & ) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
- <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  QPolygon selection() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
- <div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="keyword">public</span> Q_SLOTS:</div>
- <div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordtype">void</span> setEnabled( <span class="keywordtype">bool</span> );</div>
- <div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
- <div class="line"><a name="l00237"></a><span class="lineno"> 237</span> Q_SIGNALS:</div>
- <div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a89a2c67a355d6b9bc54348e2f25fe139"> 245</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_qwt_picker.html#a89a2c67a355d6b9bc54348e2f25fe139">activated</a>( <span class="keywordtype">bool</span> on );</div>
- <div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
- <div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a283ec139021c9b5e95d1472a9c902c7e"> 253</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_qwt_picker.html#a283ec139021c9b5e95d1472a9c902c7e">selected</a>( <span class="keyword">const</span> QPolygon &polygon );</div>
- <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
- <div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ad52219271a7c8efab35ded14ac89827a"> 261</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_qwt_picker.html#ad52219271a7c8efab35ded14ac89827a">appended</a>( <span class="keyword">const</span> QPoint &pos );</div>
- <div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  </div>
- <div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#adddb4800c1dac0ba807e731f45d40742"> 270</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_qwt_picker.html#adddb4800c1dac0ba807e731f45d40742">moved</a>( <span class="keyword">const</span> QPoint &pos );</div>
- <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div>
- <div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ae43005f819fc423da4bad205d99e4d1e"> 279</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_qwt_picker.html#ae43005f819fc423da4bad205d99e4d1e">removed</a>( <span class="keyword">const</span> QPoint &pos );</div>
- <div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ae47a68e89fdd72be75d4d2b92672319e"> 287</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_qwt_picker.html#ae47a68e89fdd72be75d4d2b92672319e">changed</a>( <span class="keyword">const</span> QPolygon &selection );</div>
- <div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  </div>
- <div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="keyword">protected</span>:</div>
- <div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">virtual</span> QPolygon adjustedPoints( <span class="keyword">const</span> QPolygon & ) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  </div>
- <div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> transition( <span class="keyword">const</span> QEvent * );</div>
- <div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div>
- <div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> begin();</div>
- <div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> append( <span class="keyword">const</span> QPoint & );</div>
- <div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> move( <span class="keyword">const</span> QPoint & );</div>
- <div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> remove();</div>
- <div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> end( <span class="keywordtype">bool</span> ok = <span class="keyword">true</span> );</div>
- <div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  </div>
- <div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> accept( QPolygon & ) <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> reset();</div>
- <div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  </div>
- <div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMousePressEvent( QMouseEvent * );</div>
- <div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMouseReleaseEvent( QMouseEvent * );</div>
- <div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMouseDoubleClickEvent( QMouseEvent * );</div>
- <div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMouseMoveEvent( QMouseEvent * );</div>
- <div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetWheelEvent( QWheelEvent * );</div>
- <div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetKeyPressEvent( QKeyEvent * );</div>
- <div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetKeyReleaseEvent( QKeyEvent * );</div>
- <div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetEnterEvent( QEvent * );</div>
- <div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetLeaveEvent( QEvent * );</div>
- <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  </div>
- <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> stretchSelection(</div>
- <div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keyword">const</span> QSize &oldSize, <span class="keyword">const</span> QSize &newSize );</div>
- <div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  </div>
- <div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateDisplay();</div>
- <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div>
- <div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keyword">const</span> <a class="code" href="class_qwt_widget_overlay.html">QwtWidgetOverlay</a> *rubberBandOverlay() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keyword">const</span> <a class="code" href="class_qwt_widget_overlay.html">QwtWidgetOverlay</a> *trackerOverlay() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  </div>
- <div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keyword">const</span> QPolygon &pickedPoints() <span class="keyword">const</span>;</div>
- <div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  </div>
- <div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="keyword">private</span>:</div>
- <div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordtype">void</span> init( QWidget *, <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> rubberBand, <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode );</div>
- <div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  </div>
- <div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordtype">void</span> setMouseTracking( <span class="keywordtype">bool</span> );</div>
- <div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  </div>
- <div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keyword">class </span>PrivateData;</div>
- <div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  PrivateData *d_data;</div>
- <div class="line"><a name="l00330"></a><span class="lineno"> 330</span> };</div>
- <div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  </div>
- <div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="preprocessor">#endif</span></div>
- </div><!-- fragment --></div><!-- contents -->
- </div><!-- doc-content -->
- <div class="ttc" id="aclass_qwt_picker_html_ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588"><div class="ttname"><a href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588">QwtPicker::Stretch</a></div><div class="ttdeci">@ Stretch</div><div class="ttdoc">All points are scaled according to the new size,.</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:179</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ae47a68e89fdd72be75d4d2b92672319e"><div class="ttname"><a href="class_qwt_picker.html#ae47a68e89fdd72be75d4d2b92672319e">QwtPicker::changed</a></div><div class="ttdeci">void changed(const QPolygon &selection)</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_adddb4800c1dac0ba807e731f45d40742"><div class="ttname"><a href="class_qwt_picker.html#adddb4800c1dac0ba807e731f45d40742">QwtPicker::moved</a></div><div class="ttdeci">void moved(const QPoint &pos)</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_a283ec139021c9b5e95d1472a9c902c7e"><div class="ttname"><a href="class_qwt_picker.html#a283ec139021c9b5e95d1472a9c902c7e">QwtPicker::selected</a></div><div class="ttdeci">void selected(const QPolygon &polygon)</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0">QwtPicker::HLineRubberBand</a></div><div class="ttdeci">@ HLineRubberBand</div><div class="ttdoc">A horizontal line ( only for QwtPickerMachine::PointSelection )</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:128</div></div>
- <div class="ttc" id="aclass_qwt_widget_overlay_html"><div class="ttname"><a href="class_qwt_widget_overlay.html">QwtWidgetOverlay</a></div><div class="ttdoc">An overlay for a widget.</div><div class="ttdef"><b>Definition:</b> qwt_widget_overlay.h:41</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab3c894deed026f392496dd07809a6fd3"><div class="ttname"><a href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3">QwtPicker::ResizeMode</a></div><div class="ttdeci">ResizeMode</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:177</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945">QwtPicker::PolygonRubberBand</a></div><div class="ttdeci">@ PolygonRubberBand</div><div class="ttdoc">A polygon ( only for QwtPickerMachine::PolygonSelection )</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:143</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_a01be4d404ffc3a7b238b0d0aaeb66b93"><div class="ttname"><a href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">QwtPicker::DisplayMode</a></div><div class="ttdeci">DisplayMode</div><div class="ttdoc">Display mode.</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:157</div></div>
- <div class="ttc" id="aclass_qwt_picker_html"><div class="ttname"><a href="class_qwt_picker.html">QwtPicker</a></div><div class="ttdoc">QwtPicker provides selections on a widget.</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:99</div></div>
- <div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> qwt_text.h:52</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ae43005f819fc423da4bad205d99e4d1e"><div class="ttname"><a href="class_qwt_picker.html#ae43005f819fc423da4bad205d99e4d1e">QwtPicker::removed</a></div><div class="ttdeci">void removed(const QPoint &pos)</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a"><div class="ttname"><a href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a">QwtPicker::AlwaysOff</a></div><div class="ttdeci">@ AlwaysOff</div><div class="ttdoc">Display never.</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:159</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef">QwtPicker::EllipseRubberBand</a></div><div class="ttdeci">@ EllipseRubberBand</div><div class="ttdoc">An ellipse ( only for QwtPickerMachine::RectSelection )</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:140</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">QwtPicker::RubberBand</a></div><div class="ttdeci">RubberBand</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:123</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ad52219271a7c8efab35ded14ac89827a"><div class="ttname"><a href="class_qwt_picker.html#ad52219271a7c8efab35ded14ac89827a">QwtPicker::appended</a></div><div class="ttdeci">void appended(const QPoint &pos)</div></div>
- <div class="ttc" id="aclass_qwt_event_pattern_html"><div class="ttname"><a href="class_qwt_event_pattern.html">QwtEventPattern</a></div><div class="ttdoc">A collection of event patterns.</div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:30</div></div>
- <div class="ttc" id="aclass_qwt_picker_machine_html"><div class="ttname"><a href="class_qwt_picker_machine.html">QwtPickerMachine</a></div><div class="ttdoc">A state machine for QwtPicker selections.</div><div class="ttdef"><b>Definition:</b> qwt_picker_machine.h:29</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097">QwtPicker::CrossRubberBand</a></div><div class="ttdeci">@ CrossRubberBand</div><div class="ttdoc">A crosshair ( only for QwtPickerMachine::PointSelection )</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:134</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86">QwtPicker::VLineRubberBand</a></div><div class="ttdeci">@ VLineRubberBand</div><div class="ttdoc">A vertical line ( only for QwtPickerMachine::PointSelection )</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:131</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_a89a2c67a355d6b9bc54348e2f25fe139"><div class="ttname"><a href="class_qwt_picker.html#a89a2c67a355d6b9bc54348e2f25fe139">QwtPicker::activated</a></div><div class="ttdeci">void activated(bool on)</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0"><div class="ttname"><a href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0">QwtPicker::AlwaysOn</a></div><div class="ttdeci">@ AlwaysOn</div><div class="ttdoc">Display always.</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:162</div></div>
- <div class="ttc" id="aclass_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a">QwtPicker::RectRubberBand</a></div><div class="ttdeci">@ RectRubberBand</div><div class="ttdoc">A rectangle ( only for QwtPickerMachine::RectSelection )</div><div class="ttdef"><b>Definition:</b> qwt_picker.h:137</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="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_picker.h</b></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>
|