not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / clients / plastik / config / config.h
blob03ab3a65d09014ea5923d9e8253e1b0076ab3b36
1 /* Plastik KWin window decoration
2 Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
4 based on the window decoration "Web":
5 Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #ifndef KNIFTYCONFIG_H
24 #define KNIFTYCONFIG_H
26 #include <QObject>
27 #include "ui_configdialog.h"
28 class KConfig;
30 class ConfigDialog : public QWidget, public Ui::ConfigDialog
32 public:
33 ConfigDialog( QWidget *parent ) : QWidget( parent ) {
34 setupUi( this );
39 class PlastikConfig : public QObject
41 Q_OBJECT
42 public:
43 PlastikConfig(KConfig* config, QWidget* parent);
44 ~PlastikConfig();
46 signals:
47 void changed();
49 public slots:
50 void load(const KConfigGroup &config);
51 void save(KConfigGroup &config);
52 void defaults();
54 private:
55 KConfig *m_config;
56 ConfigDialog *m_dialog;
59 #endif // KNIFTYCONFIG_H