3 * This file is part of the KDE project, module kcmdisplay.
4 * Copyright (C) 2000 Geert Jansen <jansen@kde.org>
5 * with minor additions and based on ideas from
6 * Torsten Rahn <torsten@kde.org>
8 * You can Freely distribute this program under the GNU General Public
9 * License. See the file "COPYING" for the exact licensing terms.
50 * The General Icons tab in kcontrol.
52 class KIconConfig
: public KCModule
57 KIconConfig(const KComponentData
&inst
, QWidget
*parent
);
62 virtual void defaults();
66 void slotEffectSetup0() { EffectSetup(0); }
67 void slotEffectSetup1() { EffectSetup(1); }
68 void slotEffectSetup2() { EffectSetup(2); }
70 void slotUsage(int index
);
71 void slotSize(int index
);
72 void slotDPCheck(bool check
);
73 void slotAnimatedCheck(bool check
);
77 void EffectSetup(int state
);
78 QPushButton
*addPreviewIcon(int i
, const QString
&str
, QWidget
*parent
, QGridLayout
*lay
);
85 bool mbDP
[6], mbChanged
[6], mbAnimated
[6];
87 QList
<int> mAvSizes
[6];
89 Effect mEffects
[6][3];
90 Effect mDefaultEffect
[3];
93 QString mTheme
, mExample
;
94 QStringList mGroups
, mStates
;
96 KIconEffect
*mpEffect
;
98 KIconLoader
*mpLoader
;
99 KSharedConfigPtr mpConfig
;
101 QLabel
*mpPreview
[3];
103 QListWidget
*mpUsageList
;
104 QComboBox
*mpSizeBox
;
105 QCheckBox
*mpDPCheck
, *wordWrapCB
, *underlineCB
, *mpAnimatedCheck
;
106 QTabWidget
*m_pTabWidget
;
110 class KIconEffectSetupDialog
: public KDialog
115 KIconEffectSetupDialog(const Effect
&, const Effect
&,
116 const QString
&, const QImage
&,
117 QWidget
*parent
=0L, char *name
=0L);
118 ~KIconEffectSetupDialog();
119 Effect
effect() { return mEffect
; }
126 void slotEffectValue(int value
);
127 void slotEffectColor(const QColor
&col
);
128 void slotEffectColor2(const QColor
&col
);
129 void slotEffectType(int type
);
130 void slotSTCheck(bool b
);
134 KIconEffect
*mpEffect
;
135 QListWidget
*mpEffectBox
;
136 QCheckBox
*mpSTCheck
;
137 QSlider
*mpEffectSlider
;
138 KColorButton
*mpEColButton
;
139 KColorButton
*mpECol2Button
;
141 Effect mDefaultEffect
;
143 QGroupBox
*mpEffectGroup
;
144 QLabel
*mpPreview
, *mpEffectLabel
, *mpEffectColor
, *mpEffectColor2
;