Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

recentAlbumMenuItem.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 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 
00011 #ifndef GUI_RECENTALBUMMENUITEM_H
00012 #define GUI_RECENTALBUMMENUITEM_H
00013 
00014 #include <qmenudata.h> 
00015 #include <qimage.h>
00016 
00017 //forward declarations
00018 
00019 //=====================================
00022 //=====================================
00023 class RecentAlbumMenuItem : public QCustomMenuItem
00024 {
00025 //----------------------
00026 public:
00027   RecentAlbumMenuItem( QString albumName, QString albumLocation, QString numPhotos );
00028 
00030   void paint( QPainter * p, const QColorGroup & cg, bool act, bool enabled, 
00031               int x, int y, int w, int h );
00032 
00034   QSize sizeHint ();
00035 
00037   bool fullSpan() const;
00038   //----------------------
00039 private:
00041   QImage albumImage;
00042   
00044   QString albumName;
00045   
00047   QString numPhotos;
00048   
00050   QSize size;  
00051 
00053   int idealImageWidth;
00054   //----------------------
00055 };
00056 //======================
00057 #endif //GUI_RECENTALBUMMENUITEM_H

Generated on Sat Apr 2 05:44:04 2005 for AlbumShaper by  doxygen 1.3.9.1