AlbumShaper
1.0a3
|
#include <ALabel.h>
Signals | |
void | dropEventOccured (QDropEvent *e) |
void | mousePress () |
various mouse-click signals More... | |
void | mouseRelease () |
void | mouseDoubleClick () |
void | pixmapRemoved () |
Public Member Functions | |
ALabel (QWidget *parent=0, const char *name=0, QPixmap *hoverOverImage=NULL, int setMethod=APPEAR_IMMEDIATELY, int removalMethod=DISAPPEAR_IMMEDIATELY, int resetMethod=APPEAR_IMMEDIATELY, int removalBeforeResetMethod=DISAPPEAR_IMMEDIATELY, int initDelay=130, int accel=50) | |
create the label, optionally set a hover-over image (only displayed when pixmap for label is set and fully shown) More... | |
void | setAnimationMethods (int setMethod=APPEAR_IMMEDIATELY, int removalMethod=DISAPPEAR_IMMEDIATELY, int resetMethod=APPEAR_IMMEDIATELY, int removalBeforeResetMethod=DISAPPEAR_IMMEDIATELY) |
alter animation methods More... | |
void | setPixmap (const QPixmap &p) |
animates setting an image More... | |
void | removePixmap (bool forceImmediate=false) |
animates removing an image More... | |
Protected Member Functions | |
void | animatePixmap () |
begin animating the pixmap More... | |
void | paintEvent (QPaintEvent *pe) |
void | enterEvent (QEvent *e) |
void | leaveEvent (QEvent *e) |
void | mousePressEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
Private Slots | |
void | animate () |
Private Member Functions | |
void | internalRemovePixmap (bool forceImmediate=false) |
void | internalSetPixmap (const QPixmap &p) |
void | appendJob (QPixmap *pix) |
void | cleanStack () |
Private Attributes | |
QImage * | pixStore |
QImage * | resetPixStore |
int | setMethod |
int | removalMethod |
int | removalBeforeResetMethod |
int | resetMethod |
int | initDelay |
int | accel |
int | minDelay |
int | delay |
int | animationType |
int | step |
QTimer * | timer |
QTime | lastTime |
QTime | currentTime |
bool | drawHoverOverImage |
QRect | hoverOverRect |
QPixmap * | hoverOverImage |
bool | imageShown |
bool | handCursorShown |
bool | animating |
QMutex | animatingBoolMutex |
bool | resettingImage |
Action * | delayedActionHead |
Action * | delayedActionTail |
QMutex | queueMutex |
ALabel::ALabel | ( | QWidget * | parent = 0 , |
const char * | name = 0 , |
||
QPixmap * | hoverOverImage = NULL , |
||
int | setMethod = APPEAR_IMMEDIATELY , |
||
int | removalMethod = DISAPPEAR_IMMEDIATELY , |
||
int | resetMethod = APPEAR_IMMEDIATELY , |
||
int | removalBeforeResetMethod = DISAPPEAR_IMMEDIATELY , |
||
int | initDelay = 130 , |
||
int | accel = 50 |
||
) |
create the label, optionally set a hover-over image (only displayed when pixmap for label is set and fully shown)
Definition at line 29 of file ALabel.cpp.
References accel, animate(), animating, delayedActionHead, delayedActionTail, drawHoverOverImage, handCursorShown, hoverOverImage, imageShown, initDelay, minDelay, pixStore, removalBeforeResetMethod, removalMethod, resetMethod, resetPixStore, resettingImage, setMethod, and timer.
|
privateslot |
Definition at line 197 of file ALabel.cpp.
References accel, animatePixmap(), animating, animatingBoolMutex, animationType, APPEAR_IMMEDIATELY, b, cleanStack(), currentTime, delay, delayedActionHead, delayedActionTail, DISAPPEAR_IMMEDIATELY, FADE_TRANSITION, Action::getImage(), Action::getNext(), imageShown, internalRemovePixmap(), internalSetPixmap(), lastTime, minDelay, pixmapRemoved(), pixStore, queueMutex, resetMethod, resetPixStore, resettingImage, SLIDE_IN_LEFT, SLIDE_IN_RIGHT, SLIDE_OUT_LEFT, SLIDE_OUT_RIGHT, step, timer, and width.
Referenced by ALabel(), and animatePixmap().
|
protected |
begin animating the pixmap
Definition at line 175 of file ALabel.cpp.
References animate(), animationType, delay, DISAPPEAR_IMMEDIATELY, initDelay, lastTime, pixStore, SLIDE_OUT_LEFT, SLIDE_OUT_RIGHT, and step.
Referenced by animate(), internalRemovePixmap(), and internalSetPixmap().
|
private |
Definition at line 562 of file ALabel.cpp.
References delayedActionHead, delayedActionTail, and Action::setNext().
Referenced by removePixmap(), and setPixmap().
|
private |
Definition at line 573 of file ALabel.cpp.
References delayedActionHead, delayedActionTail, Action::getImage(), Action::getNext(), and pixStore.
Referenced by animate().
|
signal |
|
protected |
|
private |
Definition at line 164 of file ALabel.cpp.
References animatePixmap(), animationType, DISAPPEAR_IMMEDIATELY, and removalMethod.
Referenced by animate(), and removePixmap().
|
private |
Definition at line 104 of file ALabel.cpp.
References animatePixmap(), animationType, pixStore, removalBeforeResetMethod, resetPixStore, resettingImage, and setMethod.
Referenced by animate(), and setPixmap().
|
protected |
|
signal |
Referenced by mouseDoubleClickEvent().
|
protected |
|
protected |
Definition at line 539 of file ALabel.cpp.
References drawHoverOverImage, handCursorShown, and hoverOverRect.
|
signal |
various mouse-click signals
Referenced by mousePressEvent().
|
protected |
|
signal |
Referenced by mouseReleaseEvent().
|
protected |
Definition at line 505 of file ALabel.cpp.
References hoverOverImage, mouseRelease(), and removePixmap().
|
protected |
Definition at line 450 of file ALabel.cpp.
References animating, drawHoverOverImage, hoverOverImage, hoverOverRect, and imageShown.
|
signal |
Referenced by animate().
void ALabel::removePixmap | ( | bool | forceImmediate = false | ) |
animates removing an image
Definition at line 136 of file ALabel.cpp.
References animating, animatingBoolMutex, appendJob(), delayedActionHead, internalRemovePixmap(), pixStore, and queueMutex.
Referenced by TitleWidget::loadAlbum(), mouseReleaseEvent(), TitleWidget::newAlbum(), TitleWidget::refreshCollectionAnnotations(), HelpWindow::setPage(), and TitleWidget::updateAlbumAnnotations().
void ALabel::setAnimationMethods | ( | int | setMethod = APPEAR_IMMEDIATELY , |
int | removalMethod = DISAPPEAR_IMMEDIATELY , |
||
int | resetMethod = APPEAR_IMMEDIATELY , |
||
int | removalBeforeResetMethod = DISAPPEAR_IMMEDIATELY |
||
) |
alter animation methods
Definition at line 71 of file ALabel.cpp.
References removalBeforeResetMethod, removalMethod, resetMethod, and setMethod.
Referenced by TitleWidget::useAnimation().
void ALabel::setPixmap | ( | const QPixmap & | p | ) |
animates setting an image
Definition at line 81 of file ALabel.cpp.
References animating, animatingBoolMutex, appendJob(), delayedActionHead, internalSetPixmap(), and queueMutex.
Referenced by HelpWindow::HelpWindow(), TitleWidget::refreshCollectionAnnotations(), TitleWidget::setAlbumImage(), TitleWidget::setSubalbumImage(), and TitleWidget::updateAlbumAnnotations().
|
private |
|
private |
Definition at line 130 of file ALabel.h.
Referenced by ALabel(), animate(), paintEvent(), removePixmap(), and setPixmap().
|
private |
Definition at line 131 of file ALabel.h.
Referenced by animate(), removePixmap(), and setPixmap().
|
private |
Definition at line 109 of file ALabel.h.
Referenced by animate(), animatePixmap(), internalRemovePixmap(), and internalSetPixmap().
|
private |
Definition at line 109 of file ALabel.h.
Referenced by animate(), and animatePixmap().
|
private |
Definition at line 137 of file ALabel.h.
Referenced by ALabel(), animate(), appendJob(), cleanStack(), removePixmap(), and setPixmap().
|
private |
Definition at line 138 of file ALabel.h.
Referenced by ALabel(), animate(), appendJob(), and cleanStack().
|
private |
Definition at line 117 of file ALabel.h.
Referenced by ALabel(), enterEvent(), leaveEvent(), mouseMoveEvent(), and paintEvent().
|
private |
Definition at line 127 of file ALabel.h.
Referenced by ALabel(), and mouseMoveEvent().
|
private |
Definition at line 121 of file ALabel.h.
Referenced by ALabel(), enterEvent(), leaveEvent(), mouseReleaseEvent(), and paintEvent().
|
private |
Definition at line 118 of file ALabel.h.
Referenced by mouseMoveEvent(), and paintEvent().
|
private |
Definition at line 124 of file ALabel.h.
Referenced by ALabel(), animate(), and paintEvent().
|
private |
Definition at line 109 of file ALabel.h.
Referenced by ALabel(), and animatePixmap().
|
private |
Definition at line 114 of file ALabel.h.
Referenced by animate(), and animatePixmap().
|
private |
|
private |
Definition at line 100 of file ALabel.h.
Referenced by ALabel(), animate(), animatePixmap(), cleanStack(), internalSetPixmap(), and removePixmap().
|
private |
Definition at line 139 of file ALabel.h.
Referenced by animate(), removePixmap(), and setPixmap().
|
private |
Definition at line 105 of file ALabel.h.
Referenced by ALabel(), internalSetPixmap(), and setAnimationMethods().
|
private |
Definition at line 104 of file ALabel.h.
Referenced by ALabel(), internalRemovePixmap(), and setAnimationMethods().
|
private |
Definition at line 106 of file ALabel.h.
Referenced by ALabel(), animate(), and setAnimationMethods().
|
private |
Definition at line 100 of file ALabel.h.
Referenced by ALabel(), animate(), and internalSetPixmap().
|
private |
Definition at line 134 of file ALabel.h.
Referenced by ALabel(), animate(), and internalSetPixmap().
|
private |
Definition at line 103 of file ALabel.h.
Referenced by ALabel(), internalSetPixmap(), and setAnimationMethods().
|
private |
Definition at line 110 of file ALabel.h.
Referenced by animate(), and animatePixmap().
|
private |