AlbumShaper
1.0a3
|
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget. More...
#include <window.h>
Public Member Functions | |
Window (QWidget *parent=0, const char *name=0) | |
Creates title area, layout, and tool bar and places them in grid. More... | |
~Window () | |
Save user settings on destruct. More... | |
TitleWidget * | getTitle () |
returns a pointer to the title widget More... | |
LayoutWidget * | getLayout () |
returns a pointer to the layout object More... | |
StatusWidget * | getStatus () |
returns a pointer to the status widget More... | |
void | refresh () |
refreshes the layout More... | |
Configuration * | getConfig () |
get setting object More... | |
Public Attributes | |
QPixmap * | shadowBL |
QPixmap * | shadowB |
QPixmap * | shadowBR |
QPixmap * | shadowR |
QPixmap * | shadowTR |
QPixmap * | photoInfo |
Protected Member Functions | |
bool | event (QEvent *) |
void | hideEvent (QHideEvent *) |
void | showEvent (QShowEvent *) |
void | closeEvent (QCloseEvent *e) |
Private Member Functions | |
void | startSlideshow (bool startAtBeginning) |
utility function used by above, actually started slideshow More... | |
Private Attributes | |
Configuration * | config |
Configuration settings. More... | |
Q3GridLayout * | grid |
Grid objects placed in. More... | |
TitleWidget * | title |
Title widget cont ains menu's, album information and Album Shaper icon. More... | |
LayoutWidget * | layout |
Layout includes subalbums listing and particular subalbum layout. More... | |
StatusWidget * | status |
Status widget either displays a status message or progress bar. More... | |
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget.
Window::Window | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Creates title area, layout, and tool bar and places them in grid.
refresh title annotations when collections are selected
refresh collection icons when collection names are edited
Definition at line 54 of file window.cpp.
References config, Configuration::getBool(), Configuration::getString(), grid, IMAGE_PATH, layout, Configuration::loadSettings(), photoInfo, LayoutWidget::refresh(), Configuration::resetSetting(), MiscSettings::setDefaults(), AlertsWidget::setDefaults(), LoadingSavingWidget::setDefaults(), LayoutSettingsWidget::setDefaults(), shadowB, shadowBL, shadowBR, shadowR, shadowTR, status, title, and TitleWidget::useAnimation().
Window::~Window | ( | ) |
Save user settings on destruct.
Definition at line 158 of file window.cpp.
References config, RecentAlbums::getEntry(), TitleWidget::getRecentAlbums(), height, RecentAlbums::numEntries(), Configuration::removeGroup(), Configuration::saveSettings(), Configuration::setInt(), Configuration::setString(), title, and width.
|
protected |
Definition at line 208 of file window.cpp.
References Album::albumModified(), config, TitleWidget::getAlbum(), Configuration::getBool(), and title.
|
protected |
Definition at line 328 of file window.cpp.
References title, and TitleWidget::windowStateChanged().
Configuration * Window::getConfig | ( | ) |
get setting object
Definition at line 235 of file window.cpp.
References config.
Referenced by TitleWidget::createTmpDir(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), TitleWidget::loadAlbum(), main(), TitleWidget::newAlbum(), TitleWidget::proceedWithLoad(), TitleWidget::removeSelectedPhotoDesc(), TitleWidget::revertToSaved(), TitleWidget::saveAlbum(), TitleWidget::saveAsAlbum(), TitleWidget::settings(), and TitleWidget::TitleWidget().
LayoutWidget * Window::getLayout | ( | ) |
returns a pointer to the layout object
Definition at line 193 of file window.cpp.
References layout.
Referenced by TitleWidget::dropEvent(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), TitleWidget::loadAlbum(), TitleWidget::newAlbum(), TitleWidget::removeSelectedPhotoDesc(), TitleWidget::revertPhotos(), TitleWidget::saveAlbum(), TitleWidget::saveAsAlbum(), TitleWidget::setAlbumImage(), TitleWidget::setSubalbumImage(), TitleWidget::storeAnnotations(), and TitleWidget::unsetSubalbumImage().
StatusWidget * Window::getStatus | ( | ) |
returns a pointer to the status widget
Definition at line 198 of file window.cpp.
References status.
Referenced by SubalbumWidget::addImageAction(), EditingInterface::adjustGrain(), EditingInterface::applyEffect(), EditingInterface::colorBalance(), EditingInterface::crop(), EditingInterface::enhanceContrast(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), EditingInterface::finishCorrectTilt(), TitleWidget::loadAlbum(), EditingInterface::removeRedeye(), EditingInterface::revertCurrentPhoto(), SubalbumWidget::rotate270ImageAction(), SubalbumWidget::rotate90ImageAction(), EditingInterface::rotateFlip(), TitleWidget::saveAlbum(), TitleWidget::saveAsAlbum(), and EditingInterface::tuneLevels().
TitleWidget * Window::getTitle | ( | ) |
returns a pointer to the title widget
Definition at line 188 of file window.cpp.
References title.
Referenced by SubalbumWidget::addImageAction(), SubalbumsWidget::createAction(), SubalbumsWidget::deleteAction(), SubalbumsWidget::handleSelectionAttempt(), LayoutWidget::photoStateChangedEvent(), SubalbumsWidget::refreshCollectionsList(), SubalbumWidget::removeImageAction(), SubalbumsWidget::reorder(), SubalbumWidget::rotate270ImageAction(), and SubalbumWidget::rotate90ImageAction().
|
protected |
Definition at line 345 of file window.cpp.
References title, and TitleWidget::windowStateChanged().
void Window::refresh | ( | ) |
refreshes the layout
Definition at line 203 of file window.cpp.
References layout, and LayoutWidget::refresh().
Referenced by TitleWidget::refresh().
|
protected |
Definition at line 351 of file window.cpp.
References title, and TitleWidget::windowStateChanged().
|
private |
utility function used by above, actually started slideshow
|
private |
Configuration settings.
Definition at line 107 of file window.h.
Referenced by closeEvent(), getConfig(), Window(), and ~Window().
|
private |
|
private |
Layout includes subalbums listing and particular subalbum layout.
Definition at line 116 of file window.h.
Referenced by getLayout(), refresh(), and Window().
QPixmap * Window::shadowB |
Definition at line 70 of file window.h.
Referenced by PhotoPreviewWidget::paintItem(), and Window().
QPixmap* Window::shadowBL |
Definition at line 70 of file window.h.
Referenced by PhotoPreviewWidget::paintItem(), and Window().
QPixmap * Window::shadowBR |
Definition at line 70 of file window.h.
Referenced by PhotoPreviewWidget::paintItem(), and Window().
QPixmap * Window::shadowR |
Definition at line 70 of file window.h.
Referenced by PhotoPreviewWidget::paintItem(), and Window().
QPixmap * Window::shadowTR |
Definition at line 70 of file window.h.
Referenced by PhotoPreviewWidget::paintItem(), and Window().
|
private |
Status widget either displays a status message or progress bar.
Definition at line 119 of file window.h.
Referenced by getStatus(), and Window().
|
private |
Title widget cont ains menu's, album information and Album Shaper icon.
Definition at line 113 of file window.h.
Referenced by closeEvent(), event(), getTitle(), hideEvent(), showEvent(), Window(), and ~Window().