Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / ksysguard / gui / StyleEngine.h
blob7836ccdc2e427446f7b00007472b713cba33ee08
1 /*
2 KSysGuard, the KDE System Guard
4 Copyright (c) 1999 - 2001 Chris Schlaeger <cs@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License version 2 or at your option version 3 as published by
9 the Free Software Foundation.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef KSG_STYLEENGINE_H
23 #define KSG_STYLEENGINE_H
25 #include <QColor>
26 #include <QObject>
27 #include <QList>
29 class KConfigGroup;
30 namespace KSGRD {
31 class StyleEngine : public QObject
33 Q_OBJECT
35 public:
36 StyleEngine(QObject * parent = 0);
37 ~StyleEngine();
39 void readProperties( const KConfigGroup& cfg );
40 void saveProperties( KConfigGroup& cfg );
42 const QColor& firstForegroundColor() const;
43 const QColor& secondForegroundColor() const;
44 const QColor& alarmColor() const;
45 const QColor& backgroundColor() const;
47 uint fontSize() const;
49 const QColor& sensorColor( int pos );
50 uint numSensorColors() const;
52 private:
54 QColor mFirstForegroundColor;
55 QColor mSecondForegroundColor;
56 QColor mAlarmColor;
57 QColor mBackgroundColor;
58 uint mFontSize;
59 QList<QColor> mSensorColors;
61 extern StyleEngine* Style;
65 #endif