Sophie

Sophie

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

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: Subalbum 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>Subalbum Class Reference</h1><!-- doxytag: class="Subalbum" -->A subalbum contains photos.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="subalbum_8h_source.html">subalbum.h</a>&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for Subalbum:</div>
<div class="dynsection">
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classSubalbum-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="classSubalbum.html#f4bc559914c481772894e3090aeee7ab">Subalbum</a> (<a class="el" href="classAlbum.html">Album</a> *<a class="el" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3">albm</a>, int <a class="el" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79">number</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets default information  is the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> number.  <a href="#f4bc559914c481772894e3090aeee7ab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#e607191111f464b613c9369f78a57624">~Subalbum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Frees photos.  <a href="#e607191111f464b613c9369f78a57624"></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="classSubalbum.html#8735ad9f854b8019e4351c1536576eb1">setName</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> Name.  <a href="#8735ad9f854b8019e4351c1536576eb1"></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="classSubalbum.html#9d735164fdf19535c1dce8ba995c8a48">getName</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> Name.  <a href="#9d735164fdf19535c1dce8ba995c8a48"></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="classSubalbum.html#c8e40e8b636ab289956b5a0568cd296b">setDescription</a> (QString val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> description.  <a href="#c8e40e8b636ab289956b5a0568cd296b"></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="classSubalbum.html#82c1c3df230784af3b52016f05f2d284">getDescription</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> description.  <a href="#82c1c3df230784af3b52016f05f2d284"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#9bd87802ff9f634579c35d4a399c1227">getRepresentativeImage</a> (int size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">gets a sized representative image  <a href="#9bd87802ff9f634579c35d4a399c1227"></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="classSubalbum.html#61c23c492eef5def5d3aefa85e785433">setRepresentativeImage</a> (QString imageFilename)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sets a sized representative image  <a href="#61c23c492eef5def5d3aefa85e785433"></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="classSubalbum.html#12db5ef063152af51a8ded94d7bee730">addPhoto</a> (QString fileName, bool replaceDescription=false, <a class="el" href="classPhoto.html">Photo</a> *newPhoto=NULL)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a new photo to the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> and appends it to the end, returns TRUE if successful.  <a href="#12db5ef063152af51a8ded94d7bee730"></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="classSubalbum.html#4380016d07f980852e03ccf18ef65dff">lazyAddPhoto</a> (QString imageName, QString slideshowName, QString thumbnailName, <a class="el" href="classPhoto.html">Photo</a> *newPhoto)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE if successful.  <a href="#4380016d07f980852e03ccf18ef65dff"></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="classSubalbum.html#599a195ccf33ebe6f7c42db1cefd228d">addPhoto</a> (<a class="el" href="classPhoto.html">Photo</a> *newPhoto)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a preexisting photo object to the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>, appending it to the end.  <a href="#599a195ccf33ebe6f7c42db1cefd228d"></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="classSubalbum.html#77b6f10b6c8e2230185ae9a5c30c8300">photoMoved</a> (<a class="el" href="classPhoto.html">Photo</a> *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a specified photo without deleting the object.  <a href="#77b6f10b6c8e2230185ae9a5c30c8300"></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="classSubalbum.html#4ca46c83f9d143f34bb898f6c0c0fd90">removePhoto</a> (<a class="el" href="classPhoto.html">Photo</a> *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a specified photo.  <a href="#4ca46c83f9d143f34bb898f6c0c0fd90"></a><br></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="classSubalbum.html#08c5cb587f5faa8b18a96ee04af8dc56">getPrev</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns pointer to prev subalbum.  <a href="#08c5cb587f5faa8b18a96ee04af8dc56"></a><br></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="classSubalbum.html#510a01088f04712e93ae202cc758065f">getNext</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns pointer to next subalbum.  <a href="#510a01088f04712e93ae202cc758065f"></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="classSubalbum.html#976c57e474987e1c54a6921c1f9d079c">setPrev</a> (<a class="el" href="classSubalbum.html">Subalbum</a> *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets pointer of prev subalbum.  <a href="#976c57e474987e1c54a6921c1f9d079c"></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="classSubalbum.html#b44668ea110a4ee38fb27e9fcb4b39f6">setNext</a> (<a class="el" href="classSubalbum.html">Subalbum</a> *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets pointer of next subalbum.  <a href="#b44668ea110a4ee38fb27e9fcb4b39f6"></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="classSubalbum.html#a38b7736f58738d25426bf0cd93fc28a">getFirst</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns first photo in subalbum.  <a href="#a38b7736f58738d25426bf0cd93fc28a"></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="classSubalbum.html#22578a064d4c60f3bba4b0e8d314ce42">getLast</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns last photo in subalbum.  <a href="#22578a064d4c60f3bba4b0e8d314ce42"></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="classSubalbum.html#4b739ddec9d2b6421357a56553d91c82">exportToXML</a> (<a class="el" href="classStatusWidget.html">StatusWidget</a> *<a class="el" href="redEye__internal_8h.html#65b682074aef9e63bb1dad48c3e9e9df">status</a>, QTextStream &amp;stream)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exports subalbum to xml.  <a href="#4b739ddec9d2b6421357a56553d91c82"></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="classSubalbum.html#c006384e8c28addecc09c23a591ea884">importFromDisk</a> (QDomNode *root, int subalbumNum, <a class="el" href="classStatusWidget.html">StatusWidget</a> *<a class="el" href="redEye__internal_8h.html#65b682074aef9e63bb1dad48c3e9e9df">status</a>, QString dirName, bool disableCheckPhotoMods)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Builds subalbum from XML DOM node.  <a href="#c006384e8c28addecc09c23a591ea884"></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="classSubalbum.html#f491dd129feb2e0713c3cc943e3d3fed">syncPhotoList</a> (<a class="el" href="classPhotoPreviewWidget.html">PhotoPreviewWidget</a> *item)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Syncs photo ordering with front end gui ordering.  <a href="#f491dd129feb2e0713c3cc943e3d3fed"></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="classSubalbum.html#421e48eea5937cd4718a34410bdc29cb">getSubalbumNumber</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns subalbum number.  <a href="#421e48eea5937cd4718a34410bdc29cb"></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="classSubalbum.html#4f43f5424c1400ce2ddad3a143db5418">setSubalbumNumber</a> (int newVal)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the subalbum number to newVal.  <a href="#4f43f5424c1400ce2ddad3a143db5418"></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="classSubalbum.html#1a55114adae96d7c2a87e37f6a40fe2d">getNumPhotos</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of photos in the subalbum.  <a href="#1a55114adae96d7c2a87e37f6a40fe2d"></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="classSubalbum.html#dd5b24cedda52cf2c7527603097b1dd4">getNumLoadedPhotos</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of loaded photos in subalbum.  <a href="#dd5b24cedda52cf2c7527603097b1dd4"></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="classSubalbum.html#a93dcf1d9ca349da4cbe39a0c569c37b">resetNumLoadedPhotos</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#a01ad19461ce049774595512960f73cb">setModified</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classAlbum.html">Album</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578">getAlbum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the album pointer  <a href="#b42d5716bb7253d290302bd1d735d578"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79">number</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> Number.  <a href="#16e483535b3378a7e931f66d933d3e79"></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="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e">numPhotos</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of photos in subalbum.  <a href="#11f56eda8419db70fb88a15fbe46938e"></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="classSubalbum.html#b51f1d02adc4219864f39a02609d3e7c">loadedPhotos</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of photos in subalbum when last loaded.  <a href="#b51f1d02adc4219864f39a02609d3e7c"></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="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d">name</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Short Name for subalbum.  <a href="#2728b6ac73fbf30ce1e494a64bb6186d"></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="classSubalbum.html#983620a2f934d2437314902a1782038c">description</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Longer description of subalbum.  <a href="#983620a2f934d2437314902a1782038c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QPixmap *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a></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="classSubalbum.html#9191766b1a9af28f332fac828a93cd89">firstPhoto</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to first photo.  <a href="#9191766b1a9af28f332fac828a93cd89"></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="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8">lastPhoto</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to last photo.  <a href="#71607e559d5f71793ca8798d0737c7d8"></a><br></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="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2">prevSubalbum</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to prev subalbum.  <a href="#54c5ce9ad52359e1a6f26517328c0ee2"></a><br></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="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc">nextSubalbum</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to next subalbum.  <a href="#6ac8347a1e335fcb4480fc63fdc8f9dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classAlbum.html">Album</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3">albm</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to album subalbum is in.  <a href="#662929e1d71c43a120bf59e04477f6b3"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A subalbum contains photos. 
<p>
Specific contents: <ul>
<li>
Photos </li>
<li>
Name </li>
<li>
Description </li>
<li>
Representative image </li>
<li>
<a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> number </li>
<li>
Number of Photos </li>
</ul>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00045">45</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="f4bc559914c481772894e3090aeee7ab"></a><!-- doxytag: member="Subalbum::Subalbum" ref="f4bc559914c481772894e3090aeee7ab" args="(Album *albm, int number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Subalbum::Subalbum           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAlbum.html">Album</a> *&nbsp;</td>
          <td class="paramname"> <em>albm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>number</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  is the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> number. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00035">35</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbumPreviewWidget_8cpp_source.html#l00259">SubalbumPreviewWidget::createSubalbumPixmap()</a>, <a class="el" href="subalbum_8h_source.html#l00157">description</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="config_8cpp_source.html#l00018">IMAGE_PATH</a>, <a class="el" href="subalbum_8h_source.html#l00162">largeRepresentativeImage</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00151">loadedPhotos</a>, <a class="el" href="subalbum_8h_source.html#l00161">mediumRepresentativeImage</a>, <a class="el" href="subalbum_8h_source.html#l00154">name</a>, <a class="el" href="subalbum_8h_source.html#l00174">nextSubalbum</a>, <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>, <a class="el" href="subalbum_8h_source.html#l00171">prevSubalbum</a>, and <a class="el" href="subalbum_8h_source.html#l00160">smallRepresentativeImage</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00036"></a>00036 {
<a name="l00037"></a>00037   <span class="comment">//set subalbum number</span>
<a name="l00038"></a>00038   this-&gt;<a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a> = <a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a>;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040   <span class="comment">//by default no photos in subalbum</span>
<a name="l00041"></a>00041   <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a> = 0;
<a name="l00042"></a>00042   <a class="code" href="classSubalbum.html#b51f1d02adc4219864f39a02609d3e7c" title="Number of photos in subalbum when last loaded.">loadedPhotos</a> = 0;
<a name="l00043"></a>00043 
<a name="l00044"></a>00044   <span class="comment">//set strings to default values</span>
<a name="l00045"></a>00045   <a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a> = qApp-&gt;translate(<span class="stringliteral">"Subalbum"</span>, <span class="stringliteral">"Collection %1"</span>).arg(<a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a>);
<a name="l00046"></a>00046   <a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a> =<span class="stringliteral">""</span>;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048   <span class="comment">//set default rep images</span>
<a name="l00049"></a>00049   <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a> = NULL;
<a name="l00050"></a>00050   <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a> = <a class="code" href="classSubalbumPreviewWidget.html#86e6f2aa6a9ab400eb709667c6f5c0c1">SubalbumPreviewWidget::createSubalbumPixmap</a>
<a name="l00051"></a>00051   ( QString(<a class="code" href="config_8cpp.html#59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a>)+<span class="stringliteral">"miscImages/subalbum.png"</span> );
<a name="l00052"></a>00052   <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a> = NULL;
<a name="l00053"></a>00053 
<a name="l00054"></a>00054   <span class="comment">//no photos by default</span>
<a name="l00055"></a>00055   <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = NULL;
<a name="l00056"></a>00056   <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = NULL;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058   <span class="comment">//next and prev pointers null by default</span>
<a name="l00059"></a>00059   <a class="code" href="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2" title="Pointer to prev subalbum.">prevSubalbum</a> = NULL;
<a name="l00060"></a>00060   <a class="code" href="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc" title="Pointer to next subalbum.">nextSubalbum</a> = NULL;
<a name="l00061"></a>00061 
<a name="l00062"></a>00062   <span class="comment">//set album pointer</span>
<a name="l00063"></a>00063   this-&gt;albm = albm;
<a name="l00064"></a>00064 }
</pre></div>
<p>

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

<p>
Frees photos. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00066">66</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="photo_8cpp_source.html#l00224">Photo::getNext()</a>, <a class="el" href="subalbum_8h_source.html#l00162">largeRepresentativeImage</a>, <a class="el" href="subalbum_8h_source.html#l00161">mediumRepresentativeImage</a>, and <a class="el" href="subalbum_8h_source.html#l00160">smallRepresentativeImage</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00067"></a>00067 {
<a name="l00068"></a>00068   <span class="comment">//delete representative images</span>
<a name="l00069"></a>00069   <span class="keyword">delete</span> <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a>;
<a name="l00070"></a>00070   <span class="keyword">delete</span> <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a>;
<a name="l00071"></a>00071   <span class="keyword">delete</span> <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a>;
<a name="l00072"></a>00072 
<a name="l00073"></a>00073   <span class="comment">//delete all photos</span>
<a name="l00074"></a>00074   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* current = <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>;
<a name="l00075"></a>00075   <span class="keywordflow">while</span>(current != NULL)
<a name="l00076"></a>00076   {
<a name="l00077"></a>00077     <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* temp = current-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>();
<a name="l00078"></a>00078     <span class="keyword">delete</span> current;
<a name="l00079"></a>00079     current = temp;
<a name="l00080"></a>00080   }
<a name="l00081"></a>00081 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="599a195ccf33ebe6f7c42db1cefd228d"></a><!-- doxytag: member="Subalbum::addPhoto" ref="599a195ccf33ebe6f7c42db1cefd228d" args="(Photo *newPhoto)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::addPhoto           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPhoto.html">Photo</a> *&nbsp;</td>
          <td class="paramname"> <em>newPhoto</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a preexisting photo object to the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>, appending it to the end. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00173">173</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>, <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00174"></a>00174 {
<a name="l00175"></a>00175   <span class="comment">//set the photos next and prev points to NULL by default</span>
<a name="l00176"></a>00176   newPhoto-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>(NULL);
<a name="l00177"></a>00177   newPhoto-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>(NULL);
<a name="l00178"></a>00178 
<a name="l00179"></a>00179   <span class="comment">//if list empty set to head</span>
<a name="l00180"></a>00180   <span class="keywordflow">if</span>(<a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> == NULL)
<a name="l00181"></a>00181   {
<a name="l00182"></a>00182     <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = newPhoto;
<a name="l00183"></a>00183     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = newPhoto;
<a name="l00184"></a>00184   }
<a name="l00185"></a>00185   <span class="comment">//else append to end of list</span>
<a name="l00186"></a>00186   <span class="keywordflow">else</span>
<a name="l00187"></a>00187   {
<a name="l00188"></a>00188     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>(newPhoto);
<a name="l00189"></a>00189     newPhoto-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>( <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> );
<a name="l00190"></a>00190     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = newPhoto;
<a name="l00191"></a>00191   }
<a name="l00192"></a>00192 
<a name="l00193"></a>00193   <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>++;
<a name="l00194"></a>00194   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00195"></a>00195 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="12db5ef063152af51a8ded94d7bee730"></a><!-- doxytag: member="Subalbum::addPhoto" ref="12db5ef063152af51a8ded94d7bee730" args="(QString fileName, bool replaceDescription=false, Photo *newPhoto=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Subalbum::addPhoto           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>replaceDescription</em> = <code>false</code>, </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>newPhoto</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a new photo to the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> and appends it to the end, returns TRUE if successful. 
<p>

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

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="subalbum_8cpp_source.html#l00100">getLast()</a>, <a class="el" href="album_8cpp_source.html#l01420">Album::getNextUniquePhotoID()</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>, <a class="el" href="photo_8cpp_source.html#l00209">Photo::setDescription()</a>, <a class="el" href="photo_8cpp_source.html#l00104">Photo::setImage()</a>, <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>

<p>Referenced by <a class="el" href="subalbumWidget_8cpp_source.html#l00263">SubalbumWidget::addImageAction()</a>, <a class="el" href="subalbumPreviewWidget_8cpp_source.html#l00175">SubalbumPreviewWidget::dropped()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00198"></a>00198 {
<a name="l00199"></a>00199   <span class="comment">//create new photo if necessary</span>
<a name="l00200"></a>00200   <span class="keywordflow">if</span>(newPhoto == NULL)
<a name="l00201"></a>00201     newPhoto = <span class="keyword">new</span> <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>(<span class="keyword">this</span>, <a class="code" href="classSubalbum.html#22578a064d4c60f3bba4b0e8d314ce42" title="Returns last photo in subalbum.">getLast</a>(), <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>);
<a name="l00202"></a>00202 
<a name="l00203"></a>00203   <span class="comment">//replace description with filename if instructed</span>
<a name="l00204"></a>00204   <span class="comment">//(aka /home/bob/happy.jpg -&gt; happy)</span>
<a name="l00205"></a>00205   <span class="keywordflow">if</span>(replaceDescription)
<a name="l00206"></a>00206   {
<a name="l00207"></a>00207     <span class="comment">//get filename</span>
<a name="l00208"></a>00208     QString desc(fileName);
<a name="l00209"></a>00209 
<a name="l00210"></a>00210     <span class="comment">//remove path</span>
<a name="l00211"></a>00211     desc = desc.section( QRegExp(<span class="stringliteral">"/"</span>), -1);
<a name="l00212"></a>00212 
<a name="l00213"></a>00213     <span class="comment">//remove extension if it exists</span>
<a name="l00214"></a>00214     <span class="keywordtype">int</span> extensionIndex = desc.findRev( <span class="charliteral">'.'</span> );
<a name="l00215"></a>00215     <span class="keywordflow">if</span>(extensionIndex &gt; 0 )
<a name="l00216"></a>00216       desc.truncate(extensionIndex);
<a name="l00217"></a>00217 
<a name="l00218"></a>00218     <span class="comment">//convert _'s to spaces</span>
<a name="l00219"></a>00219     desc = desc.replace(<span class="charliteral">'_'</span>, <span class="charliteral">' '</span>);
<a name="l00220"></a>00220 
<a name="l00221"></a>00221     <span class="comment">//set photos description</span>
<a name="l00222"></a>00222     newPhoto-&gt;<a class="code" href="classPhoto.html#b9460c196309be9f0084bbeb91ac04c6" title="Sets the description.">setDescription</a>( desc );
<a name="l00223"></a>00223   }
<a name="l00224"></a>00224 
<a name="l00225"></a>00225   <span class="comment">//attempt to set image</span>
<a name="l00226"></a>00226   <span class="keywordflow">if</span>(!newPhoto-&gt;<a class="code" href="classPhoto.html#29e2aae62991d904c3cb763ec838d9bd" title="Setup photo using preexisting full size, slideshow, and thumbnail images.">setImage</a>(fileName, <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#48dc741d5a9890c85c008f788767b7ac" title="Returns the next unique photo id.">getNextUniquePhotoID</a>() ))
<a name="l00227"></a>00227   {
<a name="l00228"></a>00228     <span class="keyword">delete</span> newPhoto;
<a name="l00229"></a>00229     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00230"></a>00230   }
<a name="l00231"></a>00231 
<a name="l00232"></a>00232   <span class="comment">//if this is the first photo set as the head</span>
<a name="l00233"></a>00233   <span class="keywordflow">if</span>(<a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> == NULL)
<a name="l00234"></a>00234   {
<a name="l00235"></a>00235     <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = newPhoto;
<a name="l00236"></a>00236     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = newPhoto;
<a name="l00237"></a>00237   }
<a name="l00238"></a>00238   <span class="comment">//else append to end of list</span>
<a name="l00239"></a>00239   <span class="keywordflow">else</span>
<a name="l00240"></a>00240   {
<a name="l00241"></a>00241     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>(newPhoto);
<a name="l00242"></a>00242     newPhoto-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>( <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> );
<a name="l00243"></a>00243     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = newPhoto;
<a name="l00244"></a>00244   }
<a name="l00245"></a>00245 
<a name="l00246"></a>00246   <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>++;
<a name="l00247"></a>00247   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00248"></a>00248   <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00249"></a>00249 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="4b739ddec9d2b6421357a56553d91c82"></a><!-- doxytag: member="Subalbum::exportToXML" ref="4b739ddec9d2b6421357a56553d91c82" args="(StatusWidget *status, QTextStream &amp;stream)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::exportToXML           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classStatusWidget.html">StatusWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QTextStream &amp;&nbsp;</td>
          <td class="paramname"> <em>stream</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Exports subalbum to xml. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00312">312</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00157">description</a>, <a class="el" href="photo_8cpp_source.html#l00413">Photo::exportToXML()</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="xmlTools_8cpp_source.html#l00036">fixXMLString()</a>, <a class="el" href="photo_8cpp_source.html#l00224">Photo::getNext()</a>, <a class="el" href="subalbum_8cpp_source.html#l00086">getRepresentativeImage()</a>, <a class="el" href="album_8h_source.html#l00017">LARGE</a>, <a class="el" href="subalbum_8h_source.html#l00154">name</a>, and <a class="el" href="subalbum_8h_source.html#l00145">number</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00801">Album::exportToXML()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00313"></a>00313 {
<a name="l00314"></a>00314   <span class="comment">//write subalbum information</span>
<a name="l00315"></a>00315   stream &lt;&lt; <span class="stringliteral">"  &lt;subalbum&gt;\n"</span>;
<a name="l00316"></a>00316 
<a name="l00317"></a>00317   <span class="comment">//if subalbum has a represenatative image save it's path</span>
<a name="l00318"></a>00318    <span class="keywordflow">if</span>(<a class="code" href="classSubalbum.html#9bd87802ff9f634579c35d4a399c1227" title="gets a sized representative image">getRepresentativeImage</a>(<a class="code" href="album_8h.html#c27c2124ca2aed651e06aba3a1468ecb">LARGE</a>) != NULL )
<a name="l00319"></a>00319    {
<a name="l00320"></a>00320      stream &lt;&lt; <span class="stringliteral">"    &lt;thumb path=\"img/"</span> &lt;&lt; <a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a> &lt;&lt; <span class="stringliteral">"_thumb.jpg\"/&gt;\n"</span>;
<a name="l00321"></a>00321      stream &lt;&lt; <span class="stringliteral">"    &lt;name&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="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a>) &lt;&lt; <span class="stringliteral">"&lt;/name&gt;\n"</span>;
<a name="l00322"></a>00322    }
<a name="l00323"></a>00323    <span class="comment">//else if the name is empty or just whitespace override it with "Subalbum #" so</span>
<a name="l00324"></a>00324    <span class="comment">//it is not invisible on the coverpage</span>
<a name="l00325"></a>00325    <span class="keywordflow">else</span>
<a name="l00326"></a>00326    {
<a name="l00327"></a>00327      QString strippedName = <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="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a>);
<a name="l00328"></a>00328      <span class="keywordflow">if</span>(strippedName.stripWhiteSpace() == <span class="stringliteral">""</span>)
<a name="l00329"></a>00329        stream &lt;&lt; QString(<span class="stringliteral">"  &lt;name&gt;%1 %2&lt;/name&gt;\n"</span>).arg(qApp-&gt;translate(<span class="stringliteral">"Subalbum"</span>, <span class="stringliteral">"Collection"</span>)).arg(<a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a>);
<a name="l00330"></a>00330      <span class="keywordflow">else</span>
<a name="l00331"></a>00331        stream &lt;&lt; <span class="stringliteral">"    &lt;name&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="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a>) &lt;&lt; <span class="stringliteral">"&lt;/name&gt;\n"</span>;
<a name="l00332"></a>00332    }
<a name="l00333"></a>00333 
<a name="l00334"></a>00334   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="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a>) &lt;&lt; <span class="stringliteral">"&lt;/description&gt;\n"</span>;
<a name="l00335"></a>00335 
<a name="l00336"></a>00336   <span class="comment">//write photos</span>
<a name="l00337"></a>00337   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* current = <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>;
<a name="l00338"></a>00338   <span class="keywordflow">while</span>(current != NULL)
<a name="l00339"></a>00339   {
<a name="l00340"></a>00340     current-&gt;<a class="code" href="classPhoto.html#32cb80c04e59656420094311ad6d9c20" title="Exports photo to xml.">exportToXML</a>(stream);
<a name="l00341"></a>00341     current = current-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>();
<a name="l00342"></a>00342   }
<a name="l00343"></a>00343 
<a name="l00344"></a>00344   <span class="comment">//close subalbum</span>
<a name="l00345"></a>00345   stream &lt;&lt; <span class="stringliteral">"  &lt;/subalbum&gt;\n"</span>;
<a name="l00346"></a>00346 
<a name="l00347"></a>00347 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="b42d5716bb7253d290302bd1d735d578"></a><!-- doxytag: member="Subalbum::getAlbum" ref="b42d5716bb7253d290302bd1d735d578" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAlbum.html">Album</a> * Subalbum::getAlbum           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
returns the album pointer 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00094">94</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00475">Photo::applyTransformation()</a>, <a class="el" href="photo_8cpp_source.html#l00571">Photo::originalImageFilename()</a>, and <a class="el" href="photo_8cpp_source.html#l00123">Photo::setImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00094"></a>00094 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>;         }
</pre></div>
<p>

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

<p>
Gets the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> description. 
<p>

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

<p>References <a class="el" href="subalbum_8h_source.html#l00157">description</a>.</p>

<p>Referenced by <a class="el" href="titleWidget_8cpp_source.html#l00449">TitleWidget::refreshCollectionAnnotations()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00084"></a>00084 { <span class="keywordflow">return</span> QString(<a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a>); }
</pre></div>
<p>

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

<p>
Returns first photo in subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00099">99</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>.</p>

<p>Referenced by <a class="el" href="presentationWidget_8cpp_source.html#l00728">SlideshowWidget::advanceCollection()</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="album_8cpp_source.html#l01426">Album::getThumbnailFilenames()</a>, <a class="el" href="subalbumWidget_8cpp_source.html#l00516">SubalbumWidget::refreshPhotos()</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="presentationWidget_8cpp_source.html#l00559">SlideshowWidget::showCollectionPage()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00487">EditingInterface::showFirstPhoto()</a>, and <a class="el" href="presentationWidget_8cpp_source.html#l00671">SlideshowWidget::skipToFirstPhoto()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00099"></a>00099 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>;   }
</pre></div>
<p>

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

<p>
Returns last photo in subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00100">100</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>.</p>

<p>Referenced by <a class="el" href="subalbumWidget_8cpp_source.html#l00263">SubalbumWidget::addImageAction()</a>, <a class="el" href="subalbum_8cpp_source.html#l00197">addPhoto()</a>, <a class="el" href="presentationWidget_8cpp_source.html#l00762">SlideshowWidget::backupCollection()</a>, <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>, <a class="el" href="editingInterface_8cpp_source.html#l00495">EditingInterface::showLastPhoto()</a>, and <a class="el" href="presentationWidget_8cpp_source.html#l00699">SlideshowWidget::skipToLastPhoto()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00100"></a>00100 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>;    }
</pre></div>
<p>

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

<p>
Gets the <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> Name. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00083">83</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00154">name</a>.</p>

<p>Referenced by <a class="el" href="titleWidget_8cpp_source.html#l00449">TitleWidget::refreshCollectionAnnotations()</a>, and <a class="el" href="titleWidget_8cpp_source.html#l00398">TitleWidget::storeAnnotations()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00083"></a>00083 { <span class="keywordflow">return</span> QString(<a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a>);        }
</pre></div>
<p>

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

<p>
Returns pointer to next subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00097">97</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00174">nextSubalbum</a>.</p>

<p>Referenced by <a class="el" href="presentationWidget_8cpp_source.html#l00728">SlideshowWidget::advanceCollection()</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="album_8cpp_source.html#l00506">Album::exportToDisk()</a>, <a class="el" href="album_8cpp_source.html#l00853">Album::exportTopLevelImages()</a>, <a class="el" href="album_8cpp_source.html#l00801">Album::exportToXML()</a>, <a class="el" href="album_8cpp_source.html#l00146">Album::getNumPhotos()</a>, <a class="el" href="album_8cpp_source.html#l01426">Album::getThumbnailFilenames()</a>, <a class="el" href="subalbumsWidget_8cpp_source.html#l00239">SubalbumsWidget::refreshCollectionsList()</a>, <a class="el" href="album_8cpp_source.html#l01244">Album::removeStagnantImages()</a>, <a class="el" href="album_8cpp_source.html#l01093">Album::removeStagnantOrigFiles()</a>, <a class="el" href="album_8cpp_source.html#l00257">Album::removeSubalbum()</a>, <a class="el" href="album_8cpp_source.html#l01126">Album::reorderSubalbumImages()</a>, <a class="el" href="album_8cpp_source.html#l01369">Album::syncSubalbumList()</a>, and <a class="el" href="album_8cpp_source.html#l00084">Album::~Album()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00097"></a>00097 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc" title="Pointer to next subalbum.">nextSubalbum</a>; }
</pre></div>
<p>

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

<p>
Returns the number of loaded photos in subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00104">104</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00151">loadedPhotos</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00104"></a>00104 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#b51f1d02adc4219864f39a02609d3e7c" title="Number of photos in subalbum when last loaded.">loadedPhotos</a>; }
</pre></div>
<p>

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

<p>
Returns the number of photos in the subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00103">103</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>.</p>

<p>Referenced by <a class="el" href="presentationWidget_8cpp_source.html#l00762">SlideshowWidget::backupCollection()</a>, <a class="el" href="album_8cpp_source.html#l00726">Album::exportLargeImages()</a>, <a class="el" href="album_8cpp_source.html#l00506">Album::exportToDisk()</a>, <a class="el" href="album_8cpp_source.html#l00146">Album::getNumPhotos()</a>, <a class="el" href="presentationWidget_8cpp_source.html#l00976">SlideshowWidget::paintOverlaidControls()</a>, <a class="el" href="album_8cpp_source.html#l01244">Album::removeStagnantImages()</a>, and <a class="el" href="presentationWidget_8cpp_source.html#l00699">SlideshowWidget::skipToLastPhoto()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00103"></a>00103 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>;    }
</pre></div>
<p>

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

<p>
Returns pointer to prev subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00096">96</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00171">prevSubalbum</a>.</p>

<p>Referenced by <a class="el" href="presentationWidget_8cpp_source.html#l00762">SlideshowWidget::backupCollection()</a>, and <a class="el" href="album_8cpp_source.html#l00257">Album::removeSubalbum()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00096"></a>00096 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2" title="Pointer to prev subalbum.">prevSubalbum</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="9bd87802ff9f634579c35d4a399c1227"></a><!-- doxytag: member="Subalbum::getRepresentativeImage" ref="9bd87802ff9f634579c35d4a399c1227" args="(int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPixmap * Subalbum::getRepresentativeImage           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>size</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
gets a sized representative image 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00086">86</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="album_8h_source.html#l00017">LARGE</a>, <a class="el" href="subalbum_8h_source.html#l00162">largeRepresentativeImage</a>, <a class="el" href="album_8h_source.html#l00016">MEDIUM</a>, <a class="el" href="subalbum_8h_source.html#l00161">mediumRepresentativeImage</a>, <a class="el" href="album_8h_source.html#l00015">SMALL</a>, and <a class="el" href="subalbum_8h_source.html#l00160">smallRepresentativeImage</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#l00853">Album::exportTopLevelImages()</a>, <a class="el" href="subalbum_8cpp_source.html#l00312">exportToXML()</a>, <a class="el" href="titleWidget_8cpp_source.html#l00449">TitleWidget::refreshCollectionAnnotations()</a>, <a class="el" href="titleWidget_8cpp_source.html#l00536">TitleWidget::setSubalbumImage()</a>, and <a class="el" href="titleWidget_8cpp_source.html#l00555">TitleWidget::unsetSubalbumImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087 {
<a name="l00088"></a>00088   <span class="keywordflow">if</span>(size == <a class="code" href="album_8h.html#09c78d2f8feb311dd9fc969a0bf84979">SMALL</a>)  <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a>;
<a name="l00089"></a>00089   <span class="keywordflow">if</span>(size == <a class="code" href="album_8h.html#455b219d48b21108576f53129be38c32">MEDIUM</a>) <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a>;
<a name="l00090"></a>00090   <span class="keywordflow">if</span>(size == <a class="code" href="album_8h.html#c27c2124ca2aed651e06aba3a1468ecb">LARGE</a>)  <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a>;
<a name="l00091"></a>00091   <span class="keywordflow">else</span>               <span class="keywordflow">return</span> NULL;
<a name="l00092"></a>00092 }
</pre></div>
<p>

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

<p>
Returns subalbum number. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00102">102</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00145">number</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00031">Photo::Photo()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00102"></a>00102 { <span class="keywordflow">return</span> <a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a>;       }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="c006384e8c28addecc09c23a591ea884"></a><!-- doxytag: member="Subalbum::importFromDisk" ref="c006384e8c28addecc09c23a591ea884" args="(QDomNode *root, int subalbumNum, StatusWidget *status, QString dirName, bool disableCheckPhotoMods)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::importFromDisk           </td>
          <td>(</td>
          <td class="paramtype">QDomNode *&nbsp;</td>
          <td class="paramname"> <em>root</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>subalbumNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classStatusWidget.html">StatusWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>dirName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>disableCheckPhotoMods</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Builds subalbum from XML DOM node. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00349">349</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8cpp_source.html#l00197">addPhoto()</a>, <a class="el" href="subalbum_8h_source.html#l00157">description</a>, <a class="el" href="photo_8cpp_source.html#l00199">Photo::getImageChecksum()</a>, <a class="el" href="subalbum_8cpp_source.html#l00100">getLast()</a>, <a class="el" href="md5_8cpp_source.html#l00542">getMD5()</a>, <a class="el" href="photo_8cpp_source.html#l00201">Photo::getSlideshowChecksum()</a>, <a class="el" href="photo_8cpp_source.html#l00200">Photo::getThumbnailChecksum()</a>, <a class="el" href="photo_8cpp_source.html#l00238">Photo::importFromDisk()</a>, <a class="el" href="statusWidget_8cpp_source.html#l00119">StatusWidget::incrementProgress()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">lazyAddPhoto()</a>, <a class="el" href="subalbum_8h_source.html#l00154">name</a>, <a class="el" href="subalbum_8cpp_source.html#l00170">resetNumLoadedPhotos()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00124">setRepresentativeImage()</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00295">Album::importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00354"></a>00354 {
<a name="l00355"></a>00355   <span class="comment">//if representative image exists load</span>
<a name="l00356"></a>00356   QString repName = QString(dirName + <span class="stringliteral">"/img/%1_thumb.jpg"</span>).arg(subalbumNum);
<a name="l00357"></a>00357   QImage repImage(repName);
<a name="l00358"></a>00358   <span class="keywordflow">if</span>(!repImage.isNull())
<a name="l00359"></a>00359   {
<a name="l00360"></a>00360     <a class="code" href="classSubalbum.html#61c23c492eef5def5d3aefa85e785433" title="sets a sized representative image">setRepresentativeImage</a>(repName);
<a name="l00361"></a>00361   }
<a name="l00362"></a>00362 
<a name="l00363"></a>00363   QDomNode node = root-&gt;firstChild();
<a name="l00364"></a>00364   QDomText val;
<a name="l00365"></a>00365   <span class="keywordtype">int</span> photoNum = 0;
<a name="l00366"></a>00366   <span class="keywordflow">while</span>( !node.isNull() )
<a name="l00367"></a>00367   {
<a name="l00368"></a>00368     <span class="comment">//------------------------------------------------------------</span>
<a name="l00369"></a>00369     <span class="comment">//subalbum name</span>
<a name="l00370"></a>00370     <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"name"</span> )
<a name="l00371"></a>00371     {
<a name="l00372"></a>00372       val = node.firstChild().toText();
<a name="l00373"></a>00373       <span class="keywordflow">if</span>(!val.isNull())
<a name="l00374"></a>00374         <a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a> = val.nodeValue();
<a name="l00375"></a>00375      <a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a>.replace(<span class="stringliteral">"\\&amp;quot;"</span>,<span class="stringliteral">"\""</span>);
<a name="l00376"></a>00376     }
<a name="l00377"></a>00377     <span class="comment">//------------------------------------------------------------</span>
<a name="l00378"></a>00378     <span class="comment">//subalbum description</span>
<a name="l00379"></a>00379     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( node.isElement() &amp;&amp; node.nodeName() == <span class="stringliteral">"description"</span> )
<a name="l00380"></a>00380     {
<a name="l00381"></a>00381       val = node.firstChild().toText();
<a name="l00382"></a>00382       <span class="keywordflow">if</span>(!val.isNull())
<a name="l00383"></a>00383         <a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a> = val.nodeValue();
<a name="l00384"></a>00384      <a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a>.replace(<span class="stringliteral">"\\&amp;quot;"</span>,<span class="stringliteral">"\""</span>);
<a name="l00385"></a>00385     }
<a name="l00386"></a>00386     <span class="comment">//------------------------------------------------------------</span>
<a name="l00387"></a>00387     <span class="comment">//photo</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">"photo"</span> )
<a name="l00389"></a>00389     {
<a name="l00390"></a>00390       <span class="comment">//increase counter</span>
<a name="l00391"></a>00391       photoNum++;
<a name="l00392"></a>00392 
<a name="l00393"></a>00393       <span class="comment">//create new photo object</span>
<a name="l00394"></a>00394       QString imageName = QString(dirName + <span class="stringliteral">"img/%1/%2.jpg"</span>).arg(subalbumNum).arg(photoNum);
<a name="l00395"></a>00395       QString slideshowName = QString(dirName + <span class="stringliteral">"img/%1/%2_slideshow.jpg"</span>).arg(subalbumNum).arg(photoNum);
<a name="l00396"></a>00396       QString thumbName = QString(dirName + <span class="stringliteral">"img/%1/%2_thumb.jpg"</span>).arg(subalbumNum).arg(photoNum);
<a name="l00397"></a>00397       <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* newPhoto = <span class="keyword">new</span> <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>(<span class="keyword">this</span>, <a class="code" href="classSubalbum.html#22578a064d4c60f3bba4b0e8d314ce42" title="Returns last photo in subalbum.">getLast</a>(), photoNum);
<a name="l00398"></a>00398 
<a name="l00399"></a>00399       <span class="comment">//load photo information from disk</span>
<a name="l00400"></a>00400       QDateTime* modificationTimes = newPhoto-&gt;<a class="code" href="classPhoto.html#175031feb8124b3aa22d6145cd45cf4f" title="Builds photo from XML DOM node, returns date modified info from xml.">importFromDisk</a>( &amp;node );
<a name="l00401"></a>00401 
<a name="l00402"></a>00402       <span class="comment">//first check to see if modifications times have changed</span>
<a name="l00403"></a>00403       <span class="keywordtype">bool</span> lazyLoad = <span class="keyword">true</span>; <span class="comment">//assume no modifications</span>
<a name="l00404"></a>00404 
<a name="l00405"></a>00405       <span class="comment">//skip checking for mods if disable checking is set</span>
<a name="l00406"></a>00406       <span class="keywordflow">if</span>(!disableCheckPhotoMods)
<a name="l00407"></a>00407       {
<a name="l00408"></a>00408         QFileInfo info[3];
<a name="l00409"></a>00409         info[0].setFile( imageName );
<a name="l00410"></a>00410         info[1].setFile( slideshowName );
<a name="l00411"></a>00411         info[2].setFile( thumbName );
<a name="l00412"></a>00412         <span class="keywordflow">if</span>(
<a name="l00413"></a>00413               modificationTimes[0] != info[0].lastModified() ||
<a name="l00414"></a>00414               modificationTimes[1] != info[1].lastModified() ||
<a name="l00415"></a>00415               modificationTimes[2] != info[2].lastModified()
<a name="l00416"></a>00416            )
<a name="l00417"></a>00417           lazyLoad = <span class="keyword">false</span>;
<a name="l00418"></a>00418       }
<a name="l00419"></a>00419 
<a name="l00420"></a>00420       <span class="comment">//if no changes have occured do lazy load - don't</span>
<a name="l00421"></a>00421       <span class="comment">//bother scaling down thumbnail and slideshow images</span>
<a name="l00422"></a>00422       <span class="comment">//from original image</span>
<a name="l00423"></a>00423       std::ifstream imageFile    ( QFile::encodeName(imageName)     );
<a name="l00424"></a>00424       std::ifstream slideshowFile( QFile::encodeName(slideshowName) );
<a name="l00425"></a>00425       std::ifstream thumbnailFile( QFile::encodeName(thumbName)     );
<a name="l00426"></a>00426 
<a name="l00427"></a>00427       <span class="keywordflow">if</span>(  imageFile.is_open() &amp;&amp;
<a name="l00428"></a>00428             thumbnailFile.is_open() &amp;&amp;
<a name="l00429"></a>00429             slideshowFile.is_open() &amp;&amp;
<a name="l00430"></a>00430            (
<a name="l00431"></a>00431               lazyLoad ||
<a name="l00432"></a>00432               (
<a name="l00433"></a>00433                 <a class="code" href="md5_8cpp.html#899b2fb35bd6d33506dde3eb0d87a761">getMD5</a>(imageFile) == newPhoto-&gt;<a class="code" href="classPhoto.html#bc9851216524158d20580556219424a7" title="Get image checksum.">getImageChecksum</a>() &amp;&amp;
<a name="l00434"></a>00434                 <a class="code" href="md5_8cpp.html#899b2fb35bd6d33506dde3eb0d87a761">getMD5</a>(slideshowFile) == newPhoto-&gt;<a class="code" href="classPhoto.html#b4adadc959070279d7ab7dfc1a030c23" title="Get thumbanil checksum.">getSlideshowChecksum</a>() &amp;&amp;
<a name="l00435"></a>00435                 <a class="code" href="md5_8cpp.html#899b2fb35bd6d33506dde3eb0d87a761">getMD5</a>(thumbnailFile) == newPhoto-&gt;<a class="code" href="classPhoto.html#580439da79d239dba26e6f21abadbaf4" title="Get thumbanil checksum.">getThumbnailChecksum</a>()
<a name="l00436"></a>00436               )
<a name="l00437"></a>00437            )
<a name="l00438"></a>00438         )
<a name="l00439"></a>00439       {
<a name="l00440"></a>00440         <span class="comment">//close ifstreams</span>
<a name="l00441"></a>00441         imageFile.close();
<a name="l00442"></a>00442         slideshowFile.close();
<a name="l00443"></a>00443         thumbnailFile.close();
<a name="l00444"></a>00444 
<a name="l00445"></a>00445         <span class="comment">//populate image</span>
<a name="l00446"></a>00446         <a class="code" href="classSubalbum.html#4380016d07f980852e03ccf18ef65dff" title="Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE...">lazyAddPhoto</a>(imageName, slideshowName, thumbName, newPhoto);
<a name="l00447"></a>00447       }
<a name="l00448"></a>00448       <span class="comment">//else reload image and scale it since changes have occured.</span>
<a name="l00449"></a>00449       <span class="keywordflow">else</span>
<a name="l00450"></a>00450       {
<a name="l00451"></a>00451         <span class="comment">//close ifstreams if open</span>
<a name="l00452"></a>00452         <span class="keywordflow">if</span>(imageFile.is_open())
<a name="l00453"></a>00453           imageFile.close();
<a name="l00454"></a>00454         <span class="keywordflow">if</span>(thumbnailFile.is_open())
<a name="l00455"></a>00455           thumbnailFile.close();
<a name="l00456"></a>00456 
<a name="l00457"></a>00457         <span class="comment">//populate image</span>
<a name="l00458"></a>00458         <a class="code" href="classSubalbum.html#12db5ef063152af51a8ded94d7bee730" title="Adds a new photo to the Subalbum and appends it to the end, returns TRUE if successful...">addPhoto</a>(imageName, <span class="keyword">false</span>, newPhoto);
<a name="l00459"></a>00459       }
<a name="l00460"></a>00460 
<a name="l00461"></a>00461       <span class="keywordflow">if</span>(imageFile.is_open())
<a name="l00462"></a>00462         imageFile.close();
<a name="l00463"></a>00463       <span class="keywordflow">if</span>(slideshowFile.is_open())
<a name="l00464"></a>00464         slideshowFile.close();
<a name="l00465"></a>00465       <span class="keywordflow">if</span>(thumbnailFile.is_open())
<a name="l00466"></a>00466         thumbnailFile.close();
<a name="l00467"></a>00467 
<a name="l00468"></a>00468       <span class="comment">//update progress bar</span>
<a name="l00469"></a>00469       status-&gt;<a class="code" href="classStatusWidget.html#de18735223ae40506c32c96b9c9c5476" title="Updates the progress bar by one step.">incrementProgress</a>();
<a name="l00470"></a>00470       qApp-&gt;processEvents();
<a name="l00471"></a>00471     }
<a name="l00472"></a>00472     <span class="comment">//------------------------------------------------------------</span>
<a name="l00473"></a>00473     <span class="comment">//advance to next node</span>
<a name="l00474"></a>00474     node = node.nextSibling();
<a name="l00475"></a>00475     <span class="comment">//------------------------------------------------------------</span>
<a name="l00476"></a>00476   }
<a name="l00477"></a>00477   <span class="comment">//------------------------------------------------------------</span>
<a name="l00478"></a>00478   <span class="comment">//set loaded number</span>
<a name="l00479"></a>00479   <a class="code" href="classSubalbum.html#a93dcf1d9ca349da4cbe39a0c569c37b">resetNumLoadedPhotos</a>();
<a name="l00480"></a>00480   <span class="comment">//------------------------------------------------------------</span>
<a name="l00481"></a>00481 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="4380016d07f980852e03ccf18ef65dff"></a><!-- doxytag: member="Subalbum::lazyAddPhoto" ref="4380016d07f980852e03ccf18ef65dff" args="(QString imageName, QString slideshowName, QString thumbnailName, Photo *newPhoto)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Subalbum::lazyAddPhoto           </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>
        </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>newPhoto</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE if successful. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00251">251</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>, <a class="el" href="photo_8cpp_source.html#l00104">Photo::setImage()</a>, <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00253"></a>00253 {
<a name="l00254"></a>00254   <span class="comment">//attempt to set image</span>
<a name="l00255"></a>00255   <span class="keywordflow">if</span>(!newPhoto-&gt;<a class="code" href="classPhoto.html#29e2aae62991d904c3cb763ec838d9bd" title="Setup photo using preexisting full size, slideshow, and thumbnail images.">setImage</a>(imageName, slideshowName, thumbnailName))
<a name="l00256"></a>00256   {
<a name="l00257"></a>00257     <span class="keyword">delete</span> newPhoto;
<a name="l00258"></a>00258     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00259"></a>00259   }
<a name="l00260"></a>00260 
<a name="l00261"></a>00261   <span class="comment">//if this is the first photo set as the head</span>
<a name="l00262"></a>00262   <span class="keywordflow">if</span>(<a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> == NULL)
<a name="l00263"></a>00263   {
<a name="l00264"></a>00264     <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = newPhoto;
<a name="l00265"></a>00265     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = newPhoto;
<a name="l00266"></a>00266   }
<a name="l00267"></a>00267   <span class="comment">//else append to end of list</span>
<a name="l00268"></a>00268   <span class="keywordflow">else</span>
<a name="l00269"></a>00269   {
<a name="l00270"></a>00270     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>(newPhoto);
<a name="l00271"></a>00271     newPhoto-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>( <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> );
<a name="l00272"></a>00272     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = newPhoto;
<a name="l00273"></a>00273   }
<a name="l00274"></a>00274   
<a name="l00275"></a>00275   <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>++;
<a name="l00276"></a>00276   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00277"></a>00277   <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00278"></a>00278 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="77b6f10b6c8e2230185ae9a5c30c8300"></a><!-- doxytag: member="Subalbum::photoMoved" ref="77b6f10b6c8e2230185ae9a5c30c8300" args="(Photo *val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::photoMoved           </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>
Removes a specified photo without deleting the object. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00483">483</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="photo_8cpp_source.html#l00224">Photo::getNext()</a>, <a class="el" href="photo_8cpp_source.html#l00223">Photo::getPrev()</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>, <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>

<p>Referenced by <a class="el" href="subalbumPreviewWidget_8cpp_source.html#l00175">SubalbumPreviewWidget::dropped()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00484"></a>00484 {
<a name="l00485"></a>00485   <span class="comment">//if null pointer bail</span>
<a name="l00486"></a>00486   <span class="keywordflow">if</span>(val == NULL) <span class="keywordflow">return</span>;
<a name="l00487"></a>00487   
<a name="l00488"></a>00488   <span class="comment">//update first and last pointers if necessary</span>
<a name="l00489"></a>00489   <span class="keywordflow">if</span>(val == <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>) <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>();
<a name="l00490"></a>00490   <span class="keywordflow">if</span>(val == <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>)  <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>  = val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>();
<a name="l00491"></a>00491 
<a name="l00492"></a>00492   <span class="comment">//splice out</span>
<a name="l00493"></a>00493   <span class="keywordflow">if</span>(val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>() != NULL) val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>()-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>( val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>() );
<a name="l00494"></a>00494   <span class="keywordflow">if</span>(val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>() != NULL) val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>()-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>( val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>() );
<a name="l00495"></a>00495 
<a name="l00496"></a>00496   <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>--;
<a name="l00497"></a>00497   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00498"></a>00498 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="4ca46c83f9d143f34bb898f6c0c0fd90"></a><!-- doxytag: member="Subalbum::removePhoto" ref="4ca46c83f9d143f34bb898f6c0c0fd90" args="(Photo *val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::removePhoto           </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>
Removes a specified photo. 
<p>

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

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="photo_8cpp_source.html#l00224">Photo::getNext()</a>, <a class="el" href="photo_8cpp_source.html#l00223">Photo::getPrev()</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>, <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>

<p>Referenced by <a class="el" href="subalbumWidget_8cpp_source.html#l00317">SubalbumWidget::removeImageAction()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00281"></a>00281 {
<a name="l00282"></a>00282   <span class="comment">//if photo pointer is null then bail</span>
<a name="l00283"></a>00283   <span class="keywordflow">if</span>(val == NULL) <span class="keywordflow">return</span>;
<a name="l00284"></a>00284   
<a name="l00285"></a>00285   <span class="comment">//reset head and tail pointers if necessary</span>
<a name="l00286"></a>00286   <span class="keywordflow">if</span>( val == <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> )   <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>();
<a name="l00287"></a>00287   <span class="keywordflow">if</span>( val == <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> )    <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>  = val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>();
<a name="l00288"></a>00288   
<a name="l00289"></a>00289   <span class="comment">//splice out</span>
<a name="l00290"></a>00290   <span class="keywordflow">if</span>( val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>() != NULL ) val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>()-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>( val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>() );
<a name="l00291"></a>00291   <span class="keywordflow">if</span>( val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>() != NULL ) val-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>()-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>( val-&gt;<a class="code" href="classPhoto.html#9740a1e6a5ad83534e1c3b2b2622cf7a" title="Returns the previous photo pointer.">getPrev</a>() );
<a name="l00292"></a>00292 
<a name="l00293"></a>00293   <span class="comment">//delete object</span>
<a name="l00294"></a>00294   <span class="keyword">delete</span> val;
<a name="l00295"></a>00295   val = NULL;
<a name="l00296"></a>00296   <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>--;
<a name="l00297"></a>00297   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00298"></a>00298 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="a93dcf1d9ca349da4cbe39a0c569c37b"></a><!-- doxytag: member="Subalbum::resetNumLoadedPhotos" ref="a93dcf1d9ca349da4cbe39a0c569c37b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::resetNumLoadedPhotos           </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="subalbum_8cpp_source.html#l00170">170</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00151">loadedPhotos</a>, and <a class="el" href="subalbum_8h_source.html#l00148">numPhotos</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>, and <a class="el" href="album_8cpp_source.html#l01244">Album::removeStagnantImages()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00170"></a>00170 { <a class="code" href="classSubalbum.html#b51f1d02adc4219864f39a02609d3e7c" title="Number of photos in subalbum when last loaded.">loadedPhotos</a> = <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>; }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="c8e40e8b636ab289956b5a0568cd296b"></a><!-- doxytag: member="Subalbum::setDescription" ref="c8e40e8b636ab289956b5a0568cd296b" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::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 <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> description. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00115">115</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00157">description</a>, and <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>.</p>

<p>Referenced by <a class="el" href="titleWidget_8cpp_source.html#l00398">TitleWidget::storeAnnotations()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00116"></a>00116 {
<a name="l00117"></a>00117   <span class="keywordflow">if</span>(<a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a> != val)
<a name="l00118"></a>00118   {
<a name="l00119"></a>00119     <a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a> = val;
<a name="l00120"></a>00120     <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00121"></a>00121   }
<a name="l00122"></a>00122 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="a01ad19461ce049774595512960f73cb"></a><!-- doxytag: member="Subalbum::setModified" ref="a01ad19461ce049774595512960f73cb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::setModified           </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="subalbum_8cpp_source.html#l00171">171</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, and <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>.</p>

<p>Referenced by <a class="el" href="photo_8cpp_source.html#l00084">Photo::constructSmallerImages()</a>, <a class="el" href="photo_8cpp_source.html#l00209">Photo::setDescription()</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00171"></a>00171 { <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();      }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="8735ad9f854b8019e4351c1536576eb1"></a><!-- doxytag: member="Subalbum::setName" ref="8735ad9f854b8019e4351c1536576eb1" args="(QString val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::setName           </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 <a class="el" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a> Name. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00106">106</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00154">name</a>, and <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>.</p>

<p>Referenced by <a class="el" href="titleWidget_8cpp_source.html#l00398">TitleWidget::storeAnnotations()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00107"></a>00107 {
<a name="l00108"></a>00108   <span class="keywordflow">if</span>(<a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a> != val)
<a name="l00109"></a>00109   {
<a name="l00110"></a>00110     <a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a> = val;
<a name="l00111"></a>00111     <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00112"></a>00112   }
<a name="l00113"></a>00113 }
</pre></div>
<p>

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

<p>
Sets pointer of next subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00306">306</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00174">nextSubalbum</a>, and <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00234">Album::appendSubalbum()</a>, <a class="el" href="album_8cpp_source.html#l00257">Album::removeSubalbum()</a>, and <a class="el" href="album_8cpp_source.html#l01369">Album::syncSubalbumList()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00307"></a>00307 {
<a name="l00308"></a>00308   <a class="code" href="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc" title="Pointer to next subalbum.">nextSubalbum</a> = val;
<a name="l00309"></a>00309   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00310"></a>00310 }
</pre></div>
<p>

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

<p>
Sets pointer of prev subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00300">300</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="subalbum_8h_source.html#l00171">prevSubalbum</a>, and <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00234">Album::appendSubalbum()</a>, <a class="el" href="album_8cpp_source.html#l00257">Album::removeSubalbum()</a>, and <a class="el" href="album_8cpp_source.html#l01369">Album::syncSubalbumList()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00301"></a>00301 {
<a name="l00302"></a>00302   <a class="code" href="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2" title="Pointer to prev subalbum.">prevSubalbum</a> = val;
<a name="l00303"></a>00303   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00304"></a>00304 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="61c23c492eef5def5d3aefa85e785433"></a><!-- doxytag: member="Subalbum::setRepresentativeImage" ref="61c23c492eef5def5d3aefa85e785433" args="(QString imageFilename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::setRepresentativeImage           </td>
          <td>(</td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>imageFilename</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
sets a sized representative image 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00124">124</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00177">albm</a>, <a class="el" href="imageTools_8cpp_source.html#l00039">calcScaledImageDimensions()</a>, <a class="el" href="subalbumPreviewWidget_8cpp_source.html#l00259">SubalbumPreviewWidget::createSubalbumPixmap()</a>, <a class="el" href="imageTools_8cpp_source.html#l00192">getImageSize()</a>, <a class="el" href="config_8cpp_source.html#l00018">IMAGE_PATH</a>, <a class="el" href="subalbum_8h_source.html#l00162">largeRepresentativeImage</a>, <a class="el" href="subalbum_8h_source.html#l00161">mediumRepresentativeImage</a>, <a class="el" href="config_8h_source.html#l00029">REP_IMAGE_HEIGHT</a>, <a class="el" href="imageTools_8cpp_source.html#l00157">scaleImage()</a>, <a class="el" href="album_8cpp_source.html#l01418">Album::setModified()</a>, and <a class="el" href="subalbum_8h_source.html#l00160">smallRepresentativeImage</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>, <a class="el" href="titleWidget_8cpp_source.html#l00536">TitleWidget::setSubalbumImage()</a>, and <a class="el" href="titleWidget_8cpp_source.html#l00555">TitleWidget::unsetSubalbumImage()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00125"></a>00125 {
<a name="l00126"></a>00126   <span class="comment">//delete old representative images</span>
<a name="l00127"></a>00127   <span class="keyword">delete</span> <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a>;
<a name="l00128"></a>00128   <span class="keyword">delete</span> <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a>;
<a name="l00129"></a>00129   <span class="keyword">delete</span> <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a>;
<a name="l00130"></a>00130 
<a name="l00131"></a>00131   <span class="comment">//if being set to null, set back to defaults</span>
<a name="l00132"></a>00132   <span class="keywordflow">if</span>(imageFilename.isNull())
<a name="l00133"></a>00133   {
<a name="l00134"></a>00134     <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a> = NULL;
<a name="l00135"></a>00135     <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a> = NULL;
<a name="l00136"></a>00136 
<a name="l00137"></a>00137     <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a> = <a class="code" href="classSubalbumPreviewWidget.html#86e6f2aa6a9ab400eb709667c6f5c0c1">SubalbumPreviewWidget::createSubalbumPixmap</a>
<a name="l00138"></a>00138                                 ( QString(<a class="code" href="config_8cpp.html#59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a>)+<span class="stringliteral">"miscImages/subalbum.png"</span> );
<a name="l00139"></a>00139   }
<a name="l00140"></a>00140   <span class="comment">//else create various sized cover images</span>
<a name="l00141"></a>00141   <span class="keywordflow">else</span>
<a name="l00142"></a>00142   {
<a name="l00143"></a>00143     <span class="keywordtype">int</span> imageWidth, imageHeight;
<a name="l00144"></a>00144     <a class="code" href="imageTools_8cpp.html#2af7f0a9c4f931ad3213c36796e95288" title="Get image dimensions.">getImageSize</a>( imageFilename, imageWidth, imageHeight );
<a name="l00145"></a>00145     
<a name="l00146"></a>00146     <span class="comment">//small version (show at top)</span>
<a name="l00147"></a>00147     <span class="keywordtype">int</span> smallRepWidth = 0;
<a name="l00148"></a>00148     <span class="keywordtype">int</span> smallRepHeight = 0;
<a name="l00149"></a>00149     <a class="code" href="imageTools_8cpp.html#b6483215237a72d6b725adc644d40f0b" title="Computes scale of image dimensions while respecting aspect ratio, equivalent to a...">calcScaledImageDimensions</a>( imageWidth, imageHeight,
<a name="l00150"></a>00150                                107, <a class="code" href="config_8h.html#c4a5acadee7615ea7878342032d6fb79">REP_IMAGE_HEIGHT</a>,
<a name="l00151"></a>00151                                smallRepWidth, smallRepHeight);
<a name="l00152"></a>00152     QImage thumbnailSmall;
<a name="l00153"></a>00153     <a class="code" href="imageTools_8cpp.html#126e11984fb8124e78e3b1b68a24870c" title="Scale image and save copy to disk.">scaleImage</a>( imageFilename, thumbnailSmall, smallRepWidth, smallRepHeight );
<a name="l00154"></a>00154     <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a> = <span class="keyword">new</span> QPixmap( thumbnailSmall.width(), thumbnailSmall.height() );
<a name="l00155"></a>00155     <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a>-&gt;convertFromImage( thumbnailSmall );
<a name="l00156"></a>00156 
<a name="l00157"></a>00157     <span class="comment">//medium version (seen in collections listing)</span>
<a name="l00158"></a>00158     <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a> = <a class="code" href="classSubalbumPreviewWidget.html#86e6f2aa6a9ab400eb709667c6f5c0c1">SubalbumPreviewWidget::createSubalbumPixmap</a>( imageFilename );
<a name="l00159"></a>00159     
<a name="l00160"></a>00160     <span class="comment">//large version, used for actually saving out</span>
<a name="l00161"></a>00161     <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a> = <span class="keyword">new</span> QPixmap( imageFilename );
<a name="l00162"></a>00162     <span class="comment">//---------------------------------------------------------</span>
<a name="l00163"></a>00163   }
<a name="l00164"></a>00164 
<a name="l00165"></a>00165   <span class="comment">//set modified</span>
<a name="l00166"></a>00166   <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>-&gt;<a class="code" href="classAlbum.html#93ca31d42cb8ba9a9d07f5a01a090def" title="Sets the album as modified.">setModified</a>();
<a name="l00167"></a>00167 }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="4f43f5424c1400ce2ddad3a143db5418"></a><!-- doxytag: member="Subalbum::setSubalbumNumber" ref="4f43f5424c1400ce2ddad3a143db5418" args="(int newVal)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::setSubalbumNumber           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>newVal</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the subalbum number to newVal. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00169">169</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00145">number</a>.</p>

<p>Referenced by <a class="el" href="album_8cpp_source.html#l00506">Album::exportToDisk()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00169"></a>00169 { <a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a> = newVal;          }
</pre></div>
<p>

</div>
</div><p>
<a class="anchor" name="f491dd129feb2e0713c3cc943e3d3fed"></a><!-- doxytag: member="Subalbum::syncPhotoList" ref="f491dd129feb2e0713c3cc943e3d3fed" args="(PhotoPreviewWidget *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Subalbum::syncPhotoList           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPhotoPreviewWidget.html">PhotoPreviewWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Syncs photo ordering with front end gui ordering. 
<p>

<p>Definition at line <a class="el" href="subalbum_8cpp_source.html#l00500">500</a> of file <a class="el" href="subalbum_8cpp_source.html">subalbum.cpp</a>.</p>

<p>References <a class="el" href="subalbum_8h_source.html#l00165">firstPhoto</a>, <a class="el" href="photo_8cpp_source.html#l00224">Photo::getNext()</a>, <a class="el" href="photoPreviewWidget_8cpp_source.html#l00049">PhotoPreviewWidget::getPhoto()</a>, <a class="el" href="subalbum_8h_source.html#l00168">lastPhoto</a>, <a class="el" href="photo_8cpp_source.html#l00232">Photo::setNext()</a>, and <a class="el" href="photo_8cpp_source.html#l00226">Photo::setPrev()</a>.</p>

<p>Referenced by <a class="el" href="subalbumWidget_8cpp_source.html#l00690">SubalbumWidget::reorder()</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00501"></a>00501 {
<a name="l00502"></a>00502   <span class="comment">//base case, no items</span>
<a name="l00503"></a>00503   <span class="keywordflow">if</span>(item == NULL)
<a name="l00504"></a>00504   {
<a name="l00505"></a>00505     <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = NULL;
<a name="l00506"></a>00506     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = NULL;
<a name="l00507"></a>00507     <span class="keywordflow">return</span>;
<a name="l00508"></a>00508   }
<a name="l00509"></a>00509 
<a name="l00510"></a>00510   <span class="comment">//set first and last pointers</span>
<a name="l00511"></a>00511   <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a> = item-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>();
<a name="l00512"></a>00512   <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>(NULL);
<a name="l00513"></a>00513   <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>(NULL);
<a name="l00514"></a>00514   <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>;
<a name="l00515"></a>00515 
<a name="l00516"></a>00516   <span class="comment">//set all next/prev pointers</span>
<a name="l00517"></a>00517   <span class="keywordflow">while</span>(item-&gt;nextItem() != NULL)
<a name="l00518"></a>00518   {
<a name="l00519"></a>00519     item-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>( ((<a class="code" href="classPhotoPreviewWidget.html" title="Displays photo thumbnail and description.">PhotoPreviewWidget</a>*)item-&gt;nextItem())-&gt;getPhoto() );
<a name="l00520"></a>00520     item-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>()-&gt;<a class="code" href="classPhoto.html#357f9d79451532a37f41142d3aaba9f9" title="Returns next photo pointer.">getNext</a>()-&gt;<a class="code" href="classPhoto.html#7ee24d63bde8307b79829737dfa2cd8f" title="Sets prev photo pointer.">setPrev</a>( item-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>() );
<a name="l00521"></a>00521     item = (<a class="code" href="classPhotoPreviewWidget.html" title="Displays photo thumbnail and description.">PhotoPreviewWidget</a>*)item-&gt;nextItem();
<a name="l00522"></a>00522     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a> = item-&gt;<a class="code" href="classPhotoPreviewWidget.html#f54da3447e6426891f5a1a40a0e3e1a7" title="Returns photo pointer.">getPhoto</a>();
<a name="l00523"></a>00523     <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>-&gt;<a class="code" href="classPhoto.html#6f4cb7532382e6d58daeb0163166e1e4" title="Sets next photo pointer.">setNext</a>(NULL);
<a name="l00524"></a>00524   }
<a name="l00525"></a>00525   
<a name="l00526"></a>00526 }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="662929e1d71c43a120bf59e04477f6b3"></a><!-- doxytag: member="Subalbum::albm" ref="662929e1d71c43a120bf59e04477f6b3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAlbum.html">Album</a>* <a class="el" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3">Subalbum::albm</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to album subalbum is in. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00177">177</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00173">addPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00094">getAlbum()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">lazyAddPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">removePhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00115">setDescription()</a>, <a class="el" href="subalbum_8cpp_source.html#l00171">setModified()</a>, <a class="el" href="subalbum_8cpp_source.html#l00106">setName()</a>, <a class="el" href="subalbum_8cpp_source.html#l00306">setNext()</a>, <a class="el" href="subalbum_8cpp_source.html#l00300">setPrev()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00124">setRepresentativeImage()</a>.</p>

</div>
</div><p>
<a class="anchor" name="983620a2f934d2437314902a1782038c"></a><!-- doxytag: member="Subalbum::description" ref="983620a2f934d2437314902a1782038c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="classSubalbum.html#983620a2f934d2437314902a1782038c">Subalbum::description</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Longer description of subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00157">157</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00312">exportToXML()</a>, <a class="el" href="subalbum_8cpp_source.html#l00084">getDescription()</a>, <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>, <a class="el" href="subalbum_8cpp_source.html#l00115">setDescription()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9191766b1a9af28f332fac828a93cd89"></a><!-- doxytag: member="Subalbum::firstPhoto" ref="9191766b1a9af28f332fac828a93cd89" 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="classSubalbum.html#9191766b1a9af28f332fac828a93cd89">Subalbum::firstPhoto</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to first photo. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00165">165</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00173">addPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00312">exportToXML()</a>, <a class="el" href="subalbum_8cpp_source.html#l00099">getFirst()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">lazyAddPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">removePhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>, <a class="el" href="subalbum_8cpp_source.html#l00500">syncPhotoList()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00066">~Subalbum()</a>.</p>

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

<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00162">162</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00086">getRepresentativeImage()</a>, <a class="el" href="subalbum_8cpp_source.html#l00124">setRepresentativeImage()</a>, <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00066">~Subalbum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="71607e559d5f71793ca8798d0737c7d8"></a><!-- doxytag: member="Subalbum::lastPhoto" ref="71607e559d5f71793ca8798d0737c7d8" 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="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8">Subalbum::lastPhoto</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to last photo. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00168">168</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00173">addPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00100">getLast()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">lazyAddPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">removePhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00500">syncPhotoList()</a>.</p>

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

<p>
Number of photos in subalbum when last loaded. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00151">151</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00104">getNumLoadedPhotos()</a>, <a class="el" href="subalbum_8cpp_source.html#l00170">resetNumLoadedPhotos()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>.</p>

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

<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00161">161</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00086">getRepresentativeImage()</a>, <a class="el" href="subalbum_8cpp_source.html#l00124">setRepresentativeImage()</a>, <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00066">~Subalbum()</a>.</p>

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

<p>
Short Name for subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00154">154</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00312">exportToXML()</a>, <a class="el" href="subalbum_8cpp_source.html#l00083">getName()</a>, <a class="el" href="subalbum_8cpp_source.html#l00349">importFromDisk()</a>, <a class="el" href="subalbum_8cpp_source.html#l00106">setName()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6ac8347a1e335fcb4480fc63fdc8f9dc"></a><!-- doxytag: member="Subalbum::nextSubalbum" ref="6ac8347a1e335fcb4480fc63fdc8f9dc" 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="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc">Subalbum::nextSubalbum</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to next subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00174">174</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00097">getNext()</a>, <a class="el" href="subalbum_8cpp_source.html#l00306">setNext()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="16e483535b3378a7e931f66d933d3e79"></a><!-- doxytag: member="Subalbum::number" ref="16e483535b3378a7e931f66d933d3e79" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79">Subalbum::number</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> Number. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00145">145</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00312">exportToXML()</a>, <a class="el" href="subalbum_8cpp_source.html#l00102">getSubalbumNumber()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00169">setSubalbumNumber()</a>.</p>

</div>
</div><p>
<a class="anchor" name="11f56eda8419db70fb88a15fbe46938e"></a><!-- doxytag: member="Subalbum::numPhotos" ref="11f56eda8419db70fb88a15fbe46938e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e">Subalbum::numPhotos</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Number of photos in subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00148">148</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00173">addPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00103">getNumPhotos()</a>, <a class="el" href="subalbum_8cpp_source.html#l00251">lazyAddPhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00483">photoMoved()</a>, <a class="el" href="subalbum_8cpp_source.html#l00280">removePhoto()</a>, <a class="el" href="subalbum_8cpp_source.html#l00170">resetNumLoadedPhotos()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>.</p>

</div>
</div><p>
<a class="anchor" name="54c5ce9ad52359e1a6f26517328c0ee2"></a><!-- doxytag: member="Subalbum::prevSubalbum" ref="54c5ce9ad52359e1a6f26517328c0ee2" 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="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2">Subalbum::prevSubalbum</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to prev subalbum. 
<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00171">171</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00096">getPrev()</a>, <a class="el" href="subalbum_8cpp_source.html#l00300">setPrev()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>.</p>

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

<p>

<p>Definition at line <a class="el" href="subalbum_8h_source.html#l00160">160</a> of file <a class="el" href="subalbum_8h_source.html">subalbum.h</a>.</p>

<p>Referenced by <a class="el" href="subalbum_8cpp_source.html#l00086">getRepresentativeImage()</a>, <a class="el" href="subalbum_8cpp_source.html#l00124">setRepresentativeImage()</a>, <a class="el" href="subalbum_8cpp_source.html#l00035">Subalbum()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00066">~Subalbum()</a>.</p>

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