132 lines
40 KiB
HTML
132 lines
40 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.11"/>
|
|
<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>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</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>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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.3</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</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">
|
|
$(document).ready(function(){initNavTree('qwt__picker_8h_source.html','');});
|
|
</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="l00095"></a><span class="lineno"><a class="line" href="class_qwt_picker.html"> 95</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="l00096"></a><span class="lineno"> 96</span> {</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  Q_OBJECT</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</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="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  Q_PROPERTY( <span class="keywordtype">bool</span> isEnabled READ isEnabled WRITE setEnabled )</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  Q_PROPERTY( ResizeMode resizeMode READ resizeMode WRITE setResizeMode )</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( <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode READ trackerMode WRITE setTrackerMode )</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  Q_PROPERTY( QPen trackerPen READ trackerPen WRITE setTrackerPen )</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  Q_PROPERTY( QFont trackerFont READ trackerFont WRITE setTrackerFont )</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</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="l00109"></a><span class="lineno"> 109</span>  Q_PROPERTY( QPen rubberBandPen READ rubberBandPen WRITE setRubberBandPen )</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> <span class="keyword">public</span>:</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894"> 119</a></span>  <span class="keyword">enum</span> <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894abe995b2c285314bf9fc459581e100934"> 122</a></span>  NoRubberBand = 0,</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#ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0"> 125</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0">HLineRubberBand</a>,</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#ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86"> 128</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86">VLineRubberBand</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#ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097"> 131</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097">CrossRubberBand</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#ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a"> 134</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a">RectRubberBand</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#ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef"> 137</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef">EllipseRubberBand</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#ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945"> 140</a></span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945">PolygonRubberBand</a>,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a96f40f8cc50bd940f0338a68ba159b8e"> 146</a></span>  UserRubberBand = 100</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  };</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93"> 153</a></span>  <span class="keyword">enum</span> <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  {</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a"> 156</a></span>  <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a">AlwaysOff</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#a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0"> 159</a></span>  <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0">AlwaysOn</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#a01be4d404ffc3a7b238b0d0aaeb66b93a973f3446b39ea41b5dc3b31593ecb64a"> 162</a></span>  ActiveOnly</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  };</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3"> 173</a></span>  <span class="keyword">enum</span> ResizeMode</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  {</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588"> 176</a></span>  <a class="code" href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588">Stretch</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#ab3c894deed026f392496dd07809a6fd3ae873df582534c398b2f753763b0eb780"> 179</a></span>  KeepSize</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  };</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">explicit</span> <a class="code" href="class_qwt_picker.html">QwtPicker</a>( QWidget *parent );</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keyword">explicit</span> <a class="code" href="class_qwt_picker.html">QwtPicker</a>( <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> rubberBand,</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode, QWidget * );</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> </div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">virtual</span> ~<a class="code" href="class_qwt_picker.html">QwtPicker</a>();</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordtype">void</span> setStateMachine( <a class="code" href="class_qwt_picker_machine.html">QwtPickerMachine</a> * );</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</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="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="class_qwt_picker_machine.html">QwtPickerMachine</a> *stateMachine();</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordtype">void</span> setRubberBand( <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> );</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894">RubberBand</a> rubberBand() <span class="keyword">const</span>;</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> setTrackerMode( <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> );</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93">DisplayMode</a> trackerMode() <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> setResizeMode( ResizeMode );</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  ResizeMode resizeMode() <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> setRubberBandPen( <span class="keyword">const</span> QPen & );</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  QPen rubberBandPen() <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> setTrackerPen( <span class="keyword">const</span> QPen & );</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  QPen trackerPen() <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> setTrackerFont( <span class="keyword">const</span> QFont & );</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  QFont trackerFont() <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">bool</span> isEnabled() <span class="keyword">const</span>;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordtype">bool</span> isActive() <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="keyword">virtual</span> <span class="keywordtype">bool</span> eventFilter( QObject *, QEvent * );</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  QWidget *parentWidget();</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keyword">const</span> QWidget *parentWidget() <span class="keyword">const</span>;</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>  <span class="keyword">virtual</span> QPainterPath pickArea() <span class="keyword">const</span>;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawRubberBand( QPainter * ) <span class="keyword">const</span>;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawTracker( QPainter * ) <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> QRegion rubberBandMask() <span class="keyword">const</span>;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</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="l00226"></a><span class="lineno"> 226</span>  QPoint trackerPosition() <span class="keyword">const</span>;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</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="l00228"></a><span class="lineno"> 228</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  QPolygon selection() <span class="keyword">const</span>;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="keyword">public</span> Q_SLOTS:</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordtype">void</span> setEnabled( <span class="keywordtype">bool</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> Q_SIGNALS:</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordtype">void</span> activated( <span class="keywordtype">bool</span> on );</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordtype">void</span> selected( <span class="keyword">const</span> QPolygon &polygon );</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordtype">void</span> appended( <span class="keyword">const</span> QPoint &pos );</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordtype">void</span> moved( <span class="keyword">const</span> QPoint &pos );</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordtype">void</span> removed( <span class="keyword">const</span> QPoint &pos );</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordtype">void</span> changed( <span class="keyword">const</span> QPolygon &selection );</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</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="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> transition( <span class="keyword">const</span> QEvent * );</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> begin();</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> append( <span class="keyword">const</span> QPoint & );</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> move( <span class="keyword">const</span> QPoint & );</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <span class="keyword">remove</span>();</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</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="l00296"></a><span class="lineno"> 296</span> </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> accept( QPolygon & ) <span class="keyword">const</span>;</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> reset();</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">void</span> widgetMousePressEvent( QMouseEvent * );</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMouseReleaseEvent( QMouseEvent * );</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMouseDoubleClickEvent( QMouseEvent * );</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetMouseMoveEvent( QMouseEvent * );</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetWheelEvent( QWheelEvent * );</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetKeyPressEvent( QKeyEvent * );</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetKeyReleaseEvent( QKeyEvent * );</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetEnterEvent( QEvent * );</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> widgetLeaveEvent( QEvent * );</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> stretchSelection( <span class="keyword">const</span> QSize &oldSize,</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="keyword">const</span> QSize &newSize );</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> updateDisplay();</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00315"></a><span class="lineno"> 315</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="l00316"></a><span class="lineno"> 316</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="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> QPolygon &pickedPoints() <span class="keyword">const</span>;</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</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="l00322"></a><span class="lineno"> 322</span> </div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordtype">void</span> setMouseTracking( <span class="keywordtype">bool</span> );</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keyword">class </span>PrivateData;</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  PrivateData *d_data;</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> </div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="class_qwt_picker_html_ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588"><div class="ttname"><a href="class_qwt_picker.html#ab3c894deed026f392496dd07809a6fd3a86899007b306839db254d6d9712af588">QwtPicker::Stretch</a></div><div class="ttdoc">All points are scaled according to the new size,. </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:176</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a9f3ab0ea1294b4eb2cae7b919ce0ffb0">QwtPicker::HLineRubberBand</a></div><div class="ttdoc">A horizontal line ( only for QwtPickerMachine::PointSelection ) </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:125</div></div>
|
|
<div class="ttc" id="class_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:51</div></div>
|
|
<div class="ttc" id="class_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:28</div></div>
|
|
<div class="ttc" id="class_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:173</div></div>
|
|
<div class="ttc" id="class_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:153</div></div>
|
|
<div class="ttc" id="class_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:119</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a8b78b6221f2808abe027569c790f0945">QwtPicker::PolygonRubberBand</a></div><div class="ttdoc">A polygon ( only for QwtPickerMachine::PolygonSelection ) </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:140</div></div>
|
|
<div class="ttc" id="class_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:29</div></div>
|
|
<div class="ttc" id="class_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:40</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a1b90615892fec7ff6bb3352ce887b097">QwtPicker::CrossRubberBand</a></div><div class="ttdoc">A crosshair ( only for QwtPickerMachine::PointSelection ) </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:131</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a"><div class="ttname"><a href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a94fcf579dddb78a1c88fd4136d3a673a">QwtPicker::AlwaysOff</a></div><div class="ttdoc">Display never. </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:156</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a6a548d259f7f04ae868419431883e7ef">QwtPicker::EllipseRubberBand</a></div><div class="ttdoc">An ellipse ( only for QwtPickerMachine::RectSelection ) </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:137</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894a0eb6ef7b155e41ea015afc7f68940a86">QwtPicker::VLineRubberBand</a></div><div class="ttdoc">A vertical line ( only for QwtPickerMachine::PointSelection ) </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:128</div></div>
|
|
<div class="ttc" id="class_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:95</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0"><div class="ttname"><a href="class_qwt_picker.html#a01be4d404ffc3a7b238b0d0aaeb66b93a07a7513aa69633c1a3b04fdbfe4674e0">QwtPicker::AlwaysOn</a></div><div class="ttdoc">Display always. </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:159</div></div>
|
|
<div class="ttc" id="class_qwt_picker_html_ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a"><div class="ttname"><a href="class_qwt_picker.html#ab36c79d8ff20aba5b778d2823c1f7894ae4dc32fb99b4fe2058bb594ab5e8c70a">QwtPicker::RectRubberBand</a></div><div class="ttdoc">A rectangle ( only for QwtPickerMachine::RectSelection ) </div><div class="ttdef"><b>Definition:</b> qwt_picker.h:134</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- 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.png" alt="doxygen"/></a> 1.8.11 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|