00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GUI_PHOTOWIDGET_H
00018 #define GUI_PHOTOWIDGET_H
00019
00020
00021
00022 class QPixmap;
00023 class QString;
00024 class Photo;
00025 class PhotosIconView;
00026
00027
00028 #include <qiconview.h>
00029
00030
00033
00034 class PhotoWidget : public QIconViewItem
00035 {
00036 public:
00038 PhotoWidget( PhotosIconView *parent,
00039 Photo* phto );
00040
00042 Photo* getPhoto();
00043
00045 void sync();
00046
00048 void updateImage();
00049
00051 void updateDescription();
00052
00054 void paintItem( QPainter* p,
00055 const QColorGroup& cg);
00056
00057 void setText ( const QString & text );
00058
00059 bool acceptDrop( const QMimeSource *e) const;
00060
00061 int compare ( QIconViewItem * i ) const;
00062
00063 private:
00064 void dropped( QDropEvent *e, const QValueList<QIconDragItem> &lst );
00065
00067 Photo* phto;
00068
00070 PhotosIconView* parent;
00071
00072 };
00073
00074
00075 #endif //GUI_PHOTOWIDGET_H