~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kwin/clients/plastik/config/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Plastik KWin window decoration
 
2
  Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
 
3
 
 
4
  based on the window decoration "Web":
 
5
  Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
 
6
 
 
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.
 
11
 
 
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.
 
16
 
 
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.
 
21
 */
 
22
 
 
23
#ifndef KNIFTYCONFIG_H
 
24
#define KNIFTYCONFIG_H
 
25
 
 
26
#include <QObject>
 
27
#include "ui_configdialog.h"
 
28
class KConfig;
 
29
 
 
30
class PlastikConfigDialog : public QWidget, public Ui::PlastikConfigDialog
 
31
{
 
32
public:
 
33
  PlastikConfigDialog( QWidget *parent ) : QWidget( parent ) {
 
34
    setupUi( this );
 
35
  }
 
36
};
 
37
 
 
38
 
 
39
class PlastikConfig : public QObject
 
40
{
 
41
    Q_OBJECT
 
42
public:
 
43
    PlastikConfig(KConfig* config, QWidget* parent);
 
44
    ~PlastikConfig();
 
45
 
 
46
signals:
 
47
    void changed();
 
48
 
 
49
public slots:
 
50
    void load(const KConfigGroup &config);
 
51
    void save(KConfigGroup &config);
 
52
    void defaults();
 
53
 
 
54
private:
 
55
    KConfig *m_config;
 
56
    PlastikConfigDialog *m_dialog;
 
57
};
 
58
 
 
59
#endif // KNIFTYCONFIG_H