Sophie

Sophie

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

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: Photo 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>Photo Class Reference</h1><!-- doxytag: class="Photo" -->A photo consists of a full size image, a smaller slide show image, a very small thumbnail image, and a desription.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="photo_8h_source.html">photo.h</a>&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for Photo:</div>
<div class="dynsection">
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classPhoto-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#33eea102dcc5f39222ea11618f9b93c1">Photo</a> (<a class="el" href="classSubalbum.html">Subalbum</a> *<a class="el" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1">subalbum</a>, <a class="el" href="classPhoto.html">Photo</a> *<a class="el" href="classPhoto.html#6d8d3898cc546889f7c0213b8bc3051a">prev</a>, int photoNumber)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets default information.  <a href="#33eea102dcc5f39222ea11618f9b93c1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#dc366234be6226600360c7cbba8e7fcf">~Photo</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QImage *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#96dcf5c6210ca39c534ae2287be1df90">getThumbnailImage</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets thumbnail image.  <a href="#96dcf5c6210ca39c534ae2287be1df90"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#f4d602874536f89799f828abd2a34848">constructSmallerImages</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct thumbnail and slideshow images, load up thumbnail image, and set photo has being modified.  <a href="#f4d602874536f89799f828abd2a34848"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#29e2aae62991d904c3cb763ec838d9bd">setImage</a> (QString imageName, QString slideshowName, QString thumbnailName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Setup photo using preexisting full size, slideshow, and thumbnail images.  <a href="#29e2aae62991d904c3cb763ec838d9bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#49be0b8f7e4b4cc83395ce13e4462632">setImage</a> (QString imageName, int uniqueID)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Setup photo using a new image. We'll need to create slideshow and thumbnail images.  <a href="#49be0b8f7e4b4cc83395ce13e4462632"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#da55883a113f7a5b9021ccb2a48466ed">setImage</a> (QString editedImageFilename)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset photo data after photo editing has taken place.  <a href="#da55883a113f7a5b9021ccb2a48466ed"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#5ebb6fccddd609df5d407498957e1089">getImageFilename</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the image filename.  <a href="#5ebb6fccddd609df5d407498957e1089"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#d16ff6833a7ddc4340d7c296e2eeac99">getSlideshowFilename</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the slideshow filename.  <a href="#d16ff6833a7ddc4340d7c296e2eeac99"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#937a069696ef937d5ddd030b16946ded">getThumbnailFilename</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the thumbnail filename.  <a href="#937a069696ef937d5ddd030b16946ded"></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="classPhoto.html#ce2956fdb7c227242265e30fca8247e2">setImageFilename</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the image filename.  <a href="#ce2956fdb7c227242265e30fca8247e2"></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="classPhoto.html#b583bd230c73111707224cbe973263b7">setSlideshowFilename</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the slideshow filename.  <a href="#b583bd230c73111707224cbe973263b7"></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="classPhoto.html#8c9ab31a5158bb44e9d8b972c12ff0f9">setThumbnailFilename</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the thumbnail filename.  <a href="#8c9ab31a5158bb44e9d8b972c12ff0f9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#bc9851216524158d20580556219424a7">getImageChecksum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get image checksum.  <a href="#bc9851216524158d20580556219424a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#580439da79d239dba26e6f21abadbaf4">getThumbnailChecksum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get thumbanil checksum.  <a href="#580439da79d239dba26e6f21abadbaf4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#b4adadc959070279d7ab7dfc1a030c23">getSlideshowChecksum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get thumbanil checksum.  <a href="#b4adadc959070279d7ab7dfc1a030c23"></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="classPhoto.html#e79da2eb5300276a3b1d7f5649316f7a">setImageChecksum</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update image checksum.  <a href="#e79da2eb5300276a3b1d7f5649316f7a"></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="classPhoto.html#191bff87fa41c0f77409a0a5e25c8d1e">setThumbnailChecksum</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update thumbnail checksum.  <a href="#191bff87fa41c0f77409a0a5e25c8d1e"></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="classPhoto.html#054e5a51249e511536d6549099c617bf">setSlideshowChecksum</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update slideshow checksum.  <a href="#054e5a51249e511536d6549099c617bf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#db7ed08547098feeaff5753f2600f4bc">getDescription</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the description.  <a href="#db7ed08547098feeaff5753f2600f4bc"></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="classPhoto.html#b9460c196309be9f0084bbeb91ac04c6">setDescription</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the description.  <a href="#b9460c196309be9f0084bbeb91ac04c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a">getPrev</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the previous photo pointer.  <a href="#9740a1e6a5ad83534e1c3b2b2622cf7a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9">getNext</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns next photo pointer.  <a href="#357f9d79451532a37f41142d3aaba9f9"></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="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f">setPrev</a> (<a class="el" href="classPhoto.html">Photo</a> *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets prev photo pointer.  <a href="#7ee24d63bde8307b79829737dfa2cd8f"></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="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4">setNext</a> (<a class="el" href="classPhoto.html">Photo</a> *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets next photo pointer.  <a href="#6f4cb7532382e6d58daeb0163166e1e4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QDateTime *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#175031feb8124b3aa22d6145cd45cf4f">importFromDisk</a> (QDomNode *root)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Builds photo from XML DOM node, returns date modified info from xml.  <a href="#175031feb8124b3aa22d6145cd45cf4f"></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="classPhoto.html#32cb80c04e59656420094311ad6d9c20">exportToXML</a> (QTextStream &amp;stream)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exports photo to xml.  <a href="#32cb80c04e59656420094311ad6d9c20"></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="classPhoto.html#39ddcbbd8582b87b505f83826f03597c">rotate90</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotates image clockwise 90 degrees.  <a href="#39ddcbbd8582b87b505f83826f03597c"></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="classPhoto.html#0150c65533eb7ef04412ab7aed2b3c7b">rotate270</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotates image clockwise 270 degrees.  <a href="#0150c65533eb7ef04412ab7aed2b3c7b"></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="classPhoto.html#bb2cdbd79d85cc30ffc22af5eaf9796c">flipHorizontally</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flips image about horizontal axis.  <a href="#bb2cdbd79d85cc30ffc22af5eaf9796c"></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="classPhoto.html#8db049b5515cd7364742905ead2e60a5">flipVertically</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flips image about vertical axis.  <a href="#8db049b5515cd7364742905ead2e60a5"></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="classPhoto.html#37663feecba1823f08b177fd6c9fdf9d">applyTransformation</a> (<a class="el" href="imageTools_8h.html#d6b8916a355278afb7cd35f14afc9288">TRANSFORM_CODE</a> transformation)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Apply transformation.  <a href="#37663feecba1823f08b177fd6c9fdf9d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#25ceab66d0421b4305c0475372140d81">getNeedsSavingVal</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns if the image needs to be saved to its permament location.  <a href="#25ceab66d0421b4305c0475372140d81"></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="classPhoto.html#869d215db9d16aad336e2823927c3e84">setNeedsSavingVal</a> (bool val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets if the image needs to be saved to its permanent location.  <a href="#869d215db9d16aad336e2823927c3e84"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#6626ec8af77a3804f1127ab85295e9e8">getEverSaved</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns if the image has ever been saved to a permanant location.  <a href="#6626ec8af77a3804f1127ab85295e9e8"></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="classPhoto.html#60408934b0cb03ad0ad359ab1b5393a3">setEverSaved</a> (bool val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sets everSaved  <a href="#60408934b0cb03ad0ad359ab1b5393a3"></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="classPhoto.html#e50ed3a18f16735fcdade8f6f3f35488">revertPhoto</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">revert photo to original form  <a href="#e50ed3a18f16735fcdade8f6f3f35488"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#cf93c6065bb708320e7c675068e0b3d0">revertPossible</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">can photo be reverted to a differnt original form  <a href="#cf93c6065bb708320e7c675068e0b3d0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#03dbeca8e03ab6e7d37d5b015e173bd3">getRecentlyReverted</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">was the photo recently reverted? if so ignore the presence of orig files on disk  <a href="#03dbeca8e03ab6e7d37d5b015e173bd3"></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="classPhoto.html#313c0cdae1171955581fb976609014bd">setRecentlyReverted</a> (bool val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">reset the recently reverted value to val  <a href="#313c0cdae1171955581fb976609014bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#6a4cd6dfc1b78fa3b1c1661a59f71162">originalImageFilename</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">orig filename  <a href="#6a4cd6dfc1b78fa3b1c1661a59f71162"></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="classPhoto.html#9c95d4244d694b03981ca4fce6f9e95f">getInitialPhotoNumber</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns initial photo number.  <a href="#9c95d4244d694b03981ca4fce6f9e95f"></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="classPhoto.html#8d404398640e4db5545f6a81af5b8e46">setInitialPhotoNumber</a> (int val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets initial photo number.  <a href="#8d404398640e4db5545f6a81af5b8e46"></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="classPhoto.html#8801fb425f8dea9372fd95b875043186">getInitialSubalbumNumber</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns initial subalbum number.  <a href="#8801fb425f8dea9372fd95b875043186"></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="classPhoto.html#5e68573a73d1b2315db2c3cc2b53b2f1">setInitialSubalbumNumber</a> (int val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets initial subalbum number.  <a href="#5e68573a73d1b2315db2c3cc2b53b2f1"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSubalbum.html">Subalbum</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1">subalbum</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> photo is in.  <a href="#1274dccc0e1deef5dcb25b45a4bda5d1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#6d8d3898cc546889f7c0213b8bc3051a">prev</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to prev photo.  <a href="#6d8d3898cc546889f7c0213b8bc3051a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#8fd5de011a756f9974e9cd1f458e2678">next</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to next photo.  <a href="#8fd5de011a756f9974e9cd1f458e2678"></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="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a></td></tr>

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

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760">description</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a> description.  <a href="#6fe05dc549b7caf2ee3232476d41e760"></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="classPhoto.html#dee2a5bb92cbc903f3574d952c622867">thumbnailImage</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Thumbnail Image.  <a href="#dee2a5bb92cbc903f3574d952c622867"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5">imageLocation</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Filenames.  <a href="#ae2a02758b56abaa759057e7ee21f9b5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0">imageChecksum</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classMD5.html" title="MD5 Support allows checksums to be computed for images, determing if they have changed...">MD5</a> checksums, used to determine if image/thumbnail have been changed.  <a href="#a3f68b264dc2e072e651331b9de6aed0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331">needsSaving</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unsaved modifications?  <a href="#c53f4bdf11a948daef3c1a300668d331"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#441a3e1ea66da5e86fa02ecf7d41c09d">everSaved</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Has the photo ever been saved?  <a href="#441a3e1ea66da5e86fa02ecf7d41c09d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b">recentlyReverted</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Has the photo recently been reverted to it's original form? If so during the next save the orig file can safely be remove.  <a href="#b0cffd8b36cb5a5b18d4543dfe69046b"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image, and a desription. 
<p>Definition at line <a class="el" href="photo_8h_source.html#l00041">41</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="33eea102dcc5f39222ea11618f9b93c1"></a><!-- doxytag: member="Photo::Photo" ref="33eea102dcc5f39222ea11618f9b93c1" args="(Subalbum *subalbum, Photo *prev, int photoNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Photo::Photo           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSubalbum.html">Subalbum</a> *&nbsp;</td>
          <td class="paramname"> <em>subalbum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td>
          <td class="paramname"> <em>prev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>photoNumber</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets default information. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00031">31</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00202">description</a>, <a class="el" href="photo_8h_source.html#l00221">everSaved</a>, <a class="el" href="subalbum_8cpp_source.html#l00102">Subalbum::getSubalbumNumber()</a>, <a class="el" href="photo_8h_source.html#l00213">imageChecksum</a>, <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>, <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>, <a class="el" href="photo_8h_source.html#l00218">needsSaving</a>, <a class="el" href="photo_8h_source.html#l00193">next</a>, <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>, <a class="el" href="photo_8h_source.html#l00214">slideshowChecksum</a>, <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>, <a class="el" href="photo_8h_source.html#l00215">thumbnailChecksum</a>, <a class="el" href="photo_8h_source.html#l00205">thumbnailImage</a>, and <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00032"></a>00032 {
<a name="l00033"></a>00033   <span class="comment">//set subalbum pointer</span>
<a name="l00034"></a>00034   this-&gt;subalbum = subalbum;
<a name="l00035"></a>00035 
<a name="l00036"></a>00036   <span class="comment">//set prev pointer</span>
<a name="l00037"></a>00037   this-&gt;prev = prev;
<a name="l00038"></a>00038   
<a name="l00039"></a>00039   <span class="comment">//set next pointer to NULL, new photos are always</span>
<a name="l00040"></a>00040   <span class="comment">//inserted at the end of collections</span>
<a name="l00041"></a>00041   <a class="code" href="classPhoto.html#8fd5de011a756f9974e9cd1f458e2678" title="Pointer to next photo.">next</a> = NULL;
<a name="l00042"></a>00042   
<a name="l00043"></a>00043   <span class="comment">//set initial photo and subalbum numbers</span>
<a name="l00044"></a>00044   <a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a> = photoNumber;
<a name="l00045"></a>00045   <a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a> = subalbum-&gt;<a class="code" href="classSubalbum.html#421e48eea5937cd4718a34410bdc29cb" title="Returns subalbum number.">getSubalbumNumber</a>();
<a name="l00046"></a>00046 
<a name="l00047"></a>00047   <span class="comment">//set default to the empty string</span>
<a name="l00048"></a>00048   <a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a> = QString::null;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050   <span class="comment">//set thumbnail image</span>
<a name="l00051"></a>00051   <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a> = NULL;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053   <span class="comment">//set filenames and checksums to null until the actual photo data has been set</span>
<a name="l00054"></a>00054   <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>     = QString::null;
<a name="l00055"></a>00055   <a class="code" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0" title="MD5 checksums, used to determine if image/thumbnail have been changed.">imageChecksum</a>     = QString::null;
<a name="l00056"></a>00056   
<a name="l00057"></a>00057   <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a> = QString::null;
<a name="l00058"></a>00058   <a class="code" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a> = QString::null;
<a name="l00059"></a>00059   
<a name="l00060"></a>00060   <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a> = QString::null;
<a name="l00061"></a>00061   <a class="code" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a> = QString::null;
<a name="l00062"></a>00062 
<a name="l00063"></a>00063   <span class="comment">//a default photo is not interesting. once the </span>
<a name="l00064"></a>00064   <span class="comment">//actual photo data or description files have</span>
<a name="l00065"></a>00065   <span class="comment">//been reset the photo will need to be saved.</span>
<a name="l00066"></a>00066   <a class="code" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331" title="Unsaved modifications?">needsSaving</a> = <span class="keyword">false</span>;
<a name="l00067"></a>00067   
<a name="l00068"></a>00068   <span class="comment">//by default a photos are assumed to be saved. </span>
<a name="l00069"></a>00069   <span class="comment">//new photos are setup with a uniqueID and we'll set this bool false there</span>
<a name="l00070"></a>00070   <a class="code" href="classPhoto.html#441a3e1ea66da5e86fa02ecf7d41c09d" title="Has the photo ever been saved?">everSaved</a> = <span class="keyword">true</span>;
<a name="l00071"></a>00071   
<a name="l00072"></a>00072   <span class="comment">//photo not recently reverted</span>
<a name="l00073"></a>00073   <a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a> = <span class="keyword">false</span>;
<a name="l00074"></a>00074 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="dc366234be6226600360c7cbba8e7fcf"></a><!-- doxytag: member="Photo::~Photo" ref="dc366234be6226600360c7cbba8e7fcf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Photo::~Photo           </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="photo_8cpp_source.html#l00076">76</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00205">thumbnailImage</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00077"></a>00077 {
<a name="l00078"></a>00078   <span class="comment">//free the thumbnail image</span>
<a name="l00079"></a>00079   <span class="keyword">delete</span> <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a>;
<a name="l00080"></a>00080 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="37663feecba1823f08b177fd6c9fdf9d"></a><!-- doxytag: member="Photo::applyTransformation" ref="37663feecba1823f08b177fd6c9fdf9d" args="(TRANSFORM_CODE transformation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::applyTransformation           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="imageTools_8h.html#d6b8916a355278afb7cd35f14afc9288">TRANSFORM_CODE</a>&nbsp;</td>
          <td class="paramname"> <em>transformation</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Apply transformation. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00475">475</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="subalbum_8cpp_source.html#l00094">Subalbum::getAlbum()</a>, <a class="el" href="photo_8cpp_source.html#l00533">getEverSaved()</a>, <a class="el" href="album_8cpp_source.html#l00142">Album::getTmpDir()</a>, <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>, <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>, <a class="el" href="fileTools_8cpp_source.html#l00040">moveFile()</a>, <a class="el" href="photo_8h_source.html#l00218">needsSaving</a>, <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>, <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>, <a class="el" href="photo_8h_source.html#l00187">subalbum</a>, <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>, and <a class="el" href="imageTools_8cpp_source.html#l00112">transformImage()</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00472">flipHorizontally()</a>, <a class="el" href="photo_8cpp_source.html#l00473">flipVertically()</a>, <a class="el" href="photo_8cpp_source.html#l00471">rotate270()</a>, and <a class="el" href="photo_8cpp_source.html#l00470">rotate90()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00476"></a>00476 {  
<a name="l00477"></a>00477   <span class="comment">//backup old filename</span>
<a name="l00478"></a>00478   QString oldName = <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>;
<a name="l00479"></a>00479    
<a name="l00480"></a>00480   <span class="comment">//if the image did not previously need saving, </span>
<a name="l00481"></a>00481   <span class="comment">//reset filenames to point to temporary location and</span>
<a name="l00482"></a>00482   <span class="comment">//immediately perform transformation</span>
<a name="l00483"></a>00483   <span class="keywordflow">if</span>(!<a class="code" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331" title="Unsaved modifications?">needsSaving</a>)
<a name="l00484"></a>00484   {
<a name="l00485"></a>00485     <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + QString(<span class="stringliteral">"/%1_%2.jpg"</span>)
<a name="l00486"></a>00486                                                                 .arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>)
<a name="l00487"></a>00487                                                                 .arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00488"></a>00488     <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a> = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + QString(<span class="stringliteral">"/%1_%2_slideshow.jpg"</span>)
<a name="l00489"></a>00489                                                                 .arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>)
<a name="l00490"></a>00490                                                                 .arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00491"></a>00491     <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a> = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + QString(<span class="stringliteral">"/%1_%2_thumb.jpg"</span>)
<a name="l00492"></a>00492                                                                 .arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>)
<a name="l00493"></a>00493                                                                 .arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00494"></a>00494     <a class="code" href="imageTools_8cpp.html#c697bfb4e95bd96d949a4a61f0ce006e" title="Apply image transformation on image.">transformImage</a>( oldName, <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>, transformation );
<a name="l00495"></a>00495   }
<a name="l00496"></a>00496   <span class="keywordflow">else</span>
<a name="l00497"></a>00497   {
<a name="l00498"></a>00498     <span class="comment">//images that need saving already exist in the temporary directory</span>
<a name="l00499"></a>00499     <span class="comment">//this poses two problems:</span>
<a name="l00500"></a>00500     <span class="comment">//1.) fast jpeg transformations cannot be done in place, so we'll employ an</span>
<a name="l00501"></a>00501     <span class="comment">//    intermediate image</span>
<a name="l00502"></a>00502     QString intermediateName = QString(<span class="stringliteral">"%1_intermdiate.jpg"</span>).arg(oldName);
<a name="l00503"></a>00503     <a class="code" href="imageTools_8cpp.html#c697bfb4e95bd96d949a4a61f0ce006e" title="Apply image transformation on image.">transformImage</a>( oldName, intermediateName, transformation );    
<a name="l00504"></a>00504     
<a name="l00505"></a>00505     <span class="comment">//2.) If the photo has never been saved and an orig file in the temporary</span>
<a name="l00506"></a>00506     <span class="comment">//    directory does not exist then the current file is the original version. we</span>
<a name="l00507"></a>00507     <span class="comment">//    must make sure that this original photo is maintained using an orig file so</span>
<a name="l00508"></a>00508     <span class="comment">//    in the future users can revert the photo to it's original form.</span>
<a name="l00509"></a>00509     QString origName = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + QString(<span class="stringliteral">"/0_%1_orig.jpg"</span>)
<a name="l00510"></a>00510       .arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);      
<a name="l00511"></a>00511     QDir tmpDir;
<a name="l00512"></a>00512     <span class="keywordflow">if</span>( !<a class="code" href="classPhoto.html#6626ec8af77a3804f1127ab85295e9e8" title="Returns if the image has ever been saved to a permanant location.">getEverSaved</a>() &amp;&amp; !tmpDir.exists(origName) )
<a name="l00513"></a>00513     {
<a name="l00514"></a>00514       <a class="code" href="fileTools_8cpp.html#303fab00942c01cb4872793ee0abe508">moveFile</a>( oldName, origName );
<a name="l00515"></a>00515       <a class="code" href="fileTools_8cpp.html#303fab00942c01cb4872793ee0abe508">moveFile</a>( intermediateName, <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> );
<a name="l00516"></a>00516     }
<a name="l00517"></a>00517     <span class="keywordflow">else</span>
<a name="l00518"></a>00518     {
<a name="l00519"></a>00519       <a class="code" href="fileTools_8cpp.html#303fab00942c01cb4872793ee0abe508">moveFile</a>( intermediateName, <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> );
<a name="l00520"></a>00520     }
<a name="l00521"></a>00521   }
<a name="l00522"></a>00522   
<a name="l00523"></a>00523   <span class="comment">//image now modified from original form so orig file needs to be kept</span>
<a name="l00524"></a>00524   <a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a> = <span class="keyword">false</span>;
<a name="l00525"></a>00525   
<a name="l00526"></a>00526   <span class="comment">//construct smaller iamges</span>
<a name="l00527"></a>00527   <a class="code" href="classPhoto.html#f4d602874536f89799f828abd2a34848" title="Construct thumbnail and slideshow images, load up thumbnail image, and set photo...">constructSmallerImages</a>();
<a name="l00528"></a>00528 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="f4d602874536f89799f828abd2a34848"></a><!-- doxytag: member="Photo::constructSmallerImages" ref="f4d602874536f89799f828abd2a34848" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::constructSmallerImages           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct thumbnail and slideshow images, load up thumbnail image, and set photo has being modified. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00084">84</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="imageTools_8cpp_source.html#l00069">constructImages()</a>, <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00218">needsSaving</a>, <a class="el" href="subalbum_8cpp_source.html#l00171">Subalbum::setModified()</a>, <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>, <a class="el" href="photo_8h_source.html#l00187">subalbum</a>, <a class="el" href="photo_8h_source.html#l00205">thumbnailImage</a>, and <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, and <a class="el" href="photo_8cpp_source.html#l00123">setImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00085"></a>00085 {
<a name="l00086"></a>00086   <span class="comment">//construct and save slideshow and thumbnail images</span>
<a name="l00087"></a>00087   QImage TslideshowImage, TthumbnailImage;
<a name="l00088"></a>00088   <a class="code" href="imageTools_8cpp.html#136ce4737ac4d5dfa526d752ab8aab33" title="Constructs slideshow and thumbnail images for a full sized image.">constructImages</a>( <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>, TslideshowImage, TthumbnailImage );  
<a name="l00089"></a>00089   TslideshowImage.save( <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a>, <span class="stringliteral">"JPEG"</span>, 95 );
<a name="l00090"></a>00090   TthumbnailImage.save( <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a>, <span class="stringliteral">"JPEG"</span>, 95 );
<a name="l00091"></a>00091 
<a name="l00092"></a>00092   <span class="comment">//load up thumbnail image</span>
<a name="l00093"></a>00093   <span class="keyword">delete</span> <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a>;
<a name="l00094"></a>00094   <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a> = <span class="keyword">new</span> QImage(<a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a>);
<a name="l00095"></a>00095 
<a name="l00096"></a>00096   <span class="comment">//image is being stored in temp location, needs saving!</span>
<a name="l00097"></a>00097   <a class="code" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331" title="Unsaved modifications?">needsSaving</a> = <span class="keyword">true</span>;
<a name="l00098"></a>00098 
<a name="l00099"></a>00099   <span class="comment">//set the subalbum as being modified and return</span>
<a name="l00100"></a>00100   <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#a01ad19461ce049774595512960f73cb">setModified</a>();
<a name="l00101"></a>00101   <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00102"></a>00102 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="32cb80c04e59656420094311ad6d9c20"></a><!-- doxytag: member="Photo::exportToXML" ref="32cb80c04e59656420094311ad6d9c20" args="(QTextStream &amp;stream)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::exportToXML           </td>
          <td>(</td>
          <td class="paramtype">QTextStream &amp;&nbsp;</td>
          <td class="paramname"> <em>stream</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Exports photo to xml. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00413">413</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00202">description</a>, <a class="el" href="xmlTools_8cpp_source.html#l00036">fixXMLString()</a>, <a class="el" href="photo_8cpp_source.html#l00191">getImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00192">getSlideshowFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00193">getThumbnailFilename()</a>, <a class="el" href="photo_8h_source.html#l00213">imageChecksum</a>, <a class="el" href="photo_8h_source.html#l00214">slideshowChecksum</a>, and <a class="el" href="photo_8h_source.html#l00215">thumbnailChecksum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00312">Subalbum::exportToXML()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00414"></a>00414 {
<a name="l00415"></a>00415   QFileInfo info;
<a name="l00416"></a>00416 
<a name="l00417"></a>00417   <span class="comment">//write photo information</span>
<a name="l00418"></a>00418   stream &lt;&lt; <span class="stringliteral">"    &lt;photo&gt;\n"</span>;
<a name="l00419"></a>00419   <span class="comment">//-----</span>
<a name="l00420"></a>00420   stream &lt;&lt; <span class="stringliteral">"      &lt;description&gt;"</span> &lt;&lt; <a class="code" href="xmlTools_8cpp.html#fd193066f6b4f77436cd0f17146a1e39" title="Fix strings before exporting to XML such that &amp;amp; becomes &amp;amp;, etc...">fixXMLString</a>(<a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a>) &lt;&lt; <span class="stringliteral">"&lt;/description&gt;\n"</span>;
<a name="l00421"></a>00421   <span class="comment">//-----</span>
<a name="l00422"></a>00422   <span class="comment">//full image</span>
<a name="l00423"></a>00423   info.setFile( <a class="code" href="classPhoto.html#5ebb6fccddd609df5d407498957e1089" title="Gets the image filename.">getImageFilename</a>() );
<a name="l00424"></a>00424   QDateTime modified = info.lastModified();
<a name="l00425"></a>00425   stream &lt;&lt; <span class="stringliteral">"      &lt;image&gt;\n"</span>;
<a name="l00426"></a>00426   stream &lt;&lt; <span class="stringliteral">"        &lt;md5&gt;"</span> &lt;&lt; <a class="code" href="xmlTools_8cpp.html#fd193066f6b4f77436cd0f17146a1e39" title="Fix strings before exporting to XML such that &amp;amp; becomes &amp;amp;, etc...">fixXMLString</a>(<a class="code" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0" title="MD5 checksums, used to determine if image/thumbnail have been changed.">imageChecksum</a>) &lt;&lt; <span class="stringliteral">"&lt;/md5&gt;\n"</span>;
<a name="l00427"></a>00427   stream &lt;&lt; <span class="stringliteral">"        &lt;modified&gt;"</span>;
<a name="l00428"></a>00428   stream &lt;&lt; modified.date().year() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00429"></a>00429   stream &lt;&lt; modified.date().month() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00430"></a>00430   stream &lt;&lt; modified.date().day() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00431"></a>00431   stream &lt;&lt; modified.time().hour() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00432"></a>00432   stream &lt;&lt; modified.time().minute() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00433"></a>00433   stream &lt;&lt; modified.time().second() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00434"></a>00434   stream &lt;&lt; modified.time().msec() &lt;&lt; <span class="stringliteral">"&lt;/modified&gt;\n"</span>;
<a name="l00435"></a>00435   stream &lt;&lt; <span class="stringliteral">"      &lt;/image&gt;\n"</span>;
<a name="l00436"></a>00436   <span class="comment">//-----</span>
<a name="l00437"></a>00437   <span class="comment">//slidehow image</span>
<a name="l00438"></a>00438   info.setFile( <a class="code" href="classPhoto.html#d16ff6833a7ddc4340d7c296e2eeac99" title="Gets the slideshow filename.">getSlideshowFilename</a>() );
<a name="l00439"></a>00439   modified = info.lastModified();
<a name="l00440"></a>00440   stream &lt;&lt; <span class="stringliteral">"      &lt;slideshow&gt;\n"</span>;
<a name="l00441"></a>00441   stream &lt;&lt; <span class="stringliteral">"        &lt;md5&gt;"</span> &lt;&lt; <a class="code" href="xmlTools_8cpp.html#fd193066f6b4f77436cd0f17146a1e39" title="Fix strings before exporting to XML such that &amp;amp; becomes &amp;amp;, etc...">fixXMLString</a>(<a class="code" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a>) &lt;&lt; <span class="stringliteral">"&lt;/md5&gt;\n"</span>;
<a name="l00442"></a>00442   stream &lt;&lt; <span class="stringliteral">"        &lt;modified&gt;"</span>;
<a name="l00443"></a>00443   stream &lt;&lt; modified.date().year() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00444"></a>00444   stream &lt;&lt; modified.date().month() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00445"></a>00445   stream &lt;&lt; modified.date().day() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00446"></a>00446   stream &lt;&lt; modified.time().hour() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00447"></a>00447   stream &lt;&lt; modified.time().minute() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00448"></a>00448   stream &lt;&lt; modified.time().second() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00449"></a>00449   stream &lt;&lt; modified.time().msec() &lt;&lt; <span class="stringliteral">"&lt;/modified&gt;\n"</span>;
<a name="l00450"></a>00450   stream &lt;&lt; <span class="stringliteral">"      &lt;/slideshow&gt;\n"</span>;
<a name="l00451"></a>00451   <span class="comment">//-----</span>
<a name="l00452"></a>00452   <span class="comment">//thumbnail image</span>
<a name="l00453"></a>00453   info.setFile( <a class="code" href="classPhoto.html#937a069696ef937d5ddd030b16946ded" title="Gets the thumbnail filename.">getThumbnailFilename</a>() );
<a name="l00454"></a>00454   modified = info.lastModified();
<a name="l00455"></a>00455   stream &lt;&lt; <span class="stringliteral">"      &lt;thumb&gt;\n"</span>;
<a name="l00456"></a>00456   stream &lt;&lt; <span class="stringliteral">"        &lt;md5&gt;"</span> &lt;&lt; <a class="code" href="xmlTools_8cpp.html#fd193066f6b4f77436cd0f17146a1e39" title="Fix strings before exporting to XML such that &amp;amp; becomes &amp;amp;, etc...">fixXMLString</a>(<a class="code" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a>) &lt;&lt; <span class="stringliteral">"&lt;/md5&gt;\n"</span>;
<a name="l00457"></a>00457   stream &lt;&lt; <span class="stringliteral">"        &lt;modified&gt;"</span>;
<a name="l00458"></a>00458   stream &lt;&lt; modified.date().year() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00459"></a>00459   stream &lt;&lt; modified.date().month() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00460"></a>00460   stream &lt;&lt; modified.date().day() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00461"></a>00461   stream &lt;&lt; modified.time().hour() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00462"></a>00462   stream &lt;&lt; modified.time().minute() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00463"></a>00463   stream &lt;&lt; modified.time().second() &lt;&lt; <span class="stringliteral">" "</span>;
<a name="l00464"></a>00464   stream &lt;&lt; modified.time().msec() &lt;&lt; <span class="stringliteral">"&lt;/modified&gt;\n"</span>;
<a name="l00465"></a>00465   stream &lt;&lt; <span class="stringliteral">"      &lt;/thumb&gt;\n"</span>;
<a name="l00466"></a>00466   <span class="comment">//-----</span>
<a name="l00467"></a>00467   stream &lt;&lt; <span class="stringliteral">"    &lt;/photo&gt;\n"</span>;
<a name="l00468"></a>00468 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="bb2cdbd79d85cc30ffc22af5eaf9796c"></a><!-- doxytag: member="Photo::flipHorizontally" ref="bb2cdbd79d85cc30ffc22af5eaf9796c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::flipHorizontally           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Flips image about horizontal axis. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00472">472</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, and <a class="el" href="imageTools_8h_source.html#l00028">FLIP_H</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00472"></a>00472 { <a class="code" href="classPhoto.html#37663feecba1823f08b177fd6c9fdf9d" title="Apply transformation.">applyTransformation</a>( <a class="code" href="imageTools_8h.html#d6b8916a355278afb7cd35f14afc9288a02c13f8f08154ca2e58c488c922fbe5">FLIP_H</a> );     }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="8db049b5515cd7364742905ead2e60a5"></a><!-- doxytag: member="Photo::flipVertically" ref="8db049b5515cd7364742905ead2e60a5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::flipVertically           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Flips image about vertical axis. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00473">473</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, and <a class="el" href="imageTools_8h_source.html#l00029">FLIP_V</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00473"></a>00473 { <a class="code" href="classPhoto.html#37663feecba1823f08b177fd6c9fdf9d" title="Apply transformation.">applyTransformation</a>( <a class="code" href="imageTools_8h.html#d6b8916a355278afb7cd35f14afc9288127171d15d7e5849705973e163393c71">FLIP_V</a> );     }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="db7ed08547098feeaff5753f2600f4bc"></a><!-- doxytag: member="Photo::getDescription" ref="db7ed08547098feeaff5753f2600f4bc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getDescription           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the description. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00207">207</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00202">description</a>.</p>

<p>Referenced by <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit::PhotoDescEdit()</a>, <a class="el" href="photoPreviewWidget_8cpp_source.html#l00029">PhotoPreviewWidget::PhotoPreviewWidget()</a>, <a class="el" href="presentationWidget_8cpp_source.html#l00402">SlideshowWidget::showPhoto()</a>, and <a class="el" href="photoPreviewWidget_8cpp_source.html#l00066">PhotoPreviewWidget::updateDescription()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00207"></a>00207 { <span class="keywordflow">return</span> QString(<a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a>); }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="6626ec8af77a3804f1127ab85295e9e8"></a><!-- doxytag: member="Photo::getEverSaved" ref="6626ec8af77a3804f1127ab85295e9e8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::getEverSaved           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns if the image has ever been saved to a permanant location. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00533">533</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00221">everSaved</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, and <a class="el" href="photo_8cpp_source.html#l00155">setImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00533"></a>00533 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#441a3e1ea66da5e86fa02ecf7d41c09d" title="Has the photo ever been saved?">everSaved</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="bc9851216524158d20580556219424a7"></a><!-- doxytag: member="Photo::getImageChecksum" ref="bc9851216524158d20580556219424a7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getImageChecksum           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get image checksum. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00199">199</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00213">imageChecksum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">Subalbum::importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00199"></a>00199 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0" title="MD5 checksums, used to determine if image/thumbnail have been changed.">imageChecksum</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="5ebb6fccddd609df5d407498957e1089"></a><!-- doxytag: member="Photo::getImageFilename" ref="5ebb6fccddd609df5d407498957e1089" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getImageFilename           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the image filename. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00191">191</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>.</p>

<p>Referenced by <a class="el" href="editingInterface_8cpp_source.html#l00748">EditingInterface::adjustGrain()</a>, <a class="el" href="albumStatistics_8cpp_source.html#l00031">AlbumStatistics::AlbumStatistics()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00788">EditingInterface::applyEffect()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00853">EditingInterface::applyImageUpdate()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00672">EditingInterface::colorBalance()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00626">EditingInterface::crop()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00650">EditingInterface::enhanceContrast()</a>, <a class="el" href="album_8cpp_source.html#l00726">Album::exportLargeImages()</a>, <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, <a class="el" href="editingInterface_8cpp_source.html#l01215">EditingInterface::finishCorrectTilt()</a>, <a class="el" href="presentationWidget_8cpp_source.html#l00389">SlideshowWidget::loadPhoto()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit::PhotoDescEdit()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00694">EditingInterface::removeRedeye()</a>, <a class="el" href="album_8cpp_source.html#l01093">Album::removeStagnantOrigFiles()</a>, <a class="el" href="editingInterface_8cpp_source.html#l01003">EditingInterface::revertCurrentPhoto()</a>, <a class="el" href="photo_8cpp_source.html#l00536">revertPossible()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00567">EditingInterface::rotateFlip()</a>, <a class="el" href="titleWidget_8cpp_source.html#l00504">TitleWidget::setAlbumImage()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00432">EditingInterface::setPhoto()</a>, <a class="el" href="wallpaperTools_8cpp_source.html#l00034">setWallpaper()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00503">EditingInterface::showNextPrevFirstLastPhoto()</a>, and <a class="el" href="editingInterface_8cpp_source.html#l00722">EditingInterface::tuneLevels()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00191"></a>00191 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>;     }
</pre></div>
<p>

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

<p>
Returns initial photo number. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00607">607</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00607"></a>00607 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="8801fb425f8dea9372fd95b875043186"></a><!-- doxytag: member="Photo::getInitialSubalbumNumber" ref="8801fb425f8dea9372fd95b875043186" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Photo::getInitialSubalbumNumber           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns initial subalbum number. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00610">610</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00610"></a>00610 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="25ceab66d0421b4305c0475372140d81"></a><!-- doxytag: member="Photo::getNeedsSavingVal" ref="25ceab66d0421b4305c0475372140d81" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::getNeedsSavingVal           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns if the image needs to be saved to its permament location. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00530">530</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00218">needsSaving</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00530"></a>00530 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331" title="Unsaved modifications?">needsSaving</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="357f9d79451532a37f41142d3aaba9f9"></a><!-- doxytag: member="Photo::getNext" ref="357f9d79451532a37f41142d3aaba9f9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPhoto.html">Photo</a> * Photo::getNext           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns next photo pointer. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00224">224</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00193">next</a>.</p>

<p>Referenced by <a class="el" href="presentationWidget_8cpp_source.html#l00610">SlideshowWidget::advancePhoto()</a>, <a class="el" href="albumStatistics_8cpp_source.html#l00031">AlbumStatistics::AlbumStatistics()</a>, <a class="el" href="presentationWidget_8cpp_source.html#l00475">SlideshowWidget::beginSlideshow()</a>, <a class="el" href="album_8cpp_source.html#l00616">Album::exportCompressedWebAlbum()</a>, <a class="el" href="album_8cpp_source.html#l00726">Album::exportLargeImages()</a>, <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, <a class="el" href="subalbum_8cpp_source.html#l00312">Subalbum::exportToXML()</a>, <a class="el" href="album_8cpp_source.html#l01426">Album::getThumbnailFilenames()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">Subalbum::photoMoved()</a>, <a class="el" href="subalbumWidget_8cpp_source.html#l00516">SubalbumWidget::refreshPhotos()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">Subalbum::removePhoto()</a>, <a class="el" href="album_8cpp_source.html#l01093">Album::removeStagnantOrigFiles()</a>, <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00432">EditingInterface::setPhoto()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00478">EditingInterface::showNextPhoto()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00503">EditingInterface::showNextPrevFirstLastPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00500">Subalbum::syncPhotoList()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00066">Subalbum::~Subalbum()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00224"></a>00224 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#8fd5de011a756f9974e9cd1f458e2678" title="Pointer to next photo.">next</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="9740a1e6a5ad83534e1c3b2b2622cf7a"></a><!-- doxytag: member="Photo::getPrev" ref="9740a1e6a5ad83534e1c3b2b2622cf7a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPhoto.html">Photo</a> * Photo::getPrev           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the previous photo pointer. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00223">223</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00190">prev</a>.</p>

<p>Referenced by <a class="el" href="presentationWidget_8cpp_source.html#l00642">SlideshowWidget::backupPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">Subalbum::photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">Subalbum::removePhoto()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00432">EditingInterface::setPhoto()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00503">EditingInterface::showNextPrevFirstLastPhoto()</a>, and <a class="el" href="editingInterface_8cpp_source.html#l00469">EditingInterface::showPrevPhoto()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00223"></a>00223 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#6d8d3898cc546889f7c0213b8bc3051a" title="Pointer to prev photo.">prev</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="03dbeca8e03ab6e7d37d5b015e173bd3"></a><!-- doxytag: member="Photo::getRecentlyReverted" ref="03dbeca8e03ab6e7d37d5b015e173bd3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::getRecentlyReverted           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
was the photo recently reverted? if so ignore the presence of orig files on disk 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00546">546</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="album_8cpp_source.html#l01093">Album::removeStagnantOrigFiles()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00547"></a>00547 {
<a name="l00548"></a>00548   <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a>;
<a name="l00549"></a>00549 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="b4adadc959070279d7ab7dfc1a030c23"></a><!-- doxytag: member="Photo::getSlideshowChecksum" ref="b4adadc959070279d7ab7dfc1a030c23" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getSlideshowChecksum           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get thumbanil checksum. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00201">201</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00214">slideshowChecksum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">Subalbum::importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00201"></a>00201 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="d16ff6833a7ddc4340d7c296e2eeac99"></a><!-- doxytag: member="Photo::getSlideshowFilename" ref="d16ff6833a7ddc4340d7c296e2eeac99" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getSlideshowFilename           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the slideshow filename. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00192">192</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>.</p>

<p>Referenced by <a class="el" href="albumStatistics_8cpp_source.html#l00031">AlbumStatistics::AlbumStatistics()</a>, <a class="el" href="album_8cpp_source.html#l00616">Album::exportCompressedWebAlbum()</a>, <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit::PhotoDescEdit()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00192"></a>00192 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="580439da79d239dba26e6f21abadbaf4"></a><!-- doxytag: member="Photo::getThumbnailChecksum" ref="580439da79d239dba26e6f21abadbaf4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getThumbnailChecksum           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get thumbanil checksum. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00200">200</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00215">thumbnailChecksum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">Subalbum::importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00200"></a>00200 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="937a069696ef937d5ddd030b16946ded"></a><!-- doxytag: member="Photo::getThumbnailFilename" ref="937a069696ef937d5ddd030b16946ded" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::getThumbnailFilename           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the thumbnail filename. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00193">193</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00616">Album::exportCompressedWebAlbum()</a>, <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, <a class="el" href="album_8cpp_source.html#l01426">Album::getThumbnailFilenames()</a>, <a class="el" href="photoDescEdit_8cpp_source.html#l00047">PhotoDescEdit::PhotoDescEdit()</a>, <a class="el" href="titleWidget_8cpp_source.html#l00536">TitleWidget::setSubalbumImage()</a>, and <a class="el" href="photoPreviewWidget_8cpp_source.html#l00054">PhotoPreviewWidget::updateImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00193"></a>00193 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="96dcf5c6210ca39c534ae2287be1df90"></a><!-- doxytag: member="Photo::getThumbnailImage" ref="96dcf5c6210ca39c534ae2287be1df90" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QImage * Photo::getThumbnailImage           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets thumbnail image. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00082">82</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00205">thumbnailImage</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00082"></a>00082 { <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="175031feb8124b3aa22d6145cd45cf4f"></a><!-- doxytag: member="Photo::importFromDisk" ref="175031feb8124b3aa22d6145cd45cf4f" args="(QDomNode *root)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QDateTime * Photo::importFromDisk           </td>
          <td>(</td>
          <td class="paramtype">QDomNode *&nbsp;</td>
          <td class="paramname"> <em>root</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Builds photo from XML DOM node, returns date modified info from xml. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00238">238</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00202">description</a>, <a class="el" href="photo_8h_source.html#l00213">imageChecksum</a>, <a class="el" href="photo_8h_source.html#l00214">slideshowChecksum</a>, and <a class="el" href="photo_8h_source.html#l00215">thumbnailChecksum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">Subalbum::importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00239"></a>00239 {
<a name="l00240"></a>00240   <span class="comment">//create modified date/time object for returning</span>
<a name="l00241"></a>00241   QDateTime* modified = <span class="keyword">new</span> QDateTime[3];
<a name="l00242"></a>00242 
<a name="l00243"></a>00243   QDomNode node = root-&gt;firstChild();
<a name="l00244"></a>00244   QDomText val;
<a name="l00245"></a>00245   <span class="keywordflow">while</span>( !node.isNull() )
<a name="l00246"></a>00246   {
<a name="l00247"></a>00247     <span class="comment">//------------------------------------------------------------</span>
<a name="l00248"></a>00248     <span class="comment">//photo description</span>
<a name="l00249"></a>00249     <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"description"</span> )
<a name="l00250"></a>00250     {
<a name="l00251"></a>00251       val = node.firstChild().toText();
<a name="l00252"></a>00252       <span class="keywordflow">if</span>(!val.isNull())
<a name="l00253"></a>00253         <a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a> = val.nodeValue();
<a name="l00254"></a>00254      <a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a>.replace(<span class="stringliteral">"\\&amp;quot;"</span>,<span class="stringliteral">"\""</span>);
<a name="l00255"></a>00255     }
<a name="l00256"></a>00256     <span class="comment">//------------------------------------------------------------</span>
<a name="l00257"></a>00257     <span class="comment">//image information</span>
<a name="l00258"></a>00258     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"image"</span> )
<a name="l00259"></a>00259     {
<a name="l00260"></a>00260       QDomNode childNode = node.firstChild();
<a name="l00261"></a>00261       <span class="keywordflow">while</span>( !childNode.isNull() )
<a name="l00262"></a>00262       {
<a name="l00263"></a>00263         <span class="comment">//------------------------------------------------------------</span>
<a name="l00264"></a>00264         <span class="keywordflow">if</span>( childNode.isElement() &amp;&amp; childNode.nodeName() == <span class="stringliteral">"md5"</span> )
<a name="l00265"></a>00265         {
<a name="l00266"></a>00266           val = childNode.firstChild().toText();
<a name="l00267"></a>00267           <span class="keywordflow">if</span>(!val.isNull())
<a name="l00268"></a>00268             <a class="code" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0" title="MD5 checksums, used to determine if image/thumbnail have been changed.">imageChecksum</a> = val.nodeValue();
<a name="l00269"></a>00269         }
<a name="l00270"></a>00270         <span class="comment">//------------------------------------------------------------</span>
<a name="l00271"></a>00271         <span class="keywordflow">else</span> <span class="keywordflow">if</span>( childNode.isElement() &amp;&amp; childNode.nodeName() == <span class="stringliteral">"modified"</span> )
<a name="l00272"></a>00272         {
<a name="l00273"></a>00273           val = childNode.firstChild().toText();
<a name="l00274"></a>00274 
<a name="l00275"></a>00275           <span class="comment">//split value based on spaces, should be 7 fields</span>
<a name="l00276"></a>00276           QStringList vals = QStringList::split( QRegExp(<span class="stringliteral">" "</span>), val.nodeValue() );
<a name="l00277"></a>00277           <span class="keywordtype">int</span> i=0;
<a name="l00278"></a>00278           <span class="keywordtype">int</span> intVals[7];
<a name="l00279"></a>00279           QStringList::Iterator it;
<a name="l00280"></a>00280           <span class="keywordflow">for</span> ( it = vals.begin(); it != vals.end(); ++it )
<a name="l00281"></a>00281           {
<a name="l00282"></a>00282             <span class="comment">//sanity check incase more fields are provided than there should be</span>
<a name="l00283"></a>00283             <span class="keywordflow">if</span>(i &gt;6)
<a name="l00284"></a>00284               <span class="keywordflow">break</span>;
<a name="l00285"></a>00285 
<a name="l00286"></a>00286             intVals[i] = QString(*it).toInt();
<a name="l00287"></a>00287             i++;
<a name="l00288"></a>00288           }
<a name="l00289"></a>00289           modified[0].setDate( QDate(intVals[0], intVals[1], intVals[2]) );
<a name="l00290"></a>00290           modified[0].setTime( QTime(intVals[3], intVals[4], intVals[5], intVals[6]) );
<a name="l00291"></a>00291         }
<a name="l00292"></a>00292         <span class="comment">//------------------------------------------------------------</span>
<a name="l00293"></a>00293         childNode = childNode.nextSibling();
<a name="l00294"></a>00294       }
<a name="l00295"></a>00295     }
<a name="l00296"></a>00296     <span class="comment">//------------------------------------------------------------</span>
<a name="l00297"></a>00297     <span class="comment">//slideshow information</span>
<a name="l00298"></a>00298     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"slideshow"</span> )
<a name="l00299"></a>00299     {
<a name="l00300"></a>00300       QDomNode childNode = node.firstChild();
<a name="l00301"></a>00301       <span class="keywordflow">while</span>( !childNode.isNull() )
<a name="l00302"></a>00302       {
<a name="l00303"></a>00303         <span class="comment">//------------------------------------------------------------</span>
<a name="l00304"></a>00304         <span class="keywordflow">if</span>( childNode.isElement() &amp;&amp; childNode.nodeName() == <span class="stringliteral">"md5"</span> )
<a name="l00305"></a>00305         {
<a name="l00306"></a>00306           val = childNode.firstChild().toText();
<a name="l00307"></a>00307           <span class="keywordflow">if</span>(!val.isNull())
<a name="l00308"></a>00308             <a class="code" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a> = val.nodeValue();
<a name="l00309"></a>00309         }
<a name="l00310"></a>00310         <span class="comment">//------------------------------------------------------------</span>
<a name="l00311"></a>00311         <span class="keywordflow">else</span> <span class="keywordflow">if</span>( childNode.isElement() &amp;&amp; childNode.nodeName() == <span class="stringliteral">"modified"</span> )
<a name="l00312"></a>00312         {
<a name="l00313"></a>00313           val = childNode.firstChild().toText();
<a name="l00314"></a>00314 
<a name="l00315"></a>00315           <span class="comment">//split value based on spaces, should be 6 fields</span>
<a name="l00316"></a>00316           QStringList vals = QStringList::split( QRegExp(<span class="stringliteral">" "</span>), val.nodeValue() );
<a name="l00317"></a>00317           <span class="keywordtype">int</span> i=0;
<a name="l00318"></a>00318           <span class="keywordtype">int</span> intVals[7];
<a name="l00319"></a>00319           QStringList::Iterator it;
<a name="l00320"></a>00320           <span class="keywordflow">for</span> ( it = vals.begin(); it != vals.end(); ++it )
<a name="l00321"></a>00321           {
<a name="l00322"></a>00322             <span class="comment">//sanity check incase more fields are provided than there should be</span>
<a name="l00323"></a>00323             <span class="keywordflow">if</span>(i &gt;6)
<a name="l00324"></a>00324               <span class="keywordflow">break</span>;
<a name="l00325"></a>00325 
<a name="l00326"></a>00326             intVals[i] = QString(*it).toInt();
<a name="l00327"></a>00327             i++;
<a name="l00328"></a>00328           }
<a name="l00329"></a>00329           modified[1].setDate( QDate(intVals[0], intVals[1], intVals[2]) );
<a name="l00330"></a>00330           modified[1].setTime( QTime(intVals[3], intVals[4], intVals[5], intVals[6]) );
<a name="l00331"></a>00331         }
<a name="l00332"></a>00332         <span class="comment">//------------------------------------------------------------</span>
<a name="l00333"></a>00333         childNode = childNode.nextSibling();
<a name="l00334"></a>00334       }
<a name="l00335"></a>00335     }
<a name="l00336"></a>00336     <span class="comment">//------------------------------------------------------------</span>
<a name="l00337"></a>00337     <span class="comment">//slideshow information</span>
<a name="l00338"></a>00338     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"thumb"</span> )
<a name="l00339"></a>00339     {
<a name="l00340"></a>00340       QDomNode childNode = node.firstChild();
<a name="l00341"></a>00341       <span class="keywordflow">while</span>( !childNode.isNull() )
<a name="l00342"></a>00342       {
<a name="l00343"></a>00343         <span class="comment">//------------------------------------------------------------</span>
<a name="l00344"></a>00344         <span class="keywordflow">if</span>( childNode.isElement() &amp;&amp; childNode.nodeName() == <span class="stringliteral">"md5"</span> )
<a name="l00345"></a>00345         {
<a name="l00346"></a>00346           val = childNode.firstChild().toText();
<a name="l00347"></a>00347           <span class="keywordflow">if</span>(!val.isNull())
<a name="l00348"></a>00348             <a class="code" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a> = val.nodeValue();
<a name="l00349"></a>00349         }
<a name="l00350"></a>00350         <span class="comment">//------------------------------------------------------------</span>
<a name="l00351"></a>00351         <span class="keywordflow">else</span> <span class="keywordflow">if</span>( childNode.isElement() &amp;&amp; childNode.nodeName() == <span class="stringliteral">"modified"</span> )
<a name="l00352"></a>00352         {
<a name="l00353"></a>00353           val = childNode.firstChild().toText();
<a name="l00354"></a>00354 
<a name="l00355"></a>00355           <span class="comment">//split value based on spaces, should be 6 fields</span>
<a name="l00356"></a>00356           QStringList vals = QStringList::split( QRegExp(<span class="stringliteral">" "</span>), val.nodeValue() );
<a name="l00357"></a>00357           <span class="keywordtype">int</span> i=0;
<a name="l00358"></a>00358           <span class="keywordtype">int</span> intVals[7];
<a name="l00359"></a>00359           QStringList::Iterator it;
<a name="l00360"></a>00360           <span class="keywordflow">for</span> ( it = vals.begin(); it != vals.end(); ++it )
<a name="l00361"></a>00361           {
<a name="l00362"></a>00362             <span class="comment">//sanity check incase more fields are provided than there should be</span>
<a name="l00363"></a>00363             <span class="keywordflow">if</span>(i &gt;6)
<a name="l00364"></a>00364               <span class="keywordflow">break</span>;
<a name="l00365"></a>00365 
<a name="l00366"></a>00366             intVals[i] = QString(*it).toInt();
<a name="l00367"></a>00367             i++;
<a name="l00368"></a>00368           }
<a name="l00369"></a>00369           modified[2].setDate( QDate(intVals[0], intVals[1], intVals[2]) );
<a name="l00370"></a>00370           modified[2].setTime( QTime(intVals[3], intVals[4], intVals[5], intVals[6]) );
<a name="l00371"></a>00371         }
<a name="l00372"></a>00372         <span class="comment">//------------------------------------------------------------</span>
<a name="l00373"></a>00373         childNode = childNode.nextSibling();
<a name="l00374"></a>00374       }
<a name="l00375"></a>00375     }
<a name="l00376"></a>00376     <span class="comment">//------------------------------------------------------------</span>
<a name="l00377"></a>00377     <span class="comment">//------------------------------------------------------------</span>
<a name="l00378"></a>00378     <span class="comment">//Handle md5 info as specified in 1.0a and 1.0a2 xml format</span>
<a name="l00379"></a>00379     <span class="comment">//image md5</span>
<a name="l00380"></a>00380     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"imageMD5"</span> )
<a name="l00381"></a>00381     {
<a name="l00382"></a>00382       val = node.firstChild().toText();
<a name="l00383"></a>00383       <span class="keywordflow">if</span>(!val.isNull())
<a name="l00384"></a>00384         <a class="code" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0" title="MD5 checksums, used to determine if image/thumbnail have been changed.">imageChecksum</a> = val.nodeValue();
<a name="l00385"></a>00385     }
<a name="l00386"></a>00386     <span class="comment">//------------------------------------------------------------</span>
<a name="l00387"></a>00387     <span class="comment">//slideshow md5</span>
<a name="l00388"></a>00388     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"slideMD5"</span> )
<a name="l00389"></a>00389     {
<a name="l00390"></a>00390       val = node.firstChild().toText();
<a name="l00391"></a>00391       <span class="keywordflow">if</span>(!val.isNull())
<a name="l00392"></a>00392         <a class="code" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a> = val.nodeValue();
<a name="l00393"></a>00393     }
<a name="l00394"></a>00394     <span class="comment">//------------------------------------------------------------</span>
<a name="l00395"></a>00395     <span class="comment">//thumbnail md5</span>
<a name="l00396"></a>00396     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"thumbMD5"</span> )
<a name="l00397"></a>00397     {
<a name="l00398"></a>00398       val = node.firstChild().toText();
<a name="l00399"></a>00399       <span class="keywordflow">if</span>(!val.isNull())
<a name="l00400"></a>00400         <a class="code" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a> = val.nodeValue();
<a name="l00401"></a>00401     }
<a name="l00402"></a>00402     <span class="comment">//------------------------------------------------------------</span>
<a name="l00403"></a>00403     <span class="comment">//------------------------------------------------------------</span>
<a name="l00404"></a>00404     <span class="comment">//advance to next node</span>
<a name="l00405"></a>00405     node = node.nextSibling();
<a name="l00406"></a>00406     <span class="comment">//------------------------------------------------------------</span>
<a name="l00407"></a>00407   }
<a name="l00408"></a>00408 
<a name="l00409"></a>00409   <span class="comment">//return modification dates read in</span>
<a name="l00410"></a>00410   <span class="keywordflow">return</span> modified;
<a name="l00411"></a>00411 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="6a4cd6dfc1b78fa3b1c1661a59f71162"></a><!-- doxytag: member="Photo::originalImageFilename" ref="6a4cd6dfc1b78fa3b1c1661a59f71162" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Photo::originalImageFilename           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
orig filename 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00571">571</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8cpp_source.html#l00094">Subalbum::getAlbum()</a>, <a class="el" href="photo_8cpp_source.html#l00533">getEverSaved()</a>, <a class="el" href="album_8cpp_source.html#l00141">Album::getSaveLocation()</a>, <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>, <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>, and <a class="el" href="photo_8h_source.html#l00187">subalbum</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l01093">Album::removeStagnantOrigFiles()</a>, <a class="el" href="editingInterface_8cpp_source.html#l01003">EditingInterface::revertCurrentPhoto()</a>, <a class="el" href="photo_8cpp_source.html#l00556">revertPhoto()</a>, and <a class="el" href="photo_8cpp_source.html#l00536">revertPossible()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00572"></a>00572 {
<a name="l00573"></a>00573   <span class="comment">//determining the an images original filename is tricky</span>
<a name="l00574"></a>00574   <span class="comment">//if the photo has never been saved check for presence of an _orig file,</span>
<a name="l00575"></a>00575   <span class="comment">//otherwise use the current filename since the photo has not yet been modified</span>
<a name="l00576"></a>00576   <span class="keywordflow">if</span>( !<a class="code" href="classPhoto.html#6626ec8af77a3804f1127ab85295e9e8" title="Returns if the image has ever been saved to a permanant location.">getEverSaved</a>() )
<a name="l00577"></a>00577   {
<a name="l00578"></a>00578     QString tempOrigLocation = <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>;
<a name="l00579"></a>00579     tempOrigLocation.truncate( <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>.length() - 4 );
<a name="l00580"></a>00580     tempOrigLocation = tempOrigLocation + <span class="stringliteral">"_orig.jpg"</span>;
<a name="l00581"></a>00581     
<a name="l00582"></a>00582     QDir tmpDir;
<a name="l00583"></a>00583     <span class="keywordflow">if</span>(tmpDir.exists( tempOrigLocation ) )
<a name="l00584"></a>00584       <span class="keywordflow">return</span> tempOrigLocation;
<a name="l00585"></a>00585     <span class="keywordflow">else</span>
<a name="l00586"></a>00586       <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>;
<a name="l00587"></a>00587   }
<a name="l00588"></a>00588   <span class="comment">//if the photo was previously saved, it's original form could either be:</span>
<a name="l00589"></a>00589   <span class="comment">//1.) the permanant storage location + _orig</span>
<a name="l00590"></a>00590   <span class="comment">//2.) the permanant storage location</span>
<a name="l00591"></a>00591   <span class="keywordflow">else</span>
<a name="l00592"></a>00592   {
<a name="l00593"></a>00593     QString storedOrigLocation = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#d00fd15f7683622ffc3d2cef1fe3f9ca" title="Returns the current save location of all images.">getSaveLocation</a>() +  
<a name="l00594"></a>00594       QString(<span class="stringliteral">"/img/%1/%2_orig.jpg"</span>).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00595"></a>00595    
<a name="l00596"></a>00596     QString lastSavedLocation = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#d00fd15f7683622ffc3d2cef1fe3f9ca" title="Returns the current save location of all images.">getSaveLocation</a>() +  
<a name="l00597"></a>00597       QString(<span class="stringliteral">"/img/%1/%2.jpg"</span>).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);    
<a name="l00598"></a>00598     
<a name="l00599"></a>00599     QDir tmpDir;
<a name="l00600"></a>00600     <span class="keywordflow">if</span>(tmpDir.exists( storedOrigLocation ) )
<a name="l00601"></a>00601       <span class="keywordflow">return</span> storedOrigLocation;
<a name="l00602"></a>00602     <span class="keywordflow">else</span>
<a name="l00603"></a>00603       <span class="keywordflow">return</span> lastSavedLocation;
<a name="l00604"></a>00604   }
<a name="l00605"></a>00605 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="e50ed3a18f16735fcdade8f6f3f35488"></a><!-- doxytag: member="Photo::revertPhoto" ref="e50ed3a18f16735fcdade8f6f3f35488" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::revertPhoto           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
revert photo to original form 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00556">556</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>, <a class="el" href="photo_8cpp_source.html#l00536">revertPossible()</a>, and <a class="el" href="photo_8cpp_source.html#l00104">setImage()</a>.</p>

<p>Referenced by <a class="el" href="editingInterface_8cpp_source.html#l01003">EditingInterface::revertCurrentPhoto()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00557"></a>00557 {
<a name="l00558"></a>00558   <span class="comment">//ignore if revert is not possible</span>
<a name="l00559"></a>00559   <span class="keywordflow">if</span>(!<a class="code" href="classPhoto.html#cf93c6065bb708320e7c675068e0b3d0" title="can photo be reverted to a differnt original form">revertPossible</a>())
<a name="l00560"></a>00560     <span class="keywordflow">return</span>;
<a name="l00561"></a>00561   
<a name="l00562"></a>00562   <span class="comment">//set image to reverted form</span>
<a name="l00563"></a>00563   QString origName = <a class="code" href="classPhoto.html#6a4cd6dfc1b78fa3b1c1661a59f71162" title="orig filename">originalImageFilename</a>();
<a name="l00564"></a>00564   <a class="code" href="classPhoto.html#29e2aae62991d904c3cb763ec838d9bd" title="Setup photo using preexisting full size, slideshow, and thumbnail images.">setImage</a>( origName );
<a name="l00565"></a>00565   
<a name="l00566"></a>00566   <span class="comment">//recently reverted, orig file should be</span>
<a name="l00567"></a>00567   <span class="comment">//removed during next save since it's redundant</span>
<a name="l00568"></a>00568   <a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a> = <span class="keyword">true</span>;
<a name="l00569"></a>00569 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="cf93c6065bb708320e7c675068e0b3d0"></a><!-- doxytag: member="Photo::revertPossible" ref="cf93c6065bb708320e7c675068e0b3d0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::revertPossible           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
can photo be reverted to a differnt original form 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00536">536</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00191">getImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, and <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>.</p>

<p>Referenced by <a class="el" href="editingInterface_8cpp_source.html#l00995">EditingInterface::currentPhotoRevertable()</a>, and <a class="el" href="photo_8cpp_source.html#l00556">revertPhoto()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00537"></a>00537 {
<a name="l00538"></a>00538   <span class="comment">//if photo not recently reverted and orig and current filenames differ</span>
<a name="l00539"></a>00539   QString newName = <a class="code" href="classPhoto.html#5ebb6fccddd609df5d407498957e1089" title="Gets the image filename.">getImageFilename</a>();
<a name="l00540"></a>00540   QString origName = <a class="code" href="classPhoto.html#6a4cd6dfc1b78fa3b1c1661a59f71162" title="orig filename">originalImageFilename</a>();
<a name="l00541"></a>00541   
<a name="l00542"></a>00542   <span class="keywordflow">return</span> ( !<a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a> &amp;&amp;
<a name="l00543"></a>00543            origName.compare( newName ) !=0 );
<a name="l00544"></a>00544 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="0150c65533eb7ef04412ab7aed2b3c7b"></a><!-- doxytag: member="Photo::rotate270" ref="0150c65533eb7ef04412ab7aed2b3c7b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::rotate270           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Rotates image clockwise 270 degrees. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00471">471</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, and <a class="el" href="imageTools_8h_source.html#l00027">ROTATE_270</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00471"></a>00471 { <a class="code" href="classPhoto.html#37663feecba1823f08b177fd6c9fdf9d" title="Apply transformation.">applyTransformation</a>( <a class="code" href="imageTools_8h.html#d6b8916a355278afb7cd35f14afc9288554e734d2a23790b248c5ce39816c18f">ROTATE_270</a> ); }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="39ddcbbd8582b87b505f83826f03597c"></a><!-- doxytag: member="Photo::rotate90" ref="39ddcbbd8582b87b505f83826f03597c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::rotate90           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Rotates image clockwise 90 degrees. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00470">470</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, and <a class="el" href="imageTools_8h_source.html#l00026">ROTATE_90</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00470"></a>00470 { <a class="code" href="classPhoto.html#37663feecba1823f08b177fd6c9fdf9d" title="Apply transformation.">applyTransformation</a>( <a class="code" href="imageTools_8h.html#d6b8916a355278afb7cd35f14afc9288685062467b0c1a3164556335b467c886">ROTATE_90</a> );  }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="b9460c196309be9f0084bbeb91ac04c6"></a><!-- doxytag: member="Photo::setDescription" ref="b9460c196309be9f0084bbeb91ac04c6" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setDescription           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the description. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00209">209</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00202">description</a>, <a class="el" href="subalbum_8cpp_source.html#l00171">Subalbum::setModified()</a>, and <a class="el" href="photo_8h_source.html#l00187">subalbum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00197">Subalbum::addPhoto()</a>, and <a class="el" href="photoDescEdit_8cpp_source.html#l00518">PhotoDescEdit::disappear()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00210"></a>00210 {
<a name="l00211"></a>00211   <span class="comment">//set empty strings as null, takes up less space and necessary</span>
<a name="l00212"></a>00212   <span class="comment">//to check for string modification</span>
<a name="l00213"></a>00213   <span class="keywordflow">if</span>( val.isEmpty() )
<a name="l00214"></a>00214     val = QString::null;
<a name="l00215"></a>00215 
<a name="l00216"></a>00216   <span class="keywordflow">if</span>(<a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a>.compare(val) != 0)
<a name="l00217"></a>00217   {
<a name="l00218"></a>00218     <a class="code" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760" title="Photo description.">description</a> = val;
<a name="l00219"></a>00219     <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#a01ad19461ce049774595512960f73cb">setModified</a>();
<a name="l00220"></a>00220   }
<a name="l00221"></a>00221 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="60408934b0cb03ad0ad359ab1b5393a3"></a><!-- doxytag: member="Photo::setEverSaved" ref="60408934b0cb03ad0ad359ab1b5393a3" args="(bool val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setEverSaved           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
sets everSaved 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00534">534</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00221">everSaved</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="photo_8cpp_source.html#l00123">setImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00534"></a>00534 { <a class="code" href="classPhoto.html#441a3e1ea66da5e86fa02ecf7d41c09d" title="Has the photo ever been saved?">everSaved</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="da55883a113f7a5b9021ccb2a48466ed"></a><!-- doxytag: member="Photo::setImage" ref="da55883a113f7a5b9021ccb2a48466ed" args="(QString editedImageFilename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::setImage           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>editedImageFilename</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reset photo data after photo editing has taken place. 
<p>
Slideshow and thumbnail images need to be regenerated. 
<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00155">155</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="fileTools_8cpp_source.html#l00061">copyFile()</a>, <a class="el" href="subalbum_8cpp_source.html#l00094">Subalbum::getAlbum()</a>, <a class="el" href="photo_8cpp_source.html#l00533">getEverSaved()</a>, <a class="el" href="album_8cpp_source.html#l00142">Album::getTmpDir()</a>, <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>, <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>, <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>, <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>, <a class="el" href="photo_8h_source.html#l00187">subalbum</a>, and <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00156"></a>00156 {
<a name="l00157"></a>00157   <span class="comment">//if the image has been saved then simply change the image,slideshow/thubnail </span>
<a name="l00158"></a>00158   <span class="comment">//filename handles to point to the temporary directory. We don't need to worry about backing up the</span>
<a name="l00159"></a>00159   <span class="comment">//image because the new version will be written to the temporary directory and the save location</span>
<a name="l00160"></a>00160   <span class="keywordflow">if</span>( <a class="code" href="classPhoto.html#6626ec8af77a3804f1127ab85295e9e8" title="Returns if the image has ever been saved to a permanant location.">getEverSaved</a>() )
<a name="l00161"></a>00161   {
<a name="l00162"></a>00162     <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + 
<a name="l00163"></a>00163                     QString(<span class="stringliteral">"/%1_%2.jpg"</span>).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00164"></a>00164     <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a> = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + 
<a name="l00165"></a>00165                         QString(<span class="stringliteral">"/%1_%2_slideshow.jpg"</span>).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00166"></a>00166     <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a> = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>() + 
<a name="l00167"></a>00167                         QString(<span class="stringliteral">"/%1_%2_thumb.jpg"</span>).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00168"></a>00168   }
<a name="l00169"></a>00169   <span class="comment">//otherwise image has never been saved, make sure original form has been backed up!</span>
<a name="l00170"></a>00170   <span class="keywordflow">else</span>
<a name="l00171"></a>00171   {
<a name="l00172"></a>00172     QString tempOrigLocation = <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>;
<a name="l00173"></a>00173     tempOrigLocation.truncate( <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>.length() - 4 );
<a name="l00174"></a>00174     tempOrigLocation = tempOrigLocation + <span class="stringliteral">"_orig.jpg"</span>;
<a name="l00175"></a>00175        
<a name="l00176"></a>00176     QDir tmpDir;
<a name="l00177"></a>00177     <span class="keywordflow">if</span>(!tmpDir.exists( tempOrigLocation ) )
<a name="l00178"></a>00178     { <a class="code" href="fileTools_8cpp.html#f41848ecf008f6b6579f5b0975faea5a" title="Copies a file from one location to another.">copyFile</a>( <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>, tempOrigLocation ); }    
<a name="l00179"></a>00179   }
<a name="l00180"></a>00180   
<a name="l00181"></a>00181   <span class="comment">//copy over full size image</span>
<a name="l00182"></a>00182   <a class="code" href="fileTools_8cpp.html#f41848ecf008f6b6579f5b0975faea5a" title="Copies a file from one location to another.">copyFile</a>( editedImageFilename, <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> );
<a name="l00183"></a>00183   
<a name="l00184"></a>00184   <span class="comment">//reset revert flag since image has not been modified</span>
<a name="l00185"></a>00185   <a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a> = <span class="keyword">false</span>;
<a name="l00186"></a>00186   
<a name="l00187"></a>00187   <span class="comment">//construct smaller iamges</span>
<a name="l00188"></a>00188   <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#f4d602874536f89799f828abd2a34848" title="Construct thumbnail and slideshow images, load up thumbnail image, and set photo...">constructSmallerImages</a>();
<a name="l00189"></a>00189 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="49be0b8f7e4b4cc83395ce13e4462632"></a><!-- doxytag: member="Photo::setImage" ref="49be0b8f7e4b4cc83395ce13e4462632" args="(QString imageName, int uniqueID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::setImage           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>imageName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>uniqueID</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Setup photo using a new image. We'll need to create slideshow and thumbnail images. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00123">123</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="fileTools_8cpp_source.html#l00061">copyFile()</a>, <a class="el" href="subalbum_8cpp_source.html#l00094">Subalbum::getAlbum()</a>, <a class="el" href="album_8cpp_source.html#l00142">Album::getTmpDir()</a>, <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>, <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>, <a class="el" href="imageTools_8cpp_source.html#l00033">isJpeg()</a>, <a class="el" href="photo_8cpp_source.html#l00534">setEverSaved()</a>, <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>, <a class="el" href="photo_8h_source.html#l00187">subalbum</a>, and <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00124"></a>00124 { 
<a name="l00125"></a>00125   <span class="comment">//this is a new photo, use a unique ID to construct temporary filenames</span>
<a name="l00126"></a>00126   <a class="code" href="classPhoto.html#60408934b0cb03ad0ad359ab1b5393a3" title="sets everSaved">setEverSaved</a>(<span class="keyword">false</span>);
<a name="l00127"></a>00127   <a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a> = 0;
<a name="l00128"></a>00128   <a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a> = uniqueID;
<a name="l00129"></a>00129 
<a name="l00130"></a>00130   QString tmpDir = <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>()-&gt;<a class="code" href="classAlbum.html#a7000c4e580d93ccb7a3fdbc84e49952" title="Returns the temporary directory for use when modifying and adding new images.">getTmpDir</a>();
<a name="l00131"></a>00131   <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>     = QString(<span class="stringliteral">"%1/%2_%3.jpg"</span>)          .arg(tmpDir).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00132"></a>00132   <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a> = QString(<span class="stringliteral">"%1/%2_%3_slideshow.jpg"</span>).arg(tmpDir).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00133"></a>00133   <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a> = QString(<span class="stringliteral">"%1/%2_%3_thumb.jpg"</span>)    .arg(tmpDir).arg(<a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a>).arg(<a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a>);
<a name="l00134"></a>00134   
<a name="l00135"></a>00135   <span class="comment">//if image in jpeg format simply copy file over</span>
<a name="l00136"></a>00136   <span class="keywordflow">if</span>( <a class="code" href="imageTools_8cpp.html#f483fb1d0e6d890227ff2fecd321aad2" title="Checks to see if an image is a valid jpg by seeing if the image dimensions can be...">isJpeg</a>(imageName) )
<a name="l00137"></a>00137   {
<a name="l00138"></a>00138     <a class="code" href="fileTools_8cpp.html#f41848ecf008f6b6579f5b0975faea5a" title="Copies a file from one location to another.">copyFile</a>( imageName, <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> );
<a name="l00139"></a>00139   }
<a name="l00140"></a>00140   <span class="comment">//otherwise we must load it up and save it out as jpeg</span>
<a name="l00141"></a>00141   <span class="keywordflow">else</span>
<a name="l00142"></a>00142   {
<a name="l00143"></a>00143     <span class="comment">//if unable to open image at all using Qt then giveup</span>
<a name="l00144"></a>00144     QImage tempImage(imageName);
<a name="l00145"></a>00145     <span class="keywordflow">if</span>( tempImage.isNull() ) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00146"></a>00146     
<a name="l00147"></a>00147     <span class="comment">//save out as jpeg</span>
<a name="l00148"></a>00148     tempImage.save( <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>, <span class="stringliteral">"JPEG"</span>, 95 );
<a name="l00149"></a>00149   }  
<a name="l00150"></a>00150   
<a name="l00151"></a>00151   <span class="comment">//construct smaller iamges</span>
<a name="l00152"></a>00152   <span class="keywordflow">return</span> <a class="code" href="classPhoto.html#f4d602874536f89799f828abd2a34848" title="Construct thumbnail and slideshow images, load up thumbnail image, and set photo...">constructSmallerImages</a>();
<a name="l00153"></a>00153 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="29e2aae62991d904c3cb763ec838d9bd"></a><!-- doxytag: member="Photo::setImage" ref="29e2aae62991d904c3cb763ec838d9bd" args="(QString imageName, QString slideshowName, QString thumbnailName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Photo::setImage           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>imageName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>slideshowName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>thumbnailName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Setup photo using preexisting full size, slideshow, and thumbnail images. 
<p>
We call this method when loading photos from disk and resizing is not necessary. 
<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00104">104</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>, <a class="el" href="photo_8h_source.html#l00218">needsSaving</a>, <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>, <a class="el" href="photo_8h_source.html#l00205">thumbnailImage</a>, and <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00197">Subalbum::addPhoto()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00853">EditingInterface::applyImageUpdate()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">Subalbum::lazyAddPhoto()</a>, <a class="el" href="photo_8cpp_source.html#l00556">revertPhoto()</a>, and <a class="el" href="editingInterface_8cpp_source.html#l00567">EditingInterface::rotateFlip()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00107"></a>00107 {  
<a name="l00108"></a>00108   <span class="comment">//set filenames, we'll lazily compute MD5 checksums for files when saving</span>
<a name="l00109"></a>00109   <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a>     = imageName;
<a name="l00110"></a>00110   <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a> = slideshowName;
<a name="l00111"></a>00111   <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a> = thumbnailName;
<a name="l00112"></a>00112   
<a name="l00113"></a>00113   <span class="comment">//load thumbnail image</span>
<a name="l00114"></a>00114   <span class="keyword">delete</span> <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a>;
<a name="l00115"></a>00115   <a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a> = <span class="keyword">new</span> QImage(thumbnailName);
<a name="l00116"></a>00116   <span class="keywordflow">if</span>(<a class="code" href="classPhoto.html#dee2a5bb92cbc903f3574d952c622867" title="Thumbnail Image.">thumbnailImage</a>-&gt;isNull()) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00117"></a>00117   
<a name="l00118"></a>00118   <span class="comment">//image just loaded, no changes yet</span>
<a name="l00119"></a>00119   <a class="code" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331" title="Unsaved modifications?">needsSaving</a> = <span class="keyword">false</span>;
<a name="l00120"></a>00120   <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00121"></a>00121 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="e79da2eb5300276a3b1d7f5649316f7a"></a><!-- doxytag: member="Photo::setImageChecksum" ref="e79da2eb5300276a3b1d7f5649316f7a" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setImageChecksum           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update image checksum. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00203">203</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00213">imageChecksum</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00203"></a>00203 { <a class="code" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0" title="MD5 checksums, used to determine if image/thumbnail have been changed.">imageChecksum</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="ce2956fdb7c227242265e30fca8247e2"></a><!-- doxytag: member="Photo::setImageFilename" ref="ce2956fdb7c227242265e30fca8247e2" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setImageFilename           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the image filename. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00195">195</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00208">imageLocation</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00195"></a>00195 { <a class="code" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5" title="Filenames.">imageLocation</a> = val;     }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="8d404398640e4db5545f6a81af5b8e46"></a><!-- doxytag: member="Photo::setInitialPhotoNumber" ref="8d404398640e4db5545f6a81af5b8e46" args="(int val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setInitialPhotoNumber           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets initial photo number. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00608">608</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00196">initialPhotoNumber</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00608"></a>00608 { <a class="code" href="classPhoto.html#c12f1ae514759507c64feba1a918ac36">initialPhotoNumber</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="5e68573a73d1b2315db2c3cc2b53b2f1"></a><!-- doxytag: member="Photo::setInitialSubalbumNumber" ref="5e68573a73d1b2315db2c3cc2b53b2f1" args="(int val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setInitialSubalbumNumber           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets initial subalbum number. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00611">611</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00199">initialSubalbumNumber</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00611"></a>00611 { <a class="code" href="classPhoto.html#aa2e2bea26ea53212d76ec17dc4e04bc">initialSubalbumNumber</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="869d215db9d16aad336e2823927c3e84"></a><!-- doxytag: member="Photo::setNeedsSavingVal" ref="869d215db9d16aad336e2823927c3e84" args="(bool val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setNeedsSavingVal           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets if the image needs to be saved to its permanent location. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00531">531</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00218">needsSaving</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00531"></a>00531 { <a class="code" href="classPhoto.html#c53f4bdf11a948daef3c1a300668d331" title="Unsaved modifications?">needsSaving</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="6f4cb7532382e6d58daeb0163166e1e4"></a><!-- doxytag: member="Photo::setNext" ref="6f4cb7532382e6d58daeb0163166e1e4" args="(Photo *val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setNext           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets next photo pointer. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00232">232</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00193">next</a>, <a class="el" href="subalbum_8cpp_source.html#l00171">Subalbum::setModified()</a>, and <a class="el" href="photo_8h_source.html#l00187">subalbum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00173">Subalbum::addPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">Subalbum::lazyAddPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">Subalbum::photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">Subalbum::removePhoto()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00500">Subalbum::syncPhotoList()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00233"></a>00233 { 
<a name="l00234"></a>00234   <a class="code" href="classPhoto.html#8fd5de011a756f9974e9cd1f458e2678" title="Pointer to next photo.">next</a> = val;
<a name="l00235"></a>00235   <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#a01ad19461ce049774595512960f73cb">setModified</a>();
<a name="l00236"></a>00236 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="7ee24d63bde8307b79829737dfa2cd8f"></a><!-- doxytag: member="Photo::setPrev" ref="7ee24d63bde8307b79829737dfa2cd8f" args="(Photo *val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setPrev           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets prev photo pointer. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00226">226</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00190">prev</a>, <a class="el" href="subalbum_8cpp_source.html#l00171">Subalbum::setModified()</a>, and <a class="el" href="photo_8h_source.html#l00187">subalbum</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00173">Subalbum::addPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">Subalbum::lazyAddPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">Subalbum::photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">Subalbum::removePhoto()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00500">Subalbum::syncPhotoList()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00227"></a>00227 { 
<a name="l00228"></a>00228   <a class="code" href="classPhoto.html#6d8d3898cc546889f7c0213b8bc3051a" title="Pointer to prev photo.">prev</a> = val;
<a name="l00229"></a>00229   <a class="code" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1" title="Subalbum photo is in.">subalbum</a>-&gt;<a class="code" href="classSubalbum.html#a01ad19461ce049774595512960f73cb">setModified</a>();
<a name="l00230"></a>00230 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="313c0cdae1171955581fb976609014bd"></a><!-- doxytag: member="Photo::setRecentlyReverted" ref="313c0cdae1171955581fb976609014bd" args="(bool val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setRecentlyReverted           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
reset the recently reverted value to val 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00551">551</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00225">recentlyReverted</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l01093">Album::removeStagnantOrigFiles()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00552"></a>00552 {
<a name="l00553"></a>00553   <a class="code" href="classPhoto.html#b0cffd8b36cb5a5b18d4543dfe69046b" title="Has the photo recently been reverted to it&amp;#39;s original form? If so during the...">recentlyReverted</a> = val;
<a name="l00554"></a>00554 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="054e5a51249e511536d6549099c617bf"></a><!-- doxytag: member="Photo::setSlideshowChecksum" ref="054e5a51249e511536d6549099c617bf" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setSlideshowChecksum           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update slideshow checksum. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00205">205</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00214">slideshowChecksum</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00205"></a>00205 { <a class="code" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">slideshowChecksum</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="b583bd230c73111707224cbe973263b7"></a><!-- doxytag: member="Photo::setSlideshowFilename" ref="b583bd230c73111707224cbe973263b7" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setSlideshowFilename           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the slideshow filename. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00196">196</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00209">slideshowLocation</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00196"></a>00196 { <a class="code" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">slideshowLocation</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="191bff87fa41c0f77409a0a5e25c8d1e"></a><!-- doxytag: member="Photo::setThumbnailChecksum" ref="191bff87fa41c0f77409a0a5e25c8d1e" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setThumbnailChecksum           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update thumbnail checksum. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00204">204</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00215">thumbnailChecksum</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00204"></a>00204 { <a class="code" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">thumbnailChecksum</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="8c9ab31a5158bb44e9d8b972c12ff0f9"></a><!-- doxytag: member="Photo::setThumbnailFilename" ref="8c9ab31a5158bb44e9d8b972c12ff0f9" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Photo::setThumbnailFilename           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>val</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the thumbnail filename. 
<p>

<p>Definition at line <a class="el" href="photo_8cpp_source.html#l00197">197</a> of file <a class="el" href="photo_8cpp_source.html">photo.cpp</a>.</p>

<p>References <a class="el" href="photo_8h_source.html#l00210">thumbnailLocation</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00197"></a>00197 { <a class="code" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">thumbnailLocation</a> = val; }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="6fe05dc549b7caf2ee3232476d41e760"></a><!-- doxytag: member="Photo::description" ref="6fe05dc549b7caf2ee3232476d41e760" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#6fe05dc549b7caf2ee3232476d41e760">Photo::description</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a> description. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00202">202</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, <a class="el" href="photo_8cpp_source.html#l00207">getDescription()</a>, <a class="el" href="photo_8cpp_source.html#l00238">importFromDisk()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, and <a class="el" href="photo_8cpp_source.html#l00209">setDescription()</a>.</p>

</div>
</div><p>
<a class="anchor" name="441a3e1ea66da5e86fa02ecf7d41c09d"></a><!-- doxytag: member="Photo::everSaved" ref="441a3e1ea66da5e86fa02ecf7d41c09d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classPhoto.html#441a3e1ea66da5e86fa02ecf7d41c09d">Photo::everSaved</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Has the photo ever been saved? 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00221">221</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00533">getEverSaved()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, and <a class="el" href="photo_8cpp_source.html#l00534">setEverSaved()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a3f68b264dc2e072e651331b9de6aed0"></a><!-- doxytag: member="Photo::imageChecksum" ref="a3f68b264dc2e072e651331b9de6aed0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#a3f68b264dc2e072e651331b9de6aed0">Photo::imageChecksum</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classMD5.html" title="MD5 Support allows checksums to be computed for images, determing if they have changed...">MD5</a> checksums, used to determine if image/thumbnail have been changed. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00213">213</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, <a class="el" href="photo_8cpp_source.html#l00199">getImageChecksum()</a>, <a class="el" href="photo_8cpp_source.html#l00238">importFromDisk()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, and <a class="el" href="photo_8cpp_source.html#l00203">setImageChecksum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ae2a02758b56abaa759057e7ee21f9b5"></a><!-- doxytag: member="Photo::imageLocation" ref="ae2a02758b56abaa759057e7ee21f9b5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#ae2a02758b56abaa759057e7ee21f9b5">Photo::imageLocation</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Filenames. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00208">208</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00191">getImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00104">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00195">setImageFilename()</a>.</p>

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

<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00196">196</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00607">getInitialPhotoNumber()</a>, <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00123">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00608">setInitialPhotoNumber()</a>.</p>

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

<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00199">199</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00610">getInitialSubalbumNumber()</a>, <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00123">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00611">setInitialSubalbumNumber()</a>.</p>

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

<p>
Unsaved modifications? 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00218">218</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00530">getNeedsSavingVal()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00104">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00531">setNeedsSavingVal()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8fd5de011a756f9974e9cd1f458e2678"></a><!-- doxytag: member="Photo::next" ref="8fd5de011a756f9974e9cd1f458e2678" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPhoto.html">Photo</a>* <a class="el" href="classPhoto.html#8fd5de011a756f9974e9cd1f458e2678">Photo::next</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to next photo. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00193">193</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00224">getNext()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, and <a class="el" href="photo_8cpp_source.html#l00232">setNext()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6d8d3898cc546889f7c0213b8bc3051a"></a><!-- doxytag: member="Photo::prev" ref="6d8d3898cc546889f7c0213b8bc3051a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPhoto.html">Photo</a>* <a class="el" href="classPhoto.html#6d8d3898cc546889f7c0213b8bc3051a">Photo::prev</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to prev photo. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00190">190</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00223">getPrev()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">setPrev()</a>.</p>

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

<p>
Has the photo recently been reverted to it's original form? If so during the next save the orig file can safely be remove. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00225">225</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00546">getRecentlyReverted()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00556">revertPhoto()</a>, <a class="el" href="photo_8cpp_source.html#l00536">revertPossible()</a>, <a class="el" href="photo_8cpp_source.html#l00155">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00551">setRecentlyReverted()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8cb3aa1eaaf8f0f14d626b475b21f465"></a><!-- doxytag: member="Photo::slideshowChecksum" ref="8cb3aa1eaaf8f0f14d626b475b21f465" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#8cb3aa1eaaf8f0f14d626b475b21f465">Photo::slideshowChecksum</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00214">214</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, <a class="el" href="photo_8cpp_source.html#l00201">getSlideshowChecksum()</a>, <a class="el" href="photo_8cpp_source.html#l00238">importFromDisk()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, and <a class="el" href="photo_8cpp_source.html#l00205">setSlideshowChecksum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="cfe4c2b45cf6b5b5a24cbbc85ea609ed"></a><!-- doxytag: member="Photo::slideshowLocation" ref="cfe4c2b45cf6b5b5a24cbbc85ea609ed" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#cfe4c2b45cf6b5b5a24cbbc85ea609ed">Photo::slideshowLocation</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00209">209</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00192">getSlideshowFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00104">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00196">setSlideshowFilename()</a>.</p>

</div>
</div><p>
<a class="anchor" name="1274dccc0e1deef5dcb25b45a4bda5d1"></a><!-- doxytag: member="Photo::subalbum" ref="1274dccc0e1deef5dcb25b45a4bda5d1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSubalbum.html">Subalbum</a>* <a class="el" href="classPhoto.html#1274dccc0e1deef5dcb25b45a4bda5d1">Photo::subalbum</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> photo is in. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00187">187</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00571">originalImageFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00209">setDescription()</a>, <a class="el" href="photo_8cpp_source.html#l00123">setImage()</a>, <a class="el" href="photo_8cpp_source.html#l00232">setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">setPrev()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4c418b827ae16ec1e96a6f1d0f1c84dd"></a><!-- doxytag: member="Photo::thumbnailChecksum" ref="4c418b827ae16ec1e96a6f1d0f1c84dd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#4c418b827ae16ec1e96a6f1d0f1c84dd">Photo::thumbnailChecksum</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00215">215</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00413">exportToXML()</a>, <a class="el" href="photo_8cpp_source.html#l00200">getThumbnailChecksum()</a>, <a class="el" href="photo_8cpp_source.html#l00238">importFromDisk()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, and <a class="el" href="photo_8cpp_source.html#l00204">setThumbnailChecksum()</a>.</p>

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

<p>
Thumbnail Image. 
<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00205">205</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00082">getThumbnailImage()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00104">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00076">~Photo()</a>.</p>

</div>
</div><p>
<a class="anchor" name="875ec0737b03198d51dc2e47380dd213"></a><!-- doxytag: member="Photo::thumbnailLocation" ref="875ec0737b03198d51dc2e47380dd213" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classPhoto.html#875ec0737b03198d51dc2e47380dd213">Photo::thumbnailLocation</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="photo_8h_source.html#l00210">210</a> of file <a class="el" href="photo_8h_source.html">photo.h</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00084">constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00193">getThumbnailFilename()</a>, <a class="el" href="photo_8cpp_source.html#l00031">Photo()</a>, <a class="el" href="photo_8cpp_source.html#l00104">setImage()</a>, and <a class="el" href="photo_8cpp_source.html#l00197">setThumbnailFilename()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="photo_8h_source.html">photo.h</a><li><a class="el" href="photo_8cpp_source.html">photo.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>