Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 4f45e7bdfd4a5ff17f5f8eaab90d017f > files > 789

albumshaper-2.1-6mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>AlbumShaper: SplitViewInterface Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>SplitViewInterface Class Reference</h1><!-- doxytag: class="SplitViewInterface" --><!-- doxytag: inherits="QWidget" -->A split view interface provides a means to show before and after versions of an image while adjustments are being made, in addition to dragging this split point left/right or up/down. This abtract class must be subclassed in order to properly handle resize events, in addition to actually setting the original and adjusted images.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for SplitViewInterface:</div>
<div class="dynsection">
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for SplitViewInterface:</div>
<div class="dynsection">
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classSplitViewInterface-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#a592a0955919f185e1a0396b7fbc7918">SplitViewInterface</a> (<a class="el" href="classQWidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates layout.  <a href="#a592a0955919f185e1a0396b7fbc7918"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#e6cd0c9f1fb64b0313063f59aa748943">setPreviewMode</a> (<a class="el" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80">PREVIEW_MODE</a> mode, bool <a class="el" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47">forceDrawLabel</a>=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets preview mode.  <a href="#e6cd0c9f1fb64b0313063f59aa748943"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#b66146bb7001efb0cf8511a0d0b5a664">sizeHint</a> () const =0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#496e2cbbe902e843b6e6637a74198b4b">minimumSizeHint</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#7c60276f4afa1fa1fc3dfc201b6311aa">setImages</a> (QImage <a class="el" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304">origImage</a>, QImage <a class="el" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c">adjustedImage</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#d7328bc93d69a28310a23d9294ec29d7">setAdjustedImage</a> (QImage <a class="el" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c">adjustedImage</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sets adjusted image and repaints  <a href="#d7328bc93d69a28310a23d9294ec29d7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QImage &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#7139f30dcf4faa4afa1fa837334a088d">getOrigImage</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns orig image object  <a href="#7139f30dcf4faa4afa1fa837334a088d"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#5c72cd93433f838d6495d84d1435d8cd">paintEvent</a> (QPaintEvent *e)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#391917837f5b0ef44c6e0c189373b0e2">mousePressEvent</a> (QMouseEvent *e)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#bed0a828f68a935dc257f8ebf1f1dbfb">mouseReleaseEvent</a> (QMouseEvent *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#d3fba3ec66cfe1470d5d73df53caf806">mouseMoveEvent</a> (QMouseEvent *e)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#9d7c7229f759ea139d01f0807c10f632">resizeEvent</a> (QResizeEvent *)=0</td></tr>

<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#1c0403caddd886861b62e1bb32383153">displayToWorld</a> (int coordinate)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">convert display coordinates to world coordinates (double from 0.0 - 1.0)  <a href="#1c0403caddd886861b62e1bb32383153"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#0baba2eccd78c5117bfd4ba60ec3f280">worldToDisplay</a> (double coordinate)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">convert world coordinates to display coordinates (int from 0 to origImage width-1)  <a href="#0baba2eccd78c5117bfd4ba60ec3f280"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#13523565edbd383096953700712c9f87">nearSplitPoint</a> (QPoint p)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">determines if mouse is near split point  <a href="#13523565edbd383096953700712c9f87"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80">PREVIEW_MODE</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22">previewMode</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Current display setting (adjusted or split screen).  <a href="#a3f29eeb34a677eaa9534c38a7de2a22"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47">forceDrawLabel</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw original/adjusted lables outside of split view mode?  <a href="#3bf276ffd5904343612eceecfad4ce47"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e">originalString</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Original and adjusted strings.  <a href="#164799457f2137a52bcab510e186748e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QFont&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6">textFont</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Larger font used for drawing text.  <a href="#7102e06da666ecf8704c68b85d3d6fd6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#70410de4aa824dce6106c2de4966d94a">dragOffset</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">x (or y) coordinate of split between drawn adjusted and original images  <a href="#70410de4aa824dce6106c2de4966d94a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee21">PREVIEW_MOUSE_MODE</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#052c501434ed651fbe63ca9862fc189c">mouseMode</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">current mouse move mode  <a href="#052c501434ed651fbe63ca9862fc189c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee21">PREVIEW_MOUSE_MODE</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e">currentMouseShape</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">current mouse shape.  <a href="#df794481e9121eae6816647b7fc44c9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QImage&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304">origImage</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scaled original image.  <a href="#998bb3d2486b3965315e561d6b505304"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QImage&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c">adjustedImage</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scaled adjusted image.  <a href="#51923395c2a22da6ab1808d3db09cc5c"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A split view interface provides a means to show before and after versions of an image while adjustments are being made, in addition to dragging this split point left/right or up/down. This abtract class must be subclassed in order to properly handle resize events, in addition to actually setting the original and adjusted images. 
<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00043">43</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a592a0955919f185e1a0396b7fbc7918"></a><!-- doxytag: member="SplitViewInterface::SplitViewInterface" ref="a592a0955919f185e1a0396b7fbc7918" args="(QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SplitViewInterface::SplitViewInterface           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classQWidget.html">QWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates layout. 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00027">27</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00093">adjustedString</a>, <a class="el" href="splitViewInterface_8h_source.html#l00106">currentMouseShape</a>, <a class="el" href="splitViewInterface_8h_source.html#l00099">dragOffset</a>, <a class="el" href="splitViewInterface_8h_source.html#l00089">forceDrawLabel</a>, <a class="el" href="splitViewInterface_8h_source.html#l00102">mouseMode</a>, <a class="el" href="splitViewInterface_8h_source.html#l00034">NO_EFFECT_ON_SPLIT</a>, <a class="el" href="splitViewInterface_8h_source.html#l00092">originalString</a>, <a class="el" href="splitViewInterface_8h_source.html#l00086">previewMode</a>, <a class="el" href="splitViewInterface_8h_source.html#l00024">SPLIT_VIEW</a>, and <a class="el" href="splitViewInterface_8h_source.html#l00096">textFont</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00027"></a>00027                                                                           : 
<a name="l00028"></a>00028                                         <a class="code" href="classQWidget.html">QWidget</a> (parent, name )
<a name="l00029"></a>00029 {                  
<a name="l00030"></a>00030   <span class="comment">//setup split point                                          </span>
<a name="l00031"></a>00031   <a class="code" href="classSplitViewInterface.html#70410de4aa824dce6106c2de4966d94a" title="x (or y) coordinate of split between drawn adjusted and original images">dragOffset</a> = 0.5;                                          
<a name="l00032"></a>00032   <a class="code" href="classSplitViewInterface.html#052c501434ed651fbe63ca9862fc189c" title="current mouse move mode">mouseMode</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a>;  
<a name="l00033"></a>00033   <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a>;
<a name="l00034"></a>00034   
<a name="l00035"></a>00035   <span class="comment">//set default mode to adjusted image</span>
<a name="l00036"></a>00036   <a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> = <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a>;
<a name="l00037"></a>00037   
<a name="l00038"></a>00038   <span class="comment">//don't force draw labels by default. this is useful when</span>
<a name="l00039"></a>00039   <span class="comment">//the user pressed the Ctrl button or other key to toggle between opposite views</span>
<a name="l00040"></a>00040   <span class="comment">//and drop down menu for choosing display type disagrees with actuall image being shown.</span>
<a name="l00041"></a>00041   <a class="code" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47" title="Draw original/adjusted lables outside of split view mode?">forceDrawLabel</a> = <span class="keyword">false</span>;
<a name="l00042"></a>00042   
<a name="l00043"></a>00043   <span class="comment">//setup strings and fonts</span>
<a name="l00044"></a>00044   <a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a> = QString( tr(<span class="stringliteral">"Original"</span>) );
<a name="l00045"></a>00045   <a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a> = QString( tr(<span class="stringliteral">"Adjusted"</span>) );          
<a name="l00046"></a>00046   
<a name="l00047"></a>00047   <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a> = this-&gt;font();
<a name="l00048"></a>00048   <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a>.setPointSize( <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a>.pointSize() + 7 );  
<a name="l00049"></a>00049   
<a name="l00050"></a>00050   <span class="comment">//watch mouse movements in order to drag selection</span>
<a name="l00051"></a>00051   <span class="comment">//watch mouse movements in order to move split point between adjusted and original image</span>
<a name="l00052"></a>00052   setMouseTracking(<span class="keyword">true</span>);
<a name="l00053"></a>00053   
<a name="l00054"></a>00054   <span class="comment">//accept focus when clicked on</span>
<a name="l00055"></a>00055   setFocusPolicy( QWidget::ClickFocus );
<a name="l00056"></a>00056 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1c0403caddd886861b62e1bb32383153"></a><!-- doxytag: member="SplitViewInterface::displayToWorld" ref="1c0403caddd886861b62e1bb32383153" args="(int coordinate)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double SplitViewInterface::displayToWorld           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>coordinate</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
convert display coordinates to world coordinates (double from 0.0 - 1.0) 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00388">388</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00109">origImage</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00389"></a>00389 {
<a name="l00390"></a>00390   <span class="keywordflow">if</span>( <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() &gt; <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() )
<a name="l00391"></a>00391   { <span class="keywordflow">return</span> ((<span class="keywordtype">double</span>) (coordinate+1))/<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width(); }
<a name="l00392"></a>00392   <span class="keywordflow">else</span>
<a name="l00393"></a>00393   { <span class="keywordflow">return</span> ((<span class="keywordtype">double</span>) (coordinate+1))/<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height(); }
<a name="l00394"></a>00394 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="7139f30dcf4faa4afa1fa837334a088d"></a><!-- doxytag: member="SplitViewInterface::getOrigImage" ref="7139f30dcf4faa4afa1fa837334a088d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage &amp; SplitViewInterface::getOrigImage           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
returns orig image object 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00412">412</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00109">origImage</a>.</p>

<p>Referenced by <a class="el" href="histogramEditor_8cpp_source.html#l00282">HistogramEditor::generateAdjustedPreviewImage()</a>, and <a class="el" href="grainEditor_8cpp_source.html#l00249">GrainEditor::generateAdjustedPreviewImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00413"></a>00413 { <span class="keywordflow">return</span> <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="496e2cbbe902e843b6e6637a74198b4b"></a><!-- doxytag: member="SplitViewInterface::minimumSizeHint" ref="496e2cbbe902e843b6e6637a74198b4b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize SplitViewInterface::minimumSizeHint           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented in <a class="el" href="classScaledPreviewInterface.html#0c43655b1865dd28675b5f6c91ad923a">ScaledPreviewInterface</a>.</p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00404">404</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00093">adjustedString</a>, <a class="el" href="splitViewInterface_8h_source.html#l00092">originalString</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00020">TEXT_BACKGROUND_MARGIN</a>, and <a class="el" href="splitViewInterface_8h_source.html#l00096">textFont</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00405"></a>00405 {
<a name="l00406"></a>00406   QFontMetrics fm( <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a> );
<a name="l00407"></a>00407   <span class="keywordtype">int</span> w = 5*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> + fm.width(<a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a>) + fm.width(<a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a>);
<a name="l00408"></a>00408   <span class="keywordtype">int</span> h = 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> + fm.height(); 
<a name="l00409"></a>00409   <span class="keywordflow">return</span> QSize( w, h );
<a name="l00410"></a>00410 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="d3fba3ec66cfe1470d5d73df53caf806"></a><!-- doxytag: member="SplitViewInterface::mouseMoveEvent" ref="d3fba3ec66cfe1470d5d73df53caf806" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::mouseMoveEvent           </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00322">322</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00093">adjustedString</a>, <a class="el" href="splitViewInterface_8h_source.html#l00106">currentMouseShape</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00388">displayToWorld()</a>, <a class="el" href="splitViewInterface_8h_source.html#l00033">DRAG_SPLIT</a>, <a class="el" href="splitViewInterface_8h_source.html#l00099">dragOffset</a>, <a class="el" href="cursors_8cpp_source.html#l00052">getCursor()</a>, <a class="el" href="blur_8cpp_source.html#l00079">height</a>, <a class="el" href="splitViewInterface_8h_source.html#l00102">mouseMode</a>, <a class="el" href="cursors_8h_source.html#l00020">MOVE_HOR_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00021">MOVE_VERT_CURSOR</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>, <a class="el" href="splitViewInterface_8h_source.html#l00034">NO_EFFECT_ON_SPLIT</a>, <a class="el" href="splitViewInterface_8h_source.html#l00109">origImage</a>, <a class="el" href="splitViewInterface_8h_source.html#l00092">originalString</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00020">TEXT_BACKGROUND_MARGIN</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00021">TEXT_INSET</a>, <a class="el" href="splitViewInterface_8h_source.html#l00096">textFont</a>, and <a class="el" href="blur_8cpp_source.html#l00079">width</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00323"></a>00323 {
<a name="l00324"></a>00324   <span class="comment">//if not dragging split point update mosue cursor</span>
<a name="l00325"></a>00325   <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#052c501434ed651fbe63ca9862fc189c" title="current mouse move mode">mouseMode</a> == <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a>)
<a name="l00326"></a>00326   {
<a name="l00327"></a>00327     <span class="keywordflow">if</span>( !<a class="code" href="classSplitViewInterface.html#13523565edbd383096953700712c9f87" title="determines if mouse is near split point">nearSplitPoint</a>(e-&gt;pos()) &amp;&amp; <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> == <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee211c03d26e0b3da969cfe8d05f6dc64374">DRAG_SPLIT</a> )
<a name="l00328"></a>00328     { 
<a name="l00329"></a>00329       <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a>;
<a name="l00330"></a>00330       setCursor( Qt::ArrowCursor ); 
<a name="l00331"></a>00331     }
<a name="l00332"></a>00332     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classSplitViewInterface.html#13523565edbd383096953700712c9f87" title="determines if mouse is near split point">nearSplitPoint</a>(e-&gt;pos()) &amp;&amp; <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> == <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a> )
<a name="l00333"></a>00333     {
<a name="l00334"></a>00334       <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee211c03d26e0b3da969cfe8d05f6dc64374">DRAG_SPLIT</a>;
<a name="l00335"></a>00335       <span class="keywordflow">if</span>( <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() &gt; <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() )
<a name="l00336"></a>00336       {
<a name="l00337"></a>00337         setCursor( <a class="code" href="cursors_8cpp.html#8d89fd03db7e35090175ec42e8af8f3f">getCursor</a>(<a class="code" href="cursors_8h.html#384a874a43b4618a4c20506728f1c6478b659aefdfad1b15a9e9dcbd7c524f25">MOVE_HOR_CURSOR</a>) );
<a name="l00338"></a>00338       }
<a name="l00339"></a>00339       <span class="keywordflow">else</span>
<a name="l00340"></a>00340       {
<a name="l00341"></a>00341         setCursor( <a class="code" href="cursors_8cpp.html#8d89fd03db7e35090175ec42e8af8f3f">getCursor</a>(<a class="code" href="cursors_8h.html#384a874a43b4618a4c20506728f1c64775a322d3eb727e1c69e4a945946ad927">MOVE_VERT_CURSOR</a>) );
<a name="l00342"></a>00342       }
<a name="l00343"></a>00343     }
<a name="l00344"></a>00344 
<a name="l00345"></a>00345     <span class="keywordflow">return</span>;
<a name="l00346"></a>00346   }
<a name="l00347"></a>00347   
<a name="l00348"></a>00348   <span class="comment">//compute painting offset, get important mouse</span>
<a name="l00349"></a>00349   <span class="comment">//coordinate and clamp to valid range</span>
<a name="l00350"></a>00350   QFontMetrics fm( <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a> );
<a name="l00351"></a>00351   <span class="keywordtype">int</span> paintingOffset;
<a name="l00352"></a>00352   <span class="keywordtype">int</span> mousePos;
<a name="l00353"></a>00353   <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() &gt; <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height())
<a name="l00354"></a>00354   {
<a name="l00355"></a>00355     paintingOffset = (<a class="code" href="blur_8cpp.html#2474a5474cbff19523a51eb1de01cda4">width</a>() - <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()) / 2;
<a name="l00356"></a>00356     mousePos = e-&gt;pos().x();
<a name="l00357"></a>00357     mousePos = QMAX( mousePos, paintingOffset + 4*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> + fm.width(<a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a>) );
<a name="l00358"></a>00358     mousePos = QMIN( mousePos, paintingOffset + <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() - 
<a name="l00359"></a>00359                      fm.width(<a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a>) - 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - 2*<a class="code" href="splitViewInterface_8cpp.html#00eea598271066d754629bdffff8cc2f">TEXT_INSET</a>);
<a name="l00360"></a>00360   }
<a name="l00361"></a>00361   <span class="keywordflow">else</span>
<a name="l00362"></a>00362   {
<a name="l00363"></a>00363     paintingOffset = (<a class="code" href="blur_8cpp.html#d12fc34ce789bce6c8a05d8a17138534">height</a>() - <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height()) / 2;
<a name="l00364"></a>00364     mousePos = e-&gt;pos().y();
<a name="l00365"></a>00365     mousePos = QMAX( mousePos, paintingOffset + 4*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> + fm.height() );
<a name="l00366"></a>00366     mousePos = QMIN( mousePos, paintingOffset + <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() - 
<a name="l00367"></a>00367                      fm.height() - 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - 2*<a class="code" href="splitViewInterface_8cpp.html#00eea598271066d754629bdffff8cc2f">TEXT_INSET</a>);
<a name="l00368"></a>00368   }
<a name="l00369"></a>00369   
<a name="l00370"></a>00370   <span class="comment">//update location of split point and repaint</span>
<a name="l00371"></a>00371   <a class="code" href="classSplitViewInterface.html#70410de4aa824dce6106c2de4966d94a" title="x (or y) coordinate of split between drawn adjusted and original images">dragOffset</a> = <a class="code" href="classSplitViewInterface.html#1c0403caddd886861b62e1bb32383153" title="convert display coordinates to world coordinates (double from 0.0 - 1.0)">displayToWorld</a>(mousePos - paintingOffset);   
<a name="l00372"></a>00372   repaint(<span class="keyword">false</span>);  
<a name="l00373"></a>00373 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="391917837f5b0ef44c6e0c189373b0e2"></a><!-- doxytag: member="SplitViewInterface::mousePressEvent" ref="391917837f5b0ef44c6e0c189373b0e2" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::mousePressEvent           </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00315">315</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00033">DRAG_SPLIT</a>, <a class="el" href="splitViewInterface_8h_source.html#l00102">mouseMode</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00316"></a>00316 { 
<a name="l00317"></a>00317   <span class="comment">//if within threshold of split point enter drag split mode</span>
<a name="l00318"></a>00318   <span class="keywordflow">if</span>( <a class="code" href="classSplitViewInterface.html#13523565edbd383096953700712c9f87" title="determines if mouse is near split point">nearSplitPoint</a>(e-&gt;pos()) )  
<a name="l00319"></a>00319     <a class="code" href="classSplitViewInterface.html#052c501434ed651fbe63ca9862fc189c" title="current mouse move mode">mouseMode</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee211c03d26e0b3da969cfe8d05f6dc64374">DRAG_SPLIT</a>;
<a name="l00320"></a>00320 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="bed0a828f68a935dc257f8ebf1f1dbfb"></a><!-- doxytag: member="SplitViewInterface::mouseReleaseEvent" ref="bed0a828f68a935dc257f8ebf1f1dbfb" args="(QMouseEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::mouseReleaseEvent           </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00375">375</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00106">currentMouseShape</a>, <a class="el" href="splitViewInterface_8h_source.html#l00033">DRAG_SPLIT</a>, <a class="el" href="splitViewInterface_8h_source.html#l00102">mouseMode</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>, and <a class="el" href="splitViewInterface_8h_source.html#l00034">NO_EFFECT_ON_SPLIT</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00376"></a>00376 {
<a name="l00377"></a>00377   <span class="comment">//disable dragging</span>
<a name="l00378"></a>00378   <a class="code" href="classSplitViewInterface.html#052c501434ed651fbe63ca9862fc189c" title="current mouse move mode">mouseMode</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a>;  
<a name="l00379"></a>00379 
<a name="l00380"></a>00380   <span class="comment">//update mouse cursor if necessary</span>
<a name="l00381"></a>00381   <span class="keywordflow">if</span>( !<a class="code" href="classSplitViewInterface.html#13523565edbd383096953700712c9f87" title="determines if mouse is near split point">nearSplitPoint</a>(e-&gt;pos()) &amp;&amp; <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> == <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee211c03d26e0b3da969cfe8d05f6dc64374">DRAG_SPLIT</a> )
<a name="l00382"></a>00382   { 
<a name="l00383"></a>00383     <a class="code" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e" title="current mouse shape.">currentMouseShape</a> = <a class="code" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee219dbeea1d13c0acfaf9a9a3d218e64e95">NO_EFFECT_ON_SPLIT</a>;
<a name="l00384"></a>00384     setCursor( Qt::ArrowCursor ); 
<a name="l00385"></a>00385   }  
<a name="l00386"></a>00386 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="13523565edbd383096953700712c9f87"></a><!-- doxytag: member="SplitViewInterface::nearSplitPoint" ref="13523565edbd383096953700712c9f87" args="(QPoint p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SplitViewInterface::nearSplitPoint           </td>
          <td>(</td>
          <td class="paramtype">QPoint&nbsp;</td>
          <td class="paramname"> <em>p</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
determines if mouse is near split point 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00287">287</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="histogramInterface_8cpp_source.html#l00028">DRAG_THRESHOLD</a>, <a class="el" href="splitViewInterface_8h_source.html#l00099">dragOffset</a>, <a class="el" href="blur_8cpp_source.html#l00079">height</a>, <a class="el" href="splitViewInterface_8h_source.html#l00109">origImage</a>, <a class="el" href="splitViewInterface_8h_source.html#l00086">previewMode</a>, <a class="el" href="splitViewInterface_8h_source.html#l00024">SPLIT_VIEW</a>, <a class="el" href="blur_8cpp_source.html#l00079">width</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00396">worldToDisplay()</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00315">mousePressEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00375">mouseReleaseEvent()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00288"></a>00288 {
<a name="l00289"></a>00289   <span class="comment">//always false if not in split view mode</span>
<a name="l00290"></a>00290   <span class="keywordflow">if</span>( <a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> != <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a> )
<a name="l00291"></a>00291     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00292"></a>00292   
<a name="l00293"></a>00293   <span class="comment">//compute painting offset and get important mouse coordinate</span>
<a name="l00294"></a>00294   <span class="keywordtype">int</span> paintingOffset;
<a name="l00295"></a>00295   <span class="keywordtype">int</span> mousePos;
<a name="l00296"></a>00296   <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() &gt; <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height())
<a name="l00297"></a>00297   {
<a name="l00298"></a>00298     paintingOffset = (<a class="code" href="blur_8cpp.html#2474a5474cbff19523a51eb1de01cda4">width</a>() - <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()) / 2;
<a name="l00299"></a>00299     mousePos = p.x();
<a name="l00300"></a>00300   }
<a name="l00301"></a>00301   <span class="keywordflow">else</span>
<a name="l00302"></a>00302   {
<a name="l00303"></a>00303     paintingOffset = (<a class="code" href="blur_8cpp.html#d12fc34ce789bce6c8a05d8a17138534">height</a>() - <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height()) / 2;
<a name="l00304"></a>00304     mousePos = p.y();
<a name="l00305"></a>00305   }
<a name="l00306"></a>00306   
<a name="l00307"></a>00307   <span class="comment">//convert drag offset to display coordinates</span>
<a name="l00308"></a>00308   <span class="keywordtype">int</span> displayCoor = <a class="code" href="classSplitViewInterface.html#0baba2eccd78c5117bfd4ba60ec3f280" title="convert world coordinates to display coordinates (int from 0 to origImage width-1)...">worldToDisplay</a>( <a class="code" href="classSplitViewInterface.html#70410de4aa824dce6106c2de4966d94a" title="x (or y) coordinate of split between drawn adjusted and original images">dragOffset</a>) + paintingOffset;
<a name="l00309"></a>00309   
<a name="l00310"></a>00310   <span class="comment">//check if within threshold of split point</span>
<a name="l00311"></a>00311   <span class="keywordflow">return</span> ( mousePos &gt; displayCoor - <a class="code" href="histogramInterface_8cpp.html#dbab52be17168e6914dd8ab79ce5fcd2">DRAG_THRESHOLD</a> &amp;&amp;
<a name="l00312"></a>00312            mousePos &lt; displayCoor + <a class="code" href="histogramInterface_8cpp.html#dbab52be17168e6914dd8ab79ce5fcd2">DRAG_THRESHOLD</a>);
<a name="l00313"></a>00313 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="5c72cd93433f838d6495d84d1435d8cd"></a><!-- doxytag: member="SplitViewInterface::paintEvent" ref="5c72cd93433f838d6495d84d1435d8cd" args="(QPaintEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::paintEvent           </td>
          <td>(</td>
          <td class="paramtype">QPaintEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00058">58</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00026">ADJUSTED_IMAGE</a>, <a class="el" href="splitViewInterface_8h_source.html#l00112">adjustedImage</a>, <a class="el" href="splitViewInterface_8h_source.html#l00093">adjustedString</a>, <a class="el" href="blur_8cpp_source.html#l00080">buffer</a>, <a class="el" href="splitViewInterface_8h_source.html#l00099">dragOffset</a>, <a class="el" href="splitViewInterface_8h_source.html#l00089">forceDrawLabel</a>, <a class="el" href="blur_8cpp_source.html#l00079">height</a>, <a class="el" href="splitViewInterface_8h_source.html#l00027">INV_SPLIT_VIEW</a>, <a class="el" href="splitViewInterface_8h_source.html#l00109">origImage</a>, <a class="el" href="splitViewInterface_8h_source.html#l00025">ORIGINAL_IMAGE</a>, <a class="el" href="splitViewInterface_8h_source.html#l00092">originalString</a>, <a class="el" href="splitViewInterface_8h_source.html#l00086">previewMode</a>, <a class="el" href="splitViewInterface_8h_source.html#l00024">SPLIT_VIEW</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00020">TEXT_BACKGROUND_MARGIN</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00021">TEXT_INSET</a>, <a class="el" href="splitViewInterface_8h_source.html#l00096">textFont</a>, <a class="el" href="blur_8cpp_source.html#l00079">width</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00396">worldToDisplay()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00059"></a>00059 { 
<a name="l00060"></a>00060   <span class="comment">//if orig image not setup yet then return immediately</span>
<a name="l00061"></a>00061   <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.isNull()) { <span class="keywordflow">return</span>; }
<a name="l00062"></a>00062 
<a name="l00063"></a>00063   <span class="comment">//if viewing adjusted or split view and adjusted image is null bail  </span>
<a name="l00064"></a>00064   <span class="keywordflow">if</span>( 
<a name="l00065"></a>00065       (<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80e5a5e7966f92d18ce66136439e1303bd">ADJUSTED_IMAGE</a> || <a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a> ) &amp;&amp;
<a name="l00066"></a>00066       <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>.isNull() 
<a name="l00067"></a>00067     )
<a name="l00068"></a>00068   { <span class="keywordflow">return</span>; }
<a name="l00069"></a>00069   
<a name="l00070"></a>00070   <span class="comment">//create buffer to draw in</span>
<a name="l00071"></a>00071   QPixmap <a class="code" href="blur_8cpp.html#fa761c0753ecc94346e155a39bd9ed9c">buffer</a>( size() );
<a name="l00072"></a>00072   
<a name="l00073"></a>00073   <span class="comment">//create a painter pointing to the buffer</span>
<a name="l00074"></a>00074   QPainter bufferPainter( &amp;<a class="code" href="blur_8cpp.html#fa761c0753ecc94346e155a39bd9ed9c">buffer</a> );
<a name="l00075"></a>00075   
<a name="l00076"></a>00076   <span class="comment">//turn off clipping to make painting operations faster</span>
<a name="l00077"></a>00077   bufferPainter.setClipping(<span class="keyword">false</span>);
<a name="l00078"></a>00078 
<a name="l00079"></a>00079   <span class="comment">//initialize buffer with background brush</span>
<a name="l00080"></a>00080   bufferPainter.fillRect( <a class="code" href="blur_8cpp.html#fa761c0753ecc94346e155a39bd9ed9c">buffer</a>.rect(), backgroundBrush() );
<a name="l00081"></a>00081 
<a name="l00082"></a>00082   <span class="comment">//setup pen color</span>
<a name="l00083"></a>00083   QPen pen;
<a name="l00084"></a>00084   pen.setStyle( Qt::SolidLine );
<a name="l00085"></a>00085   pen.setColor( white );
<a name="l00086"></a>00086   pen.setWidth( 2 );
<a name="l00087"></a>00087   bufferPainter.setPen( pen);  
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <span class="keywordtype">int</span> xOffset = (<a class="code" href="blur_8cpp.html#2474a5474cbff19523a51eb1de01cda4">width</a>() - <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()) / 2;
<a name="l00090"></a>00090   <span class="keywordtype">int</span> yOffset = (<a class="code" href="blur_8cpp.html#d12fc34ce789bce6c8a05d8a17138534">height</a>() - <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height()) / 2;
<a name="l00091"></a>00091 
<a name="l00092"></a>00092   <span class="comment">//setup font metrics</span>
<a name="l00093"></a>00093   bufferPainter.setFont( <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a> );
<a name="l00094"></a>00094   QFontMetrics fm( <a class="code" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6" title="Larger font used for drawing text.">textFont</a> );
<a name="l00095"></a>00095 
<a name="l00096"></a>00096   <span class="comment">//paint the adjusted image</span>
<a name="l00097"></a>00097   <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80e5a5e7966f92d18ce66136439e1303bd">ADJUSTED_IMAGE</a>)
<a name="l00098"></a>00098   {
<a name="l00099"></a>00099     bufferPainter.drawImage( QPoint(xOffset, yOffset), <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a> );
<a name="l00100"></a>00100 
<a name="l00101"></a>00101     <span class="comment">//"Adjusted" label</span>
<a name="l00102"></a>00102     <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47" title="Draw original/adjusted lables outside of split view mode?">forceDrawLabel</a>)
<a name="l00103"></a>00103     {
<a name="l00104"></a>00104       <span class="keywordtype">int</span> x = xOffset + (<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()-fm.width(<a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a>))/2;
<a name="l00105"></a>00105       <span class="keywordtype">int</span> y = yOffset + fm.ascent() + <a class="code" href="splitViewInterface_8cpp.html#00eea598271066d754629bdffff8cc2f">TEXT_INSET</a>;
<a name="l00106"></a>00106     
<a name="l00107"></a>00107       bufferPainter.fillRect( QRect(x - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00108"></a>00108                                     y - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - fm.ascent(), 
<a name="l00109"></a>00109                                     fm.width(<a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a>) + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00110"></a>00110                                     fm.height() + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>),
<a name="l00111"></a>00111                               QBrush(darkGray) );    
<a name="l00112"></a>00112       bufferPainter.drawText( x, y,
<a name="l00113"></a>00113                               <a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a> );    
<a name="l00114"></a>00114     }
<a name="l00115"></a>00115   }
<a name="l00116"></a>00116   <span class="comment">//paint the original image</span>
<a name="l00117"></a>00117   <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab804b0845a3961eed793f478ae334aad65d">ORIGINAL_IMAGE</a>)
<a name="l00118"></a>00118   {
<a name="l00119"></a>00119     bufferPainter.drawImage( QPoint(xOffset, yOffset), <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a> );
<a name="l00120"></a>00120 
<a name="l00121"></a>00121     <span class="comment">//"Original" label</span>
<a name="l00122"></a>00122     <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47" title="Draw original/adjusted lables outside of split view mode?">forceDrawLabel</a>)
<a name="l00123"></a>00123     {
<a name="l00124"></a>00124       <span class="keywordtype">int</span> x = xOffset + (<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()-fm.width(<a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a>))/2;
<a name="l00125"></a>00125       <span class="keywordtype">int</span> y = yOffset + fm.ascent() + <a class="code" href="splitViewInterface_8cpp.html#00eea598271066d754629bdffff8cc2f">TEXT_INSET</a>;
<a name="l00126"></a>00126     
<a name="l00127"></a>00127       bufferPainter.fillRect( QRect(x - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00128"></a>00128                                     y - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - fm.ascent(), 
<a name="l00129"></a>00129                                     fm.width(<a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a>) + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00130"></a>00130                                     fm.height() + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>),
<a name="l00131"></a>00131                               QBrush(darkGray) );    
<a name="l00132"></a>00132       bufferPainter.drawText( x, y,
<a name="l00133"></a>00133                               <a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a> );    
<a name="l00134"></a>00134     }
<a name="l00135"></a>00135   }
<a name="l00136"></a>00136   <span class="comment">//if using split view also draw line down center and original image on left</span>
<a name="l00137"></a>00137   <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a> ||
<a name="l00138"></a>00138           <a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80f94a0ed6eca377f0937a43f5b9f29c9d">INV_SPLIT_VIEW</a> )
<a name="l00139"></a>00139   {
<a name="l00140"></a>00140     <span class="comment">//determine what left/right or top/bottom strings are</span>
<a name="l00141"></a>00141     QString label1, label2;
<a name="l00142"></a>00142     <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a>)
<a name="l00143"></a>00143     {
<a name="l00144"></a>00144       label1 = <a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a>;
<a name="l00145"></a>00145       label2 = <a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a>;
<a name="l00146"></a>00146     }
<a name="l00147"></a>00147     <span class="keywordflow">else</span>
<a name="l00148"></a>00148     {
<a name="l00149"></a>00149       label2 = <a class="code" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e" title="Original and adjusted strings.">originalString</a>;
<a name="l00150"></a>00150       label1 = <a class="code" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">adjustedString</a>;
<a name="l00151"></a>00151     }
<a name="l00152"></a>00152     
<a name="l00153"></a>00153     <span class="comment">//find split point in screen coordinates</span>
<a name="l00154"></a>00154     <span class="keywordtype">int</span> halfWay = <a class="code" href="classSplitViewInterface.html#0baba2eccd78c5117bfd4ba60ec3f280" title="convert world coordinates to display coordinates (int from 0 to origImage width-1)...">worldToDisplay</a>( <a class="code" href="classSplitViewInterface.html#70410de4aa824dce6106c2de4966d94a" title="x (or y) coordinate of split between drawn adjusted and original images">dragOffset</a> );
<a name="l00155"></a>00155     
<a name="l00156"></a>00156     <span class="comment">//paint the original image</span>
<a name="l00157"></a>00157     bufferPainter.drawImage( QPoint(xOffset, yOffset), <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a> );
<a name="l00158"></a>00158 
<a name="l00159"></a>00159     <span class="comment">//-------</span>
<a name="l00160"></a>00160     <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() &gt; <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() )
<a name="l00161"></a>00161     {    
<a name="l00162"></a>00162       <span class="comment">//paint the adjusted image</span>
<a name="l00163"></a>00163       <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a>)
<a name="l00164"></a>00164       {
<a name="l00165"></a>00165         bufferPainter.drawImage( xOffset + halfWay, 
<a name="l00166"></a>00166                                  yOffset,
<a name="l00167"></a>00167                                  <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>,
<a name="l00168"></a>00168                                  halfWay,0,
<a name="l00169"></a>00169                                  <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() - halfWay,
<a name="l00170"></a>00170                                  <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() );  
<a name="l00171"></a>00171       }
<a name="l00172"></a>00172       <span class="keywordflow">else</span>
<a name="l00173"></a>00173       {
<a name="l00174"></a>00174         bufferPainter.drawImage( xOffset, 
<a name="l00175"></a>00175                                  yOffset,
<a name="l00176"></a>00176                                  <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>,
<a name="l00177"></a>00177                                  0,0,
<a name="l00178"></a>00178                                  halfWay,
<a name="l00179"></a>00179                                  <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() );  
<a name="l00180"></a>00180       }
<a name="l00181"></a>00181 
<a name="l00182"></a>00182       
<a name="l00183"></a>00183       <span class="comment">//paint white line</span>
<a name="l00184"></a>00184       bufferPainter.drawLine( xOffset + halfWay,
<a name="l00185"></a>00185                               yOffset,
<a name="l00186"></a>00186                               xOffset + halfWay,
<a name="l00187"></a>00187                               yOffset + <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() );
<a name="l00188"></a>00188 
<a name="l00189"></a>00189       <span class="comment">//Left label</span>
<a name="l00190"></a>00190       <span class="keywordtype">int</span> x = xOffset + (halfWay-fm.width(label1))/2;
<a name="l00191"></a>00191       <span class="keywordtype">int</span> y = yOffset + fm.ascent() + <a class="code" href="splitViewInterface_8cpp.html#00eea598271066d754629bdffff8cc2f">TEXT_INSET</a>;
<a name="l00192"></a>00192       
<a name="l00193"></a>00193       bufferPainter.fillRect( QRect(x - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00194"></a>00194                                     y - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - fm.ascent(), 
<a name="l00195"></a>00195                                     fm.width(label1) + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00196"></a>00196                                     fm.height() + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>),
<a name="l00197"></a>00197                               QBrush(darkGray) );    
<a name="l00198"></a>00198       bufferPainter.drawText( x, y,
<a name="l00199"></a>00199                               label1 );    
<a name="l00200"></a>00200 
<a name="l00201"></a>00201       <span class="comment">//Right label</span>
<a name="l00202"></a>00202       x = xOffset + halfWay + (<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() - halfWay - fm.width(label2))/2;
<a name="l00203"></a>00203       
<a name="l00204"></a>00204       bufferPainter.fillRect( QRect(x - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00205"></a>00205                                     y - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - fm.ascent(), 
<a name="l00206"></a>00206                                     fm.width(label2) + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00207"></a>00207                                     fm.height() + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>),
<a name="l00208"></a>00208                               QBrush(darkGray) );    
<a name="l00209"></a>00209       bufferPainter.drawText( x, y,
<a name="l00210"></a>00210                               label2 );
<a name="l00211"></a>00211     }
<a name="l00212"></a>00212     <span class="comment">//-------</span>
<a name="l00213"></a>00213     <span class="keywordflow">else</span>
<a name="l00214"></a>00214     {
<a name="l00215"></a>00215       <span class="comment">//paint the adjusted image</span>
<a name="l00216"></a>00216       <span class="keywordflow">if</span>(<a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> == <a class="code" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab803a0b7989f3e36d5b221aac9fc316b79a">SPLIT_VIEW</a>)
<a name="l00217"></a>00217       {
<a name="l00218"></a>00218         bufferPainter.drawImage( xOffset, 
<a name="l00219"></a>00219                                  yOffset + halfWay,
<a name="l00220"></a>00220                                  <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>,
<a name="l00221"></a>00221                                  0,halfWay,
<a name="l00222"></a>00222                                  <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width(),
<a name="l00223"></a>00223                                  <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height()-halfWay );  
<a name="l00224"></a>00224       }
<a name="l00225"></a>00225       <span class="keywordflow">else</span>
<a name="l00226"></a>00226       {
<a name="l00227"></a>00227         bufferPainter.drawImage( xOffset, 
<a name="l00228"></a>00228                                  yOffset,
<a name="l00229"></a>00229                                  <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>,
<a name="l00230"></a>00230                                  0,0,
<a name="l00231"></a>00231                                  <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width(),
<a name="l00232"></a>00232                                  halfWay );  
<a name="l00233"></a>00233       }
<a name="l00234"></a>00234       
<a name="l00235"></a>00235       <span class="comment">//paint white line</span>
<a name="l00236"></a>00236       bufferPainter.drawLine( xOffset,
<a name="l00237"></a>00237                               yOffset + halfWay,
<a name="l00238"></a>00238                               xOffset + <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width(),
<a name="l00239"></a>00239                               yOffset + halfWay );
<a name="l00240"></a>00240 
<a name="l00241"></a>00241       <span class="comment">//Top label</span>
<a name="l00242"></a>00242       <span class="keywordtype">int</span> x = xOffset + (<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()-fm.width(label1))/2;
<a name="l00243"></a>00243       <span class="keywordtype">int</span> y = yOffset + fm.ascent() + <a class="code" href="splitViewInterface_8cpp.html#00eea598271066d754629bdffff8cc2f">TEXT_INSET</a>;
<a name="l00244"></a>00244       
<a name="l00245"></a>00245       bufferPainter.fillRect( QRect(x - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00246"></a>00246                                     y - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - fm.ascent(), 
<a name="l00247"></a>00247                                     fm.width(label1) + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00248"></a>00248                                     fm.height() + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>),
<a name="l00249"></a>00249                               QBrush(darkGray) );    
<a name="l00250"></a>00250       bufferPainter.drawText( x, y,
<a name="l00251"></a>00251                               label1 );    
<a name="l00252"></a>00252       
<a name="l00253"></a>00253       <span class="comment">//Bottom label</span>
<a name="l00254"></a>00254       x = xOffset + (<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width()-fm.width(label2))/2;
<a name="l00255"></a>00255       y = yOffset + halfWay + fm.height();
<a name="l00256"></a>00256       
<a name="l00257"></a>00257       bufferPainter.fillRect( QRect(x - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00258"></a>00258                                     y - <a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a> - fm.ascent(), 
<a name="l00259"></a>00259                                     fm.width(label2) + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>, 
<a name="l00260"></a>00260                                     fm.height() + 2*<a class="code" href="splitViewInterface_8cpp.html#e5ef7be47cc2a614cdc0bd8c648a9beb">TEXT_BACKGROUND_MARGIN</a>),
<a name="l00261"></a>00261                               QBrush(darkGray) );    
<a name="l00262"></a>00262       bufferPainter.drawText( x, y,
<a name="l00263"></a>00263                               label2 );
<a name="l00264"></a>00264     }
<a name="l00265"></a>00265     <span class="comment">//-------    </span>
<a name="l00266"></a>00266   }
<a name="l00267"></a>00267 
<a name="l00268"></a>00268   <span class="comment">//end painter  </span>
<a name="l00269"></a>00269   bufferPainter.end();
<a name="l00270"></a>00270   
<a name="l00271"></a>00271   <span class="comment">//blit buffer to screen</span>
<a name="l00272"></a>00272   bitBlt( <span class="keyword">this</span>,
<a name="l00273"></a>00273           e-&gt;rect().x(), e-&gt;rect().y(),
<a name="l00274"></a>00274           &amp;<a class="code" href="blur_8cpp.html#fa761c0753ecc94346e155a39bd9ed9c">buffer</a>, 
<a name="l00275"></a>00275           e-&gt;rect().x(), e-&gt;rect().y(),
<a name="l00276"></a>00276           e-&gt;rect().width(), e-&gt;rect().height() );
<a name="l00277"></a>00277 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="9d7c7229f759ea139d01f0807c10f632"></a><!-- doxytag: member="SplitViewInterface::resizeEvent" ref="9d7c7229f759ea139d01f0807c10f632" args="(QResizeEvent *)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SplitViewInterface::resizeEvent           </td>
          <td>(</td>
          <td class="paramtype">QResizeEvent *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Implemented in <a class="el" href="classPanningPreviewInterface.html#2895eb5c0614dfaebf3bc8d69ac3e989">PanningPreviewInterface</a>, and <a class="el" href="classScaledPreviewInterface.html#4b4cad80179680e463fb744ad96b7044">ScaledPreviewInterface</a>.</p>

</div>
</div><p>
<a class="anchor" name="d7328bc93d69a28310a23d9294ec29d7"></a><!-- doxytag: member="SplitViewInterface::setAdjustedImage" ref="d7328bc93d69a28310a23d9294ec29d7" args="(QImage adjustedImage)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::setAdjustedImage           </td>
          <td>(</td>
          <td class="paramtype">QImage&nbsp;</td>
          <td class="paramname"> <em>adjustedImage</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
sets adjusted image and repaints 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00423">423</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>Referenced by <a class="el" href="histogramEditor_8cpp_source.html#l00282">HistogramEditor::generateAdjustedPreviewImage()</a>, and <a class="el" href="grainEditor_8cpp_source.html#l00249">GrainEditor::generateAdjustedPreviewImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00424"></a>00424 {
<a name="l00425"></a>00425   this-&gt;<a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a> = <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>;
<a name="l00426"></a>00426   repaint(<span class="keyword">false</span>);
<a name="l00427"></a>00427 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="7c60276f4afa1fa1fc3dfc201b6311aa"></a><!-- doxytag: member="SplitViewInterface::setImages" ref="7c60276f4afa1fa1fc3dfc201b6311aa" args="(QImage origImage, QImage adjustedImage)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::setImages           </td>
          <td>(</td>
          <td class="paramtype">QImage&nbsp;</td>
          <td class="paramname"> <em>origImage</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QImage&nbsp;</td>
          <td class="paramname"> <em>adjustedImage</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00415">415</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>Referenced by <a class="el" href="panningPreviewInterface_8cpp_source.html#l00105">PanningPreviewInterface::generateOrigImage()</a>, and <a class="el" href="scaledPreviewInterface_8cpp_source.html#l00033">ScaledPreviewInterface::resizeEvent()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00417"></a>00417 {
<a name="l00418"></a>00418   this-&gt;<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a> = <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>;
<a name="l00419"></a>00419   this-&gt;<a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a> = <a class="code" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c" title="Scaled adjusted image.">adjustedImage</a>;
<a name="l00420"></a>00420   repaint(<span class="keyword">false</span>);
<a name="l00421"></a>00421 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="e6cd0c9f1fb64b0313063f59aa748943"></a><!-- doxytag: member="SplitViewInterface::setPreviewMode" ref="e6cd0c9f1fb64b0313063f59aa748943" args="(PREVIEW_MODE mode, bool forceDrawLabel=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SplitViewInterface::setPreviewMode           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80">PREVIEW_MODE</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>forceDrawLabel</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets preview mode. 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00279">279</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00086">previewMode</a>.</p>

<p>Referenced by <a class="el" href="histogramEditor_8cpp_source.html#l00392">HistogramEditor::keyPressEvent()</a>, <a class="el" href="grainEditor_8cpp_source.html#l00325">GrainEditor::keyPressEvent()</a>, <a class="el" href="histogramEditor_8cpp_source.html#l00407">HistogramEditor::keyReleaseEvent()</a>, <a class="el" href="grainEditor_8cpp_source.html#l00340">GrainEditor::keyReleaseEvent()</a>, <a class="el" href="histogramEditor_8cpp_source.html#l00244">HistogramEditor::selectPreviewImageType()</a>, and <a class="el" href="grainEditor_8cpp_source.html#l00235">GrainEditor::selectPreviewImageType()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00280"></a>00280 {
<a name="l00281"></a>00281   <span class="comment">//set mode and repaint</span>
<a name="l00282"></a>00282   <a class="code" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22" title="Current display setting (adjusted or split screen).">previewMode</a> = mode;
<a name="l00283"></a>00283   this-&gt;<a class="code" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47" title="Draw original/adjusted lables outside of split view mode?">forceDrawLabel</a> = <a class="code" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47" title="Draw original/adjusted lables outside of split view mode?">forceDrawLabel</a>;
<a name="l00284"></a>00284   repaint(<span class="keyword">false</span>);
<a name="l00285"></a>00285 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="b66146bb7001efb0cf8511a0d0b5a664"></a><!-- doxytag: member="SplitViewInterface::sizeHint" ref="b66146bb7001efb0cf8511a0d0b5a664" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual QSize SplitViewInterface::sizeHint           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Implemented in <a class="el" href="classPanningPreviewInterface.html#181e8b15629fb913e41d7476df90745e">PanningPreviewInterface</a>, and <a class="el" href="classScaledPreviewInterface.html#7331eb3f50d9c94119ac54921b53e0b4">ScaledPreviewInterface</a>.</p>

</div>
</div><p>
<a class="anchor" name="0baba2eccd78c5117bfd4ba60ec3f280"></a><!-- doxytag: member="SplitViewInterface::worldToDisplay" ref="0baba2eccd78c5117bfd4ba60ec3f280" args="(double coordinate)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SplitViewInterface::worldToDisplay           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>coordinate</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
convert world coordinates to display coordinates (int from 0 to origImage width-1) 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8cpp_source.html#l00396">396</a> of file <a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a>.</p>

<p>References <a class="el" href="splitViewInterface_8h_source.html#l00109">origImage</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00397"></a>00397 {
<a name="l00398"></a>00398   <span class="keywordflow">if</span>( <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() &gt; <a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height() )
<a name="l00399"></a>00399   { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>) (coordinate*(<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.width() -1) ); }
<a name="l00400"></a>00400   <span class="keywordflow">else</span>
<a name="l00401"></a>00401   { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>) (coordinate*(<a class="code" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304" title="Scaled original image.">origImage</a>.height()-1) ); }
<a name="l00402"></a>00402 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="51923395c2a22da6ab1808d3db09cc5c"></a><!-- doxytag: member="SplitViewInterface::adjustedImage" ref="51923395c2a22da6ab1808d3db09cc5c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage <a class="el" href="classSplitViewInterface.html#51923395c2a22da6ab1808d3db09cc5c">SplitViewInterface::adjustedImage</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Scaled adjusted image. 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00112">112</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3abd50680e497aa05aa264c53b2d5724"></a><!-- doxytag: member="SplitViewInterface::adjustedString" ref="3abd50680e497aa05aa264c53b2d5724" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classSplitViewInterface.html#3abd50680e497aa05aa264c53b2d5724">SplitViewInterface::adjustedString</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00093">93</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00404">minimumSizeHint()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="df794481e9121eae6816647b7fc44c9e"></a><!-- doxytag: member="SplitViewInterface::currentMouseShape" ref="df794481e9121eae6816647b7fc44c9e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee21">PREVIEW_MOUSE_MODE</a> <a class="el" href="classSplitViewInterface.html#df794481e9121eae6816647b7fc44c9e">SplitViewInterface::currentMouseShape</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
current mouse shape. 
<p>
by caching this value we avoid resetting the mouse cursor every time it moves etc. 
<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00106">106</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00375">mouseReleaseEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="70410de4aa824dce6106c2de4966d94a"></a><!-- doxytag: member="SplitViewInterface::dragOffset" ref="70410de4aa824dce6106c2de4966d94a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classSplitViewInterface.html#70410de4aa824dce6106c2de4966d94a">SplitViewInterface::dragOffset</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
x (or y) coordinate of split between drawn adjusted and original images 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00099">99</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3bf276ffd5904343612eceecfad4ce47"></a><!-- doxytag: member="SplitViewInterface::forceDrawLabel" ref="3bf276ffd5904343612eceecfad4ce47" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classSplitViewInterface.html#3bf276ffd5904343612eceecfad4ce47">SplitViewInterface::forceDrawLabel</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draw original/adjusted lables outside of split view mode? 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00089">89</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="052c501434ed651fbe63ca9862fc189c"></a><!-- doxytag: member="SplitViewInterface::mouseMode" ref="052c501434ed651fbe63ca9862fc189c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="splitViewInterface_8h.html#6d39871d0b1a800195536f8eeb3fee21">PREVIEW_MOUSE_MODE</a> <a class="el" href="classSplitViewInterface.html#052c501434ed651fbe63ca9862fc189c">SplitViewInterface::mouseMode</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
current mouse move mode 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00102">102</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00315">mousePressEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00375">mouseReleaseEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="998bb3d2486b3965315e561d6b505304"></a><!-- doxytag: member="SplitViewInterface::origImage" ref="998bb3d2486b3965315e561d6b505304" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage <a class="el" href="classSplitViewInterface.html#998bb3d2486b3965315e561d6b505304">SplitViewInterface::origImage</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Scaled original image. 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00109">109</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00388">displayToWorld()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00412">getOrigImage()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00396">worldToDisplay()</a>.</p>

</div>
</div><p>
<a class="anchor" name="164799457f2137a52bcab510e186748e"></a><!-- doxytag: member="SplitViewInterface::originalString" ref="164799457f2137a52bcab510e186748e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classSplitViewInterface.html#164799457f2137a52bcab510e186748e">SplitViewInterface::originalString</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Original and adjusted strings. 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00092">92</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00404">minimumSizeHint()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a3f29eeb34a677eaa9534c38a7de2a22"></a><!-- doxytag: member="SplitViewInterface::previewMode" ref="a3f29eeb34a677eaa9534c38a7de2a22" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="splitViewInterface_8h.html#a4478246983e5a13f84754204fb5ab80">PREVIEW_MODE</a> <a class="el" href="classSplitViewInterface.html#a3f29eeb34a677eaa9534c38a7de2a22">SplitViewInterface::previewMode</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Current display setting (adjusted or split screen). 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00086">86</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00287">nearSplitPoint()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00279">setPreviewMode()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<a class="anchor" name="7102e06da666ecf8704c68b85d3d6fd6"></a><!-- doxytag: member="SplitViewInterface::textFont" ref="7102e06da666ecf8704c68b85d3d6fd6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QFont <a class="el" href="classSplitViewInterface.html#7102e06da666ecf8704c68b85d3d6fd6">SplitViewInterface::textFont</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Larger font used for drawing text. 
<p>

<p>Definition at line <a class="el" href="splitViewInterface_8h_source.html#l00096">96</a> of file <a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a>.</p>

<p>Referenced by <a class="el" href="splitViewInterface_8cpp_source.html#l00404">minimumSizeHint()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00322">mouseMoveEvent()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00058">paintEvent()</a>, and <a class="el" href="splitViewInterface_8cpp_source.html#l00027">SplitViewInterface()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="splitViewInterface_8h_source.html">splitViewInterface.h</a><li><a class="el" href="splitViewInterface_8cpp_source.html">splitViewInterface.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:40 2009 for AlbumShaper by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>