#include <subalbum.h>
Collaboration diagram for Subalbum:
Specific contents:
Definition at line 45 of file subalbum.h.
Public Member Functions | |
Subalbum (Album *albm, int number) | |
Sets default information is the Subalbum number. | |
~Subalbum () | |
Frees photos. | |
void | setName (QString val) |
Sets the Subalbum Name. | |
QString | getName () |
Gets the Subalbum Name. | |
void | setDescription (QString val) |
Sets the Subalbum description. | |
QString | getDescription () |
Gets the Subalbum description. | |
QPixmap * | getRepresentativeImage (int size) |
gets a sized representative image | |
void | setRepresentativeImage (QString imageFilename) |
sets a sized representative image | |
bool | addPhoto (QString fileName, bool replaceDescription=false, Photo *newPhoto=NULL) |
Adds a new photo to the Subalbum and appends it to the end, returns TRUE if successful. | |
bool | lazyAddPhoto (QString imageName, QString slideshowName, QString thumbnailName, Photo *newPhoto) |
Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE if successful. | |
void | addPhoto (Photo *newPhoto) |
Adds a preexisting photo object to the Subalbum, appending it to the end. | |
void | photoMoved (Photo *val) |
Removes a specified photo without deleting the object. | |
void | removePhoto (Photo *val) |
Removes a specified photo. | |
Subalbum * | getPrev () |
Returns pointer to prev subalbum. | |
Subalbum * | getNext () |
Returns pointer to next subalbum. | |
void | setPrev (Subalbum *val) |
Sets pointer of prev subalbum. | |
void | setNext (Subalbum *val) |
Sets pointer of next subalbum. | |
Photo * | getFirst () |
Returns first photo in subalbum. | |
Photo * | getLast () |
Returns last photo in subalbum. | |
void | exportToXML (StatusWidget *status, QTextStream &stream) |
Exports subalbum to xml. | |
void | importFromDisk (QDomNode *root, int subalbumNum, StatusWidget *status, QString dirName, bool disableCheckPhotoMods) |
Builds subalbum from XML DOM node. | |
void | syncPhotoList (PhotoPreviewWidget *item) |
Syncs photo ordering with front end gui ordering. | |
int | getSubalbumNumber () |
Returns subalbum number. | |
void | setSubalbumNumber (int newVal) |
Sets the subalbum number to newVal. | |
int | getNumPhotos () |
Returns the number of photos in the subalbum. | |
int | getNumLoadedPhotos () |
Returns the number of loaded photos in subalbum. | |
void | resetNumLoadedPhotos () |
void | setModified () |
Album * | getAlbum () |
returns the album pointer | |
Private Attributes | |
int | number |
Subalbum Number. | |
int | numPhotos |
Number of photos in subalbum. | |
int | loadedPhotos |
Number of photos in subalbum when last loaded. | |
QString | name |
Short Name for subalbum. | |
QString | description |
Longer description of subalbum. | |
QPixmap * | smallRepresentativeImage |
QPixmap * | mediumRepresentativeImage |
QPixmap * | largeRepresentativeImage |
Photo * | firstPhoto |
Pointer to first photo. | |
Photo * | lastPhoto |
Pointer to last photo. | |
Subalbum * | prevSubalbum |
Pointer to prev subalbum. | |
Subalbum * | nextSubalbum |
Pointer to next subalbum. | |
Album * | albm |
Pointer to album subalbum is in. |
|
Sets default information is the Subalbum number.
Definition at line 35 of file subalbum.cpp. References description, firstPhoto, IMAGE_PATH, largeRepresentativeImage, lastPhoto, loadedPhotos, mediumRepresentativeImage, name, nextSubalbum, numPhotos, prevSubalbum, smallRepresentativeImage, and Subalbum(). Referenced by Subalbum().
|
|
Frees photos.
Definition at line 66 of file subalbum.cpp. References firstPhoto, Photo::getNext(), largeRepresentativeImage, mediumRepresentativeImage, and smallRepresentativeImage.
|
|
Adds a preexisting photo object to the Subalbum, appending it to the end.
Definition at line 173 of file subalbum.cpp. References addPhoto(), albm, firstPhoto, lastPhoto, numPhotos, Album::setModified(), Photo::setNext(), and Photo::setPrev().
|
|
Adds a new photo to the Subalbum and appends it to the end, returns TRUE if successful.
Definition at line 197 of file subalbum.cpp. References addPhoto(), albm, firstPhoto, getLast(), Album::getNextUniquePhotoID(), lastPhoto, numPhotos, Photo::setDescription(), Photo::setImage(), Album::setModified(), Photo::setNext(), and Photo::setPrev(). Referenced by SubalbumWidget::addImageAction(), addPhoto(), SubalbumPreviewWidget::dropped(), and importFromDisk().
|
|
Exports subalbum to xml.
Definition at line 312 of file subalbum.cpp. References description, Photo::exportToXML(), exportToXML(), firstPhoto, fixXMLString(), Photo::getNext(), getRepresentativeImage(), LARGE, name, and number. Referenced by exportToXML(), and Album::exportToXML().
|
|
returns the album pointer
Definition at line 94 of file subalbum.cpp. References albm. Referenced by Photo::applyTransformation(), Photo::originalImageFilename(), and Photo::setImage().
|
|
Gets the Subalbum description.
Definition at line 84 of file subalbum.cpp. References description. Referenced by TitleWidget::refreshCollectionAnnotations().
|
|
Returns first photo in subalbum.
Definition at line 99 of file subalbum.cpp. References firstPhoto. Referenced by SlideshowWidget::advanceCollection(), AlbumStatistics::AlbumStatistics(), SlideshowWidget::beginSlideshow(), Album::exportCompressedWebAlbum(), Album::exportLargeImages(), Album::exportSubalbumImages(), Album::getThumbnailFilenames(), SubalbumWidget::refreshPhotos(), Album::removeStagnantOrigFiles(), Album::reorderSubalbumImages(), SlideshowWidget::showCollectionPage(), EditingInterface::showFirstPhoto(), and SlideshowWidget::skipToFirstPhoto().
|
|
Returns last photo in subalbum.
Definition at line 100 of file subalbum.cpp. References lastPhoto. Referenced by SubalbumWidget::addImageAction(), addPhoto(), SlideshowWidget::backupCollection(), importFromDisk(), EditingInterface::showLastPhoto(), and SlideshowWidget::skipToLastPhoto().
|
|
Gets the Subalbum Name.
Definition at line 83 of file subalbum.cpp. References name. Referenced by TitleWidget::refreshCollectionAnnotations(), and TitleWidget::storeAnnotations().
|
|
Returns pointer to next subalbum.
Definition at line 97 of file subalbum.cpp. References nextSubalbum. Referenced by SlideshowWidget::advanceCollection(), AlbumStatistics::AlbumStatistics(), SlideshowWidget::beginSlideshow(), Album::exportCompressedWebAlbum(), Album::exportLargeImages(), Album::exportSubalbumImages(), Album::exportToDisk(), Album::exportTopLevelImages(), Album::exportToXML(), Album::getNumPhotos(), Album::getThumbnailFilenames(), SubalbumsWidget::refreshCollectionsList(), Album::removeStagnantImages(), Album::removeStagnantOrigFiles(), Album::removeSubalbum(), Album::reorderSubalbumImages(), Album::syncSubalbumList(), and Album::~Album().
|
|
Returns the number of loaded photos in subalbum.
Definition at line 104 of file subalbum.cpp. References loadedPhotos.
|
|
Returns the number of photos in the subalbum.
Definition at line 103 of file subalbum.cpp. References numPhotos. Referenced by SlideshowWidget::backupCollection(), Album::exportLargeImages(), Album::exportToDisk(), Album::getNumPhotos(), SlideshowWidget::paintOverlaidControls(), Album::removeStagnantImages(), and SlideshowWidget::skipToLastPhoto().
|
|
Returns pointer to prev subalbum.
Definition at line 96 of file subalbum.cpp. References prevSubalbum. Referenced by SlideshowWidget::backupCollection(), and Album::removeSubalbum().
|
|
gets a sized representative image
Definition at line 86 of file subalbum.cpp. References getRepresentativeImage(), LARGE, largeRepresentativeImage, MEDIUM, mediumRepresentativeImage, SMALL, and smallRepresentativeImage. Referenced by Album::exportCompressedWebAlbum(), Album::exportTopLevelImages(), exportToXML(), getRepresentativeImage(), TitleWidget::refreshCollectionAnnotations(), TitleWidget::setSubalbumImage(), and TitleWidget::unsetSubalbumImage().
|
|
Returns subalbum number.
Definition at line 102 of file subalbum.cpp. References number.
|
|
Builds subalbum from XML DOM node.
Definition at line 349 of file subalbum.cpp. References addPhoto(), description, Photo::getImageChecksum(), getLast(), getMD5(), Photo::getSlideshowChecksum(), Photo::getThumbnailChecksum(), Photo::importFromDisk(), importFromDisk(), StatusWidget::incrementProgress(), lazyAddPhoto(), name, resetNumLoadedPhotos(), setRepresentativeImage(), and status. Referenced by importFromDisk(), and Album::importFromDisk().
|
|
Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE if successful.
Definition at line 251 of file subalbum.cpp. References albm, firstPhoto, lastPhoto, lazyAddPhoto(), numPhotos, Photo::setImage(), Album::setModified(), Photo::setNext(), and Photo::setPrev(). Referenced by importFromDisk(), and lazyAddPhoto().
|
|
Removes a specified photo without deleting the object.
Definition at line 483 of file subalbum.cpp. References albm, firstPhoto, Photo::getNext(), Photo::getPrev(), lastPhoto, numPhotos, photoMoved(), Album::setModified(), Photo::setNext(), and Photo::setPrev(). Referenced by SubalbumPreviewWidget::dropped(), and photoMoved().
|
|
Removes a specified photo.
Definition at line 280 of file subalbum.cpp. References albm, firstPhoto, Photo::getNext(), Photo::getPrev(), lastPhoto, numPhotos, removePhoto(), Album::setModified(), Photo::setNext(), and Photo::setPrev(). Referenced by SubalbumWidget::removeImageAction(), and removePhoto().
|
|
Definition at line 170 of file subalbum.cpp. References loadedPhotos, and numPhotos. Referenced by importFromDisk(), and Album::removeStagnantImages().
|
|
Sets the Subalbum description.
Definition at line 115 of file subalbum.cpp. References albm, description, setDescription(), and Album::setModified(). Referenced by setDescription(), and TitleWidget::storeAnnotations().
|
|
Definition at line 171 of file subalbum.cpp. References albm, and Album::setModified(). Referenced by Photo::constructSmallerImages(), Photo::setDescription(), Photo::setNext(), and Photo::setPrev().
|
|
Sets the Subalbum Name.
Definition at line 106 of file subalbum.cpp. References albm, name, Album::setModified(), and setName(). Referenced by setName(), and TitleWidget::storeAnnotations().
|
|
Sets pointer of next subalbum.
Definition at line 306 of file subalbum.cpp. References albm, nextSubalbum, Album::setModified(), and setNext(). Referenced by Album::appendSubalbum(), Album::removeSubalbum(), setNext(), and Album::syncSubalbumList().
|
|
Sets pointer of prev subalbum.
Definition at line 300 of file subalbum.cpp. References albm, prevSubalbum, Album::setModified(), and setPrev(). Referenced by Album::appendSubalbum(), Album::removeSubalbum(), setPrev(), and Album::syncSubalbumList().
|
|
sets a sized representative image
Definition at line 124 of file subalbum.cpp. References albm, calcScaledImageDimensions(), getImageSize(), IMAGE_PATH, largeRepresentativeImage, mediumRepresentativeImage, REP_IMAGE_HEIGHT, scaleImage(), Album::setModified(), setRepresentativeImage(), and smallRepresentativeImage. Referenced by importFromDisk(), setRepresentativeImage(), TitleWidget::setSubalbumImage(), and TitleWidget::unsetSubalbumImage().
|
|
Sets the subalbum number to newVal.
Definition at line 169 of file subalbum.cpp. References number, and setSubalbumNumber(). Referenced by Album::exportToDisk(), and setSubalbumNumber().
|
|
Syncs photo ordering with front end gui ordering.
Definition at line 500 of file subalbum.cpp. References firstPhoto, Photo::getNext(), PhotoPreviewWidget::getPhoto(), lastPhoto, Photo::setNext(), Photo::setPrev(), and syncPhotoList(). Referenced by SubalbumWidget::reorder(), and syncPhotoList().
|
|
Pointer to album subalbum is in.
Definition at line 177 of file subalbum.h. Referenced by addPhoto(), getAlbum(), lazyAddPhoto(), photoMoved(), removePhoto(), setDescription(), setModified(), setName(), setNext(), setPrev(), and setRepresentativeImage(). |
|
Longer description of subalbum.
Definition at line 157 of file subalbum.h. Referenced by exportToXML(), getDescription(), importFromDisk(), setDescription(), and Subalbum(). |
|
Pointer to first photo.
Definition at line 165 of file subalbum.h. Referenced by addPhoto(), exportToXML(), getFirst(), lazyAddPhoto(), photoMoved(), removePhoto(), Subalbum(), syncPhotoList(), and ~Subalbum(). |
|
Definition at line 162 of file subalbum.h. Referenced by getRepresentativeImage(), setRepresentativeImage(), Subalbum(), and ~Subalbum(). |
|
Pointer to last photo.
Definition at line 168 of file subalbum.h. Referenced by addPhoto(), getLast(), lazyAddPhoto(), photoMoved(), removePhoto(), Subalbum(), and syncPhotoList(). |
|
Number of photos in subalbum when last loaded.
Definition at line 151 of file subalbum.h. Referenced by getNumLoadedPhotos(), resetNumLoadedPhotos(), and Subalbum(). |
|
Definition at line 161 of file subalbum.h. Referenced by getRepresentativeImage(), setRepresentativeImage(), Subalbum(), and ~Subalbum(). |
|
Short Name for subalbum.
Definition at line 154 of file subalbum.h. Referenced by exportToXML(), getName(), importFromDisk(), setName(), and Subalbum(). |
|
Pointer to next subalbum.
Definition at line 174 of file subalbum.h. Referenced by getNext(), setNext(), and Subalbum(). |
|
Subalbum Number.
Definition at line 145 of file subalbum.h. Referenced by exportToXML(), getSubalbumNumber(), and setSubalbumNumber(). |
|
Number of photos in subalbum.
Definition at line 148 of file subalbum.h. Referenced by addPhoto(), getNumPhotos(), lazyAddPhoto(), photoMoved(), removePhoto(), resetNumLoadedPhotos(), and Subalbum(). |
|
Pointer to prev subalbum.
Definition at line 171 of file subalbum.h. Referenced by getPrev(), setPrev(), and Subalbum(). |
|
Definition at line 160 of file subalbum.h. Referenced by getRepresentativeImage(), setRepresentativeImage(), Subalbum(), and ~Subalbum(). |