<?xml version="1.0" encoding="UTF-8"?> <!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" lang="en_US" xml:lang="en_US"> <head> <title>kdeui: KPixmapRegionSelectorWidget Class Reference (kdeui)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <div id="nav_header_title" align="left">KDE API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_right" style="text-align: left;"> / <a href="../..">API Reference</a> / <a href=".">kdeui</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <a name="content"></a> <!-- Generated by Doxygen 1.4.7 --> <h1>KPixmapRegionSelectorWidget Class Reference</h1><!-- doxytag: class="KPixmapRegionSelectorWidget" --><!-- doxytag: inherits="QWidget" --><code>#include <<a class="el" href="kpixmapregionselectorwidget_8h-source.html">kpixmapregionselectorwidget.h</a>></code> <p> <p>Inheritance diagram for KPixmapRegionSelectorWidget: <p><center><img src="classKPixmapRegionSelectorWidget.png" usemap="#KPixmapRegionSelectorWidget_map" border="0" alt=""></center> <map name="KPixmapRegionSelectorWidget_map"> <area doxygen="qt.tag:" href="qwidget.html" alt="QWidget" shape="rect" coords="0,0,184,24"> </map> <a href="classKPixmapRegionSelectorWidget-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classKPixmapRegionSelectorWidget.html">KPixmapRegionSelectorWidget</a> is a widget that shows a picture and provides the user with a friendly way to select a rectangular subregion of the pixmap. <p> NOTE: There are two copies of this .h and the .cpp file, with subtle differences. One copy is in kdelibs/kdeui, and the other copy is in kdepim/libkdepim This is because kdepim has to remain backwards compatible. Any changes to either file should be made to the other.<p> <dl compact><dt><b>Author:</b></dt><dd>Antonio Larrosa <<a href="mailto:larrosa@kde.org">larrosa@kde.org</a>> </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.4 </dd></dl> <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8h-source.html#l00044">44</a> of file <a class="el" href="kpixmapregionselectorwidget_8h-source.html">kpixmapregionselectorwidget.h</a>.<table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Slots</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#36ae5437f5bc15fd2eedb9fb18847fa0">rotateClockwise</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#aaf3e4b9255fa970a813241853509dfc">rotateCounterclockwise</a> ()</td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#de78fce36ab63f9338ea4fd4bc704df8">KPixmapRegionSelectorWidget</a> (<a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> *parent=0L, const char *name=0L)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#aacfd0544addea6be03788f662bd5240">~KPixmapRegionSelectorWidget</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#73da6ca60a3708678a22ea29b4109d80">setPixmap</a> (const <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> &pixmap)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#8903e99142d13e7350e0ffc42d1d8dec">pixmap</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#19df71d2ce7b3ece449475481a52ebce">setSelectedRegion</a> (const <a class="elRef" doxygen="qt.tag:" href="qrect.html">QRect</a> &<a class="elRef" doxygen="qt.tag:" href="qwidget.html#rect">rect</a>)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qrect.html">QRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#f3f09dea961923509f2018d94cd7e43a">selectedRegion</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qrect.html">QRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#8a280111c5b3d66b3034f00298fcf7be">unzoomedSelectedRegion</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#1af347bfd2bd1ced3c611d74de09e7ef">resetSelection</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qimage.html">QImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#b4b652f38d3c2273c8c0b3599062c0eb">selectedImage</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#7928265e2eb37bbaa51b72135315708f">setSelectionAspectRatio</a> (int <a class="elRef" doxygen="qt.tag:" href="qwidget.html#width">width</a>, int <a class="elRef" doxygen="qt.tag:" href="qwidget.html#height">height</a>)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#58ab0c35c150233bc00e9bcd66209cf2">setFreeSelectionAspectRatio</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#c17bb4eba4bcdda7cfaa487fbd3a7a26">setMaximumWidgetSize</a> (int <a class="elRef" doxygen="qt.tag:" href="qwidget.html#width">width</a>, int <a class="elRef" doxygen="qt.tag:" href="qwidget.html#height">height</a>)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#2e2e4fd4803c0dee5c89b6454ba6a840">rotate</a> (<a class="elRef" doxygen="kdefx.tag:../../kdefx/html/" href="../../kdefx/html/classKImageEffect.html#60406c67ad94d76bc8b596f7d9411afd">KImageEffect::RotateDirection</a> direction)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classKPopupMenu.html">KPopupMenu</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKPixmapRegionSelectorWidget.html#f1a59a5e14569ff99efd45a62d8e246b">createPopupMenu</a> ()</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="de78fce36ab63f9338ea4fd4bc704df8"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::KPixmapRegionSelectorWidget" ref="de78fce36ab63f9338ea4fd4bc704df8" args="(QWidget *parent=0L, const char *name=0L)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KPixmapRegionSelectorWidget::KPixmapRegionSelectorWidget </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> * </td> <td class="paramname"> <em>parent</em> = <code>0L</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> = <code>0L</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor for a <a class="el" href="classKPixmapRegionSelectorWidget.html">KPixmapRegionSelectorWidget</a>. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00040">40</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="aacfd0544addea6be03788f662bd5240"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::~KPixmapRegionSelectorWidget" ref="aacfd0544addea6be03788f662bd5240" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KPixmapRegionSelectorWidget::~KPixmapRegionSelectorWidget </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor for a <a class="el" href="classKPixmapRegionSelectorWidget.html">KPixmapRegionSelectorWidget</a>. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00063">63</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="f1a59a5e14569ff99efd45a62d8e246b"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::createPopupMenu" ref="f1a59a5e14569ff99efd45a62d8e246b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classKPopupMenu.html">KPopupMenu</a> * KPixmapRegionSelectorWidget::createPopupMenu </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Creates a <a class="el" href="classKPopupMenu.html">KPopupMenu</a> with the menu that appears when clicking with the right button on the label. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00138">138</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="8903e99142d13e7350e0ffc42d1d8dec"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::pixmap" ref="8903e99142d13e7350e0ffc42d1d8dec" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> KPixmapRegionSelectorWidget::pixmap </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b>Returns:</b></dt><dd>the original whole pixmap that we're using in this widget as the pixmap the user is selecting a region from. </dd></dl> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8h-source.html#l00069">69</a> of file <a class="el" href="kpixmapregionselectorwidget_8h-source.html">kpixmapregionselectorwidget.h</a>. </div> </div><p> <a class="anchor" name="1af347bfd2bd1ced3c611d74de09e7ef"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::resetSelection" ref="1af347bfd2bd1ced3c611d74de09e7ef" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::resetSelection </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Resets the selection to use the whole image. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00076">76</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="2e2e4fd4803c0dee5c89b6454ba6a840"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::rotate" ref="2e2e4fd4803c0dee5c89b6454ba6a840" args="(KImageEffect::RotateDirection direction)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::rotate </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="kdefx.tag:../../kdefx/html/" href="../../kdefx/html/classKImageEffect.html#60406c67ad94d76bc8b596f7d9411afd">KImageEffect::RotateDirection</a> </td> <td class="paramname"> <em>direction</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Rotates the image as specified by the <code>direction</code> parameter, also tries to rotate the selected region so that it doesn't change, as long as the forced aspect ratio setting is respected, in other case, the selected region is resetted. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00160">160</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="36ae5437f5bc15fd2eedb9fb18847fa0"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::rotateClockwise" ref="36ae5437f5bc15fd2eedb9fb18847fa0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::rotateClockwise </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Rotates the current image 90º clockwise. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00199">199</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="aaf3e4b9255fa970a813241853509dfc"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::rotateCounterclockwise" ref="aaf3e4b9255fa970a813241853509dfc" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::rotateCounterclockwise </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Rotates the current image 90º counterclockwise. <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00204">204</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="b4b652f38d3c2273c8c0b3599062c0eb"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::selectedImage" ref="b4b652f38d3c2273c8c0b3599062c0eb" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qimage.html">QImage</a> KPixmapRegionSelectorWidget::selectedImage </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b>Returns:</b></dt><dd>a <a class="elRef" doxygen="qt.tag:" href="qimage.html">QImage</a> object with just the region the user selected from the image </dd></dl> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00396">396</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="f3f09dea961923509f2018d94cd7e43a"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::selectedRegion" ref="f3f09dea961923509f2018d94cd7e43a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qrect.html">QRect</a> KPixmapRegionSelectorWidget::selectedRegion </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the selected region ( in zoomed pixmap coordinates ). <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00082">82</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="58ab0c35c150233bc00e9bcd66209cf2"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::setFreeSelectionAspectRatio" ref="58ab0c35c150233bc00e9bcd66209cf2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::setFreeSelectionAspectRatio </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Allows the user to do a selection which has any aspect ratio. <p> This is the default. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKPixmapRegionSelectorWidget.html#7928265e2eb37bbaa51b72135315708f">setSelectionAspectRatio()</a> </dd></dl> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00407">407</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="c17bb4eba4bcdda7cfaa487fbd3a7a26"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::setMaximumWidgetSize" ref="c17bb4eba4bcdda7cfaa487fbd3a7a26" args="(int width, int height)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::setMaximumWidgetSize </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>height</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the maximum size for the widget. <p> If the image is larger than this (either horizontally or vertically), it's scaled to adjust to the maximum size (preserving the aspect ratio) <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00412">412</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="73da6ca60a3708678a22ea29b4109d80"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::setPixmap" ref="73da6ca60a3708678a22ea29b4109d80" args="(const QPixmap &pixmap)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::setPixmap </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qpixmap.html">QPixmap</a> & </td> <td class="paramname"> <em>pixmap</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the pixmap which will be shown for the user to select a region from. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pixmap</em> </td><td>The pixmap. Must be non-null. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00067">67</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="19df71d2ce7b3ece449475481a52ebce"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::setSelectedRegion" ref="19df71d2ce7b3ece449475481a52ebce" args="(const QRect &rect)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::setSelectedRegion </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qrect.html">QRect</a> & </td> <td class="paramname"> <em>rect</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the selected region to be <code>rect</code> (in zoomed pixmap coordinates). <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00087">87</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="7928265e2eb37bbaa51b72135315708f"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::setSelectionAspectRatio" ref="7928265e2eb37bbaa51b72135315708f" args="(int width, int height)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KPixmapRegionSelectorWidget::setSelectionAspectRatio </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>height</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the aspect ration that the selected subimage should have. <p> The way to select it, is specifying an example valid <code>width</code> and <code>height</code>. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKPixmapRegionSelectorWidget.html#58ab0c35c150233bc00e9bcd66209cf2">setFreeSelectionAspectRatio()</a> </dd></dl> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00402">402</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <a class="anchor" name="8a280111c5b3d66b3034f00298fcf7be"></a><!-- doxytag: member="KPixmapRegionSelectorWidget::unzoomedSelectedRegion" ref="8a280111c5b3d66b3034f00298fcf7be" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qrect.html">QRect</a> KPixmapRegionSelectorWidget::unzoomedSelectedRegion </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the selected region ( in unzoomed, original pixmap coordinates ). <p> <p> Definition at line <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html#l00388">388</a> of file <a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a>. </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kpixmapregionselectorwidget_8h-source.html">kpixmapregionselectorwidget.h</a><li><a class="el" href="kpixmapregionselectorwidget_8cpp-source.html">kpixmapregionselectorwidget.cpp</a></ul> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kdeui</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classKAboutApplication.html">kaboutapplication</option>, <option value="classKAboutContainer.html">kaboutcontainer</option>, <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>, <option value="classKAboutContributor.html">kaboutcontributor</option>, <option value="classKAboutDialog.html">kaboutdialog</option>, <option value="classKAboutKDE.html">kaboutkde</option>, <option value="classKAboutWidget.html">kaboutwidget</option>, <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>, <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>, <option value="classKAction.html">kaction</option>, <option value="classKActionCollection.html">kactioncollection</option>, <option value="classKActionMenu.html">kactionmenu</option>, <option value="classKActionPtrShortcutList.html">kactionptrshortcutlist</option>, <option value="classKActionSelector.html">kactionselector</option>, <option value="classKActionSeparator.html">kactionseparator</option>, <option value="classKActionShortcutList.html">kactionshortcutlist</option>, <option value="classKActiveLabel.html">kactivelabel</option>, <option value="classKAnimWidget.html">kanimwidget</option>, <option value="classKArrowButton.html">karrowbutton</option>, <option value="classKAuthIcon.html">kauthicon</option>, <option value="classKBugReport.html">kbugreport</option>, <option value="classKButtonBox.html">kbuttonbox</option>, <option value="classKCharSelect.html">kcharselect</option>, <option value="classKCharSelectTable.html">kcharselecttable</option>, <option value="classKCModule.html">kcmodule</option>, <option value="classKColor.html">kcolor</option>, <option value="classKColorButton.html">kcolorbutton</option>, <option value="classKColorCells.html">kcolorcells</option>, <option value="classKColorCombo.html">kcolorcombo</option>, <option value="classKColorDialog.html">kcolordialog</option>, <option value="classKColorDrag.html">kcolordrag</option>, <option value="classKColorPatch.html">kcolorpatch</option>, <option value="classKComboBox.html">kcombobox</option>, <option value="classKCommand.html">kcommand</option>, <option value="classKCommandHistory.html">kcommandhistory</option>, <option value="classKCompletionBox.html">kcompletionbox</option>, <option value="classKConfigDialog.html">kconfigdialog</option>, <option value="classKContextMenuManager.html">kcontextmenumanager</option>, <option value="classKCursor.html">kcursor</option>, <option value="classKCursorPrivate.html">kcursorprivate</option>, <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>, <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>, <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>, <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>, <option value="classKDatePicker.html">kdatepicker</option>, <option value="classKDateTable.html">kdatetable</option>, <option value="classKDateTimeWidget.html">kdatetimewidget</option>, <option value="classKDateValidator.html">kdatevalidator</option>, <option value="classKDateWidget.html">kdatewidget</option>, <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>, <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>, <option value="classKDETrayModule.html">kdetraymodule</option>, <option value="classKDETrayProxy.html">kdetrayproxy</option>, <option value="classKDialog.html">kdialog</option>, <option value="classKDialogBase.html">kdialogbase</option>, <option value="classKDialogBaseButton.html">kdialogbasebutton</option>, <option value="classKDialogBaseTile.html">kdialogbasetile</option>, <option value="classKDialogQueue.html">kdialogqueue</option>, <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>, <option value="classKDockArea.html">kdockarea</option>, <option value="classKDockButton__Private.html">kdockbutton__private</option>, <option value="classKDockMainWindow.html">kdockmainwindow</option>, <option value="classKDockManager.html">kdockmanager</option>, <option value="classKDockSplitter.html">kdocksplitter</option>, <option value="classKDockTabGroup.html">kdocktabgroup</option>, <option value="classKDockWidget.html">kdockwidget</option>, <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>, <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>, <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>, <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>, <option value="classKDockWidgetHeaderPrivate.html">kdockwidgetheaderprivate</option>, <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>, <option value="classKDockWindow.html">kdockwindow</option>, <option value="classKDoubleNumInput.html">kdoublenuminput</option>, <option value="classKDoubleSpinBox.html">kdoublespinbox</option>, <option value="classKDoubleValidator.html">kdoublevalidator</option>, <option value="classKDualColorButton.html">kdualcolorbutton</option>, <option value="classKEdFind.html">kedfind</option>, <option value="classKEdGotoLine.html">kedgotoline</option>, <option value="classKEdit.html">kedit</option>, <option value="classKEditListBox.html">keditlistbox</option>, <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>, <option value="classKEditToolbar.html">kedittoolbar</option>, <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>, <option value="classKEdReplace.html">kedreplace</option>, <option value="classKFloatValidator.html">kfloatvalidator</option>, <option value="classKFontAction.html">kfontaction</option>, <option value="classKFontChooser.html">kfontchooser</option>, <option value="classKFontCombo.html">kfontcombo</option>, <option value="classKFontDialog.html">kfontdialog</option>, <option value="classKFontRequester.html">kfontrequester</option>, <option value="classKFontSizeAction.html">kfontsizeaction</option>, <option value="classKGradientSelector.html">kgradientselector</option>, <option value="classKGuiItem.html">kguiitem</option>, <option value="classKHelpMenu.html">khelpmenu</option>, <option value="classKHistoryCombo.html">khistorycombo</option>, <option value="classKHSSelector.html">khsselector</option>, <option value="classKIconView.html">kiconview</option>, <option value="classKIconViewItem.html">kiconviewitem</option>, <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>, <option value="classKImageTrackLabel.html">kimagetracklabel</option>, <option value="classKInputDialog.html">kinputdialog</option>, <option value="classKIntNumInput.html">kintnuminput</option>, <option value="classKIntSpinBox.html">kintspinbox</option>, <option value="classKIntValidator.html">kintvalidator</option>, <option value="classKJanusWidget.html">kjanuswidget</option>, <option value="classKKeyButton.html">kkeybutton</option>, <option value="classKKeyChooser.html">kkeychooser</option>, <option value="classKKeyDialog.html">kkeydialog</option>, <option value="classKLanguageButton.html">klanguagebutton</option>, <option value="classKLed.html">kled</option>, <option value="classKLineEdit.html">klineedit</option>, <option value="classKLineEditDlg.html">klineeditdlg</option>, <option value="classKListAction.html">klistaction</option>, <option value="classKListBox.html">klistbox</option>, <option value="classKListView.html">klistview</option>, <option value="classKListViewItem.html">klistviewitem</option>, <option value="classKListViewLineEdit.html">klistviewlineedit</option>, <option value="classKListViewSearchLine.html">klistviewsearchline</option>, <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>, <option value="classKMacroCommand.html">kmacrocommand</option>, <option value="classKMainWindow.html">kmainwindow</option>, <option value="classKMainWindowInterface.html">kmainwindowinterface</option>, <option value="classKMenuBar.html">kmenubar</option>, <option value="classKMessageBox.html">kmessagebox</option>, <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>, <option value="classKNamedCommand.html">knamedcommand</option>, <option value="classKNumInput.html">knuminput</option>, <option value="classKPaletteTable.html">kpalettetable</option>, <option value="classKPanelApplet.html">kpanelapplet</option>, <option value="classKPanelAppMenu.html">kpanelappmenu</option>, <option value="classKPanelExtension.html">kpanelextension</option>, <option value="classKPanelMenu.html">kpanelmenu</option>, <option value="classKPassivePopup.html">kpassivepopup</option>, <option value="classKPasswordDialog.html">kpassworddialog</option>, <option value="classKPasswordEdit.html">kpasswordedit</option>, <option value="classKPasteTextAction.html">kpastetextaction</option>, <option value="classKPixmapIO.html">kpixmapio</option>, <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>, <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>, <option value="classKPopupFrame.html">kpopupframe</option>, <option value="classKPopupMenu.html">kpopupmenu</option>, <option value="classKPopupTitle.html">kpopuptitle</option>, <option value="classKProgress.html">kprogress</option>, <option value="classKProgressDialog.html">kprogressdialog</option>, <option value="classKPushButton.html">kpushbutton</option>, <option value="classKRadioAction.html">kradioaction</option>, <option value="classKRecentFilesAction.html">krecentfilesaction</option>, <option value="classKRestrictedLine.html">krestrictedline</option>, <option value="classKRootPermsIcon.html">krootpermsicon</option>, <option value="classKRootPixmap.html">krootpixmap</option>, <option value="classKRuler.html">kruler</option>, <option value="classKScrollView.html">kscrollview</option>, <option value="classKSelectAction.html">kselectaction</option>, <option value="classKSelector.html">kselector</option>, <option value="classKSeparator.html">kseparator</option>, <option value="classKShortcutDialog.html">kshortcutdialog</option>, <option value="classKShortcutDialogAdvanced.html">kshortcutdialogadvanced</option>, <option value="classKShortcutDialogSimple.html">kshortcutdialogsimple</option>, <option value="classKSpell.html">kspell</option>, <option value="classKSpellConfig.html">kspellconfig</option>, <option value="classKSpellDlg.html">kspelldlg</option>, <option value="classKSpellingHighlighter.html">kspellinghighlighter</option>, <option value="classKSpellUI.html">kspellui</option>, <option value="classKSplashScreen.html">ksplashscreen</option>, <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>, <option value="classKStatusBar.html">kstatusbar</option>, <option value="classKStatusBarLabel.html">kstatusbarlabel</option>, <option value="classKStdGuiItem.html">kstdguiitem</option>, <option value="classKStringListValidator.html">kstringlistvalidator</option>, <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>, <option value="classKSystemTray.html">ksystemtray</option>, <option value="classKTabBar.html">ktabbar</option>, <option value="classKTabCtl.html">ktabctl</option>, <option value="classKTabWidget.html">ktabwidget</option>, <option value="classKTextBrowser.html">ktextbrowser</option>, <option value="classKTextEdit.html">ktextedit</option>, <option value="classKTimeWidget.html">ktimewidget</option>, <option value="classKTimezoneWidget.html">ktimezonewidget</option>, <option value="classKTipDatabase.html">ktipdatabase</option>, <option value="classKTipDialog.html">ktipdialog</option>, <option value="classKToggleAction.html">ktoggleaction</option>, <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>, <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>, <option value="classKToolBar.html">ktoolbar</option>, <option value="classKToolBarButton.html">ktoolbarbutton</option>, <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>, <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>, <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>, <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>, <option value="classKToolBarSeparator.html">ktoolbarseparator</option>, <option value="classKURLLabel.html">kurllabel</option>, <option value="classKValueSelector.html">kvalueselector</option>, <option value="classKWidgetAction.html">kwidgetaction</option>, <option value="classKWindowInfo.html">kwindowinfo</option>, <option value="classKWizard.html">kwizard</option>, <option value="classKWordWrap.html">kwordwrap</option>, <option value="classKWritePermsIcon.html">kwritepermsicon</option>, <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>, <option value="classKXMLGUIClient.html">kxmlguiclient</option>, <option value="classKXMLGUIFactory.html">kxmlguifactory</option>, <option value="classKXYSelector.html">kxyselector</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li> <a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li> <a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../kio/kio/html/index.html">kio</a></li><li> <a href="../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li> <a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:wintert@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>