Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 119

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_28fb57ed95c79fe5ed14c4f71fb4c2a2.html">qt</a>
  </div>
</div>
<div class="contents">
<h1>AxisWidget.cxx</h1><a href="AxisWidget_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="AxisWidget_8h.html" title="hippodraw::AxisWidget class interface">AxisWidget.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#include &lt;qabstractlayout.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#else</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="comment">//Added by the Qt porting tool:</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;QtGui/QHBoxLayout&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;QtGui/QVBoxLayout&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#endif</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="Range_8h.html" title="hippodraw::Range class interface">axes/Range.h</a>&quot;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;qpushbutton.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;qpainter.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;qevent.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;qlabel.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;qcheckbox.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;qnamespace.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;qscrollbar.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;qlineedit.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;qmessagebox.h&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;qsizepolicy.h&gt;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">using</span> std::string;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">using namespace </span>hippodraw;
<a name="l00040"></a>00040 
<a name="l00043"></a>00043 AxisWidget::
<a name="l00044"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#aca2e8303a9100adf544802eafcd1c86b">00044</a> AxisWidget ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * parent, <span class="keyword">const</span> <span class="keywordtype">char</span> * name,  Qt::WFlags wflags )
<a name="l00045"></a>00045   : <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> ( parent, name, wflags )
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 
<a name="l00048"></a>00048   <span class="comment">// Init.</span>
<a name="l00049"></a>00049   
<a name="l00050"></a>00050   <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html">QLabel</a>  ( <span class="stringliteral">&quot;Low: &quot;</span>, <span class="keyword">this</span>, <span class="stringliteral">&quot;lowTextLabel&quot;</span> );
<a name="l00051"></a>00051   <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html">QLabel</a> ( <span class="stringliteral">&quot;High:&quot;</span>, <span class="keyword">this</span>, <span class="stringliteral">&quot;highTextLabel&quot;</span> );
<a name="l00052"></a>00052   
<a name="l00053"></a>00053   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html">QScrollBar</a> ( Qt::Horizontal, <span class="keyword">this</span> ); <span class="comment">// Qt 4 way</span>
<a name="l00054"></a>00054   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt; setRange ( 0, 99 );
<a name="l00055"></a>00055   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt; setPageStep ( 20 );
<a name="l00056"></a>00056   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt; setValue ( 50 );
<a name="l00057"></a>00057   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qsizepolicy.html">QSizePolicy</a> policy;
<a name="l00058"></a>00058   policy.<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qsizepolicy.html#setHorData">setHorData</a> ( QSizePolicy::MinimumExpanding );
<a name="l00059"></a>00059   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt; <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#setSizePolicy">setSizePolicy</a> ( policy );
<a name="l00060"></a>00060 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt; setLineStep ( 1 );
<a name="l00062"></a>00062   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt;setFocusPolicy ( WheelFocus );
<a name="l00063"></a>00063 <span class="preprocessor">#else</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt; setSingleStep ( 1 );
<a name="l00065"></a>00065   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> -&gt;setFocusPolicy ( Qt::WheelFocus );
<a name="l00066"></a>00066 <span class="preprocessor">#endif</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00068"></a>00068   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html">QScrollBar</a> ( Qt::Horizontal, <span class="keyword">this</span> );
<a name="l00069"></a>00069   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt; setRange ( 0, 99 );
<a name="l00070"></a>00070   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt; setPageStep ( 20 );
<a name="l00071"></a>00071   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt; setValue ( 50 );
<a name="l00072"></a>00072   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt; <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#setSizePolicy">setSizePolicy</a> ( policy );
<a name="l00073"></a>00073 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt; setLineStep ( 1 );
<a name="l00075"></a>00075   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt;setFocusPolicy ( WheelFocus );
<a name="l00076"></a>00076 <span class="preprocessor">#else</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt; setSingleStep ( 1);
<a name="l00078"></a>00078   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> -&gt;setFocusPolicy ( Qt::WheelFocus );
<a name="l00079"></a>00079 <span class="preprocessor">#endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>  <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html">QLineEdit</a> ( <span class="keyword">this</span>, <span class="stringliteral">&quot;lowTextBox&quot;</span> );
<a name="l00081"></a>00081   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a> -&gt; <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#setMaximumHeight">setMaximumHeight</a> ( 26 );
<a name="l00082"></a>00082   <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html">QLineEdit</a> ( <span class="keyword">this</span>, <span class="stringliteral">&quot;highTextBox&quot;</span> );
<a name="l00083"></a>00083   <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a> -&gt; <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#setMaximumHeight">setMaximumHeight</a> ( 26 );
<a name="l00084"></a>00084   
<a name="l00085"></a>00085   <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html">QCheckBox</a> ( <span class="stringliteral">&quot;Zoom/Pan&quot;</span>, <span class="keyword">this</span>, <span class="stringliteral">&quot;zoomPanCheckBox&quot;</span> );
<a name="l00086"></a>00086   
<a name="l00087"></a>00087   <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> = <span class="keyword">false</span>;
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <span class="comment">// Layout.</span>
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qvboxlayout.html">QVBoxLayout</a> * grandParentLayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qvboxlayout.html">QVBoxLayout</a> ( <span class="keyword">this</span>, 2 );
<a name="l00092"></a>00092   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> * parentLayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> ( grandParentLayout, 5 );
<a name="l00093"></a>00093 
<a name="l00094"></a>00094   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qvboxlayout.html">QVBoxLayout</a> * labelLayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qvboxlayout.html">QVBoxLayout</a> ( parentLayout, 5 );
<a name="l00095"></a>00095   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qvboxlayout.html">QVBoxLayout</a> * textSliderLayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qvboxlayout.html">QVBoxLayout</a> ( parentLayout, 5 );
<a name="l00096"></a>00096 
<a name="l00097"></a>00097   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> * lowLayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> ( textSliderLayout, 5 );
<a name="l00098"></a>00098   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> * highLayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> ( textSliderLayout, 5 );
<a name="l00099"></a>00099 
<a name="l00100"></a>00100   labelLayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a> );
<a name="l00101"></a>00101   labelLayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a> );
<a name="l00102"></a>00102 
<a name="l00103"></a>00103   lowLayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a> );
<a name="l00104"></a>00104   lowLayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a> );
<a name="l00105"></a>00105 
<a name="l00106"></a>00106   highLayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a> );
<a name="l00107"></a>00107   highLayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a> );
<a name="l00108"></a>00108   
<a name="l00109"></a>00109   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> * checkboxlayout = <span class="keyword">new</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qhboxlayout.html">QHBoxLayout</a> ( grandParentLayout, 5 );
<a name="l00110"></a>00110   checkboxlayout-&gt;addWidget ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a> );
<a name="l00111"></a>00111   checkboxlayout-&gt;setAlignment ( Qt::AlignHCenter );
<a name="l00112"></a>00112 
<a name="l00113"></a>00113   <span class="comment">// Connect.</span>
<a name="l00114"></a>00114   
<a name="l00115"></a>00115   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>, SIGNAL ( returnPressed() ),
<a name="l00116"></a>00116             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#aac3eef421c7107ad63598e672feecf0e" title="Emitted when lowTextBox gets return pressed.">lowTextReturnPressed</a> () ) );
<a name="l00117"></a>00117   
<a name="l00118"></a>00118   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>, SIGNAL ( returnPressed () ),
<a name="l00119"></a>00119             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#aeee03bac9a804b014feafcb57fb90f68" title="Emitted when highTextBox gets return pressed.">highTextReturnPressed</a> () ) );
<a name="l00120"></a>00120   
<a name="l00121"></a>00121   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, SIGNAL ( sliderReleased () ),
<a name="l00122"></a>00122             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a4291b83a2eb679e837b70f0efb339547" title="Emitted when lowSlider is released.">lowSliderReleased</a> () ) );
<a name="l00123"></a>00123   
<a name="l00124"></a>00124   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, SIGNAL ( sliderReleased () ),
<a name="l00125"></a>00125             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a7f51120b444aae17f18fb8fb95ca1717" title="Emitted when highSlider is released.">highSliderReleased</a> () ) );
<a name="l00126"></a>00126   
<a name="l00127"></a>00127   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, SIGNAL ( valueChanged ( <span class="keywordtype">int</span> ) ),
<a name="l00128"></a>00128             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a0f36af9e9c74ca1009c6655df9174f0f" title="Emitted when lowSlider&amp;#39;s value has changed.">lowSliderValueChanged</a> ( <span class="keywordtype">int</span> ) ) );
<a name="l00129"></a>00129   
<a name="l00130"></a>00130   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, SIGNAL ( valueChanged ( <span class="keywordtype">int</span> ) ),
<a name="l00131"></a>00131             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a1677179bbaba136411764d47e53bb32c" title="Emitted when highSlider&amp;#39;s value has changed.">highSliderValueChanged</a> ( <span class="keywordtype">int</span> ) ) );
<a name="l00132"></a>00132 
<a name="l00133"></a>00133   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, SIGNAL ( sliderPressed () ),
<a name="l00134"></a>00134             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a28c9ab26d5889e8057d071c7c7d73273" title="Emitted when lowSlider is pressed.">lowSliderPressed</a> () ) );
<a name="l00135"></a>00135   
<a name="l00136"></a>00136   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, SIGNAL ( sliderPressed () ),
<a name="l00137"></a>00137             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a7ba69ebdcae9870c06fd3ad6cdfc6321" title="Emitted when highSlider is pressed.">highSliderPressed</a> () ) );
<a name="l00138"></a>00138   
<a name="l00139"></a>00139   connect ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>, SIGNAL ( clicked () ),
<a name="l00140"></a>00140             <span class="keyword">this</span>, SIGNAL ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a045ef17a50c40318ee88cb84e2d99fbe" title="Emitted when zoomPanCheckBox is clicked.">zoomPanCheckBoxClicked</a> () ) );
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 }
<a name="l00143"></a>00143 
<a name="l00144"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a50e541e1867c436e3e2d46d25044ddd8">00144</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a50e541e1867c436e3e2d46d25044ddd8" title="The required virtual destructor.">AxisWidget::~AxisWidget</a> ()
<a name="l00145"></a>00145 {
<a name="l00146"></a>00146   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a>;
<a name="l00147"></a>00147   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a>;
<a name="l00148"></a>00148   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>;
<a name="l00149"></a>00149   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>;
<a name="l00150"></a>00150   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>;
<a name="l00151"></a>00151   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>;
<a name="l00152"></a>00152   <span class="keyword">delete</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>;
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 <span class="keywordtype">void</span>
<a name="l00156"></a>00156 <a class="code" href="classhippodraw_1_1AxisWidget.html#a7aebce915f16b5776700eb8acdcb7da0" title="Called by InspectorBase in response to the lowTextReturnPressed and highTextReturnPressed...">AxisWidget::</a>
<a name="l00157"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a7aebce915f16b5776700eb8acdcb7da0">00157</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a7aebce915f16b5776700eb8acdcb7da0" title="Called by InspectorBase in response to the lowTextReturnPressed and highTextReturnPressed...">processTextBoxReturnPressed</a> ( <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; currentRange, 
<a name="l00158"></a>00158                               <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00159"></a>00159 {
<a name="l00160"></a>00160 
<a name="l00161"></a>00161   <span class="keywordflow">if</span> ( !<a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#isChecked">isChecked</a>() ){
<a name="l00162"></a>00162 
<a name="l00163"></a>00163     <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a> text1 = <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>();
<a name="l00164"></a>00164     <span class="keywordtype">double</span> hi = text1.<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html#toDouble">toDouble</a>();
<a name="l00165"></a>00165     <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a> text = <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>();
<a name="l00166"></a>00166     <span class="keywordtype">double</span> lo = text.<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html#toDouble">toDouble</a>();
<a name="l00167"></a>00167     
<a name="l00168"></a>00168     <span class="keywordflow">if</span> ( lo &gt;= hi ) {
<a name="l00169"></a>00169       <a class="code" href="classhippodraw_1_1AxisWidget.html#a054099cd608a58b15b6448fa75f43431" title="Throws up a message box when an attempt is made to set an invalid range.">invalidRangeError</a> ( <span class="stringliteral">&quot;Low not less than high&quot;</span> );
<a name="l00170"></a>00170       <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>()) );
<a name="l00171"></a>00171       <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>()) );
<a name="l00172"></a>00172       <span class="keywordflow">return</span>;
<a name="l00173"></a>00173     }
<a name="l00174"></a>00174     
<a name="l00175"></a>00175     currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( lo, hi, currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );
<a name="l00176"></a>00176     
<a name="l00177"></a>00177     <span class="keywordflow">if</span> ( !<a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> ) <span class="keywordflow">return</span>;
<a name="l00178"></a>00178     
<a name="l00179"></a>00179     <span class="comment">// If cut, set the sliders.</span>
<a name="l00180"></a>00180     
<a name="l00181"></a>00181     <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>,  currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>(),  fullRange );
<a name="l00182"></a>00182     <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>(), fullRange );
<a name="l00183"></a>00183 
<a name="l00184"></a>00184   }
<a name="l00185"></a>00185   
<a name="l00186"></a>00186   <span class="keywordflow">else</span> {
<a name="l00187"></a>00187 
<a name="l00188"></a>00188     <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> ) {
<a name="l00189"></a>00189       
<a name="l00190"></a>00190       <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> = ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>()).toDouble();    
<a name="l00191"></a>00191       <span class="keywordtype">double</span> oldWidth = <a class="code" href="classhippodraw_1_1AxisWidget.html#aba5cefd9c5eb57eed20815a5275f623a" title="Converts the slider position to Width.">getWidthFromSlider</a> ( fullRange );
<a name="l00192"></a>00192       <span class="keywordtype">double</span> position = ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>()).toDouble();
<a name="l00193"></a>00193       <span class="keywordtype">double</span> oldPosition = <a class="code" href="classhippodraw_1_1AxisWidget.html#a8f504bba7cee28535b338e8ab0288220" title="Converts the slider position to Position.">getPositionFromSlider</a> ( fullRange );
<a name="l00194"></a>00194       
<a name="l00195"></a>00195       <span class="keywordflow">if</span> ( position - width / 2 &lt; fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() || 
<a name="l00196"></a>00196            position + width / 2 &gt; fullRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() ) {
<a name="l00197"></a>00197         
<a name="l00198"></a>00198         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg( oldWidth ) );
<a name="l00199"></a>00199         <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg( oldPosition ) );
<a name="l00200"></a>00200         <span class="keywordflow">return</span>;
<a name="l00201"></a>00201         
<a name="l00202"></a>00202       }
<a name="l00203"></a>00203       
<a name="l00204"></a>00204       <span class="comment">// Set New Range.</span>
<a name="l00205"></a>00205       
<a name="l00206"></a>00206       currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( position - width / 2, 
<a name="l00207"></a>00207                                position + width / 2, 
<a name="l00208"></a>00208                                currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );
<a name="l00209"></a>00209       
<a name="l00210"></a>00210       <span class="comment">// Update Sliders.</span>
<a name="l00211"></a>00211       
<a name="l00212"></a>00212       <a class="code" href="classhippodraw_1_1AxisWidget.html#a3d35661e0983aea1136669ff3a1ae865" title="Sets the slider s to the value value, where the slider zero corresponds to data zero...">setSliderZero</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, width, fullRange );
<a name="l00213"></a>00213       <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, position, fullRange );
<a name="l00214"></a>00214 
<a name="l00215"></a>00215     }
<a name="l00216"></a>00216 
<a name="l00217"></a>00217     <span class="keywordflow">else</span> {
<a name="l00218"></a>00218 
<a name="l00219"></a>00219       <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> = ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>()).toDouble();    
<a name="l00220"></a>00220       <span class="keywordtype">double</span> position = ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>()).toDouble();
<a name="l00221"></a>00221       
<a name="l00222"></a>00222       <span class="comment">// Set New Range.</span>
<a name="l00223"></a>00223       
<a name="l00224"></a>00224       currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( position - width / 2, 
<a name="l00225"></a>00225                               position + width / 2, 
<a name="l00226"></a>00226                               currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );
<a name="l00227"></a>00227 
<a name="l00228"></a>00228     }
<a name="l00229"></a>00229 
<a name="l00230"></a>00230   }
<a name="l00231"></a>00231 
<a name="l00232"></a>00232 }
<a name="l00233"></a>00233 
<a name="l00234"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#ab063865eee4af90ed38ca97c8debc036">00234</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#ab063865eee4af90ed38ca97c8debc036" title="Called by InspectorBase in response to the lowSliderReleased signal.">AxisWidget::processLowSliderReleased</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00235"></a>00235 {
<a name="l00236"></a>00236   <span class="keywordflow">if</span> ( !<a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#isChecked">isChecked</a>() ){
<a name="l00237"></a>00237     assert ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> );    
<a name="l00238"></a>00238     <span class="keywordtype">double</span> low = (<a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>()).toDouble();    
<a name="l00239"></a>00239     <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, low, fullRange );
<a name="l00240"></a>00240   }
<a name="l00241"></a>00241   <span class="keywordflow">else</span> {
<a name="l00242"></a>00242     <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> =  (<a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>()).toDouble();    
<a name="l00243"></a>00243     <a class="code" href="classhippodraw_1_1AxisWidget.html#a3d35661e0983aea1136669ff3a1ae865" title="Sets the slider s to the value value, where the slider zero corresponds to data zero...">setSliderZero</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, width, fullRange );
<a name="l00244"></a>00244   }
<a name="l00245"></a>00245   
<a name="l00246"></a>00246 }
<a name="l00247"></a>00247 
<a name="l00248"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a9d21f3280e65ab24c771b9dcd28e8046">00248</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a9d21f3280e65ab24c771b9dcd28e8046" title="Called by InspectorBase in response to the highSliderReleased signal.">AxisWidget::processHighSliderReleased</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00249"></a>00249 {
<a name="l00250"></a>00250   <span class="keywordtype">double</span> positionOrHigh = ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#text">text</a>() ).toDouble();
<a name="l00251"></a>00251   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, positionOrHigh, fullRange );
<a name="l00252"></a>00252 }
<a name="l00253"></a>00253 
<a name="l00256"></a>00256 <span class="keywordtype">void</span>
<a name="l00257"></a>00257 <a class="code" href="classhippodraw_1_1AxisWidget.html#a373c48eb1bf8f224e660fcbb9bd765f8" title="Called by InspectorBase in response to the lowSliderMoved signal.">AxisWidget::</a>
<a name="l00258"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a373c48eb1bf8f224e660fcbb9bd765f8">00258</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a373c48eb1bf8f224e660fcbb9bd765f8" title="Called by InspectorBase in response to the lowSliderMoved signal.">processLowSliderMoved</a> ( <span class="keywordtype">int</span>,
<a name="l00259"></a>00259                         <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; currentRange,
<a name="l00260"></a>00260                         <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00261"></a>00261 {
<a name="l00262"></a>00262 
<a name="l00263"></a>00263   <span class="keywordflow">if</span> ( ! <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#isChecked">isChecked</a>() ) {
<a name="l00264"></a>00264     
<a name="l00265"></a>00265     assert ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> );
<a name="l00266"></a>00266 
<a name="l00267"></a>00267     <span class="keywordtype">double</span> new_low = <a class="code" href="classhippodraw_1_1AxisWidget.html#a9510d91932bf759c4a3f198eae8bdaf5" title="Converts the slider position to Low.">getLowFromSlider</a> ( fullRange );
<a name="l00268"></a>00268     
<a name="l00269"></a>00269     <span class="keywordflow">if</span> ( new_low &lt; currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() ){
<a name="l00270"></a>00270       currentRange.<a class="code" href="classhippodraw_1_1Range.html#a2618a41860251089e4ab57a83429c27f" title="Sets the minimum of the range object.">setLow</a> ( new_low );
<a name="l00271"></a>00271     }
<a name="l00272"></a>00272     
<a name="l00273"></a>00273     <span class="comment">// Update other guys : low text.</span>
<a name="l00274"></a>00274     
<a name="l00275"></a>00275     <span class="keywordtype">double</span> low = currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00276"></a>00276     <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(low));
<a name="l00277"></a>00277     
<a name="l00278"></a>00278   }
<a name="l00279"></a>00279   
<a name="l00280"></a>00280   <span class="keywordflow">else</span> {
<a name="l00281"></a>00281 
<a name="l00282"></a>00282     <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> ) {
<a name="l00283"></a>00283       
<a name="l00284"></a>00284       <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> = <a class="code" href="classhippodraw_1_1AxisWidget.html#aba5cefd9c5eb57eed20815a5275f623a" title="Converts the slider position to Width.">getWidthFromSlider</a> ( fullRange );
<a name="l00285"></a>00285       <span class="keywordtype">double</span> position = <a class="code" href="classhippodraw_1_1AxisWidget.html#a8f504bba7cee28535b338e8ab0288220" title="Converts the slider position to Position.">getPositionFromSlider</a> ( fullRange );
<a name="l00286"></a>00286       
<a name="l00287"></a>00287       <span class="keywordflow">if</span> ( position - width / 2 &lt; fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() || 
<a name="l00288"></a>00288            position + width / 2 &gt; fullRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() ) {
<a name="l00289"></a>00289         <span class="keywordflow">return</span>;
<a name="l00290"></a>00290         
<a name="l00291"></a>00291       }
<a name="l00292"></a>00292       
<a name="l00293"></a>00293       <span class="comment">// Set New Range.</span>
<a name="l00294"></a>00294       
<a name="l00295"></a>00295       currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( position - width / 2, 
<a name="l00296"></a>00296                               position + width / 2, 
<a name="l00297"></a>00297                               currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );  
<a name="l00298"></a>00298       
<a name="l00299"></a>00299       <span class="comment">// Update TextBox.</span>
<a name="l00300"></a>00300       
<a name="l00301"></a>00301       <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg( width ) );
<a name="l00302"></a>00302       
<a name="l00303"></a>00303     }
<a name="l00304"></a>00304 
<a name="l00305"></a>00305     <span class="keywordflow">else</span> {
<a name="l00306"></a>00306 
<a name="l00307"></a>00307       <span class="keywordtype">double</span> oldWidth = fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a>();
<a name="l00308"></a>00308       <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> =  oldWidth * <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>() / 50 ;
<a name="l00309"></a>00309       <span class="keywordtype">double</span> position = ( fullRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() + fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() ) / 2 ;
<a name="l00310"></a>00310 
<a name="l00311"></a>00311       <span class="comment">// Set New Range.</span>
<a name="l00312"></a>00312       
<a name="l00313"></a>00313       currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( position - width / 2, 
<a name="l00314"></a>00314                               position + width / 2, 
<a name="l00315"></a>00315                               currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );  
<a name="l00316"></a>00316       
<a name="l00317"></a>00317       <span class="comment">// Update TextBox.</span>
<a name="l00318"></a>00318       
<a name="l00319"></a>00319       <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg( width ) );
<a name="l00320"></a>00320       
<a name="l00321"></a>00321 
<a name="l00322"></a>00322     }
<a name="l00323"></a>00323 
<a name="l00324"></a>00324   }
<a name="l00325"></a>00325 
<a name="l00326"></a>00326 }
<a name="l00327"></a>00327 
<a name="l00330"></a>00330 <span class="keywordtype">void</span>
<a name="l00331"></a>00331 <a class="code" href="classhippodraw_1_1AxisWidget.html#aa730ca32b3a10c8fc56e76ba51981cf5" title="Called by InspectorBase in response to the highSliderMoved signal.">AxisWidget::</a>
<a name="l00332"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#aa730ca32b3a10c8fc56e76ba51981cf5">00332</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#aa730ca32b3a10c8fc56e76ba51981cf5" title="Called by InspectorBase in response to the highSliderMoved signal.">processHighSliderMoved</a> ( <span class="keywordtype">int</span>,
<a name="l00333"></a>00333                          <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; currentRange,
<a name="l00334"></a>00334                          <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00335"></a>00335 {
<a name="l00336"></a>00336   <span class="keywordflow">if</span> ( ! <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#isChecked">isChecked</a>() ) {
<a name="l00337"></a>00337  
<a name="l00338"></a>00338     assert ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> );
<a name="l00339"></a>00339 
<a name="l00340"></a>00340     <span class="keywordtype">double</span> new_high = <a class="code" href="classhippodraw_1_1AxisWidget.html#a0c616a8dbaeb4a3dfdd6f142b27b53d4" title="Converts the slider position to High.">getHighFromSlider</a> ( fullRange );
<a name="l00341"></a>00341       
<a name="l00342"></a>00342     <span class="keywordflow">if</span> ( new_high &gt; currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() ) {
<a name="l00343"></a>00343       currentRange.<a class="code" href="classhippodraw_1_1Range.html#a57518687fc2be69b208d7424048b9baa" title="Sets the maximum of the range object.">setHigh</a> ( new_high );
<a name="l00344"></a>00344     }
<a name="l00345"></a>00345 
<a name="l00346"></a>00346     <span class="comment">// Update other guys : high text.</span>
<a name="l00347"></a>00347       
<a name="l00348"></a>00348     <span class="keywordtype">double</span> high = currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>();
<a name="l00349"></a>00349     <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(high));  
<a name="l00350"></a>00350   } 
<a name="l00351"></a>00351   <span class="keywordflow">else</span> { <span class="comment">// is in zoom/pan mode</span>
<a name="l00352"></a>00352 
<a name="l00353"></a>00353     <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> ) { <span class="comment">//is in zoom/pan mode and is cut</span>
<a name="l00354"></a>00354 
<a name="l00355"></a>00355       <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> = currentRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a> ();
<a name="l00356"></a>00356       <span class="keywordtype">double</span> position = <a class="code" href="classhippodraw_1_1AxisWidget.html#a8f504bba7cee28535b338e8ab0288220" title="Converts the slider position to Position.">getPositionFromSlider</a> ( fullRange );
<a name="l00357"></a>00357       
<a name="l00358"></a>00358       <span class="comment">// Set New Range.</span>
<a name="l00359"></a>00359       
<a name="l00360"></a>00360       currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( position - 0.5 * width,
<a name="l00361"></a>00361                               position + 0.5 * width,
<a name="l00362"></a>00362                               currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );  
<a name="l00363"></a>00363       
<a name="l00364"></a>00364       <span class="comment">// Update TextBoxes..</span>
<a name="l00365"></a>00365       
<a name="l00366"></a>00366       <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg( position ) );
<a name="l00367"></a>00367       
<a name="l00368"></a>00368     }
<a name="l00369"></a>00369     <span class="keywordflow">else</span> { <span class="comment">// is in zoom/pan but not cut</span>
<a name="l00370"></a>00370 
<a name="l00371"></a>00371       <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> = fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a>();
<a name="l00372"></a>00372       <span class="keywordtype">double</span> oldPosition = ( fullRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() + fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() ) / 2 ;
<a name="l00373"></a>00373       <span class="keywordtype">double</span> position = ( width * 
<a name="l00374"></a>00374                           ( ( double ) ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>() - 50 ) ) / 50
<a name="l00375"></a>00375                           ) + oldPosition;
<a name="l00376"></a>00376 
<a name="l00377"></a>00377       <span class="comment">// Set New Range.</span>
<a name="l00378"></a>00378       
<a name="l00379"></a>00379       currentRange.<a class="code" href="classhippodraw_1_1Range.html#addffd7d4904f8f6261dae4e2cb51b734" title="Changes the current Range.">setRange</a> ( position - width / 2, 
<a name="l00380"></a>00380                               position + width / 2, 
<a name="l00381"></a>00381                               currentRange.<a class="code" href="classhippodraw_1_1Range.html#a4b02f1648e2efd2c179f8398b350285b" title="Returns the first positive element in range.">pos</a>() );  
<a name="l00382"></a>00382       
<a name="l00383"></a>00383       <span class="comment">// Update TextBox.</span>
<a name="l00384"></a>00384       
<a name="l00385"></a>00385       <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg( position ) );
<a name="l00386"></a>00386     }
<a name="l00387"></a>00387   }
<a name="l00388"></a>00388 }
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 <span class="keywordtype">void</span>
<a name="l00391"></a>00391 <a class="code" href="classhippodraw_1_1AxisWidget.html#a5578d84c61134da5ba90674567e6e95f" title="Called by InspectorBase in response to the zoomPanCheckBoxClicked signal.">AxisWidget::</a>
<a name="l00392"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a5578d84c61134da5ba90674567e6e95f">00392</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a5578d84c61134da5ba90674567e6e95f" title="Called by InspectorBase in response to the zoomPanCheckBoxClicked signal.">processZoomPanCheckBoxClicked</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; currentRange,
<a name="l00393"></a>00393                                 <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00394"></a>00394 {
<a name="l00395"></a>00395 
<a name="l00396"></a>00396   <span class="keywordtype">bool</span> checked = <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#isChecked">isChecked</a>();
<a name="l00397"></a>00397   
<a name="l00398"></a>00398   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> )
<a name="l00399"></a>00399     <span class="keywordflow">if</span> ( checked )
<a name="l00400"></a>00400       {
<a name="l00401"></a>00401         
<a name="l00402"></a>00402         <span class="comment">// Turn on the zoom / pan mode. Change high low labels, change the</span>
<a name="l00403"></a>00403         <span class="comment">// texts, change the sliders.</span>
<a name="l00404"></a>00404         
<a name="l00405"></a>00405         <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a> ( <span class="stringliteral">&quot;Position&quot;</span> );
<a name="l00406"></a>00406         <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a>  ( <span class="stringliteral">&quot;Width   &quot;</span> );
<a name="l00407"></a>00407         
<a name="l00408"></a>00408         <span class="keywordtype">double</span> currentWidth = currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() - currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00409"></a>00409         <span class="keywordtype">double</span> currentPosition 
<a name="l00410"></a>00410           = 0.5 * ( currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() + currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() );
<a name="l00411"></a>00411         
<a name="l00412"></a>00412         <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentPosition) );
<a name="l00413"></a>00413         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentWidth) );
<a name="l00414"></a>00414         
<a name="l00415"></a>00415         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, currentPosition, fullRange );
<a name="l00416"></a>00416         <a class="code" href="classhippodraw_1_1AxisWidget.html#a3d35661e0983aea1136669ff3a1ae865" title="Sets the slider s to the value value, where the slider zero corresponds to data zero...">setSliderZero</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, currentWidth, fullRange );
<a name="l00417"></a>00417         
<a name="l00418"></a>00418       }
<a name="l00419"></a>00419     <span class="keywordflow">else</span>
<a name="l00420"></a>00420       {
<a name="l00421"></a>00421         <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a> ( <span class="stringliteral">&quot;High    &quot;</span> );
<a name="l00422"></a>00422         <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a>  ( <span class="stringliteral">&quot;Low     &quot;</span> );
<a name="l00423"></a>00423         
<a name="l00424"></a>00424         <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>()) );
<a name="l00425"></a>00425         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>()) );
<a name="l00426"></a>00426         
<a name="l00427"></a>00427         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>(), fullRange );
<a name="l00428"></a>00428         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>(), fullRange );
<a name="l00429"></a>00429         
<a name="l00430"></a>00430       }
<a name="l00431"></a>00431   <span class="keywordflow">else</span> <span class="comment">// i.e. ! m_isCut</span>
<a name="l00432"></a>00432     <span class="keywordflow">if</span> ( checked )
<a name="l00433"></a>00433       {
<a name="l00434"></a>00434         <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a> ( <span class="stringliteral">&quot;Position&quot;</span> );
<a name="l00435"></a>00435         <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a>  ( <span class="stringliteral">&quot;Width   &quot;</span> );
<a name="l00436"></a>00436         
<a name="l00437"></a>00437         <span class="keywordtype">double</span> currentWidth = currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() - currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00438"></a>00438         <span class="keywordtype">double</span> currentPosition 
<a name="l00439"></a>00439           = 0.5 * ( currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() + currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() );
<a name="l00440"></a>00440         
<a name="l00441"></a>00441         <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentPosition) );
<a name="l00442"></a>00442         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentWidth) );
<a name="l00443"></a>00443       }
<a name="l00444"></a>00444     <span class="keywordflow">else</span>
<a name="l00445"></a>00445       {
<a name="l00446"></a>00446         <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a> ( <span class="stringliteral">&quot;High    &quot;</span> );
<a name="l00447"></a>00447         <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a>  ( <span class="stringliteral">&quot;Low     &quot;</span> );
<a name="l00448"></a>00448       
<a name="l00449"></a>00449         <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg ( currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>() ) );
<a name="l00450"></a>00450         <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg ( currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() ) );
<a name="l00451"></a>00451       }
<a name="l00452"></a>00452 }
<a name="l00453"></a>00453 
<a name="l00454"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#aca2a139e206a20d901e2b47ce63d3d92">00454</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#aca2a139e206a20d901e2b47ce63d3d92" title="Set the isCut flag.">AxisWidget::setCut</a> ( <span class="keywordtype">bool</span> flag )
<a name="l00455"></a>00455 {
<a name="l00456"></a>00456   <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> = flag;
<a name="l00457"></a>00457 }
<a name="l00458"></a>00458 
<a name="l00459"></a>00459 <span class="keywordtype">void</span> 
<a name="l00460"></a>00460 <a class="code" href="classhippodraw_1_1AxisWidget.html#a054099cd608a58b15b6448fa75f43431" title="Throws up a message box when an attempt is made to set an invalid range.">AxisWidget::</a>
<a name="l00461"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a054099cd608a58b15b6448fa75f43431">00461</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a054099cd608a58b15b6448fa75f43431" title="Throws up a message box when an attempt is made to set an invalid range.">invalidRangeError</a> ( <span class="keyword">const</span> std::string &amp; bad )
<a name="l00462"></a>00462 {
<a name="l00463"></a>00463 
<a name="l00464"></a>00464   <span class="keyword">const</span> <span class="keywordtype">string</span> message 
<a name="l00465"></a>00465     = <span class="stringliteral">&quot;Attempt to apply invalid range:\n\n&quot;</span>
<a name="l00466"></a>00466     + bad + <span class="stringliteral">&quot;\n\n&quot;</span>
<a name="l00467"></a>00467     + <span class="stringliteral">&quot;Low end of range must be less than high end.&quot;</span>;
<a name="l00468"></a>00468 
<a name="l00469"></a>00469   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qmessagebox.html#critical">QMessageBox::critical</a> ( <span class="keyword">this</span>, <span class="comment">// parent</span>
<a name="l00470"></a>00470                           <span class="stringliteral">&quot;Range error&quot;</span>, <span class="comment">// caption</span>
<a name="l00471"></a>00471                           message.c_str(),
<a name="l00472"></a>00472                           QMessageBox::Ok,
<a name="l00473"></a>00473                           Qt::NoButton,
<a name="l00474"></a>00474                           Qt::NoButton );
<a name="l00475"></a>00475 
<a name="l00476"></a>00476 }
<a name="l00477"></a>00477 
<a name="l00478"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a1678b326d60f26869c25a7df053358bf">00478</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a1678b326d60f26869c25a7df053358bf" title="Set the text in the lowTextBox.">AxisWidget::setLowText</a> ( <span class="keyword">const</span>  <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a> &amp; s, <span class="keywordtype">bool</span> readonly )
<a name="l00479"></a>00479 {
<a name="l00480"></a>00480   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( s );
<a name="l00481"></a>00481   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setReadOnly">setReadOnly</a> ( readonly );
<a name="l00482"></a>00482 }
<a name="l00483"></a>00483 
<a name="l00484"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a2d94f456ae60d44b12a64d28b20d8152">00484</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a2d94f456ae60d44b12a64d28b20d8152" title="Set the text in the highTextBox.">AxisWidget::setHighText</a> ( <span class="keyword">const</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a> &amp; s, <span class="keywordtype">bool</span> readonly )
<a name="l00485"></a>00485 {
<a name="l00486"></a>00486   <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( s );
<a name="l00487"></a>00487   <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setReadOnly">setReadOnly</a> ( readonly );
<a name="l00488"></a>00488 }
<a name="l00489"></a>00489 
<a name="l00490"></a>00490 <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html">QScrollBar</a> *
<a name="l00491"></a>00491 <a class="code" href="classhippodraw_1_1AxisWidget.html#a65a9fd7d5add570575dcc6ac5253a948" title="Returns the low slider widget.">AxisWidget::</a>
<a name="l00492"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a65a9fd7d5add570575dcc6ac5253a948">00492</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a65a9fd7d5add570575dcc6ac5253a948" title="Returns the low slider widget.">getLowSlider</a> ()
<a name="l00493"></a>00493 {
<a name="l00494"></a>00494   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>;
<a name="l00495"></a>00495 }
<a name="l00496"></a>00496 
<a name="l00497"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a87aa0b7627739c3fdf8ebe11b9643415">00497</a> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a87aa0b7627739c3fdf8ebe11b9643415" title="Get the low slider value.">AxisWidget::getLowSliderValue</a> ()
<a name="l00498"></a>00498 {
<a name="l00499"></a>00499   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>();
<a name="l00500"></a>00500 }
<a name="l00501"></a>00501   
<a name="l00502"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a2c94c1271934102ef3fe79f60d0137aa">00502</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a2c94c1271934102ef3fe79f60d0137aa" title="Set the low slider value.">AxisWidget::setLowSliderValue</a> ( <span class="keywordtype">int</span> value )
<a name="l00503"></a>00503 {
<a name="l00504"></a>00504   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#setValue">setValue</a> ( value );
<a name="l00505"></a>00505 }
<a name="l00506"></a>00506 
<a name="l00507"></a>00507 <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html">QScrollBar</a> *
<a name="l00508"></a>00508 <a class="code" href="classhippodraw_1_1AxisWidget.html#a76842e7d5787ddb311944a3275e7ab6a" title="Returns the high slider.">AxisWidget::</a>
<a name="l00509"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a76842e7d5787ddb311944a3275e7ab6a">00509</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a76842e7d5787ddb311944a3275e7ab6a" title="Returns the high slider.">getHighSlider</a> ()
<a name="l00510"></a>00510 {
<a name="l00511"></a>00511   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>;
<a name="l00512"></a>00512 }
<a name="l00513"></a>00513 
<a name="l00514"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a42cbb427e5526e57cd93d9973dd0102b">00514</a> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a42cbb427e5526e57cd93d9973dd0102b" title="Get the high slider value.">AxisWidget::getHighSliderValue</a> ()
<a name="l00515"></a>00515 {
<a name="l00516"></a>00516   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>();
<a name="l00517"></a>00517 }
<a name="l00518"></a>00518   
<a name="l00519"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a03e5435ef05c971e8301f73f5947667d">00519</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a03e5435ef05c971e8301f73f5947667d" title="Set the high slider value.">AxisWidget::setHighSliderValue</a> ( <span class="keywordtype">int</span> value )
<a name="l00520"></a>00520 {
<a name="l00521"></a>00521   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#setValue">setValue</a> ( value );
<a name="l00522"></a>00522 }
<a name="l00523"></a>00523 
<a name="l00524"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a48266af2c2467e2f22f0f9830985e4a4">00524</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a48266af2c2467e2f22f0f9830985e4a4" title="Enable all controls if flag = false, disable if true.">AxisWidget::setAllDisabled</a> ( <span class="keywordtype">bool</span> flag )
<a name="l00525"></a>00525 {
<a name="l00526"></a>00526   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;setDisabled ( flag );
<a name="l00527"></a>00527   <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;setDisabled ( flag );
<a name="l00528"></a>00528   <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;setDisabled ( flag );
<a name="l00529"></a>00529   <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;setDisabled ( flag );
<a name="l00530"></a>00530   <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;setDisabled ( flag );
<a name="l00531"></a>00531 }
<a name="l00532"></a>00532 
<a name="l00533"></a>00533 <span class="keywordtype">void</span>
<a name="l00534"></a>00534 <a class="code" href="classhippodraw_1_1AxisWidget.html#ad040cca539db6540f6f47c453bba342c" title="Set the textboxes and sliders to the values given by the arguments.">AxisWidget::</a>
<a name="l00535"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#ad040cca539db6540f6f47c453bba342c">00535</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#ad040cca539db6540f6f47c453bba342c" title="Set the textboxes and sliders to the values given by the arguments.">updateCutControlValues</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; currentRange,
<a name="l00536"></a>00536                          <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00537"></a>00537 {
<a name="l00538"></a>00538 
<a name="l00539"></a>00539   assert ( <a class="code" href="classhippodraw_1_1AxisWidget.html#ad28055abb52e067391dc703ac928bc13" title="A boolean that is true if the AxisWidget controls a cut.">m_isCut</a> );
<a name="l00540"></a>00540 
<a name="l00541"></a>00541   <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#setChecked">setChecked</a> ( <span class="keyword">false</span> );
<a name="l00542"></a>00542   <a class="code" href="classhippodraw_1_1AxisWidget.html#aaf6f97ed4805582b5ebe882b59c94520" title="The &amp;quot;High&amp;quot; text label.">highTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a> ( <span class="stringliteral">&quot;High    &quot;</span> );
<a name="l00543"></a>00543   <a class="code" href="classhippodraw_1_1AxisWidget.html#af462d83314cdfc0b57674adbcfea3d16" title="The &amp;quot;Low&amp;quot; text label.">lowTextLabel</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlabel.html#setText">setText</a>  ( <span class="stringliteral">&quot;Low     &quot;</span> );
<a name="l00544"></a>00544 
<a name="l00545"></a>00545   <a class="code" href="classhippodraw_1_1AxisWidget.html#a862fe6e995293159e35a579a007b1bbd" title="The text box that shows the high value.">highTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>()) );
<a name="l00546"></a>00546   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7e5f6e1e517819bee37f8c79b677a879" title="The text box that shows the low value.">lowTextBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlineedit.html#setText">setText</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a>(<span class="stringliteral">&quot;%1&quot;</span>).arg(currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>()) );
<a name="l00547"></a>00547 
<a name="l00548"></a>00548   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>, currentRange.<a class="code" href="classhippodraw_1_1Range.html#a10f7231db7f0fe0855fc344e98575714" title="Returns the maximum of the range object.">high</a>(), fullRange );
<a name="l00549"></a>00549   <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>, currentRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>(), fullRange );
<a name="l00550"></a>00550 
<a name="l00551"></a>00551 }
<a name="l00552"></a>00552 
<a name="l00553"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a3ff173838c64cc729bf16a6253568147">00553</a> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a3ff173838c64cc729bf16a6253568147" title="Returns whether zoomPanCheckBox is checked.">AxisWidget::isZoomPanChecked</a> ()
<a name="l00554"></a>00554 {
<a name="l00555"></a>00555   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#isChecked">isChecked</a>();
<a name="l00556"></a>00556 }
<a name="l00557"></a>00557 
<a name="l00558"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a8a4924e13775809710d1b9a6e06dea99">00558</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1AxisWidget.html#a8a4924e13775809710d1b9a6e06dea99" title="Checks zoomPanCheckBox if check is true, else un-checks it.">AxisWidget::setZoomPan</a> ( <span class="keywordtype">bool</span> check, <span class="keywordtype">bool</span> disabled )
<a name="l00559"></a>00559 {
<a name="l00560"></a>00560   <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcheckbox.html#setChecked">setChecked</a> ( check );
<a name="l00561"></a>00561   <a class="code" href="classhippodraw_1_1AxisWidget.html#ab4572aa457b2ced01f3c5b5e0167eae8" title="The zoom pan check box.">zoomPanCheckBox</a>-&gt;setDisabled ( disabled );
<a name="l00562"></a>00562 }
<a name="l00563"></a>00563 
<a name="l00564"></a>00564 <span class="keywordtype">double</span>
<a name="l00565"></a>00565 <a class="code" href="classhippodraw_1_1AxisWidget.html#aba5cefd9c5eb57eed20815a5275f623a" title="Converts the slider position to Width.">AxisWidget::</a>
<a name="l00566"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#aba5cefd9c5eb57eed20815a5275f623a">00566</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#aba5cefd9c5eb57eed20815a5275f623a" title="Converts the slider position to Width.">getWidthFromSlider</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00567"></a>00567 {
<a name="l00568"></a>00568 
<a name="l00569"></a>00569   <span class="keywordtype">double</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html#width">width</a> = ( ( (double)( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>() -
<a name="l00570"></a>00570                                <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) / 
<a name="l00571"></a>00571                    ( (double)( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#maxValue">maxValue</a>() - 
<a name="l00572"></a>00572                                <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) *
<a name="l00573"></a>00573                    fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a>()
<a name="l00574"></a>00574                    );
<a name="l00575"></a>00575   <span class="keywordflow">return</span> width;
<a name="l00576"></a>00576 }
<a name="l00577"></a>00577 
<a name="l00578"></a>00578 <span class="keywordtype">double</span>
<a name="l00579"></a>00579 <a class="code" href="classhippodraw_1_1AxisWidget.html#a8f504bba7cee28535b338e8ab0288220" title="Converts the slider position to Position.">AxisWidget::</a>
<a name="l00580"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a8f504bba7cee28535b338e8ab0288220">00580</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a8f504bba7cee28535b338e8ab0288220" title="Converts the slider position to Position.">getPositionFromSlider</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00581"></a>00581 {
<a name="l00582"></a>00582 
<a name="l00583"></a>00583   <span class="keywordtype">double</span> position 
<a name="l00584"></a>00584     = ( ( static_cast &lt;<span class="keywordtype">double</span>&gt;( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>() -
<a name="l00585"></a>00585                                 <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) / 
<a name="l00586"></a>00586         ( static_cast &lt;<span class="keywordtype">double</span>&gt;( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#maxValue">maxValue</a>() - 
<a name="l00587"></a>00587                                 <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) *
<a name="l00588"></a>00588         fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a>()
<a name="l00589"></a>00589         ) + fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00590"></a>00590   <span class="keywordflow">return</span> position;
<a name="l00591"></a>00591 }
<a name="l00592"></a>00592 
<a name="l00593"></a>00593 <span class="keywordtype">double</span>
<a name="l00594"></a>00594 <a class="code" href="classhippodraw_1_1AxisWidget.html#a9510d91932bf759c4a3f198eae8bdaf5" title="Converts the slider position to Low.">AxisWidget::</a>
<a name="l00595"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a9510d91932bf759c4a3f198eae8bdaf5">00595</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a9510d91932bf759c4a3f198eae8bdaf5" title="Converts the slider position to Low.">getLowFromSlider</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00596"></a>00596 {
<a name="l00597"></a>00597 
<a name="l00598"></a>00598   <span class="keywordtype">double</span> low 
<a name="l00599"></a>00599     = ( ( <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>() -
<a name="l00600"></a>00600                                <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) / 
<a name="l00601"></a>00601         ( <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#maxValue">maxValue</a>() - 
<a name="l00602"></a>00602                                <a class="code" href="classhippodraw_1_1AxisWidget.html#a68b420964086db4ee37527ac06093c87" title="The low slider.">lowSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) *
<a name="l00603"></a>00603                  fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a>()
<a name="l00604"></a>00604                  ) + fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00605"></a>00605 
<a name="l00606"></a>00606   <span class="keywordflow">return</span> low;
<a name="l00607"></a>00607 }
<a name="l00608"></a>00608 
<a name="l00609"></a>00609 <span class="keywordtype">double</span>
<a name="l00610"></a>00610 <a class="code" href="classhippodraw_1_1AxisWidget.html#a0c616a8dbaeb4a3dfdd6f142b27b53d4" title="Converts the slider position to High.">AxisWidget::</a>
<a name="l00611"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a0c616a8dbaeb4a3dfdd6f142b27b53d4">00611</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a0c616a8dbaeb4a3dfdd6f142b27b53d4" title="Converts the slider position to High.">getHighFromSlider</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00612"></a>00612 {
<a name="l00613"></a>00613 
<a name="l00614"></a>00614   <span class="keywordtype">double</span> high = ( ( static_cast &lt;<span class="keywordtype">double</span>&gt;( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#value">value</a>() -
<a name="l00615"></a>00615                                           <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) / 
<a name="l00616"></a>00616                   ( <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#maxValue">maxValue</a>() - 
<a name="l00617"></a>00617                                          <a class="code" href="classhippodraw_1_1AxisWidget.html#a58b1d8996231eb128f54b9b72de6ed8c" title="The high slider.">highSlider</a>-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() ) ) *
<a name="l00618"></a>00618                   fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a>()
<a name="l00619"></a>00619                   ) + fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>();
<a name="l00620"></a>00620   <span class="keywordflow">return</span> high;
<a name="l00621"></a>00621 }
<a name="l00622"></a>00622 
<a name="l00623"></a>00623 <span class="keywordtype">void</span>
<a name="l00624"></a>00624 <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">AxisWidget::</a>
<a name="l00625"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5">00625</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a7d6fde5516d475f75a7be03f8f3606e5" title="Sets the slider s to the value value.">setSlider</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html">QScrollBar</a> * s, <span class="keywordtype">double</span> value, 
<a name="l00626"></a>00626             <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00627"></a>00627 {
<a name="l00628"></a>00628   <span class="keywordtype">int</span> val 
<a name="l00629"></a>00629     = static_cast &lt; <span class="keywordtype">int</span> &gt;(
<a name="l00630"></a>00630                           ( value - fullRange.<a class="code" href="classhippodraw_1_1Range.html#a3865c37c86de4e4eafc43b6b40ef05b9" title="Returns the minimum of the range object.">low</a>() ) / 
<a name="l00631"></a>00631                           fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a> () *
<a name="l00632"></a>00632                           <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span> ( s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#maxValue">maxValue</a>() - s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() )
<a name="l00633"></a>00633                           ) + s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>();
<a name="l00634"></a>00634   
<a name="l00635"></a>00635   s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#setValue">setValue</a> ( val );
<a name="l00636"></a>00636 }  
<a name="l00637"></a>00637 
<a name="l00638"></a>00638 <span class="keywordtype">void</span>
<a name="l00639"></a>00639 <a class="code" href="classhippodraw_1_1AxisWidget.html#a3d35661e0983aea1136669ff3a1ae865" title="Sets the slider s to the value value, where the slider zero corresponds to data zero...">AxisWidget::</a>
<a name="l00640"></a><a class="code" href="classhippodraw_1_1AxisWidget.html#a3d35661e0983aea1136669ff3a1ae865">00640</a> <a class="code" href="classhippodraw_1_1AxisWidget.html#a3d35661e0983aea1136669ff3a1ae865" title="Sets the slider s to the value value, where the slider zero corresponds to data zero...">setSliderZero</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html">QScrollBar</a> * s, <span class="keywordtype">double</span> value, 
<a name="l00641"></a>00641                 <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Range.html" title="Expresses a range of values.">Range</a> &amp; fullRange )
<a name="l00642"></a>00642 {
<a name="l00643"></a>00643   <span class="keywordtype">int</span> val 
<a name="l00644"></a>00644     = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(
<a name="l00645"></a>00645                        ( value ) / fullRange.<a class="code" href="classhippodraw_1_1Range.html#ad207cb443e371f73f07e874c504f60c1" title="Returns the length of the range object.">length</a> () *
<a name="l00646"></a>00646                        <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#maxValue">maxValue</a>() - s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>() )
<a name="l00647"></a>00647                        ) + s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#minValue">minValue</a>();
<a name="l00648"></a>00648   
<a name="l00649"></a>00649   s-&gt;<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qscrollbar.html#setValue">setValue</a> ( val );    
<a name="l00650"></a>00650 }
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>