3
* Copyright (C) 2002 Karol Szwed <gallium@kde.org>
4
* Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org>
5
* Copyright (C) 2007 Urs Wolfer <uwolfer @ kde.org>
7
* Portions Copyright (C) TrollTech AS.
10
* Copyright (C) 1997-2002 kcmdisplay Authors.
11
* (see Help -> About Style Settings)
13
* This program is free software; you can redistribute it and/or
14
* modify it under the terms of the GNU General Public
15
* License version 2 as published by the Free Software Foundation.
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with this program; see the file COPYING. If not, write to
24
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25
* Boston, MA 02110-1301, USA.
38
#include "ui_finetuning.h"
56
class KCMStyle : public KCModule
61
KCMStyle( QWidget* parent, const QVariantList& );
66
virtual void defaults();
69
bool findStyle( const QString& str, int& combobox_item );
70
void switchStyle(const QString& styleName, bool force = false);
71
void setStyleRecursive(QWidget* w, QStyle* s);
73
void loadStyle( KConfig& config );
74
void loadEffects( KConfig& config );
77
virtual void changeEvent( QEvent *event );
80
void styleSpecificConfig();
81
void updateConfigButton();
84
void setEffectsDirty();
89
QString currentStyle();
90
static QString toolbarButtonText(int index);
91
static int toolbarButtonIndex(const QString &text);
93
bool m_bStyleDirty, m_bEffectsDirty;
94
QHash <QString,StyleEntry*> styleEntries;
95
QMap <QString,QString> nameToStyleKey;
97
QVBoxLayout* mainLayout;
98
QTabWidget* tabWidget;
99
QWidget *page0, *page1, *page2;
100
QVBoxLayout* page1Layout;
103
QVBoxLayout* gbWidgetStyleLayout;
104
QHBoxLayout* hbLayout;
106
QPushButton* pbConfigStyle;
107
QLabel* lblStyleDesc;
108
StylePreview* stylePreview;
109
QStyle* appliedStyle;
113
Ui::FineTuning fineTuningUi;
116
#endif // __KCMSTYLE_H
118
// vim: set noet ts=4: