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 slotAnimatedCheck(bool check
);
76 void EffectSetup(int state
);
77 QPushButton
*addPreviewIcon(int i
, const QString
&str
, QWidget
*parent
, QGridLayout
*lay
);
84 bool mbChanged
[6], mbAnimated
[6];
86 QList
<int> mAvSizes
[6];
88 Effect mEffects
[6][3];
89 Effect mDefaultEffect
[3];
92 QString mTheme
, mExample
;
93 QStringList mGroups
, mStates
;
95 KIconEffect
*mpEffect
;
96 KIconLoader
*mpLoader
;
97 KSharedConfigPtr mpConfig
;
101 QListWidget
*mpUsageList
;
102 QComboBox
*mpSizeBox
;
103 QCheckBox
*wordWrapCB
, *underlineCB
, *mpAnimatedCheck
;
104 QTabWidget
*m_pTabWidget
;
108 class KIconEffectSetupDialog
: public KDialog
113 KIconEffectSetupDialog(const Effect
&, const Effect
&,
114 const QString
&, const QImage
&,
115 QWidget
*parent
=0L, char *name
=0L);
116 ~KIconEffectSetupDialog();
117 Effect
effect() { return mEffect
; }
124 void slotEffectValue(int value
);
125 void slotEffectColor(const QColor
&col
);
126 void slotEffectColor2(const QColor
&col
);
127 void slotEffectType(int type
);
128 void slotSTCheck(bool b
);
132 KIconEffect
*mpEffect
;
133 QListWidget
*mpEffectBox
;
134 QCheckBox
*mpSTCheck
;
135 QSlider
*mpEffectSlider
;
136 KColorButton
*mpEColButton
;
137 KColorButton
*mpECol2Button
;
139 Effect mDefaultEffect
;
141 QGroupBox
*mpEffectGroup
;
142 QLabel
*mpPreview
, *mpEffectLabel
, *mpEffectColor
, *mpEffectColor2
;