AlbumShaper  1.0a3
groupIcon.h
Go to the documentation of this file.
1 //Added by qt3to4:
2 #include <QPixmap>
3 //==============================================
4 // copyright : (C) 2003-2005 by Will Stokes
5 //==============================================
6 // This program is free software; you can redistribute it
7 // and/or modify it under the terms of the GNU General
8 // Public License as published by the Free Software
9 // Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //==============================================
12 
13 #ifndef CONFIGURATION_GROUPICON_H
14 #define CONFIGURATION_GROUPICON_H
15 
16 //--------------------
17 //forward declarations
18 class QPixmap;
19 class QString;
20 //--------------------
21 
22 #include <q3iconview.h>
23 #include <qobject.h>
24 #include <qstring.h>
25 
26 //=====================================
29 //=====================================
30 class GroupIcon : public Q3IconViewItem
31 {
32 public:
33  //creates icon, sets pointer to associated settings widget
35  QPixmap icon,
36  QString text,
38 
39  void paintItem( QPainter* p, const QColorGroup& cg);
40 
41  void paintFocus( QPainter *p, const QColorGroup &cg );
42 
43  void setMousedOver(bool val);
44 
46 
47 protected:
48 // void calcRect ( const QString & text_ = QString::null );
49 private:
50  //initializes item rect size
51  void initializeItemRect();
52 
55  bool mousedOver;
56 
57 };
58 //======================
59 
60 #endif //CONFIGURATION_GROUPICON_H
Displays group icon and text, also contains pointer to widget for setting group settings.
Definition: groupIcon.h:30
void initializeItemRect()
Definition: groupIcon.cpp:74
void setMousedOver(bool val)
Definition: groupIcon.cpp:72
Q3IconView * parent
Definition: groupIcon.h:53
QWidget * getSettingsWidget()
Definition: groupIcon.cpp:70
bool mousedOver
Definition: groupIcon.h:55
void paintFocus(QPainter *p, const QColorGroup &cg)
Definition: groupIcon.cpp:68
void paintItem(QPainter *p, const QColorGroup &cg)
Definition: groupIcon.cpp:34
QWidget * settingsWidget
Definition: groupIcon.h:54
GroupIcon(Q3IconView *parent, QPixmap icon, QString text, QWidget *settingsWidget)
Definition: groupIcon.cpp:22