Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 9601c7beb4ff23e834bfa171795ed560 > files > 660

vidalia-0.2.9-1mdv2010.1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Vidalia: ZImageView 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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</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>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</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>ZImageView Class Reference</h1><!-- doxytag: class="ZImageView" -->
<p><code>#include &lt;<a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ZImageView:</div>
<div class="dynsection">
 <div class="center">
  <img src="class_z_image_view.png" usemap="#ZImageView_map" alt=""/>
  <map id="ZImageView_map" name="ZImageView_map">
<area href="class_tor_map_image_view.html" alt="TorMapImageView" shape="rect" coords="0,56,117,80"/>
</map>
 </div>
</div>

<p><a href="class_z_image_view-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#abc80734053ec3e8f310d0668c97384cc">resetZoomPoint</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a3e0fb8ec2586bc3bbcd4791022534fd5">zoom</a> (float pct)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a37efcd3b50cf79f7caa5c1007dc44d0d">zoom</a> (QPoint zoomAt, float pct)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a68c4dcf1561fa920240db2843525d4f6">zoomIn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#ac75ff5e4efacd591a4d40e0b00ec66ef">zoomOut</a> ()</td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a20c2efec70e55e72cfa555fd6a5a5348">ZImageView</a> (QWidget *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a83f5953309ba8f95e6ca69c71df78b57">setImage</a> (QImage &amp;pixmap)</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#ade3ed53ffad6fbd8b3de18a166aa8b0e">paintImage</a> (QPainter *painter)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#aff831b1cf2eddbbf7209287455afb82b">paintEvent</a> (QPaintEvent *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#aa188bc90ca38d51d133abfa1fef6b3e7">mousePressEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a29561f7d44a1bd07e10e0ec0db3f5a5b">mouseReleaseEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#ab7d6c2663d2c443e053ca61545c0e28b">mouseMoveEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a9892c980c0fcf30fad3e892e63903af1">mouseDoubleClickEvent</a> (QMouseEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#ad988031ebc9e8677f939359db47934b6">wheelEvent</a> (QWheelEvent *e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#abfebb20951fdb6a4a634ea50e8530269">updateViewport</a> (int screendx=0, int screendy=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#ac62a97f3e68350811bd49f20923ec3c4">drawScaledImage</a> ()</td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a09aa4727f102d675b068417a4584711d">_zoom</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QImage&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a6e57d445585f1cf7f6f95d716cbad0db">_image</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a6126731c5cbd59f87e859d043e38d44a">_padding</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a4a6356de7396bfec67c00218d85c1bf0">_maxZoomFactor</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a47ff80bede59e6c486a426d56049f785">_mouseX</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#ac795b670066c66dd0272e79e140f2757">_mouseY</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a0098b990223e7a2a6a8b18636ae5d522">_view</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#af54b58163cc045b9893b7df9040882c5">_desiredX</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_z_image_view.html#a9489f1183fec0ad2f4e741c0eaa87116">_desiredY</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00025">25</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a20c2efec70e55e72cfa555fd6a5a5348"></a><!-- doxytag: member="ZImageView::ZImageView" ref="a20c2efec70e55e72cfa555fd6a5a5348" args="(QWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ZImageView::ZImageView </td>
          <td>(</td>
          <td class="paramtype">QWidget *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor.</p>
<p>Constructor. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00034">34</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00083">_desiredX</a>, <a class="el" href="_z_image_view_8h_source.html#l00084">_desiredY</a>, <a class="el" href="_z_image_view_8h_source.html#l00077">_maxZoomFactor</a>, <a class="el" href="_z_image_view_8h_source.html#l00076">_padding</a>, <a class="el" href="_z_image_view_8h_source.html#l00074">_zoom</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00028">CURSOR_NORMAL</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac62a97f3e68350811bd49f20923ec3c4"></a><!-- doxytag: member="ZImageView::drawScaledImage" ref="ac62a97f3e68350811bd49f20923ec3c4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::drawScaledImage </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Redraws the scaled image in the viewport.</p>
<p>Draws the scaled image on the widget. </p>

<p><p>Make a copy of the image so we don't ruin the original</p>
<p>Create a QPainter that draws directly on the copied image and call the virtual function to draw whatever the subclasses need to on the image.</p>
<p>Rescale the image copy </p>
</p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00065">65</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00075">_image</a>, <a class="el" href="_z_image_view_8h_source.html#l00082">_view</a>, <a class="el" href="html_8cpp_source.html#l00033">i()</a>, <a class="el" href="html_8cpp_source.html#l00023">p()</a>, and <a class="el" href="_z_image_view_8h_source.html#l00050">paintImage()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a9892c980c0fcf30fad3e892e63903af1"></a><!-- doxytag: member="ZImageView::mouseDoubleClickEvent" ref="a9892c980c0fcf30fad3e892e63903af1" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::mouseDoubleClickEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles the user double-clicking a mouse button.</p>
<p>Responds to the user double-clicking a mouse button on the image. A left double-click zooms in on the image and a right double-click zooms out. Zooming is centered on the location of the double-click. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00333">333</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00297">zoomIn()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00304">zoomOut()</a>.</p>

</div>
</div>
<a class="anchor" id="ab7d6c2663d2c443e053ca61545c0e28b"></a><!-- doxytag: member="ZImageView::mouseMoveEvent" ref="ab7d6c2663d2c443e053ca61545c0e28b" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::mouseMoveEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles the user moving the mouse.</p>
<p>Responds to the user moving the mouse. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00352">352</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00079">_mouseX</a>, <a class="el" href="_z_image_view_8h_source.html#l00080">_mouseY</a>, <a class="el" href="_z_image_view_8h_source.html#l00074">_zoom</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

</div>
</div>
<a class="anchor" id="aa188bc90ca38d51d133abfa1fef6b3e7"></a><!-- doxytag: member="ZImageView::mousePressEvent" ref="aa188bc90ca38d51d133abfa1fef6b3e7" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::mousePressEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles the user pressing a mouse button.</p>
<p>Responds to the user pressing a mouse button. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00311">311</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00079">_mouseX</a>, <a class="el" href="_z_image_view_8h_source.html#l00080">_mouseY</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00029">CURSOR_MOUSE_PRESS</a>.</p>

</div>
</div>
<a class="anchor" id="a29561f7d44a1bd07e10e0ec0db3f5a5b"></a><!-- doxytag: member="ZImageView::mouseReleaseEvent" ref="a29561f7d44a1bd07e10e0ec0db3f5a5b" args="(QMouseEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::mouseReleaseEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles the user releasing a mouse button.</p>
<p>Responds to the user releasing a mouse button. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00321">321</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8cpp_source.html#l00028">CURSOR_NORMAL</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

</div>
</div>
<a class="anchor" id="aff831b1cf2eddbbf7209287455afb82b"></a><!-- doxytag: member="ZImageView::paintEvent" ref="aff831b1cf2eddbbf7209287455afb82b" args="(QPaintEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::paintEvent </td>
          <td>(</td>
          <td class="paramtype">QPaintEvent *&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the viewport and repaints the displayed image.</p>
<p>Handles repainting this widget by updating the viewport and drawing the scaled image. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00271">271</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8cpp_source.html#l00065">drawScaledImage()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

</div>
</div>
<a class="anchor" id="ade3ed53ffad6fbd8b3de18a166aa8b0e"></a><!-- doxytag: member="ZImageView::paintImage" ref="ade3ed53ffad6fbd8b3de18a166aa8b0e" args="(QPainter *painter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void ZImageView::paintImage </td>
          <td>(</td>
          <td class="paramtype">QPainter *&nbsp;</td>
          <td class="paramname"> <em>painter</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Virtual method to let subclasses paint on the image before it's scaled. </p>

<p>Reimplemented in <a class="el" href="class_tor_map_image_view.html#a5e828f9b61ae900d2b115e5071b24038">TorMapImageView</a>.</p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00050">50</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00065">drawScaledImage()</a>.</p>

</div>
</div>
<a class="anchor" id="abc80734053ec3e8f310d0668c97384cc"></a><!-- doxytag: member="ZImageView::resetZoomPoint" ref="abc80734053ec3e8f310d0668c97384cc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::resetZoomPoint </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Resets the center zoom point back to the center of the viewport.</p>
<p>Resets the zoom point back to the center of the viewport. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00261">261</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00083">_desiredX</a>, <a class="el" href="_z_image_view_8h_source.html#l00084">_desiredY</a>, and <a class="el" href="_z_image_view_8h_source.html#l00082">_view</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00333">mouseDoubleClickEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00321">mouseReleaseEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00052">setImage()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00271">TorMapImageView::zoomToFit()</a>.</p>

</div>
</div>
<a class="anchor" id="a83f5953309ba8f95e6ca69c71df78b57"></a><!-- doxytag: member="ZImageView::setImage" ref="a83f5953309ba8f95e6ca69c71df78b57" args="(QImage &amp;pixmap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::setImage </td>
          <td>(</td>
          <td class="paramtype">QImage &amp;&nbsp;</td>
          <td class="paramname"> <em>img</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the displayed image. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00052">52</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00075">_image</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

<p>Referenced by <a class="el" href="_tor_map_image_view_8cpp_source.html#l00073">TorMapImageView::TorMapImageView()</a>.</p>

</div>
</div>
<a class="anchor" id="abfebb20951fdb6a4a634ea50e8530269"></a><!-- doxytag: member="ZImageView::updateViewport" ref="abfebb20951fdb6a4a634ea50e8530269" args="(int screendx=0, int screendy=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::updateViewport </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>screendx</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>screendy</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the viewport. This will set _view to a region that, when copied from the image and scaled to the screen size, will show what is expected. The _view may be larger in one or more directions than the image, and you must deal with the non-overlapping regions.</p>
<p>Updates the displayed viewport. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00156">156</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00083">_desiredX</a>, <a class="el" href="_z_image_view_8h_source.html#l00084">_desiredY</a>, <a class="el" href="_z_image_view_8h_source.html#l00075">_image</a>, <a class="el" href="_z_image_view_8h_source.html#l00077">_maxZoomFactor</a>, <a class="el" href="_z_image_view_8h_source.html#l00076">_padding</a>, <a class="el" href="_z_image_view_8h_source.html#l00082">_view</a>, and <a class="el" href="_z_image_view_8h_source.html#l00074">_zoom</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00333">mouseDoubleClickEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00352">mouseMoveEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00321">mouseReleaseEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00271">paintEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00052">setImage()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>.</p>

</div>
</div>
<a class="anchor" id="ad988031ebc9e8677f939359db47934b6"></a><!-- doxytag: member="ZImageView::wheelEvent" ref="ad988031ebc9e8677f939359db47934b6" args="(QWheelEvent *e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::wheelEvent </td>
          <td>(</td>
          <td class="paramtype">QWheelEvent *&nbsp;</td>
          <td class="paramname"> <em>e</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles the wheel events. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00367">367</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8cpp_source.html#l00297">zoomIn()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00304">zoomOut()</a>.</p>

</div>
</div>
<a class="anchor" id="a37efcd3b50cf79f7caa5c1007dc44d0d"></a><!-- doxytag: member="ZImageView::zoom" ref="a37efcd3b50cf79f7caa5c1007dc44d0d" args="(QPoint zoomAt, float pct)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::zoom </td>
          <td>(</td>
          <td class="paramtype">QPoint&nbsp;</td>
          <td class="paramname"> <em>zoomAt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>pct</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the current zoom level to the given percent and scrolls the window to place the specified point in the middle.</p>
<p>Sets the current zoom percentage to the given value and scrolls the viewport to center the given point. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00280">280</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00083">_desiredX</a>, <a class="el" href="_z_image_view_8h_source.html#l00084">_desiredY</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00289">zoom()</a>.</p>

</div>
</div>
<a class="anchor" id="a3e0fb8ec2586bc3bbcd4791022534fd5"></a><!-- doxytag: member="ZImageView::zoom" ref="a3e0fb8ec2586bc3bbcd4791022534fd5" args="(float pct)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::zoom </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>pct</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the current zoom level to the given percent.</p>
<p>Sets the current zoom percentage to the given value. </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00289">289</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00074">_zoom</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00280">zoom()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00297">zoomIn()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00304">zoomOut()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00290">TorMapImageView::zoomToCircuit()</a>, <a class="el" href="_tor_map_image_view_8cpp_source.html#l00271">TorMapImageView::zoomToFit()</a>, and <a class="el" href="_tor_map_image_view_8cpp_source.html#l00306">TorMapImageView::zoomToRouter()</a>.</p>

</div>
</div>
<a class="anchor" id="a68c4dcf1561fa920240db2843525d4f6"></a><!-- doxytag: member="ZImageView::zoomIn" ref="a68c4dcf1561fa920240db2843525d4f6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::zoomIn </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zooms into the displayed image by 5%</p>
<p>Zooms into the image by 10% </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00297">297</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00074">_zoom</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00289">zoom()</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00333">mouseDoubleClickEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00367">wheelEvent()</a>, and <a class="el" href="_net_viewer_8cpp_source.html#l00533">NetViewer::zoomIn()</a>.</p>

</div>
</div>
<a class="anchor" id="ac75ff5e4efacd591a4d40e0b00ec66ef"></a><!-- doxytag: member="ZImageView::zoomOut" ref="ac75ff5e4efacd591a4d40e0b00ec66ef" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ZImageView::zoomOut </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zooms away from the displayed image by 5%</p>
<p>Zooms away from the image by 10% </p>

<p>Definition at line <a class="el" href="_z_image_view_8cpp_source.html#l00304">304</a> of file <a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a>.</p>

<p>References <a class="el" href="_z_image_view_8h_source.html#l00074">_zoom</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00289">zoom()</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00333">mouseDoubleClickEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00367">wheelEvent()</a>, and <a class="el" href="_net_viewer_8cpp_source.html#l00544">NetViewer::zoomOut()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="af54b58163cc045b9893b7df9040882c5"></a><!-- doxytag: member="ZImageView::_desiredX" ref="af54b58163cc045b9893b7df9040882c5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="class_z_image_view.html#af54b58163cc045b9893b7df9040882c5">ZImageView::_desiredX</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The X value we desire (???). </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00083">83</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00280">zoom()</a>.</p>

</div>
</div>
<a class="anchor" id="a9489f1183fec0ad2f4e741c0eaa87116"></a><!-- doxytag: member="ZImageView::_desiredY" ref="a9489f1183fec0ad2f4e741c0eaa87116" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="class_z_image_view.html#a9489f1183fec0ad2f4e741c0eaa87116">ZImageView::_desiredY</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The Y value we desire (???). </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00084">84</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00280">zoom()</a>.</p>

</div>
</div>
<a class="anchor" id="a6e57d445585f1cf7f6f95d716cbad0db"></a><!-- doxytag: member="ZImageView::_image" ref="a6e57d445585f1cf7f6f95d716cbad0db" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage <a class="el" href="class_z_image_view.html#a6e57d445585f1cf7f6f95d716cbad0db">ZImageView::_image</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The displayed image. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00075">75</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00065">drawScaledImage()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00052">setImage()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

</div>
</div>
<a class="anchor" id="a4a6356de7396bfec67c00218d85c1bf0"></a><!-- doxytag: member="ZImageView::_maxZoomFactor" ref="a4a6356de7396bfec67c00218d85c1bf0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="class_z_image_view.html#a4a6356de7396bfec67c00218d85c1bf0">ZImageView::_maxZoomFactor</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Maximum amount to zoom into the image. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00077">77</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>.</p>

</div>
</div>
<a class="anchor" id="a47ff80bede59e6c486a426d56049f785"></a><!-- doxytag: member="ZImageView::_mouseX" ref="a47ff80bede59e6c486a426d56049f785" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_z_image_view.html#a47ff80bede59e6c486a426d56049f785">ZImageView::_mouseX</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The x-coordinate of the current mouse position. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00079">79</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00352">mouseMoveEvent()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00311">mousePressEvent()</a>.</p>

</div>
</div>
<a class="anchor" id="ac795b670066c66dd0272e79e140f2757"></a><!-- doxytag: member="ZImageView::_mouseY" ref="ac795b670066c66dd0272e79e140f2757" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_z_image_view.html#ac795b670066c66dd0272e79e140f2757">ZImageView::_mouseY</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The y-coordinate of the current mouse position. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00080">80</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00352">mouseMoveEvent()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00311">mousePressEvent()</a>.</p>

</div>
</div>
<a class="anchor" id="a6126731c5cbd59f87e859d043e38d44a"></a><!-- doxytag: member="ZImageView::_padding" ref="a6126731c5cbd59f87e859d043e38d44a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="class_z_image_view.html#a6126731c5cbd59f87e859d043e38d44a">ZImageView::_padding</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Amount of padding to use on the side of the image. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00076">76</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>.</p>

</div>
</div>
<a class="anchor" id="a0098b990223e7a2a6a8b18636ae5d522"></a><!-- doxytag: member="ZImageView::_view" ref="a0098b990223e7a2a6a8b18636ae5d522" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRect <a class="el" href="class_z_image_view.html#a0098b990223e7a2a6a8b18636ae5d522">ZImageView::_view</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The displayed viewport. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00082">82</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00065">drawScaledImage()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00261">resetZoomPoint()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>.</p>

</div>
</div>
<a class="anchor" id="a09aa4727f102d675b068417a4584711d"></a><!-- doxytag: member="ZImageView::_zoom" ref="a09aa4727f102d675b068417a4584711d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="class_z_image_view.html#a09aa4727f102d675b068417a4584711d">ZImageView::_zoom</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The current zoom level. </p>

<p>Definition at line <a class="el" href="_z_image_view_8h_source.html#l00074">74</a> of file <a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a>.</p>

<p>Referenced by <a class="el" href="_z_image_view_8cpp_source.html#l00352">mouseMoveEvent()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00156">updateViewport()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00034">ZImageView()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00289">zoom()</a>, <a class="el" href="_z_image_view_8cpp_source.html#l00297">zoomIn()</a>, and <a class="el" href="_z_image_view_8cpp_source.html#l00304">zoomOut()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_z_image_view_8h_source.html">ZImageView.h</a></li>
<li><a class="el" href="_z_image_view_8cpp_source.html">ZImageView.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:57 2010 for Vidalia by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>