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
18class QPixmap;
19class QString;
20//--------------------
21
22#include <q3iconview.h>
23#include <qobject.h>
24#include <qstring.h>
25
26//=====================================
29//=====================================
31{
32public:
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
47protected:
48// void calcRect ( const QString & text_ = QString::null );
49private:
50 //initializes item rect size
51 void initializeItemRect();
52
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:31
QWidget * getSettingsWidget()
Definition groupIcon.cpp:70
void setMousedOver(bool val)
Definition groupIcon.cpp:72
void initializeItemRect()
Definition groupIcon.cpp:74
Q3IconView * parent
Definition groupIcon.h:53
void paintFocus(QPainter *p, const QColorGroup &cg)
Definition groupIcon.cpp:68
bool mousedOver
Definition groupIcon.h:55
GroupIcon(Q3IconView *parent, QPixmap icon, QString text, QWidget *settingsWidget)
Definition groupIcon.cpp:22
void paintItem(QPainter *p, const QColorGroup &cg)
Definition groupIcon.cpp:34
QWidget * settingsWidget
Definition groupIcon.h:54