#include <subalbumWidget.h>
Inheritance diagram for SubalbumWidget:
Definition at line 35 of file subalbumWidget.h.
Signals | |
void | selectedPhotoStateChanged () |
Public Member Functions | |
SubalbumWidget (Subalbum *salbum, QWidget *parent=0, const char *name=0) | |
Creates layout based on backend object. | |
void | setSubalbum (Subalbum *salbum) |
Resets the subalbum this subalbum widget is displaying. | |
void | refreshPhotos () |
clears and reinserts all photos for the current collection the current selection is cleared | |
void | refreshAllPhotos () |
refreshes all photos, selections are preserved | |
void | refreshSelectedPhotos () |
refreshes selected photos, selections are preserved | |
Subalbum * | getSubalbum () |
returns a pointer to the backend subalbum | |
Photo * | getSelectedPhoto () |
Returns currently selected photo. If no or multiple photos selected returns NULL. | |
void | setSelectedPhoto (Photo *selection) |
Sets the selected photo to selection and ensures it is visible. | |
Photo * | getFirstSelectedPhoto () |
Returns first selected photo. | |
bool | anyPhotosSelected () |
Returns true if any phtos are selected. | |
bool | anySelectedPhotosRevertable () |
Returns true if any selected photos are revertable. | |
QIconView * | getPhotos () |
Returns pointer to icon view. | |
void | updateButtons (bool enable) |
Activates/Deactives remove/rotate buttons. | |
void | stripDescriptionsFromSelectedPhotos () |
Strip descriptions from selected photos. | |
void | revertSelectedPhotos () |
Revert selected photos to their original form. | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *) |
Private Slots | |
void | setWallpaperAction () |
set desktop wallpaper | |
void | selectionChangedEvent () |
handles changing selections | |
void | updateButtons () |
Activates/Deactives remove/rotate buttons depending on if an image is selected. | |
void | addImageAction () |
Adds an image to the subalbum. | |
void | addImageAction (QStringList fileNames, bool setDescriptions=false) |
void | removeImageAction () |
Remove an image from the subalbum. | |
void | rotate90ImageAction () |
Rotate clockwise selected images. | |
void | rotate270ImageAction () |
Rotate counter-clockwise selected images. | |
void | reorder () |
void | deselectAll () |
Private Attributes | |
QGridLayout * | mainGrid |
Grids widgets are placed in. | |
QGridLayout * | buttonsGrid |
QFrame * | thumbnailFrame |
Grid lower buttons are placed in. | |
QFrame * | buttonsFrame |
PhotosIconView * | photos |
Photos layout. | |
Subalbum * | subalbum |
Pointer to backend subalbum. | |
QToolButton * | addImage |
"Add" button | |
QToolButton * | removeImage |
"Remove" button | |
QToolButton * | rotate90Image |
"Rotate 90" button | |
QToolButton * | rotate270Image |
"Rotate 270" button | |
QToolButton * | setDesktopBtn |
Set desktop wallpaper button. | |
LayoutWidget * | layout |
Pointer to the parent layout widget. | |
bool | buttonsState |
cached enabled/disabled state of buttons | |
bool | wallpaperButtonState |
cached enabled/distable state of set wallpaper button |
|
Creates layout based on backend object.
Definition at line 49 of file subalbumWidget.cpp. References addImage, addImageAction(), buttonsFrame, buttonsGrid, deselectAll(), IMAGE_PATH, layout, mainGrid, photos, removeImage, removeImageAction(), reorder(), rotate270Image, rotate270ImageAction(), rotate90Image, rotate90ImageAction(), selectionChangedEvent(), setDesktopBtn, setWallpaperAction(), setWallpaperSupported(), subalbum, and SubalbumWidget(). Referenced by SubalbumWidget().
|
|
Definition at line 263 of file subalbumWidget.cpp. References Subalbum::addPhoto(), Subalbum::getLast(), Window::getStatus(), LayoutWidget::getSubalbums(), Window::getTitle(), LayoutWidget::getWindow(), layout, photos, TitleWidget::setBusy(), StatusWidget::setStatus(), StatusWidget::showProgressBar(), subalbum, updateButtons(), SubalbumsWidget::updateButtons(), TitleWidget::updateMenus(), and StatusWidget::updateProgress().
|
|
Adds an image to the subalbum.
Definition at line 236 of file subalbumWidget.cpp. References AddPhotosDialog::getFilenames(), Configuration::getString(), Configuration::resetSetting(), and Configuration::setString(). Referenced by SubalbumWidget().
|
|
Returns true if any phtos are selected.
Definition at line 653 of file subalbumWidget.cpp. References photos. Referenced by LayoutWidget::photoStateChangedEvent(), and TitleWidget::removeSelectedPhotoDesc().
|
|
Returns true if any selected photos are revertable.
Definition at line 665 of file subalbumWidget.cpp. References photos. Referenced by LayoutWidget::photoStateChangedEvent().
|
|
Definition at line 779 of file subalbumWidget.cpp. References photos. Referenced by SubalbumWidget().
|
|
Returns first selected photo.
Definition at line 612 of file subalbumWidget.cpp. References photos. Referenced by LayoutWidget::tabChanged().
|
|
Returns pointer to icon view.
Definition at line 685 of file subalbumWidget.cpp. References photos. Referenced by TitleWidget::dropEvent(), and SubalbumPreviewWidget::dropped().
|
|
Returns currently selected photo. If no or multiple photos selected returns NULL.
Definition at line 585 of file subalbumWidget.cpp. References photos. Referenced by TitleWidget::setAlbumImage(), TitleWidget::setSubalbumImage(), and setWallpaperAction().
|
|
returns a pointer to the backend subalbum
Definition at line 580 of file subalbumWidget.cpp. References subalbum. Referenced by SubalbumPreviewWidget::dropped(), TitleWidget::setSubalbumImage(), and LayoutWidget::tabChanged().
|
|
refreshes all photos, selections are preserved
Definition at line 535 of file subalbumWidget.cpp. References photos. Referenced by LayoutWidget::tabChanged().
|
|
clears and reinserts all photos for the current collection the current selection is cleared
Definition at line 516 of file subalbumWidget.cpp. References Subalbum::getFirst(), Photo::getNext(), photos, and subalbum. Referenced by setSubalbum().
|
|
refreshes selected photos, selections are preserved
Definition at line 546 of file subalbumWidget.cpp. References photos.
|
|
Remove an image from the subalbum.
Definition at line 317 of file subalbumWidget.cpp. References LayoutWidget::getSubalbums(), Window::getTitle(), LayoutWidget::getWindow(), layout, photos, Subalbum::removePhoto(), selectionChangedEvent(), TitleWidget::setBusy(), subalbum, updateButtons(), and SubalbumsWidget::updateButtons(). Referenced by SubalbumWidget().
|
|
Definition at line 690 of file subalbumWidget.cpp. References photos, subalbum, and Subalbum::syncPhotoList(). Referenced by SubalbumWidget().
|
|
Definition at line 680 of file subalbumWidget.cpp. References photos, and resizeEvent(). Referenced by resizeEvent().
|
|
Revert selected photos to their original form.
Definition at line 382 of file subalbumWidget.cpp. References photos, and selectedPhotoStateChanged(). Referenced by LayoutWidget::revertPhotos().
|
|
Rotate counter-clockwise selected images.
Definition at line 466 of file subalbumWidget.cpp. References Window::getStatus(), LayoutWidget::getSubalbums(), Window::getTitle(), LayoutWidget::getWindow(), layout, PhotosIconView::numSelected(), photos, selectedPhotoStateChanged(), TitleWidget::setBusy(), StatusWidget::setStatus(), StatusWidget::showProgressBar(), updateButtons(), SubalbumsWidget::updateButtons(), and StatusWidget::updateProgress(). Referenced by SubalbumWidget().
|
|
Rotate clockwise selected images.
Definition at line 415 of file subalbumWidget.cpp. References Window::getStatus(), LayoutWidget::getSubalbums(), Window::getTitle(), LayoutWidget::getWindow(), layout, PhotosIconView::numSelected(), photos, selectedPhotoStateChanged(), TitleWidget::setBusy(), StatusWidget::setStatus(), StatusWidget::showProgressBar(), updateButtons(), SubalbumsWidget::updateButtons(), and StatusWidget::updateProgress(). Referenced by SubalbumWidget().
|
|
Referenced by revertSelectedPhotos(), rotate270ImageAction(), rotate90ImageAction(), and selectionChangedEvent(). |
|
handles changing selections
Definition at line 700 of file subalbumWidget.cpp. References selectedPhotoStateChanged(), and updateButtons(). Referenced by removeImageAction(), setSubalbum(), and SubalbumWidget().
|
|
Sets the selected photo to selection and ensures it is visible.
Definition at line 630 of file subalbumWidget.cpp. References photos, and setSelectedPhoto(). Referenced by setSelectedPhoto(), and LayoutWidget::tabChanged().
|
|
Resets the subalbum this subalbum widget is displaying.
Definition at line 219 of file subalbumWidget.cpp. References buttonsFrame, refreshPhotos(), selectionChangedEvent(), setSubalbum(), and subalbum. Referenced by TitleWidget::loadAlbum(), TitleWidget::newAlbum(), setSubalbum(), and LayoutWidget::showCollection().
|
|
set desktop wallpaper
Definition at line 405 of file subalbumWidget.cpp. References getSelectedPhoto(), and setWallpaper(). Referenced by SubalbumWidget().
|
|
Strip descriptions from selected photos.
Definition at line 563 of file subalbumWidget.cpp. References photos. Referenced by TitleWidget::removeSelectedPhotoDesc().
|
|
Activates/Deactives remove/rotate buttons depending on if an image is selected.
Definition at line 709 of file subalbumWidget.cpp. References layout, photos, removeImage, rotate270Image, rotate90Image, setDesktopBtn, and LayoutWidget::setEditTabEnabled(). Referenced by addImageAction(), removeImageAction(), rotate270ImageAction(), rotate90ImageAction(), and selectionChangedEvent().
|
|
Activates/Deactives remove/rotate buttons.
Definition at line 752 of file subalbumWidget.cpp. References addImage, buttonsState, layout, removeImage, rotate270Image, rotate90Image, setDesktopBtn, LayoutWidget::setEditTabEnabled(), and wallpaperButtonState. Referenced by TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), TitleWidget::loadAlbum(), TitleWidget::saveAlbum(), and TitleWidget::saveAsAlbum().
|
|
"Add" button
Definition at line 140 of file subalbumWidget.h. Referenced by SubalbumWidget(), and updateButtons(). |
|
Definition at line 131 of file subalbumWidget.h. Referenced by setSubalbum(), and SubalbumWidget(). |
|
Definition at line 127 of file subalbumWidget.h. Referenced by SubalbumWidget(). |
|
cached enabled/disabled state of buttons
Definition at line 158 of file subalbumWidget.h. Referenced by updateButtons(). |
|
Pointer to the parent layout widget.
Definition at line 155 of file subalbumWidget.h. Referenced by addImageAction(), removeImageAction(), rotate270ImageAction(), rotate90ImageAction(), SubalbumWidget(), and updateButtons(). |
|
Grids widgets are placed in.
Definition at line 126 of file subalbumWidget.h. Referenced by SubalbumWidget(). |
|
Photos layout.
Definition at line 134 of file subalbumWidget.h. Referenced by addImageAction(), anyPhotosSelected(), anySelectedPhotosRevertable(), deselectAll(), getFirstSelectedPhoto(), getPhotos(), getSelectedPhoto(), refreshAllPhotos(), refreshPhotos(), refreshSelectedPhotos(), removeImageAction(), reorder(), resizeEvent(), revertSelectedPhotos(), rotate270ImageAction(), rotate90ImageAction(), setSelectedPhoto(), stripDescriptionsFromSelectedPhotos(), SubalbumWidget(), and updateButtons(). |
|
"Remove" button
Definition at line 143 of file subalbumWidget.h. Referenced by SubalbumWidget(), and updateButtons(). |
|
"Rotate 270" button
Definition at line 149 of file subalbumWidget.h. Referenced by SubalbumWidget(), and updateButtons(). |
|
"Rotate 90" button
Definition at line 146 of file subalbumWidget.h. Referenced by SubalbumWidget(), and updateButtons(). |
|
Set desktop wallpaper button.
Definition at line 152 of file subalbumWidget.h. Referenced by SubalbumWidget(), and updateButtons(). |
|
Pointer to backend subalbum.
Definition at line 137 of file subalbumWidget.h. Referenced by addImageAction(), getSubalbum(), refreshPhotos(), removeImageAction(), reorder(), setSubalbum(), and SubalbumWidget(). |
|
Grid lower buttons are placed in.
Definition at line 130 of file subalbumWidget.h. |
|
cached enabled/distable state of set wallpaper button
Definition at line 161 of file subalbumWidget.h. Referenced by updateButtons(). |