#include <photoPreviewWidget.h>
Inheritance diagram for PhotoPreviewWidget:
Definition at line 32 of file photoPreviewWidget.h.
Public Member Functions | |
PhotoPreviewWidget (QIconView *parent, Photo *phto) | |
Sets subalbum pointer. | |
Photo * | getPhoto () |
Returns photo pointer. | |
void | updateImage () |
Update photo thumbnail from background object. | |
void | updateDescription () |
Update photo description. | |
void | paint (QPainter *p) |
void | paintItem (QPainter *p, const QColorGroup &cg) |
Repain iconview item. | |
void | paintFocus (QPainter *p, const QColorGroup &cg) |
void | setText (const QString &text) |
void | setPixmap (const QPixmap &p, bool redraw) |
bool | acceptDrop (const QMimeSource *e) const |
int | compare (QIconViewItem *i) const |
void | setMousedOver (bool val) |
QRect | getPhotoInfoRect () |
QPoint | getPhotoPos () |
Private Member Functions | |
void | initializeItemRect () |
Private Attributes | |
Photo * | phto |
Pointer to photo backend object. | |
int | calibratedWidth |
bool | mousedOver |
QRect | photoInfoRect |
int | pixmapXOffset |
offsets used to center pixmap | |
int | pixmapYOffset |
offsets used to center pixmap |
|
Sets subalbum pointer.
Definition at line 29 of file photoPreviewWidget.cpp. References calibratedWidth, initializeItemRect(), mousedOver, PHOTO_TEXT_MARGIN, PhotoPreviewWidget(), setText(), and THUMBNAIL_WIDTH. Referenced by PhotoPreviewWidget().
|
|
Definition at line 170 of file photoPreviewWidget.cpp. References acceptDrop(). Referenced by acceptDrop().
|
|
Definition at line 175 of file photoPreviewWidget.cpp. References compare(), and height. Referenced by compare().
|
|
Returns photo pointer.
Definition at line 49 of file photoPreviewWidget.cpp. References phto. Referenced by PhotoDescEdit::disappear(), PhotosIconView::setAlbumImage(), PhotosIconView::setSubalbumImage(), and Subalbum::syncPhotoList().
|
|
Definition at line 224 of file photoPreviewWidget.cpp. References height, PHOTO_MARGIN, PHOTO_SHADOW, photoInfoRect, and width. Referenced by PhotosIconView::contentsMouseMoveEvent(), and paintItem().
|
|
Definition at line 235 of file photoPreviewWidget.cpp. References pixmapXOffset, and pixmapYOffset.
|
|
Definition at line 187 of file photoPreviewWidget.cpp. References PHOTO_MARGIN, PHOTO_SHADOW, PHOTO_TEXT_MARGIN, pixmapXOffset, pixmapYOffset, THUMBNAIL_HEIGHT, and THUMBNAIL_WIDTH. Referenced by PhotoPreviewWidget().
|
|
Definition at line 76 of file photoPreviewWidget.cpp. References height, paint(), PHOTO_MARGIN, PHOTO_TEXT_MARGIN, pixmapXOffset, pixmapYOffset, and width. Referenced by paint(), and paintItem().
|
|
Definition at line 168 of file photoPreviewWidget.cpp. References paintFocus(). Referenced by paintFocus().
|
|
Repain iconview item.
Definition at line 109 of file photoPreviewWidget.cpp. References buffer, getPhotoInfoRect(), height, mousedOver, paint(), paintItem(), PHOTO_SHADOW, PHOTO_SHADOW_END_OFFSET, photoInfoRect, Window::shadowB, Window::shadowBL, Window::shadowBR, Window::shadowR, Window::shadowTR, and width. Referenced by paintItem().
|
|
Definition at line 219 of file photoPreviewWidget.cpp. References mousedOver, and setMousedOver(). Referenced by PhotosIconView::clearPseudoSelection(), PhotosIconView::repaintGroup(), and setMousedOver().
|
|
Definition at line 59 of file photoPreviewWidget.cpp. References pixmapXOffset, pixmapYOffset, setPixmap(), THUMBNAIL_HEIGHT, and THUMBNAIL_WIDTH. Referenced by setPixmap(), and updateImage().
|
|
Definition at line 71 of file photoPreviewWidget.cpp. References calibratedWidth, clipText(), and setText(). Referenced by PhotoDescEdit::disappear(), PhotoPreviewWidget(), setText(), and updateDescription().
|
|
Update photo description.
Definition at line 66 of file photoPreviewWidget.cpp. References Photo::getDescription(), phto, and setText().
|
|
Update photo thumbnail from background object.
Definition at line 54 of file photoPreviewWidget.cpp. References Photo::getThumbnailFilename(), phto, and setPixmap().
|
|
Definition at line 76 of file photoPreviewWidget.h. Referenced by PhotoPreviewWidget(), and setText(). |
|
Definition at line 78 of file photoPreviewWidget.h. Referenced by paintItem(), PhotoPreviewWidget(), and setMousedOver(). |
|
Definition at line 80 of file photoPreviewWidget.h. Referenced by getPhotoInfoRect(), and paintItem(). |
|
Pointer to photo backend object.
Definition at line 74 of file photoPreviewWidget.h. Referenced by getPhoto(), updateDescription(), and updateImage(). |
|
offsets used to center pixmap
Definition at line 83 of file photoPreviewWidget.h. Referenced by getPhotoPos(), initializeItemRect(), paint(), and setPixmap(). |
|
offsets used to center pixmap
Definition at line 83 of file photoPreviewWidget.h. Referenced by getPhotoPos(), initializeItemRect(), paint(), and setPixmap(). |