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

groupIcon.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 CONFIGURATION_GROUPICON_H
00012 #define CONFIGURATION_GROUPICON_H
00013 
00014 //--------------------
00015 //forward declarations
00016 class QPixmap;
00017 class QString;
00018 //--------------------
00019 
00020 #include <qiconview.h>
00021 #include <qobject.h>
00022 #include <qstring.h>
00023 
00024 //=====================================
00027 //=====================================
00028 class GroupIcon : public QIconViewItem
00029 {
00030 public:
00031   //creates icon, sets pointer to associated settings widget
00032   GroupIcon( QIconView* parent,
00033                   QPixmap icon,
00034                   QString text,
00035                   QWidget* settingsWidget );
00036 
00037   void paintItem( QPainter* p, const QColorGroup& cg);
00038 
00039   void paintFocus( QPainter *p, const QColorGroup &cg );
00040 
00041   void setMousedOver(bool val);
00042 
00043   QWidget* getSettingsWidget();
00044 
00045 protected:
00046 //  void calcRect ( const QString & text_ = QString::null );    
00047 private:
00048   //initializes item rect size
00049   void initializeItemRect();    
00050     
00051   QIconView* parent;
00052   QWidget* settingsWidget;
00053   bool mousedOver;
00054 
00055 };
00056 //======================
00057 
00058 #endif //CONFIGURATION_GROUPICON_H

Generated on Wed May 4 11:10:13 2005 for AlbumShaper by  doxygen 1.3.9.1