Sophie

Sophie

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

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: PhotoDescEdit 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>PhotoDescEdit Class Reference</h1><!-- doxytag: class="PhotoDescEdit" --><!-- doxytag: inherits="QWidget" --><code>#include &lt;<a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for PhotoDescEdit:</div>
<div class="dynsection">
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for PhotoDescEdit:</div>
<div class="dynsection">
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classPhotoDescEdit-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 Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#9a968ece63986094ca503100888ea724">hide</a> ()</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="classPhotoDescEdit.html#932f3e12adabc0df3b6938bcabb67be0">PhotoDescEdit</a> (<a class="el" href="classPhotoPreviewWidget.html">PhotoPreviewWidget</a> *<a class="el" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914">ppw</a>, bool <a class="el" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3">useAnimation</a>, <a class="el" href="classQWidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#9b2a132a4ba51bae6e9e11ff45f3ff19">~PhotoDescEdit</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Private Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#1d14c4b7b1095d94bae0c6cda9997832">animate</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this method is iteratively called and animates the opening/closing of the image  <a href="#1d14c4b7b1095d94bae0c6cda9997832"></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="classPhotoDescEdit.html#1246f9434d29c05aa6d0dc344011b230">disappear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this method is called by the acceptAndClose and rejectAndClose slots and actually initiates the closing process  <a href="#1246f9434d29c05aa6d0dc344011b230"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3">useAnimation</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">actually animate the opening/closing process?  <a href="#ff933eddd929700e6f41a1599b78a9e3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPhotoPreviewWidget.html">PhotoPreviewWidget</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914">ppw</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">photo preview widget pointer  <a href="#f9e918c721e0ab421fe887ff7a4ff914"></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="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b">imageLarge</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">beginning and end pixmaps  <a href="#7ce3808456a1c9253c8bc0559155049b"></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="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180">textRectangle</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">text area widget used to computing painting surface  <a href="#f4abaf07878d35760aaad1fd052cc180"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QPoint&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944">left</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">bounaries of entire animation  <a href="#8f28f6b65a3f043064999ec6f0fa3944"></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="classPhotoDescEdit.html#ebeda6d5ed589214a6bb90673e9c93bc">right</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#593214f92bef1793d11790fb90f44b49">bottom</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#ef6f3dd44a4aa22030ba9fff3188eb69">idealTextSize</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ultimate text dimension  <a href="#ef6f3dd44a4aa22030ba9fff3188eb69"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#c85894eb530b94657e032c41fce20ed6">backgroundImage</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this pixmap contains the screen contents for the entire region which we will be painting on top of  <a href="#c85894eb530b94657e032c41fce20ed6"></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="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1">smallWidth</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">small size  <a href="#a24e3944e4d1b83ca7d42fb4532a9df1"></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="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QGridLayout *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#831600bf4e33dffd73c45fb26f2feeb7">mainGrid</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">-------------------------------------  <a href="#831600bf4e33dffd73c45fb26f2feeb7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQLabel.html">QLabel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f">animationLabel</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">------------------------------------- Animating Widgets  <a href="#79d237fc04763db39f9c8f386f24982f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#e5ffff80d60d2ae3c800037cefe91273">buffer</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">buffer we'll iteratively update and use for the label which shows the animation taking place  <a href="#e5ffff80d60d2ae3c800037cefe91273"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QGridLayout *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583">staticGrid</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">------------------------------------- Static Widgets  <a href="#87011adbe9e69aa206006ca54462a583"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQWidget.html">QWidget</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04">staticFrame</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">frame which contains static widget  <a href="#ce1685d223bcca274f232a259822af04"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classQLabel.html">QLabel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0">staticPhoto</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">photo being displayed  <a href="#6867dc16d760840bfd89620a10431ad0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classTextEdit.html">TextEdit</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c">photoDesc</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">photo description  <a href="#8cb091718613630dbb1924d3d824354c"></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="classPhotoDescEdit.html#57db3ca47356479ad589eb8bc681fdf9">initDelay</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">------------------------------------- Animation Stuff  <a href="#57db3ca47356479ad589eb8bc681fdf9"></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="classPhotoDescEdit.html#4e844b0a8bc6f7be8c9b0730c063e8bb">accel</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#713cfbbc4c97775390f944b8331f9c83">minDelay</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#79178e1d6619e9bae0b33e2026c9ea24">dropShadowsEnabled</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">are drop shadows enabled in windows (xp)?  <a href="#79178e1d6619e9bae0b33e2026c9ea24"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QTimer *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#d5d3c206d7f98fd887dd034869ac1a19">timer</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QTime&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#5c7684d8a47b42fbb85e55f4180fbfda">lastTime</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QTime&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhotoDescEdit.html#78ef2a1b063d4aef39ec84f79e9149b3">currentTime</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00035">35</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="932f3e12adabc0df3b6938bcabb67be0"></a><!-- doxytag: member="PhotoDescEdit::PhotoDescEdit" ref="932f3e12adabc0df3b6938bcabb67be0" args="(PhotoPreviewWidget *ppw, bool useAnimation, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PhotoDescEdit::PhotoDescEdit           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPhotoPreviewWidget.html">PhotoPreviewWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>ppw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>useAnimation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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>

<p>Definition at line <a class="el" href="photoDescEdit_8cpp_source.html#l00047">47</a> of file <a class="el" href="photoDescEdit_8cpp_source.html">photoDescEdit.cpp</a>.</p>

<p>References <a class="el" href="photoDescEdit_8h_source.html#l00111">accel</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00089">animationLabel</a>, <a class="el" href="photoDescEdit_8h_source.html#l00027">APPEARING</a>, <a class="el" href="photoDescEdit_8h_source.html#l00078">backgroundImage</a>, <a class="el" href="photoDescEdit_8h_source.html#l00071">bottom</a>, <a class="el" href="photoDescEdit_8h_source.html#l00092">buffer</a>, <a class="el" href="imageTools_8cpp_source.html#l00039">calcScaledImageDimensions()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">delay</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00117">dropShadowsEnabled</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00031">EDIT_MARGIN</a>, <a class="el" href="photoDescEdit_8h_source.html#l00068">finalPos</a>, <a class="el" href="photo_8cpp_source.html#l00207">Photo::getDescription()</a>, <a class="el" href="photo_8cpp_source.html#l00191">Photo::getImageFilename()</a>, <a class="el" href="imageTools_8cpp_source.html#l00192">getImageSize()</a>, <a class="el" href="photoPreviewWidget_8cpp_source.html#l00049">PhotoPreviewWidget::getPhoto()</a>, <a class="el" href="photoPreviewWidget_8cpp_source.html#l00235">PhotoPreviewWidget::getPhotoPos()</a>, <a class="el" href="photo_8cpp_source.html#l00192">Photo::getSlideshowFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00193">Photo::getThumbnailFilename()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00074">idealTextSize</a>, <a class="el" href="photoDescEdit_8h_source.html#l00062">imageLarge</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">initDelay</a>, <a class="el" href="photoDescEdit_8h_source.html#l00068">initPos</a>, <a class="el" href="photoDescEdit_8h_source.html#l00121">lastTime</a>, <a class="el" href="photoDescEdit_8h_source.html#l00071">left</a>, <a class="el" href="photoDescEdit_8h_source.html#l00084">mainGrid</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">minDelay</a>, <a class="el" href="photoDescEdit_8h_source.html#l00114">mode</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00572">TextEdit::paintNow()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00106">photoDesc</a>, <a class="el" href="photoDescEdit_8h_source.html#l00071">right</a>, <a class="el" href="photoDescEdit_8h_source.html#l00081">smallHeight</a>, <a class="el" href="photoDescEdit_8h_source.html#l00081">smallWidth</a>, <a class="el" href="photoDescEdit_8h_source.html#l00026">STATIC</a>, <a class="el" href="photoDescEdit_8h_source.html#l00100">staticFrame</a>, <a class="el" href="photoDescEdit_8h_source.html#l00097">staticGrid</a>, <a class="el" href="photoDescEdit_8h_source.html#l00103">staticPhoto</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">step</a>, <a class="el" href="photoDescEdit_8h_source.html#l00065">textRectangle</a>, <a class="el" href="photoDescEdit_8h_source.html#l00120">timer</a>, and <a class="el" href="photoDescEdit_8h_source.html#l00071">top</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00048"></a>00048                                                                   :
<a name="l00049"></a>00049                               <a class="code" href="classQWidget.html">QWidget</a>(parent,name, 
<a name="l00050"></a>00050                               Qt::WStyle_Customize | 
<a name="l00051"></a>00051 #<span class="keywordflow">if</span> defined(Q_OS_MACX)
<a name="l00052"></a>00052                               Qt::WStyle_Splash )
<a name="l00053"></a>00053 <span class="preprocessor">#else </span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>                              Qt::WStyle_NoBorder | Qt::WType_Popup )
<a name="l00055"></a>00055 #endif
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057   <span class="comment">//PLATFORM_SPECIFIC_CODE</span>
<a name="l00058"></a>00058   <span class="comment">//disable drop shadow on mac os x</span>
<a name="l00059"></a>00059 <span class="preprocessor">  #if defined(Q_OS_MACX)</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>  ChangeWindowAttributes( (OpaqueWindowPtr*)winId(), kWindowNoShadowAttribute, kWindowNoAttributes );
<a name="l00061"></a>00061 <span class="preprocessor">  #endif</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063   <span class="comment">//PLATFORM_SPECIFIC_CODE</span>
<a name="l00064"></a>00064   <span class="comment">//disable drop shadow on win xp</span>
<a name="l00065"></a>00065 <span class="preprocessor">  #if defined(Q_OS_WIN)</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>  SystemParametersInfo( SPI_GETDROPSHADOW, 0, &amp;<a class="code" href="classPhotoDescEdit.html#79178e1d6619e9bae0b33e2026c9ea24" title="are drop shadows enabled in windows (xp)?">dropShadowsEnabled</a>, 0 );
<a name="l00067"></a>00067   SystemParametersInfo( SPI_SETDROPSHADOW, 0, NULL, 0 );
<a name="l00068"></a>00068 <span class="preprocessor">  #endif</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070   this-&gt;ppw = ppw;
<a name="l00071"></a>00071   <span class="comment">//-----------------------------------------------</span>
<a name="l00072"></a>00072   <span class="comment">//don't erase before painting, avoids flicker</span>
<a name="l00073"></a>00073   setWFlags(WNoAutoErase);
<a name="l00074"></a>00074   <span class="comment">//-----------------------------------------------</span>
<a name="l00075"></a>00075   <span class="comment">//determine small image size</span>
<a name="l00076"></a>00076   <a class="code" href="imageTools_8cpp.html#2af7f0a9c4f931ad3213c36796e95288" title="Get image dimensions.">getImageSize</a>( ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#937a069696ef937d5ddd030b16946ded" title="Gets the thumbnail filename.">getThumbnailFilename</a>(), <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>, <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> );
<a name="l00077"></a>00077   <span class="comment">//-------------------------------------------</span>
<a name="l00078"></a>00078   QRect appRec = qApp-&gt;mainWidget()-&gt;frameGeometry();
<a name="l00079"></a>00079   <span class="keywordtype">int</span> finalWidth, finalHeight;
<a name="l00080"></a>00080   <span class="keywordtype">int</span> actualFinalWidth, actualFinalHeight;
<a name="l00081"></a>00081   
<a name="l00082"></a>00082   <span class="comment">//image is wider than tall, place text and buttons below image</span>
<a name="l00083"></a>00083   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> &gt; <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> )
<a name="l00084"></a>00084   {
<a name="l00085"></a>00085     finalWidth = 400;
<a name="l00086"></a>00086     finalHeight = (finalWidth * <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>) / <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>;
<a name="l00087"></a>00087 
<a name="l00088"></a>00088     <span class="comment">//fix width</span>
<a name="l00089"></a>00089     <span class="keywordflow">if</span>(finalWidth +2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>&gt; appRec.width())
<a name="l00090"></a>00090     {
<a name="l00091"></a>00091       finalWidth = appRec.width() - 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>;
<a name="l00092"></a>00092       finalHeight = (finalWidth * <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>) / <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>;
<a name="l00093"></a>00093     }
<a name="l00094"></a>00094 
<a name="l00095"></a>00095     <span class="comment">//fix height</span>
<a name="l00096"></a>00096     QFontMetrics fm( qApp-&gt;font() );
<a name="l00097"></a>00097     <a class="code" href="classPhotoDescEdit.html#ef6f3dd44a4aa22030ba9fff3188eb69" title="ultimate text dimension">idealTextSize</a> = 4*fm.height() + 5*fm.leading() + 4;
<a name="l00098"></a>00098     
<a name="l00099"></a>00099     <span class="keywordflow">if</span>(finalHeight + idealTextSize + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> &gt; appRec.height() )
<a name="l00100"></a>00100     {
<a name="l00101"></a>00101       finalHeight = appRec.height() - idealTextSize - 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>;
<a name="l00102"></a>00102       finalWidth = (finalHeight * <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>) / <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>;
<a name="l00103"></a>00103     }
<a name="l00104"></a>00104 
<a name="l00105"></a>00105     <span class="comment">//sanity check</span>
<a name="l00106"></a>00106     <span class="keywordflow">if</span>(finalHeight &lt; 0)
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108       finalHeight = (appRec.height() - 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>) / 2;
<a name="l00109"></a>00109       finalWidth = (finalHeight * <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>) / <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>;
<a name="l00110"></a>00110       idealTextSize = finalHeight;
<a name="l00111"></a>00111     }
<a name="l00112"></a>00112 
<a name="l00113"></a>00113     actualFinalWidth = finalWidth + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>;
<a name="l00114"></a>00114     actualFinalHeight = finalHeight + idealTextSize + 2*EDIT_MARGIN;
<a name="l00115"></a>00115     
<a name="l00116"></a>00116     <span class="comment">//an additional fudge is necessary for MacOSX, not sure why</span>
<a name="l00117"></a>00117 <span class="preprocessor">#if defined(Q_OS_MACX)</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span>    actualFinalHeight+=2;
<a name="l00119"></a>00119 <span class="preprocessor">#endif</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>  }
<a name="l00121"></a>00121   <span class="comment">//image is taller than wide, text and buttons will be placed to the right</span>
<a name="l00122"></a>00122   <span class="keywordflow">else</span>
<a name="l00123"></a>00123   {
<a name="l00124"></a>00124     finalHeight = 300;
<a name="l00125"></a>00125     finalWidth = (finalHeight * <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>) / <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127     <span class="comment">//fix height</span>
<a name="l00128"></a>00128     <span class="keywordflow">if</span>(finalHeight + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> &gt; appRec.height())
<a name="l00129"></a>00129     {
<a name="l00130"></a>00130       finalHeight = appRec.height() - 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>;
<a name="l00131"></a>00131       finalWidth = (finalHeight * <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>) / <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>;
<a name="l00132"></a>00132     }
<a name="l00133"></a>00133 
<a name="l00134"></a>00134     <span class="comment">//fix width</span>
<a name="l00135"></a>00135     QString calibrationString( qApp-&gt;translate(<span class="stringliteral">"PhotoDescEdit"</span>, <span class="stringliteral">"This is the photo description calibration string."</span>) );
<a name="l00136"></a>00136     QFontMetrics fm( qApp-&gt;font() );
<a name="l00137"></a>00137     idealTextSize = fm.width( calibrationString );
<a name="l00138"></a>00138     <span class="keywordflow">if</span>(finalWidth + idealTextSize + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> &gt; appRec.width() )
<a name="l00139"></a>00139     {
<a name="l00140"></a>00140       finalWidth = appRec.width() - idealTextSize - 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>;
<a name="l00141"></a>00141       finalHeight = (finalWidth * <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>) / <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>;
<a name="l00142"></a>00142     }
<a name="l00143"></a>00143 
<a name="l00144"></a>00144     <span class="comment">//sanity check</span>
<a name="l00145"></a>00145     <span class="keywordflow">if</span>(finalWidth &lt; 0)
<a name="l00146"></a>00146     {
<a name="l00147"></a>00147       finalWidth = (appRec.width() - 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>) / 2;
<a name="l00148"></a>00148       finalHeight = (finalWidth * <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>) / <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>;
<a name="l00149"></a>00149     idealTextSize = finalWidth;
<a name="l00150"></a>00150     }
<a name="l00151"></a>00151 
<a name="l00152"></a>00152     actualFinalWidth = finalWidth + idealTextSize + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>;
<a name="l00153"></a>00153     actualFinalHeight = finalHeight + 2*EDIT_MARGIN;
<a name="l00154"></a>00154   }
<a name="l00155"></a>00155   <span class="comment">//-----------------------------------------------</span>
<a name="l00156"></a>00156   <span class="comment">//setup scaled up image</span>
<a name="l00157"></a>00157   <span class="comment">//find full size photo dimensions, if unable to then use scaled up thumbnail image</span>
<a name="l00158"></a>00158   <span class="keywordtype">int</span> fullWidth, fullHeight;
<a name="l00159"></a>00159   <span class="keywordflow">if</span>(!<a class="code" href="imageTools_8cpp.html#2af7f0a9c4f931ad3213c36796e95288" title="Get image dimensions.">getImageSize</a>( ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#5ebb6fccddd609df5d407498957e1089" title="Gets the image filename.">getImageFilename</a>(), fullWidth, fullHeight ) )
<a name="l00160"></a>00160   {
<a name="l00161"></a>00161     <a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a> = <span class="keyword">new</span> QImage( QImage( ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#937a069696ef937d5ddd030b16946ded" title="Gets the thumbnail filename.">getThumbnailFilename</a>()).
<a name="l00162"></a>00162                              scale(finalWidth,finalHeight, QImage::ScaleFree ));
<a name="l00163"></a>00163   }
<a name="l00164"></a>00164   <span class="comment">//else find cropped region of slideshow image using these dimensions</span>
<a name="l00165"></a>00165   <span class="keywordflow">else</span>
<a name="l00166"></a>00166   {
<a name="l00167"></a>00167     <span class="comment">//load padded slideshow image</span>
<a name="l00168"></a>00168     QImage paddedSSImage( ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#d16ff6833a7ddc4340d7c296e2eeac99" title="Gets the slideshow filename.">getSlideshowFilename</a>() );
<a name="l00169"></a>00169 
<a name="l00170"></a>00170     <span class="comment">//unpadded dimensions</span>
<a name="l00171"></a>00171     <span class="keywordtype">int</span> actualWidth, actualHeight;
<a name="l00172"></a>00172     <a class="code" href="imageTools_8cpp.html#b6483215237a72d6b725adc644d40f0b" title="Computes scale of image dimensions while respecting aspect ratio, equivalent to a...">calcScaledImageDimensions</a>( fullWidth, fullHeight, 
<a name="l00173"></a>00173                                paddedSSImage.width(), paddedSSImage.height(), 
<a name="l00174"></a>00174                                actualWidth, actualHeight );
<a name="l00175"></a>00175 
<a name="l00176"></a>00176     <span class="comment">//construct new image with padding removed</span>
<a name="l00177"></a>00177     <span class="keywordtype">int</span> leftOffset = (paddedSSImage.width() - actualWidth) / 2;
<a name="l00178"></a>00178     <span class="keywordtype">int</span> topOffset = (paddedSSImage.height() - actualHeight) / 2;
<a name="l00179"></a>00179     QImage SSImage( actualWidth, actualHeight, paddedSSImage.depth() );
<a name="l00180"></a>00180       
<a name="l00181"></a>00181     <span class="keywordtype">int</span> x,  y;
<a name="l00182"></a>00182     <span class="keywordflow">for</span>(x=0; x&lt;actualWidth; x++)
<a name="l00183"></a>00183     {
<a name="l00184"></a>00184       <span class="keywordflow">for</span>(y=0; y&lt;actualHeight; y++)
<a name="l00185"></a>00185       {
<a name="l00186"></a>00186         SSImage.setPixel( x, y, red.rgb() );
<a name="l00187"></a>00187         SSImage.setPixel( x, y, paddedSSImage.pixel(x+leftOffset, y+topOffset) );
<a name="l00188"></a>00188       }
<a name="l00189"></a>00189     }
<a name="l00190"></a>00190     <a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a> = <span class="keyword">new</span> QImage(SSImage.smoothScale(finalWidth,finalHeight, QImage::ScaleFree ));
<a name="l00191"></a>00191   }
<a name="l00192"></a>00192   <span class="comment">//-----------------------------------------------</span>
<a name="l00193"></a>00193   <span class="comment">//construct final text area pixmap used for morphing text region</span>
<a name="l00194"></a>00194   <a class="code" href="classTextEdit.html">TextEdit</a> tmpTextEdit;
<a name="l00195"></a>00195   tmpTextEdit.setText( ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#db7ed08547098feeaff5753f2600f4bc" title="Gets the description.">getDescription</a>() );
<a name="l00196"></a>00196 
<a name="l00197"></a>00197   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> &gt; <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> )
<a name="l00198"></a>00198     tmpTextEdit.resize( finalWidth, idealTextSize );
<a name="l00199"></a>00199   <span class="keywordflow">else</span>
<a name="l00200"></a>00200     tmpTextEdit.resize( idealTextSize, finalHeight );
<a name="l00201"></a>00201 
<a name="l00202"></a>00202   tmpTextEdit.setLineWidth( 0 );
<a name="l00203"></a>00203   tmpTextEdit.setMargin( 0 );
<a name="l00204"></a>00204   tmpTextEdit.setMidLineWidth( 0 );
<a name="l00205"></a>00205   tmpTextEdit.setFrameStyle( QFrame::NoFrame | QFrame::Plain );
<a name="l00206"></a>00206   
<a name="l00207"></a>00207   tmpTextEdit.setWrapPolicy( QTextEdit::AtWordOrDocumentBoundary );
<a name="l00208"></a>00208   tmpTextEdit.constPolish();
<a name="l00209"></a>00209   tmpTextEdit.polish();
<a name="l00210"></a>00210 
<a name="l00211"></a>00211   tmpTextEdit.setWordWrap( QTextEdit::FixedPixelWidth );
<a name="l00212"></a>00212   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> &gt; <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> )
<a name="l00213"></a>00213     tmpTextEdit.setWrapColumnOrWidth( finalWidth );
<a name="l00214"></a>00214   <span class="keywordflow">else</span>
<a name="l00215"></a>00215     tmpTextEdit.setWrapColumnOrWidth( idealTextSize );
<a name="l00216"></a>00216   tmpTextEdit.updateScrollBars();
<a name="l00217"></a>00217   tmpTextEdit.constPolish();
<a name="l00218"></a>00218   tmpTextEdit.polish();
<a name="l00219"></a>00219 
<a name="l00220"></a>00220   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> &gt; <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> )
<a name="l00221"></a>00221   {
<a name="l00222"></a>00222     <span class="keywordflow">if</span>(tmpTextEdit.lines() &gt; 4)
<a name="l00223"></a>00223     {
<a name="l00224"></a>00224       tmpTextEdit.setWrapColumnOrWidth( finalWidth - tmpTextEdit.verticalScrollBar()-&gt;width() );
<a name="l00225"></a>00225       tmpTextEdit.updateScrollBars();
<a name="l00226"></a>00226       tmpTextEdit.constPolish();
<a name="l00227"></a>00227       tmpTextEdit.polish();
<a name="l00228"></a>00228     }
<a name="l00229"></a>00229   }
<a name="l00230"></a>00230   <span class="keywordflow">else</span>
<a name="l00231"></a>00231   {
<a name="l00232"></a>00232     QFontMetrics fm( qApp-&gt;font() );
<a name="l00233"></a>00233     <span class="keywordflow">if</span>(tmpTextEdit.lines() &gt; idealTextSize / (fm.leading() + fm.height()) )
<a name="l00234"></a>00234     {
<a name="l00235"></a>00235       tmpTextEdit.setWrapColumnOrWidth( idealTextSize - tmpTextEdit.verticalScrollBar()-&gt;width() );
<a name="l00236"></a>00236       tmpTextEdit.updateScrollBars();
<a name="l00237"></a>00237       tmpTextEdit.constPolish();
<a name="l00238"></a>00238       tmpTextEdit.polish();
<a name="l00239"></a>00239     }
<a name="l00240"></a>00240   }
<a name="l00241"></a>00241 
<a name="l00242"></a>00242   <span class="comment">//paint to pixmap</span>
<a name="l00243"></a>00243   tmpTextEdit.<a class="code" href="classTextEdit.html#e25b41991c142345d3023627ee85a164">paintNow</a>();
<a name="l00244"></a>00244   <a class="code" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180" title="text area widget used to computing painting surface">textRectangle</a> = <span class="keyword">new</span> QImage( QPixmap::grabWidget(&amp;tmpTextEdit).convertToImage() );
<a name="l00245"></a>00245   <span class="comment">//-----------------------------------------------</span>
<a name="l00246"></a>00246   <span class="comment">//set beginning and end positions</span>
<a name="l00247"></a>00247   <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a> = ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#fdd4a5baee26b0cb4f12fee37a165263">getPhotoPos</a>();
<a name="l00248"></a>00248 
<a name="l00249"></a>00249   <span class="comment">//offset by margin</span>
<a name="l00250"></a>00250   <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a> += QPoint( -<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>, -<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00251"></a>00251 
<a name="l00252"></a>00252   <span class="keywordtype">int</span> initCenterX = <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.x() + <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a>/2;
<a name="l00253"></a>00253   <span class="keywordtype">int</span> initCenterY = <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.y() + <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a>/2;
<a name="l00254"></a>00254 
<a name="l00255"></a>00255   <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a> = QPoint( initCenterX - actualFinalWidth/2, initCenterY - actualFinalHeight/2 );
<a name="l00256"></a>00256   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.x() &lt; appRec.x() )
<a name="l00257"></a>00257     <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.setX( appRec.x() );
<a name="l00258"></a>00258   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.x() + actualFinalWidth &gt; appRec.x() + appRec.width() )
<a name="l00259"></a>00259     <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.setX( appRec.x() + appRec.width()- actualFinalWidth );
<a name="l00260"></a>00260 
<a name="l00261"></a>00261   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.y() &lt; appRec.y() )
<a name="l00262"></a>00262     <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.setY( appRec.y() );
<a name="l00263"></a>00263   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.y() + actualFinalHeight &gt; appRec.y() + appRec.height() )
<a name="l00264"></a>00264     <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.setY( appRec.y() + appRec.height()- actualFinalHeight );
<a name="l00265"></a>00265   <span class="comment">//-----------------------------------------------</span>
<a name="l00266"></a>00266   <span class="comment">//find bounding rectangle</span>
<a name="l00267"></a>00267   <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a>   = QMIN( <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.x(), <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.x() );
<a name="l00268"></a>00268   <a class="code" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a>    = QMIN( <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.y(), <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.y() );
<a name="l00269"></a>00269   <a class="code" href="classPhotoDescEdit.html#ebeda6d5ed589214a6bb90673e9c93bc">right</a>  = QMAX( <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.x() + actualFinalWidth, <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.x() + <a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> );
<a name="l00270"></a>00270   <a class="code" href="classPhotoDescEdit.html#593214f92bef1793d11790fb90f44b49">bottom</a> = QMAX( <a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.y() + actualFinalHeight, <a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.y() + <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> );
<a name="l00271"></a>00271   <span class="comment">//-----------------------------------------------</span>
<a name="l00272"></a>00272   <span class="comment">//grab window in region of interest, setup label and use this image</span>
<a name="l00273"></a>00273   <a class="code" href="classPhotoDescEdit.html#c85894eb530b94657e032c41fce20ed6" title="this pixmap contains the screen contents for the entire region which we will be painting...">backgroundImage</a> = <span class="keyword">new</span> QPixmap( QPixmap::grabWindow(QApplication::desktop()-&gt;winId(),
<a name="l00274"></a>00274                                                      <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a>, top, 
<a name="l00275"></a>00275                                                      right-<a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a>, bottom-top) );
<a name="l00276"></a>00276   setBackgroundMode( Qt::NoBackground );
<a name="l00277"></a>00277   <span class="comment">//-----------------------------------------------</span>
<a name="l00278"></a>00278   <span class="comment">//Setup animation widgets and place in main grid</span>
<a name="l00279"></a>00279   <a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a> = <span class="keyword">new</span> <a class="code" href="classQLabel.html">QLabel</a>(<span class="keyword">this</span>, <span class="stringliteral">"animationLabel"</span>, WNoAutoErase);
<a name="l00280"></a>00280   <a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a>-&gt;setPixmap( *backgroundImage );
<a name="l00281"></a>00281   <a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a>-&gt;setBackgroundMode( Qt::NoBackground );
<a name="l00282"></a>00282   <a class="code" href="classPhotoDescEdit.html#e5ffff80d60d2ae3c800037cefe91273" title="buffer we&amp;#39;ll iteratively update and use for the label which shows the animation...">buffer</a> = <span class="keyword">new</span> QPixmap(  backgroundImage-&gt;width(), backgroundImage-&gt;height() );
<a name="l00283"></a>00283 
<a name="l00284"></a>00284   <a class="code" href="classPhotoDescEdit.html#831600bf4e33dffd73c45fb26f2feeb7" title="-------------------------------------">mainGrid</a> = <span class="keyword">new</span> QGridLayout( <span class="keyword">this</span>, 1, 2, 0 );
<a name="l00285"></a>00285   mainGrid-&gt;addWidget(<a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a>, 0, 0 );
<a name="l00286"></a>00286   <span class="comment">//-----------------------------------------------</span>
<a name="l00287"></a>00287   <span class="comment">//Setup static widgets</span>
<a name="l00288"></a>00288   <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a> = <span class="keyword">new</span> <a class="code" href="classQWidget.html">QWidget</a>(<span class="keyword">this</span>);
<a name="l00289"></a>00289   <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>-&gt;hide();
<a name="l00290"></a>00290   <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>-&gt;setBackgroundMode( Qt::NoBackground );
<a name="l00291"></a>00291   mainGrid-&gt;addWidget(<a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>, 0, 1 );
<a name="l00292"></a>00292 
<a name="l00293"></a>00293   <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a> = <span class="keyword">new</span> <a class="code" href="classQLabel.html">QLabel</a>( <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>, <span class="stringliteral">"staticPhoto"</span>, WNoAutoErase);
<a name="l00294"></a>00294   <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a>-&gt;setPixmap( QPixmap( *<a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>) );
<a name="l00295"></a>00295   <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a>-&gt;setBackgroundMode( Qt::NoBackground );
<a name="l00296"></a>00296 
<a name="l00297"></a>00297   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a> = <span class="keyword">new</span> <a class="code" href="classTextEdit.html">TextEdit</a>( <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a> );
<a name="l00298"></a>00298   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setText( ppw-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#db7ed08547098feeaff5753f2600f4bc" title="Gets the description.">getDescription</a>() );
<a name="l00299"></a>00299 
<a name="l00300"></a>00300   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setWrapPolicy( QTextEdit::AtWordOrDocumentBoundary );
<a name="l00301"></a>00301   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setFrameStyle( QFrame::NoFrame );
<a name="l00302"></a>00302   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setLineWidth( 0 );
<a name="l00303"></a>00303   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setMargin( 0 );
<a name="l00304"></a>00304   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setMidLineWidth( 0 );
<a name="l00305"></a>00305   <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setFrameStyle( QFrame::MenuBarPanel | QFrame::Plain );
<a name="l00306"></a>00306 
<a name="l00307"></a>00307   <span class="comment">//start disappearing once the text edit reports the user is finished</span>
<a name="l00308"></a>00308   connect( <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>, SIGNAL( finished() ),
<a name="l00309"></a>00309            <span class="keyword">this</span>, SLOT( <a class="code" href="classPhotoDescEdit.html#1246f9434d29c05aa6d0dc344011b230" title="this method is called by the acceptAndClose and rejectAndClose slots and actually...">disappear</a>() ) );
<a name="l00310"></a>00310   
<a name="l00311"></a>00311   <a class="code" href="classQWidget.html">QWidget</a>* bw1 = <span class="keyword">new</span> <a class="code" href="classQWidget.html">QWidget</a>(<a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>);
<a name="l00312"></a>00312   <a class="code" href="classQWidget.html">QWidget</a>* bw2 = <span class="keyword">new</span> <a class="code" href="classQWidget.html">QWidget</a>(<a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>);
<a name="l00313"></a>00313   <a class="code" href="classQWidget.html">QWidget</a>* bw3 = <span class="keyword">new</span> <a class="code" href="classQWidget.html">QWidget</a>(<a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>);
<a name="l00314"></a>00314   <a class="code" href="classQWidget.html">QWidget</a>* bw4 = <span class="keyword">new</span> <a class="code" href="classQWidget.html">QWidget</a>(<a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>);
<a name="l00315"></a>00315   QColor darkBlue(35, 75, 139);
<a name="l00316"></a>00316   bw1-&gt;setPaletteBackgroundColor( darkBlue );
<a name="l00317"></a>00317   bw2-&gt;setPaletteBackgroundColor( darkBlue );
<a name="l00318"></a>00318   bw3-&gt;setPaletteBackgroundColor( darkBlue );
<a name="l00319"></a>00319   bw4-&gt;setPaletteBackgroundColor( darkBlue );
<a name="l00320"></a>00320 
<a name="l00321"></a>00321   <span class="comment">//image is wider than tall, place text and buttons below image</span>
<a name="l00322"></a>00322   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> &gt; <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> )
<a name="l00323"></a>00323   {
<a name="l00324"></a>00324     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a> = <span class="keyword">new</span> QGridLayout( <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>, 4, 3);
<a name="l00325"></a>00325 
<a name="l00326"></a>00326     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addWidget( <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a>, 1, 1 );
<a name="l00327"></a>00327     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addWidget( <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>, 2, 1 );
<a name="l00328"></a>00328 
<a name="l00329"></a>00329     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setColSpacing( 2, <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a>-&gt;width() );
<a name="l00330"></a>00330     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setRowSpacing( 2, idealTextSize );
<a name="l00331"></a>00331 
<a name="l00332"></a>00332     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addMultiCellWidget( bw1, 0, 0, 0, 2 );
<a name="l00333"></a>00333     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addMultiCellWidget( bw2, 1, 2, 0, 0 );
<a name="l00334"></a>00334     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addMultiCellWidget( bw3, 1, 2, 2, 2 );
<a name="l00335"></a>00335     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addMultiCellWidget( bw4, 3, 3, 0, 2 );
<a name="l00336"></a>00336     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setRowSpacing( 0, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00337"></a>00337     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setRowSpacing( 3, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00338"></a>00338     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setColSpacing( 0, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00339"></a>00339     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setColSpacing( 2, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00340"></a>00340   }
<a name="l00341"></a>00341   <span class="keywordflow">else</span>
<a name="l00342"></a>00342   {
<a name="l00343"></a>00343     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a> = <span class="keyword">new</span> QGridLayout( <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>, 3, 4);
<a name="l00344"></a>00344 
<a name="l00345"></a>00345     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addWidget( <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a>, 1, 1 );
<a name="l00346"></a>00346     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addWidget( <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>, 1, 2 );
<a name="l00347"></a>00347 
<a name="l00348"></a>00348     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setRowSpacing( 1, <a class="code" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0" title="photo being displayed">staticPhoto</a>-&gt;height() );
<a name="l00349"></a>00349     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setColSpacing( 2, idealTextSize );
<a name="l00350"></a>00350 
<a name="l00351"></a>00351     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addMultiCellWidget( bw1, 0, 0, 0, 3 );
<a name="l00352"></a>00352     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addWidget( bw2, 1, 0 );
<a name="l00353"></a>00353     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addWidget( bw3, 1, 3 );
<a name="l00354"></a>00354     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;addMultiCellWidget( bw4, 2, 2, 0, 3 );
<a name="l00355"></a>00355     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setRowSpacing( 0, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00356"></a>00356     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setRowSpacing( 2, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00357"></a>00357     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setColSpacing( 0, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00358"></a>00358     <a class="code" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583" title="------------------------------------- Static Widgets">staticGrid</a>-&gt;setColSpacing( 3, <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> );
<a name="l00359"></a>00359   }
<a name="l00360"></a>00360   <span class="comment">//-----------------------------------------------</span>
<a name="l00361"></a>00361   <span class="comment">//set delay defaults</span>
<a name="l00362"></a>00362   <a class="code" href="classPhotoDescEdit.html#57db3ca47356479ad589eb8bc681fdf9" title="------------------------------------- Animation Stuff">initDelay</a> = 130;
<a name="l00363"></a>00363   <a class="code" href="classPhotoDescEdit.html#4e844b0a8bc6f7be8c9b0730c063e8bb">accel</a> = 50;
<a name="l00364"></a>00364   <a class="code" href="classPhotoDescEdit.html#713cfbbc4c97775390f944b8331f9c83">minDelay</a> = 1;
<a name="l00365"></a>00365 
<a name="l00366"></a>00366   this-&gt;<a class="code" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3" title="actually animate the opening/closing process?">useAnimation</a> = <a class="code" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3" title="actually animate the opening/closing process?">useAnimation</a>;
<a name="l00367"></a>00367   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3" title="actually animate the opening/closing process?">useAnimation</a>)
<a name="l00368"></a>00368     <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> = 0;
<a name="l00369"></a>00369   <span class="keywordflow">else</span>
<a name="l00370"></a>00370     <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> = 100;
<a name="l00371"></a>00371 
<a name="l00372"></a>00372   <a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> = <a class="code" href="photoDescEdit_8h.html#10b2d890d871e1489bb02b7e70d9bdfb">STATIC</a>;
<a name="l00373"></a>00373 
<a name="l00374"></a>00374   <span class="comment">//create timer object and setup signals</span>
<a name="l00375"></a>00375   <a class="code" href="classPhotoDescEdit.html#d5d3c206d7f98fd887dd034869ac1a19">timer</a> = <span class="keyword">new</span> QTimer();
<a name="l00376"></a>00376   connect(<a class="code" href="classPhotoDescEdit.html#d5d3c206d7f98fd887dd034869ac1a19">timer</a>, SIGNAL(timeout()), <span class="keyword">this</span>, SLOT(<a class="code" href="classPhotoDescEdit.html#1d14c4b7b1095d94bae0c6cda9997832" title="this method is iteratively called and animates the opening/closing of the image">animate</a>()) );
<a name="l00377"></a>00377   <span class="comment">//---------------------------</span>
<a name="l00378"></a>00378   <span class="comment">//place widget in intial position</span>
<a name="l00379"></a>00379   move( <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a>, top );
<a name="l00380"></a>00380   show();
<a name="l00381"></a>00381 
<a name="l00382"></a>00382   <span class="comment">//start appearing process</span>
<a name="l00383"></a>00383   <a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> = <a class="code" href="photoDescEdit_8h.html#870c61eea76bf8a114fd48190bade23c">APPEARING</a>;
<a name="l00384"></a>00384   <a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a> = <a class="code" href="classPhotoDescEdit.html#57db3ca47356479ad589eb8bc681fdf9" title="------------------------------------- Animation Stuff">initDelay</a>;
<a name="l00385"></a>00385   <a class="code" href="classPhotoDescEdit.html#5c7684d8a47b42fbb85e55f4180fbfda">lastTime</a>.start();
<a name="l00386"></a>00386   <a class="code" href="classPhotoDescEdit.html#1d14c4b7b1095d94bae0c6cda9997832" title="this method is iteratively called and animates the opening/closing of the image">animate</a>();
<a name="l00387"></a>00387 }
<span class="comment">//==============================================</span>
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="9b2a132a4ba51bae6e9e11ff45f3ff19"></a><!-- doxytag: member="PhotoDescEdit::~PhotoDescEdit" ref="9b2a132a4ba51bae6e9e11ff45f3ff19" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PhotoDescEdit::~PhotoDescEdit           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8cpp_source.html#l00389">389</a> of file <a class="el" href="photoDescEdit_8cpp_source.html">photoDescEdit.cpp</a>.</p>

<p>References <a class="el" href="photoDescEdit_8h_source.html#l00078">backgroundImage</a>, <a class="el" href="photoDescEdit_8h_source.html#l00092">buffer</a>, <a class="el" href="photoDescEdit_8h_source.html#l00062">imageLarge</a>, <a class="el" href="photoDescEdit_8h_source.html#l00065">textRectangle</a>, and <a class="el" href="photoDescEdit_8h_source.html#l00120">timer</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00390"></a>00390 {
<a name="l00391"></a>00391   <span class="keyword">delete</span> <a class="code" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180" title="text area widget used to computing painting surface">textRectangle</a>;
<a name="l00392"></a>00392   <span class="keyword">delete</span> <a class="code" href="classPhotoDescEdit.html#d5d3c206d7f98fd887dd034869ac1a19">timer</a>;
<a name="l00393"></a>00393   <span class="keyword">delete</span> <a class="code" href="classPhotoDescEdit.html#e5ffff80d60d2ae3c800037cefe91273" title="buffer we&amp;#39;ll iteratively update and use for the label which shows the animation...">buffer</a>;
<a name="l00394"></a>00394   <span class="keyword">delete</span> <a class="code" href="classPhotoDescEdit.html#c85894eb530b94657e032c41fce20ed6" title="this pixmap contains the screen contents for the entire region which we will be painting...">backgroundImage</a>;
<a name="l00395"></a>00395   <span class="keyword">delete</span> <a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>;
<a name="l00396"></a>00396 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1d14c4b7b1095d94bae0c6cda9997832"></a><!-- doxytag: member="PhotoDescEdit::animate" ref="1d14c4b7b1095d94bae0c6cda9997832" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PhotoDescEdit::animate           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
this method is iteratively called and animates the opening/closing of the image 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8cpp_source.html#l00398">398</a> of file <a class="el" href="photoDescEdit_8cpp_source.html">photoDescEdit.cpp</a>.</p>

<p>References <a class="el" href="photoDescEdit_8h_source.html#l00111">accel</a>, <a class="el" href="photoDescEdit_8h_source.html#l00089">animationLabel</a>, <a class="el" href="photoDescEdit_8h_source.html#l00027">APPEARING</a>, <a class="el" href="photoDescEdit_8h_source.html#l00078">backgroundImage</a>, <a class="el" href="photoDescEdit_8h_source.html#l00092">buffer</a>, <a class="el" href="photoDescEdit_8h_source.html#l00121">currentTime</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">delay</a>, <a class="el" href="photoDescEdit_8h_source.html#l00029">DISAPPEARED</a>, <a class="el" href="photoDescEdit_8h_source.html#l00117">dropShadowsEnabled</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00031">EDIT_MARGIN</a>, <a class="el" href="photoDescEdit_8h_source.html#l00068">finalPos</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00544">hide()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00074">idealTextSize</a>, <a class="el" href="photoDescEdit_8h_source.html#l00062">imageLarge</a>, <a class="el" href="photoDescEdit_8h_source.html#l00068">initPos</a>, <a class="el" href="photoDescEdit_8h_source.html#l00121">lastTime</a>, <a class="el" href="photoDescEdit_8h_source.html#l00071">left</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">minDelay</a>, <a class="el" href="photoDescEdit_8h_source.html#l00114">mode</a>, <a class="el" href="photoDescEdit_8h_source.html#l00106">photoDesc</a>, <a class="el" href="photoDescEdit_8h_source.html#l00081">smallHeight</a>, <a class="el" href="photoDescEdit_8h_source.html#l00081">smallWidth</a>, <a class="el" href="photoDescEdit_8h_source.html#l00026">STATIC</a>, <a class="el" href="photoDescEdit_8h_source.html#l00100">staticFrame</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">step</a>, <a class="el" href="photoDescEdit_8h_source.html#l00065">textRectangle</a>, <a class="el" href="photoDescEdit_8h_source.html#l00120">timer</a>, and <a class="el" href="photoDescEdit_8h_source.html#l00071">top</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00399"></a>00399 {
<a name="l00400"></a>00400   <span class="comment">//---------------------------------</span>
<a name="l00401"></a>00401   <span class="comment">//determine # of ms that have passed since last redraw</span>
<a name="l00402"></a>00402   <a class="code" href="classPhotoDescEdit.html#78ef2a1b063d4aef39ec84f79e9149b3">currentTime</a>.start();
<a name="l00403"></a>00403   <span class="keywordtype">double</span> ms = <a class="code" href="classPhotoDescEdit.html#5c7684d8a47b42fbb85e55f4180fbfda">lastTime</a>.msecsTo(<a class="code" href="classPhotoDescEdit.html#78ef2a1b063d4aef39ec84f79e9149b3">currentTime</a>);
<a name="l00404"></a>00404 
<a name="l00405"></a>00405   <span class="comment">//determine increment</span>
<a name="l00406"></a>00406   <span class="keywordtype">int</span> inc = (int)(ms/(<a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a>+1));
<a name="l00407"></a>00407 
<a name="l00408"></a>00408   <span class="comment">//if increment is not zero then update last time</span>
<a name="l00409"></a>00409   <span class="keywordflow">if</span>(inc != 0)
<a name="l00410"></a>00410   {
<a name="l00411"></a>00411     <a class="code" href="classPhotoDescEdit.html#5c7684d8a47b42fbb85e55f4180fbfda">lastTime</a> = <a class="code" href="classPhotoDescEdit.html#78ef2a1b063d4aef39ec84f79e9149b3">currentTime</a>;
<a name="l00412"></a>00412 
<a name="l00413"></a>00413     <span class="comment">//update step</span>
<a name="l00414"></a>00414     <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> = <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> + inc;
<a name="l00415"></a>00415     <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> &gt; 100)
<a name="l00416"></a>00416       <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> = 100;
<a name="l00417"></a>00417 
<a name="l00418"></a>00418     <span class="comment">//update position and size</span>
<a name="l00419"></a>00419     <span class="keywordtype">double</span> alpha = ((double)<a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a>) / 100.0;
<a name="l00420"></a>00420     <span class="keywordtype">int</span> newX, newY;
<a name="l00421"></a>00421     <span class="keywordtype">int</span> imageW, imageH;
<a name="l00422"></a>00422     <span class="keywordtype">int</span> textDim;
<a name="l00423"></a>00423     QColor darkBlue(35, 75, 139);
<a name="l00424"></a>00424     <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> == <a class="code" href="photoDescEdit_8h.html#870c61eea76bf8a114fd48190bade23c">APPEARING</a>)
<a name="l00425"></a>00425     {
<a name="l00426"></a>00426       newX = (int)((1-alpha)*<a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.x() + alpha*<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.x());
<a name="l00427"></a>00427       newY = (int)((1-alpha)*<a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.y() + alpha*<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.y());
<a name="l00428"></a>00428       imageW = (int)((1-alpha)*<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> + alpha*<a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>-&gt;width());
<a name="l00429"></a>00429       imageH = (int)((1-alpha)*<a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> + alpha*<a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>-&gt;height());
<a name="l00430"></a>00430       textDim = (int) (alpha * <a class="code" href="classPhotoDescEdit.html#ef6f3dd44a4aa22030ba9fff3188eb69" title="ultimate text dimension">idealTextSize</a>);
<a name="l00431"></a>00431     }
<a name="l00432"></a>00432     <span class="keywordflow">else</span>
<a name="l00433"></a>00433     {
<a name="l00434"></a>00434       newX = (int)(alpha*<a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.x() + (1-alpha)*<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.x());
<a name="l00435"></a>00435       newY = (int)(alpha*<a class="code" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">initPos</a>.y() + (1-alpha)*<a class="code" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">finalPos</a>.y());
<a name="l00436"></a>00436       imageW = (int)(alpha*<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> + (1-alpha)*<a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>-&gt;width());
<a name="l00437"></a>00437       imageH = (int)(alpha*<a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> + (1-alpha)*<a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>-&gt;height());
<a name="l00438"></a>00438       textDim = (int) ((1-alpha) * <a class="code" href="classPhotoDescEdit.html#ef6f3dd44a4aa22030ba9fff3188eb69" title="ultimate text dimension">idealTextSize</a>);
<a name="l00439"></a>00439     }
<a name="l00440"></a>00440 
<a name="l00441"></a>00441     <span class="comment">//draw background image to buffer</span>
<a name="l00442"></a>00442     QPainter bufferPainter( <a class="code" href="classPhotoDescEdit.html#e5ffff80d60d2ae3c800037cefe91273" title="buffer we&amp;#39;ll iteratively update and use for the label which shows the animation...">buffer</a> );
<a name="l00443"></a>00443     bufferPainter.drawPixmap(0,0, *<a class="code" href="classPhotoDescEdit.html#c85894eb530b94657e032c41fce20ed6" title="this pixmap contains the screen contents for the entire region which we will be painting...">backgroundImage</a> );
<a name="l00444"></a>00444 
<a name="l00445"></a>00445     <span class="comment">//draw selection and white text rectangles</span>
<a name="l00446"></a>00446     <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1" title="small size">smallWidth</a> &gt; <a class="code" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">smallHeight</a> )
<a name="l00447"></a>00447     {
<a name="l00448"></a>00448       bufferPainter.fillRect( newX - <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a>, 
<a name="l00449"></a>00449                               newY - <a class="code" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a>,
<a name="l00450"></a>00450                               imageW + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>,
<a name="l00451"></a>00451                               imageH + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> + textDim,
<a name="l00452"></a>00452                               darkBlue );
<a name="l00453"></a>00453 
<a name="l00454"></a>00454       bufferPainter.drawPixmap( newX - <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a> + <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>,
<a name="l00455"></a>00455                                 newY - <a class="code" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a> + <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> + imageH,
<a name="l00456"></a>00456                                 QPixmap( <a class="code" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180" title="text area widget used to computing painting surface">textRectangle</a>-&gt;scale( imageW, textDim ) ) );
<a name="l00457"></a>00457     }
<a name="l00458"></a>00458     <span class="keywordflow">else</span>
<a name="l00459"></a>00459     {
<a name="l00460"></a>00460       bufferPainter.fillRect( newX - <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a>, newY - <a class="code" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a>,
<a name="l00461"></a>00461                               imageW + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> + textDim,
<a name="l00462"></a>00462                               imageH + 2*<a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>,
<a name="l00463"></a>00463                               darkBlue );
<a name="l00464"></a>00464 
<a name="l00465"></a>00465       bufferPainter.drawPixmap( newX - <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a> + <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a> + imageW,
<a name="l00466"></a>00466                                 newY - <a class="code" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a> + <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>,
<a name="l00467"></a>00467                                 QPixmap( <a class="code" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180" title="text area widget used to computing painting surface">textRectangle</a>-&gt;scale( textDim, imageH ) ) );
<a name="l00468"></a>00468     }
<a name="l00469"></a>00469 
<a name="l00470"></a>00470     <span class="comment">//draw scaled moved image to buffer</span>
<a name="l00471"></a>00471     bufferPainter.drawPixmap( newX - <a class="code" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944" title="bounaries of entire animation">left</a> + <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>,
<a name="l00472"></a>00472                               newY - <a class="code" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">top</a> + <a class="code" href="photoDescEdit_8cpp.html#38f869fc6cf2191862015529943395a1">EDIT_MARGIN</a>,
<a name="l00473"></a>00473                               QPixmap( <a class="code" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b" title="beginning and end pixmaps">imageLarge</a>-&gt;scale( imageW, imageH ) ) );
<a name="l00474"></a>00474 
<a name="l00475"></a>00475     <span class="comment">//set label to use buffer pixmap</span>
<a name="l00476"></a>00476     <a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a>-&gt;setPixmap( *<a class="code" href="classPhotoDescEdit.html#e5ffff80d60d2ae3c800037cefe91273" title="buffer we&amp;#39;ll iteratively update and use for the label which shows the animation...">buffer</a> );
<a name="l00477"></a>00477   }
<a name="l00478"></a>00478 
<a name="l00479"></a>00479   <span class="comment">//not done restart timer</span>
<a name="l00480"></a>00480   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> &lt; 100)
<a name="l00481"></a>00481   {
<a name="l00482"></a>00482     <span class="comment">//update speed</span>
<a name="l00483"></a>00483     <a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a> = <a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a> - <a class="code" href="classPhotoDescEdit.html#4e844b0a8bc6f7be8c9b0730c063e8bb">accel</a>;
<a name="l00484"></a>00484     <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a> &lt; <a class="code" href="classPhotoDescEdit.html#713cfbbc4c97775390f944b8331f9c83">minDelay</a>) <a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a> = <a class="code" href="classPhotoDescEdit.html#713cfbbc4c97775390f944b8331f9c83">minDelay</a>;
<a name="l00485"></a>00485 
<a name="l00486"></a>00486     <span class="comment">//restart timer</span>
<a name="l00487"></a>00487     <a class="code" href="classPhotoDescEdit.html#d5d3c206d7f98fd887dd034869ac1a19">timer</a>-&gt;start( <a class="code" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">delay</a>, TRUE );
<a name="l00488"></a>00488   }
<a name="l00489"></a>00489   <span class="keywordflow">else</span>
<a name="l00490"></a>00490   {
<a name="l00491"></a>00491     <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> == <a class="code" href="photoDescEdit_8h.html#870c61eea76bf8a114fd48190bade23c">APPEARING</a>)
<a name="l00492"></a>00492     {
<a name="l00493"></a>00493       <a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a>-&gt;hide();
<a name="l00494"></a>00494       <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>-&gt;show();
<a name="l00495"></a>00495 
<a name="l00496"></a>00496       <span class="comment">//auto focus text area, put cursor at very end</span>
<a name="l00497"></a>00497       <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;setFocus();
<a name="l00498"></a>00498 
<a name="l00499"></a>00499       <a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> = <a class="code" href="photoDescEdit_8h.html#10b2d890d871e1489bb02b7e70d9bdfb">STATIC</a>;
<a name="l00500"></a>00500     }
<a name="l00501"></a>00501     <span class="keywordflow">else</span>
<a name="l00502"></a>00502     {
<a name="l00503"></a>00503       <span class="comment">//reenable drop shadows on windows xp if they were previously enabled</span>
<a name="l00504"></a>00504 <span class="preprocessor">      #if defined(Q_OS_WIN)</span>
<a name="l00505"></a>00505 <span class="preprocessor"></span>      <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#79178e1d6619e9bae0b33e2026c9ea24" title="are drop shadows enabled in windows (xp)?">dropShadowsEnabled</a>)
<a name="l00506"></a>00506         SystemParametersInfo( SPI_SETDROPSHADOW, 0, &amp;<a class="code" href="classPhotoDescEdit.html#79178e1d6619e9bae0b33e2026c9ea24" title="are drop shadows enabled in windows (xp)?">dropShadowsEnabled</a>, 0 );
<a name="l00507"></a>00507       <span class="keywordflow">else</span>
<a name="l00508"></a>00508         SystemParametersInfo( SPI_SETDROPSHADOW, 0, NULL, 0 );
<a name="l00509"></a>00509 <span class="preprocessor">      #endif //Q_OS_WIN</span>
<a name="l00510"></a>00510 <span class="preprocessor"></span>
<a name="l00511"></a>00511       <a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> = <a class="code" href="photoDescEdit_8h.html#f9d859751252cbe5dd40c3127e6e3f2b">DISAPPEARED</a>;
<a name="l00512"></a>00512       <a class="code" href="classPhotoDescEdit.html#9a968ece63986094ca503100888ea724">hide</a>();
<a name="l00513"></a>00513       qApp-&gt;mainWidget()-&gt;repaint(<span class="keyword">false</span>);
<a name="l00514"></a>00514     }
<a name="l00515"></a>00515   }
<a name="l00516"></a>00516 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="1246f9434d29c05aa6d0dc344011b230"></a><!-- doxytag: member="PhotoDescEdit::disappear" ref="1246f9434d29c05aa6d0dc344011b230" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PhotoDescEdit::disappear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
this method is called by the acceptAndClose and rejectAndClose slots and actually initiates the closing process 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8cpp_source.html#l00518">518</a> of file <a class="el" href="photoDescEdit_8cpp_source.html">photoDescEdit.cpp</a>.</p>

<p>References <a class="el" href="photoDescEdit_8h_source.html#l00111">accel</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00089">animationLabel</a>, <a class="el" href="photoDescEdit_8h_source.html#l00028">DISAPPEARING</a>, <a class="el" href="photoPreviewWidget_8cpp_source.html#l00049">PhotoPreviewWidget::getPhoto()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">initDelay</a>, <a class="el" href="photoDescEdit_8h_source.html#l00121">lastTime</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">minDelay</a>, <a class="el" href="photoDescEdit_8h_source.html#l00114">mode</a>, <a class="el" href="photoDescEdit_8h_source.html#l00106">photoDesc</a>, <a class="el" href="photoDescEdit_8h_source.html#l00059">ppw</a>, <a class="el" href="photo_8cpp_source.html#l00209">Photo::setDescription()</a>, <a class="el" href="photoPreviewWidget_8cpp_source.html#l00071">PhotoPreviewWidget::setText()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00100">staticFrame</a>, <a class="el" href="photoDescEdit_8h_source.html#l00111">step</a>, <a class="el" href="photoDescEdit_8h_source.html#l00065">textRectangle</a>, and <a class="el" href="photoDescEdit_8h_source.html#l00056">useAnimation</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00544">hide()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00519"></a>00519 {
<a name="l00520"></a>00520   <span class="keyword">delete</span> <a class="code" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180" title="text area widget used to computing painting surface">textRectangle</a>;
<a name="l00521"></a>00521   <a class="code" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180" title="text area widget used to computing painting surface">textRectangle</a> = <span class="keyword">new</span> QImage( QPixmap::grabWidget(<a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>).convertToImage() );
<a name="l00522"></a>00522 
<a name="l00523"></a>00523   <a class="code" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914" title="photo preview widget pointer">ppw</a>-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#b9460c196309be9f0084bbeb91ac04c6" title="Sets the description.">setDescription</a>( <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;text() );
<a name="l00524"></a>00524   <a class="code" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914" title="photo preview widget pointer">ppw</a>-&gt;<a class="code" href="classPhotoPreviewWidget.html#ddb523fc7dd928131a9931b01be0f2b6">setText</a>( <a class="code" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c" title="photo description">photoDesc</a>-&gt;text() );
<a name="l00525"></a>00525 
<a name="l00526"></a>00526   <span class="comment">//start disappearing process</span>
<a name="l00527"></a>00527   <a class="code" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04" title="frame which contains static widget">staticFrame</a>-&gt;hide();
<a name="l00528"></a>00528   <a class="code" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f" title="------------------------------------- Animating Widgets">animationLabel</a>-&gt;show();
<a name="l00529"></a>00529 
<a name="l00530"></a>00530   <a class="code" href="classPhotoDescEdit.html#57db3ca47356479ad589eb8bc681fdf9" title="------------------------------------- Animation Stuff">initDelay</a> = 130;
<a name="l00531"></a>00531   <a class="code" href="classPhotoDescEdit.html#4e844b0a8bc6f7be8c9b0730c063e8bb">accel</a> = 50;
<a name="l00532"></a>00532   <a class="code" href="classPhotoDescEdit.html#713cfbbc4c97775390f944b8331f9c83">minDelay</a> = 1;
<a name="l00533"></a>00533 
<a name="l00534"></a>00534   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3" title="actually animate the opening/closing process?">useAnimation</a>)
<a name="l00535"></a>00535     <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> = 0;
<a name="l00536"></a>00536   <span class="keywordflow">else</span>
<a name="l00537"></a>00537     <a class="code" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">step</a> = 100;
<a name="l00538"></a>00538 
<a name="l00539"></a>00539   <a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> = <a class="code" href="photoDescEdit_8h.html#7c731f2ff3d82f8bd122b6dc76ade585">DISAPPEARING</a>;
<a name="l00540"></a>00540   <a class="code" href="classPhotoDescEdit.html#5c7684d8a47b42fbb85e55f4180fbfda">lastTime</a>.start();
<a name="l00541"></a>00541   <a class="code" href="classPhotoDescEdit.html#1d14c4b7b1095d94bae0c6cda9997832" title="this method is iteratively called and animates the opening/closing of the image">animate</a>();
<a name="l00542"></a>00542 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="9a968ece63986094ca503100888ea724"></a><!-- doxytag: member="PhotoDescEdit::hide" ref="9a968ece63986094ca503100888ea724" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PhotoDescEdit::hide           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8cpp_source.html#l00544">544</a> of file <a class="el" href="photoDescEdit_8cpp_source.html">photoDescEdit.cpp</a>.</p>

<p>References <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, <a class="el" href="photoDescEdit_8h_source.html#l00029">DISAPPEARED</a>, <a class="el" href="photoDescEdit_8h_source.html#l00114">mode</a>, <a class="el" href="photoDescEdit_8h_source.html#l00059">ppw</a>, and <a class="el" href="photoDescEdit_8h_source.html#l00026">STATIC</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00545"></a>00545 {
<a name="l00546"></a>00546   <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> == <a class="code" href="photoDescEdit_8h.html#f9d859751252cbe5dd40c3127e6e3f2b">DISAPPEARED</a> )
<a name="l00547"></a>00547   {
<a name="l00548"></a>00548     <a class="code" href="classPhotoDescEdit.html#9a968ece63986094ca503100888ea724">QWidget::hide</a>();
<a name="l00549"></a>00549 
<a name="l00550"></a>00550     <span class="comment">//check to see if mouse is over a new item, </span>
<a name="l00551"></a>00551     <span class="comment">//if so immediately set it as being moused over</span>
<a name="l00552"></a>00552     <a class="code" href="classQIconView.html">QIconView</a>* iconView = <a class="code" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914" title="photo preview widget pointer">ppw</a>-&gt;iconView();
<a name="l00553"></a>00553     <a class="code" href="classQIconViewItem.html">QIconViewItem</a>* item = iconView-&gt;findItem( iconView-&gt;viewport()-&gt;mapFromGlobal( QCursor::pos() )+=QPoint( iconView-&gt;contentsX(), iconView-&gt;contentsY() )  );
<a name="l00554"></a>00554     <span class="keywordflow">if</span>(item != NULL &amp;&amp; item != <a class="code" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914" title="photo preview widget pointer">ppw</a> )
<a name="l00555"></a>00555     {
<a name="l00556"></a>00556       ((<a class="code" href="classPhotosIconView.html" title="Extension of iconview, used to list all photos in a subalbum. supports drag-n-drop...">PhotosIconView</a>*)item-&gt;iconView())-&gt;repaintGroup( item );
<a name="l00557"></a>00557     }
<a name="l00558"></a>00558   }
<a name="l00559"></a>00559   <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">mode</a> == <a class="code" href="photoDescEdit_8h.html#10b2d890d871e1489bb02b7e70d9bdfb">STATIC</a>)
<a name="l00560"></a>00560   {
<a name="l00561"></a>00561     <a class="code" href="classPhotoDescEdit.html#1246f9434d29c05aa6d0dc344011b230" title="this method is called by the acceptAndClose and rejectAndClose slots and actually...">disappear</a>();
<a name="l00562"></a>00562   }
<a name="l00563"></a>00563 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="4e844b0a8bc6f7be8c9b0730c063e8bb"></a><!-- doxytag: member="PhotoDescEdit::accel" ref="4e844b0a8bc6f7be8c9b0730c063e8bb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#4e844b0a8bc6f7be8c9b0730c063e8bb">PhotoDescEdit::accel</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00111">111</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="79d237fc04763db39f9c8f386f24982f"></a><!-- doxytag: member="PhotoDescEdit::animationLabel" ref="79d237fc04763db39f9c8f386f24982f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classQLabel.html">QLabel</a>* <a class="el" href="classPhotoDescEdit.html#79d237fc04763db39f9c8f386f24982f">PhotoDescEdit::animationLabel</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
------------------------------------- Animating Widgets 
<p>
label which shows moving and expanding photo on background 
<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00089">89</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c85894eb530b94657e032c41fce20ed6"></a><!-- doxytag: member="PhotoDescEdit::backgroundImage" ref="c85894eb530b94657e032c41fce20ed6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPixmap* <a class="el" href="classPhotoDescEdit.html#c85894eb530b94657e032c41fce20ed6">PhotoDescEdit::backgroundImage</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
this pixmap contains the screen contents for the entire region which we will be painting on top of 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00078">78</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00389">~PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="593214f92bef1793d11790fb90f44b49"></a><!-- doxytag: member="PhotoDescEdit::bottom" ref="593214f92bef1793d11790fb90f44b49" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#593214f92bef1793d11790fb90f44b49">PhotoDescEdit::bottom</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00071">71</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e5ffff80d60d2ae3c800037cefe91273"></a><!-- doxytag: member="PhotoDescEdit::buffer" ref="e5ffff80d60d2ae3c800037cefe91273" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPixmap* <a class="el" href="classPhotoDescEdit.html#e5ffff80d60d2ae3c800037cefe91273">PhotoDescEdit::buffer</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
buffer we'll iteratively update and use for the label which shows the animation taking place 
<p>

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

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00389">~PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="78ef2a1b063d4aef39ec84f79e9149b3"></a><!-- doxytag: member="PhotoDescEdit::currentTime" ref="78ef2a1b063d4aef39ec84f79e9149b3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTime <a class="el" href="classPhotoDescEdit.html#78ef2a1b063d4aef39ec84f79e9149b3">PhotoDescEdit::currentTime</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00121">121</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e470a9842a30f91ee21cc63f4640a24d"></a><!-- doxytag: member="PhotoDescEdit::delay" ref="e470a9842a30f91ee21cc63f4640a24d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#e470a9842a30f91ee21cc63f4640a24d">PhotoDescEdit::delay</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00111">111</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="79178e1d6619e9bae0b33e2026c9ea24"></a><!-- doxytag: member="PhotoDescEdit::dropShadowsEnabled" ref="79178e1d6619e9bae0b33e2026c9ea24" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classPhotoDescEdit.html#79178e1d6619e9bae0b33e2026c9ea24">PhotoDescEdit::dropShadowsEnabled</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
are drop shadows enabled in windows (xp)? 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00117">117</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b49f925c73701d37ae2ab285f2024b92"></a><!-- doxytag: member="PhotoDescEdit::finalPos" ref="b49f925c73701d37ae2ab285f2024b92" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPoint <a class="el" href="classPhotoDescEdit.html#b49f925c73701d37ae2ab285f2024b92">PhotoDescEdit::finalPos</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00068">68</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ef6f3dd44a4aa22030ba9fff3188eb69"></a><!-- doxytag: member="PhotoDescEdit::idealTextSize" ref="ef6f3dd44a4aa22030ba9fff3188eb69" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#ef6f3dd44a4aa22030ba9fff3188eb69">PhotoDescEdit::idealTextSize</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
ultimate text dimension 
<p>

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

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="7ce3808456a1c9253c8bc0559155049b"></a><!-- doxytag: member="PhotoDescEdit::imageLarge" ref="7ce3808456a1c9253c8bc0559155049b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage* <a class="el" href="classPhotoDescEdit.html#7ce3808456a1c9253c8bc0559155049b">PhotoDescEdit::imageLarge</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
beginning and end pixmaps 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00062">62</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00389">~PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="57db3ca47356479ad589eb8bc681fdf9"></a><!-- doxytag: member="PhotoDescEdit::initDelay" ref="57db3ca47356479ad589eb8bc681fdf9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#57db3ca47356479ad589eb8bc681fdf9">PhotoDescEdit::initDelay</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
------------------------------------- Animation Stuff 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00111">111</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="06ee6a3ee0f8d0e08b1ab831e87ad61a"></a><!-- doxytag: member="PhotoDescEdit::initPos" ref="06ee6a3ee0f8d0e08b1ab831e87ad61a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPoint <a class="el" href="classPhotoDescEdit.html#06ee6a3ee0f8d0e08b1ab831e87ad61a">PhotoDescEdit::initPos</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00068">68</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5c7684d8a47b42fbb85e55f4180fbfda"></a><!-- doxytag: member="PhotoDescEdit::lastTime" ref="5c7684d8a47b42fbb85e55f4180fbfda" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTime <a class="el" href="classPhotoDescEdit.html#5c7684d8a47b42fbb85e55f4180fbfda">PhotoDescEdit::lastTime</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00121">121</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8f28f6b65a3f043064999ec6f0fa3944"></a><!-- doxytag: member="PhotoDescEdit::left" ref="8f28f6b65a3f043064999ec6f0fa3944" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#8f28f6b65a3f043064999ec6f0fa3944">PhotoDescEdit::left</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
bounaries of entire animation 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00071">71</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="831600bf4e33dffd73c45fb26f2feeb7"></a><!-- doxytag: member="PhotoDescEdit::mainGrid" ref="831600bf4e33dffd73c45fb26f2feeb7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QGridLayout* <a class="el" href="classPhotoDescEdit.html#831600bf4e33dffd73c45fb26f2feeb7">PhotoDescEdit::mainGrid</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
------------------------------------- 
<p>

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

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="713cfbbc4c97775390f944b8331f9c83"></a><!-- doxytag: member="PhotoDescEdit::minDelay" ref="713cfbbc4c97775390f944b8331f9c83" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#713cfbbc4c97775390f944b8331f9c83">PhotoDescEdit::minDelay</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00111">111</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="cb61ee47691c2ffdb269cc51390d5e38"></a><!-- doxytag: member="PhotoDescEdit::mode" ref="cb61ee47691c2ffdb269cc51390d5e38" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#cb61ee47691c2ffdb269cc51390d5e38">PhotoDescEdit::mode</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00114">114</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00544">hide()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8cb091718613630dbb1924d3d824354c"></a><!-- doxytag: member="PhotoDescEdit::photoDesc" ref="8cb091718613630dbb1924d3d824354c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTextEdit.html">TextEdit</a>* <a class="el" href="classPhotoDescEdit.html#8cb091718613630dbb1924d3d824354c">PhotoDescEdit::photoDesc</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
photo description 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00106">106</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f9e918c721e0ab421fe887ff7a4ff914"></a><!-- doxytag: member="PhotoDescEdit::ppw" ref="f9e918c721e0ab421fe887ff7a4ff914" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPhotoPreviewWidget.html">PhotoPreviewWidget</a>* <a class="el" href="classPhotoDescEdit.html#f9e918c721e0ab421fe887ff7a4ff914">PhotoDescEdit::ppw</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
photo preview widget pointer 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00059">59</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00544">hide()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ebeda6d5ed589214a6bb90673e9c93bc"></a><!-- doxytag: member="PhotoDescEdit::right" ref="ebeda6d5ed589214a6bb90673e9c93bc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#ebeda6d5ed589214a6bb90673e9c93bc">PhotoDescEdit::right</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00071">71</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c91cc309d7a83685a5a0ab155c719dc6"></a><!-- doxytag: member="PhotoDescEdit::smallHeight" ref="c91cc309d7a83685a5a0ab155c719dc6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#c91cc309d7a83685a5a0ab155c719dc6">PhotoDescEdit::smallHeight</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00081">81</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a24e3944e4d1b83ca7d42fb4532a9df1"></a><!-- doxytag: member="PhotoDescEdit::smallWidth" ref="a24e3944e4d1b83ca7d42fb4532a9df1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#a24e3944e4d1b83ca7d42fb4532a9df1">PhotoDescEdit::smallWidth</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
small size 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00081">81</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ce1685d223bcca274f232a259822af04"></a><!-- doxytag: member="PhotoDescEdit::staticFrame" ref="ce1685d223bcca274f232a259822af04" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classQWidget.html">QWidget</a>* <a class="el" href="classPhotoDescEdit.html#ce1685d223bcca274f232a259822af04">PhotoDescEdit::staticFrame</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
frame which contains static widget 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00100">100</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="87011adbe9e69aa206006ca54462a583"></a><!-- doxytag: member="PhotoDescEdit::staticGrid" ref="87011adbe9e69aa206006ca54462a583" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QGridLayout* <a class="el" href="classPhotoDescEdit.html#87011adbe9e69aa206006ca54462a583">PhotoDescEdit::staticGrid</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
------------------------------------- Static Widgets 
<p>
grid static widgets placed in 
<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00097">97</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6867dc16d760840bfd89620a10431ad0"></a><!-- doxytag: member="PhotoDescEdit::staticPhoto" ref="6867dc16d760840bfd89620a10431ad0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classQLabel.html">QLabel</a>* <a class="el" href="classPhotoDescEdit.html#6867dc16d760840bfd89620a10431ad0">PhotoDescEdit::staticPhoto</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
photo being displayed 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00103">103</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5e4b5b596711d88e8bd5b0dc435800c9"></a><!-- doxytag: member="PhotoDescEdit::step" ref="5e4b5b596711d88e8bd5b0dc435800c9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#5e4b5b596711d88e8bd5b0dc435800c9">PhotoDescEdit::step</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00111">111</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f4abaf07878d35760aaad1fd052cc180"></a><!-- doxytag: member="PhotoDescEdit::textRectangle" ref="f4abaf07878d35760aaad1fd052cc180" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage* <a class="el" href="classPhotoDescEdit.html#f4abaf07878d35760aaad1fd052cc180">PhotoDescEdit::textRectangle</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
text area widget used to computing painting surface 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00065">65</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00389">~PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="d5d3c206d7f98fd887dd034869ac1a19"></a><!-- doxytag: member="PhotoDescEdit::timer" ref="d5d3c206d7f98fd887dd034869ac1a19" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTimer* <a class="el" href="classPhotoDescEdit.html#d5d3c206d7f98fd887dd034869ac1a19">PhotoDescEdit::timer</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00120">120</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00389">~PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="273ffc5a679d91e0bf1fa578a013a9df"></a><!-- doxytag: member="PhotoDescEdit::top" ref="273ffc5a679d91e0bf1fa578a013a9df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classPhotoDescEdit.html#273ffc5a679d91e0bf1fa578a013a9df">PhotoDescEdit::top</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00071">71</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00398">animate()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ff933eddd929700e6f41a1599b78a9e3"></a><!-- doxytag: member="PhotoDescEdit::useAnimation" ref="ff933eddd929700e6f41a1599b78a9e3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classPhotoDescEdit.html#ff933eddd929700e6f41a1599b78a9e3">PhotoDescEdit::useAnimation</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
actually animate the opening/closing process? 
<p>

<p>Definition at line <a class="el" href="photoDescEdit_8h_source.html#l00056">56</a> of file <a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00518">disappear()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="photoDescEdit_8h_source.html">photoDescEdit.h</a><li><a class="el" href="photoDescEdit_8cpp_source.html">photoDescEdit.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:37 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>