Main Page   Compound List   File List   Compound Members   File Members  

photoWidget.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it 
00005 //  and/or modify it under the terms of the GNU General 
00006 //  Public License as published by the Free Software 
00007 //  Foundation; either version 2 of the License, or  
00008 //  (at your option) any later version.         
00009 //
00010 //  As a special exception, Will Stokes gives permission to 
00011 //  link this program with Qt non-commercial edition, and 
00012 //  distribute the resulting executable, without including the 
00013 //  source code for the Qt non-commercial edition in the 
00014 //  source distribution. 
00015 //==============================================
00016 
00017 #ifndef GUI_PHOTOWIDGET_H
00018 #define GUI_PHOTOWIDGET_H
00019 
00020 //--------------------
00021 //forward declarations
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

Generated on Tue Jun 10 23:41:21 2003 for AlbumShaper by doxygen 1.3.1