AlbumShaper
1.0a3
|
#include <photoDescEdit.h>
Public Slots | |
void | hide () |
Public Member Functions | |
PhotoDescEdit (PhotoPreviewWidget *ppw, bool useAnimation, QWidget *parent=0, const char *name=0) | |
~PhotoDescEdit () | |
Private Slots | |
void | animate () |
this method is iteratively called and animates the opening/closing of the image More... | |
void | disappear () |
this method is called by the acceptAndClose and rejectAndClose slots and actually initiates the closing process More... | |
Private Attributes | |
bool | useAnimation |
actually animate the opening/closing process? More... | |
PhotoPreviewWidget * | ppw |
photo preview widget pointer More... | |
QImage * | imageLarge |
beginning and end pixmaps More... | |
QImage * | textRectangle |
text area widget used to computing painting surface More... | |
QPoint | initPos |
QPoint | finalPos |
int | left |
bounaries of entire animation More... | |
int | right |
int | top |
int | bottom |
int | idealTextSize |
ultimate text dimension More... | |
QPixmap * | backgroundImage |
this pixmap contains the screen contents for the entire region which we will be painting on top of More... | |
int | smallWidth |
small size More... | |
int | smallHeight |
Q3GridLayout * | mainGrid |
More... | |
QLabel * | animationLabel |
Animating Widgets More... | |
QPixmap * | buffer |
buffer we'll iteratively update and use for the label which shows the animation taking place More... | |
Q3GridLayout * | staticGrid |
Static Widgets More... | |
QWidget * | staticFrame |
frame which contains static widget More... | |
QLabel * | staticPhoto |
photo being displayed More... | |
TextEdit * | photoDesc |
photo description More... | |
int | initDelay |
Animation Stuff More... | |
int | accel |
int | minDelay |
int | step |
int | delay |
int | mode |
bool | dropShadowsEnabled |
are drop shadows enabled in windows (xp)? More... | |
QTimer * | timer |
QTime | lastTime |
QTime | currentTime |
Definition at line 42 of file photoDescEdit.h.
PhotoDescEdit::PhotoDescEdit | ( | PhotoPreviewWidget * | ppw, |
bool | useAnimation, | ||
QWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Definition at line 54 of file photoDescEdit.cpp.
References accel, animate(), animationLabel, APPEARING, backgroundImage, bottom, buffer, calcScaledImageDimensions(), delay, disappear(), dropShadowsEnabled, EDIT_MARGIN, finalPos, Photo::getDescription(), Photo::getImageFilename(), getImageSize(), PhotoPreviewWidget::getPhoto(), PhotoPreviewWidget::getPhotoPos(), Photo::getSlideshowFilename(), Photo::getThumbnailFilename(), idealTextSize, imageLarge, initDelay, initPos, lastTime, left, mainGrid, minDelay, mode, TextEdit::paintNow(), photoDesc, ppw, right, smallHeight, smallWidth, STATIC, staticFrame, staticGrid, staticPhoto, step, textRectangle, timer, top, and useAnimation.
PhotoDescEdit::~PhotoDescEdit | ( | ) |
Definition at line 396 of file photoDescEdit.cpp.
References backgroundImage, buffer, imageLarge, textRectangle, and timer.
|
privateslot |
this method is iteratively called and animates the opening/closing of the image
Definition at line 405 of file photoDescEdit.cpp.
References accel, animationLabel, APPEARING, backgroundImage, buffer, currentTime, delay, DISAPPEARED, dropShadowsEnabled, EDIT_MARGIN, finalPos, hide(), idealTextSize, imageLarge, initPos, lastTime, left, minDelay, mode, photoDesc, smallHeight, smallWidth, STATIC, staticFrame, step, textRectangle, timer, and top.
Referenced by disappear(), and PhotoDescEdit().
|
privateslot |
this method is called by the acceptAndClose and rejectAndClose slots and actually initiates the closing process
Definition at line 525 of file photoDescEdit.cpp.
References accel, animate(), animationLabel, DISAPPEARING, PhotoPreviewWidget::getPhoto(), initDelay, lastTime, minDelay, mode, photoDesc, ppw, Photo::setDescription(), PhotoPreviewWidget::setText(), staticFrame, step, textRectangle, and useAnimation.
Referenced by hide(), and PhotoDescEdit().
|
slot |
Definition at line 551 of file photoDescEdit.cpp.
References disappear(), DISAPPEARED, mode, ppw, and STATIC.
Referenced by animate().
|
private |
Definition at line 118 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
Animating Widgets
label which shows moving and expanding photo on background
Definition at line 96 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
this pixmap contains the screen contents for the entire region which we will be painting on top of
Definition at line 85 of file photoDescEdit.h.
Referenced by animate(), PhotoDescEdit(), and ~PhotoDescEdit().
|
private |
Definition at line 78 of file photoDescEdit.h.
Referenced by PhotoDescEdit().
|
private |
buffer we'll iteratively update and use for the label which shows the animation taking place
Definition at line 99 of file photoDescEdit.h.
Referenced by animate(), PhotoDescEdit(), and ~PhotoDescEdit().
|
private |
Definition at line 128 of file photoDescEdit.h.
Referenced by animate().
|
private |
Definition at line 118 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
are drop shadows enabled in windows (xp)?
Definition at line 124 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
Definition at line 75 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
ultimate text dimension
Definition at line 81 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
beginning and end pixmaps
Definition at line 69 of file photoDescEdit.h.
Referenced by animate(), PhotoDescEdit(), and ~PhotoDescEdit().
|
private |
Animation Stuff
Definition at line 118 of file photoDescEdit.h.
Referenced by disappear(), and PhotoDescEdit().
|
private |
Definition at line 75 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
Definition at line 128 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
bounaries of entire animation
Definition at line 78 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
|
private |
Definition at line 118 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
Definition at line 121 of file photoDescEdit.h.
Referenced by animate(), disappear(), hide(), and PhotoDescEdit().
|
private |
photo description
Definition at line 113 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
photo preview widget pointer
Definition at line 66 of file photoDescEdit.h.
Referenced by disappear(), hide(), and PhotoDescEdit().
|
private |
Definition at line 78 of file photoDescEdit.h.
Referenced by PhotoDescEdit().
|
private |
Definition at line 88 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
small size
Definition at line 88 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
frame which contains static widget
Definition at line 107 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
Static Widgets
grid static widgets placed in
Definition at line 104 of file photoDescEdit.h.
Referenced by PhotoDescEdit().
|
private |
photo being displayed
Definition at line 110 of file photoDescEdit.h.
Referenced by PhotoDescEdit().
|
private |
Definition at line 118 of file photoDescEdit.h.
Referenced by animate(), disappear(), and PhotoDescEdit().
|
private |
text area widget used to computing painting surface
Definition at line 72 of file photoDescEdit.h.
Referenced by animate(), disappear(), PhotoDescEdit(), and ~PhotoDescEdit().
|
private |
Definition at line 127 of file photoDescEdit.h.
Referenced by animate(), PhotoDescEdit(), and ~PhotoDescEdit().
|
private |
Definition at line 78 of file photoDescEdit.h.
Referenced by animate(), and PhotoDescEdit().
|
private |
actually animate the opening/closing process?
Definition at line 63 of file photoDescEdit.h.
Referenced by disappear(), and PhotoDescEdit().