add more spacing
[personal-kdebase.git] / workspace / kwin / clients / modernsystem / config / config.h
blob743b12dbf8aab58c88616be7ad854e0f63d722e4
1 /********************************************************************
2 This program is free software; you can redistribute it and/or modify
3 it under the terms of the GNU General Public License as published by
4 the Free Software Foundation; either version 2 of the License, or
5 (at your option) any later version.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *********************************************************************/
16 #ifndef __KDE_MODSYSTEMCONFIG_H
17 #define __KDE_MODSYSTEMCONFIG_H
19 #include <QCheckBox>
20 #include <QLayout>
22 #include <QSlider>
23 #include <QLabel>
24 //Added by qt3to4:
25 #include <QVBoxLayout>
26 #include <kvbox.h>
28 class KConfig;
29 class KConfigGroup;
31 class ModernSysConfig : public QObject
33 Q_OBJECT
35 public:
36 ModernSysConfig(KConfig* conf, QWidget* parent);
37 ~ModernSysConfig();
39 // These public signals/slots work similar to KCM modules
40 signals:
41 void changed();
43 public slots:
44 void load(const KConfigGroup& conf);
45 void save(KConfigGroup& conf);
46 void defaults();
48 protected slots:
49 void slotSelectionChanged(); // Internal use
51 private:
52 KConfig *clientrc;
53 QWidget *mainw;
54 QVBoxLayout *vbox;
55 QWidget *handleBox;
56 QCheckBox *cbShowHandle;
57 KVBox *sliderBox;
58 QSlider *handleSizeSlider;
59 KHBox *hbox;
60 QLabel *label1;
61 QLabel *label2;
62 QLabel *label3;
64 unsigned handleWidth;
65 unsigned handleSize;
70 #endif