AlbumShaper
1.0a3
|
#include <statusWidget.h>
Public Member Functions | |
StatusWidget (QWidget *parent=0, const char *name=0) | |
Creates layout. More... | |
~StatusWidget () | |
Deletes all objects. More... | |
void | showProgressBar (QString message, int numSteps) |
Initializes the progress bar. More... | |
void | updateProgress (int progress, QString newMessage=QString::null) |
Updates the progress bar. More... | |
int | currentProgress () |
Returns current progress in steps. More... | |
void | incrementProgress () |
Updates the progress bar by one step. More... | |
void | setStatus (QString message) |
Update message. More... | |
void | checkForUpdates () |
Check for updates. More... | |
void | removeUpdatesIcon () |
Remove program updates icon. More... | |
void | grabInput () |
void | releaseInput () |
Private Slots | |
void | fileFetched (bool error) |
called once a file is fetched from the network More... | |
void | removeStatus () |
Unset message. More... | |
Private Attributes | |
Q3GridLayout * | grid |
Layout widgets placed in. More... | |
QLabel * | message |
Q3ProgressBar * | progressBar |
int | curStep |
QTimer * | timer |
Q3Http | http |
http object for fetching releases file, used to check to see if installed copy is up to date More... | |
ClickableLabel * | updateAvailable |
Update available label. More... | |
Definition at line 32 of file statusWidget.h.
StatusWidget::StatusWidget | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Creates layout.
Definition at line 39 of file statusWidget.cpp.
References checkForUpdates(), curStep, fileFetched(), grid, http, message, progressBar, removeStatus(), timer, updateAvailable, and WIDGET_SPACING.
StatusWidget::~StatusWidget | ( | ) |
void StatusWidget::checkForUpdates | ( | ) |
Check for updates.
Definition at line 230 of file statusWidget.cpp.
References http, and updateAvailable.
Referenced by StatusWidget().
int StatusWidget::currentProgress | ( | ) |
Returns current progress in steps.
Definition at line 117 of file statusWidget.cpp.
References curStep.
|
privateslot |
called once a file is fetched from the network
Definition at line 147 of file statusWidget.cpp.
References ALBUMSHAPER_VERSION, grid, http, IMAGE_PATH, and TEMP_DIR.
Referenced by StatusWidget().
void StatusWidget::grabInput | ( | ) |
Definition at line 246 of file statusWidget.cpp.
Referenced by EditingInterface::adjustGrain(), EditingInterface::applyEffect(), EditingInterface::colorBalance(), EditingInterface::crop(), EditingInterface::enhanceContrast(), EditingInterface::finishCorrectTilt(), TitleWidget::loadAlbum(), EditingInterface::removeRedeye(), EditingInterface::revertCurrentPhoto(), EditingInterface::rotateFlip(), and EditingInterface::tuneLevels().
void StatusWidget::incrementProgress | ( | ) |
Updates the progress bar by one step.
Definition at line 122 of file statusWidget.cpp.
References curStep, and progressBar.
Referenced by blackWhiteEffect(), correctImageTilt(), embossEffect(), enhanceImageContrast(), Album::exportSubalbumImages(), findRegionOfInterest(), Subalbum::importFromDisk(), improveColorBalance(), mosaicEffect(), oilPaintingEffect(), Album::removeStagnantOrigFiles(), Album::reorderSubalbumImages(), and sepiaEffect().
void StatusWidget::releaseInput | ( | ) |
Definition at line 252 of file statusWidget.cpp.
Referenced by EditingInterface::adjustGrain(), EditingInterface::applyEffect(), EditingInterface::colorBalance(), EditingInterface::crop(), EditingInterface::enhanceContrast(), EditingInterface::finishCorrectTilt(), TitleWidget::loadAlbum(), EditingInterface::removeRedeye(), EditingInterface::revertCurrentPhoto(), EditingInterface::rotateFlip(), and EditingInterface::tuneLevels().
|
privateslot |
Unset message.
Definition at line 141 of file statusWidget.cpp.
References message.
Referenced by StatusWidget().
void StatusWidget::removeUpdatesIcon | ( | ) |
Remove program updates icon.
Definition at line 240 of file statusWidget.cpp.
References updateAvailable.
void StatusWidget::setStatus | ( | QString | message | ) |
Update message.
Definition at line 128 of file statusWidget.cpp.
References progressBar, and timer.
Referenced by SubalbumWidget::addImageAction(), EditingInterface::applyEffect(), correctImageTilt(), enhanceImageContrast(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), Album::exportToDisk(), Album::importFromDisk(), improveColorBalance(), removeRedeyeRegions(), SubalbumWidget::rotate270ImageAction(), and SubalbumWidget::rotate90ImageAction().
void StatusWidget::showProgressBar | ( | QString | message, |
int | numSteps | ||
) |
Initializes the progress bar.
Definition at line 92 of file statusWidget.cpp.
References curStep, progressBar, and timer.
Referenced by SubalbumWidget::addImageAction(), EditingInterface::applyEffect(), blackWhiteEffect(), correctImageTilt(), embossEffect(), enhanceImageContrast(), TitleWidget::exportLargeImages(), TitleWidget::exportSmallWebGallery(), Album::exportToDisk(), Album::importFromDisk(), improveColorBalance(), mosaicEffect(), oilPaintingEffect(), removeRedeyeRegions(), SubalbumWidget::rotate270ImageAction(), SubalbumWidget::rotate90ImageAction(), and sepiaEffect().
void StatusWidget::updateProgress | ( | int | progress, |
QString | newMessage = QString::null |
||
) |
Updates the progress bar.
Definition at line 105 of file statusWidget.cpp.
References curStep, message, and progressBar.
Referenced by SubalbumWidget::addImageAction(), Album::exportCompressedWebAlbum(), Album::exportLargeImages(), SubalbumWidget::rotate270ImageAction(), and SubalbumWidget::rotate90ImageAction().
|
private |
Definition at line 84 of file statusWidget.h.
Referenced by currentProgress(), incrementProgress(), showProgressBar(), StatusWidget(), and updateProgress().
|
private |
Layout widgets placed in.
Definition at line 80 of file statusWidget.h.
Referenced by fileFetched(), and StatusWidget().
|
private |
http object for fetching releases file, used to check to see if installed copy is up to date
Definition at line 89 of file statusWidget.h.
Referenced by checkForUpdates(), fileFetched(), and StatusWidget().
|
private |
Definition at line 82 of file statusWidget.h.
Referenced by removeStatus(), StatusWidget(), and updateProgress().
|
private |
Definition at line 83 of file statusWidget.h.
Referenced by incrementProgress(), setStatus(), showProgressBar(), StatusWidget(), and updateProgress().
|
private |
Definition at line 86 of file statusWidget.h.
Referenced by setStatus(), showProgressBar(), StatusWidget(), and ~StatusWidget().
|
private |
Update available label.
Definition at line 92 of file statusWidget.h.
Referenced by checkForUpdates(), removeUpdatesIcon(), and StatusWidget().