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_PHOTOSICONVIEW_H 00018 #define GUI_PHOTOSICONVIEW_H 00019 00020 //-------------------- 00021 //forward declarations 00022 class QPixmap; 00023 class QPainter; 00024 //-------------------- 00025 00026 #include <qiconview.h> 00027 00028 //===================================== 00031 //===================================== 00032 class PhotosIconView : public QIconView 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 PhotosIconView( QWidget *parent ); 00038 //---------------------- 00039 signals: 00040 void itemHasMoved(); 00041 //---------------------- 00042 protected: 00043 void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph ); 00044 //---------------------- 00045 private: 00046 void contentsDropEvent( QDropEvent *e ); 00047 QPixmap bufferPixmap; 00048 //---------------------- 00049 }; 00050 //====================== 00051 00052 #endif //GUI_PHOTOSICONVIEW_H