#include <ALabel.h>
Inheritance diagram for ALabel:
Signals | |
void | dropEventOccured (QDropEvent *e) |
void | mousePress () |
various mouse-click signals | |
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) | |
void | setAnimationMethods (int setMethod=APPEAR_IMMEDIATELY, int removalMethod=DISAPPEAR_IMMEDIATELY, int resetMethod=APPEAR_IMMEDIATELY, int removalBeforeResetMethod=DISAPPEAR_IMMEDIATELY) |
alter animation methods | |
void | setPixmap (const QPixmap &p) |
animates setting an image | |
void | removePixmap (bool forceImmediate=false) |
animates removing an image | |
Protected Member Functions | |
void | animatePixmap () |
begin animating the pixmap | |
void | drawContents (QPainter *p) |
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 |
|
create the label, optionally set a hover-over image (only displayed when pixmap for label is set and fully shown)
Definition at line 25 of file ALabel.cpp. References ALabel(), animate(), animating, delayedActionHead, delayedActionTail, drawHoverOverImage, handCursorShown, imageShown, minDelay, pixStore, resetPixStore, resettingImage, and timer. Referenced by ALabel().
|
|
Definition at line 193 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, and timer. Referenced by ALabel(), and animatePixmap().
|
|
begin animating the pixmap
Definition at line 171 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().
|
|
Definition at line 556 of file ALabel.cpp. References appendJob(), delayedActionHead, delayedActionTail, and Action::setNext(). Referenced by appendJob(), removePixmap(), and setPixmap().
|
|
Definition at line 567 of file ALabel.cpp. References delayedActionHead, delayedActionTail, Action::getImage(), Action::getNext(), and pixStore. Referenced by animate().
|
|
Definition at line 446 of file ALabel.cpp. References animating, drawContents(), drawHoverOverImage, hoverOverImage, hoverOverRect, and imageShown. Referenced by drawContents().
|
|
|
|
Definition at line 478 of file ALabel.cpp. References drawHoverOverImage, enterEvent(), and hoverOverImage. Referenced by enterEvent().
|
|
Definition at line 160 of file ALabel.cpp. References animatePixmap(), animationType, DISAPPEAR_IMMEDIATELY, internalRemovePixmap(), and removalMethod. Referenced by animate(), internalRemovePixmap(), and removePixmap().
|
|
Definition at line 100 of file ALabel.cpp. References animatePixmap(), animationType, internalSetPixmap(), pixStore, removalBeforeResetMethod, resetPixStore, resettingImage, and setMethod. Referenced by animate(), internalSetPixmap(), and setPixmap().
|
|
Definition at line 487 of file ALabel.cpp. References drawHoverOverImage, hoverOverImage, and leaveEvent(). Referenced by leaveEvent().
|
|
Referenced by mouseDoubleClickEvent(). |
|
Definition at line 530 of file ALabel.cpp. References mouseDoubleClick(), and mouseDoubleClickEvent(). Referenced by mouseDoubleClickEvent().
|
|
Definition at line 533 of file ALabel.cpp. References drawHoverOverImage, handCursorShown, hoverOverRect, and mouseMoveEvent(). Referenced by mouseMoveEvent().
|
|
various mouse-click signals
Referenced by mousePressEvent(). |
|
Definition at line 496 of file ALabel.cpp. References mousePress(), and mousePressEvent(). Referenced by mousePressEvent().
|
|
Referenced by mouseReleaseEvent(). |
|
Definition at line 499 of file ALabel.cpp. References hoverOverImage, mouseRelease(), mouseReleaseEvent(), and removePixmap(). Referenced by mouseReleaseEvent().
|
|
Referenced by animate(). |
|
animates removing an image
Definition at line 132 of file ALabel.cpp. References animating, animatingBoolMutex, appendJob(), delayedActionHead, internalRemovePixmap(), pixStore, queueMutex, and removePixmap(). Referenced by TitleWidget::loadAlbum(), mouseReleaseEvent(), TitleWidget::newAlbum(), TitleWidget::refreshCollectionAnnotations(), removePixmap(), HelpWindow::setPage(), and TitleWidget::updateAlbumAnnotations().
|
|
alter animation methods
Definition at line 67 of file ALabel.cpp. References setAnimationMethods(). Referenced by setAnimationMethods(), and TitleWidget::useAnimation().
|
|
animates setting an image
Definition at line 77 of file ALabel.cpp. References animating, animatingBoolMutex, appendJob(), delayedActionHead, internalSetPixmap(), queueMutex, and setPixmap(). Referenced by HelpWindow::HelpWindow(), TitleWidget::refreshCollectionAnnotations(), TitleWidget::setAlbumImage(), setPixmap(), TitleWidget::setSubalbumImage(), and TitleWidget::updateAlbumAnnotations().
|
|
Definition at line 105 of file ALabel.h. Referenced by animate(). |
|
Definition at line 126 of file ALabel.h. Referenced by ALabel(), animate(), drawContents(), removePixmap(), and setPixmap(). |
|
Definition at line 127 of file ALabel.h. Referenced by animate(), removePixmap(), and setPixmap(). |
|
Definition at line 105 of file ALabel.h. Referenced by animate(), animatePixmap(), internalRemovePixmap(), and internalSetPixmap(). |
|
Definition at line 110 of file ALabel.h. Referenced by animate(). |
|
Definition at line 105 of file ALabel.h. Referenced by animate(), and animatePixmap(). |
|
Definition at line 133 of file ALabel.h. Referenced by ALabel(), animate(), appendJob(), cleanStack(), removePixmap(), and setPixmap(). |
|
Definition at line 134 of file ALabel.h. Referenced by ALabel(), animate(), appendJob(), and cleanStack(). |
|
Definition at line 113 of file ALabel.h. Referenced by ALabel(), drawContents(), enterEvent(), leaveEvent(), and mouseMoveEvent(). |
|
Definition at line 123 of file ALabel.h. Referenced by ALabel(), and mouseMoveEvent(). |
|
Definition at line 117 of file ALabel.h. Referenced by drawContents(), enterEvent(), leaveEvent(), and mouseReleaseEvent(). |
|
Definition at line 114 of file ALabel.h. Referenced by drawContents(), and mouseMoveEvent(). |
|
Definition at line 120 of file ALabel.h. Referenced by ALabel(), animate(), and drawContents(). |
|
Definition at line 105 of file ALabel.h. Referenced by animatePixmap(). |
|
Definition at line 110 of file ALabel.h. Referenced by animate(), and animatePixmap(). |
|
|
|
Definition at line 96 of file ALabel.h. Referenced by ALabel(), animate(), animatePixmap(), cleanStack(), internalSetPixmap(), and removePixmap(). |
|
Definition at line 135 of file ALabel.h. Referenced by animate(), removePixmap(), and setPixmap(). |
|
Definition at line 101 of file ALabel.h. Referenced by internalSetPixmap(). |
|
Definition at line 100 of file ALabel.h. Referenced by internalRemovePixmap(). |
|
Definition at line 102 of file ALabel.h. Referenced by animate(). |
|
Definition at line 96 of file ALabel.h. Referenced by ALabel(), animate(), and internalSetPixmap(). |
|
Definition at line 130 of file ALabel.h. Referenced by ALabel(), animate(), and internalSetPixmap(). |
|
Definition at line 99 of file ALabel.h. Referenced by internalSetPixmap(). |
|
Definition at line 106 of file ALabel.h. Referenced by animate(), and animatePixmap(). |
|
|