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

« back to all changes in this revision

Viewing changes to kwin/clients/b2/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
/********************************************************************
 
2
        This file contains the B2 configuration widget
 
3
 
 
4
        Copyright (c) 2001
 
5
                Karol Szwed <gallium@kde.org>
 
6
                http://gallium.n3.net/
 
7
        Copyright (c) 2007
 
8
                Luciano Montanaro <mikelima@cirulla.net>
 
9
        Automove titlebar bits Copyright (c) 2009 Jussi Kekkonen <tmt@ubuntu.com>
 
10
 
 
11
This program is free software; you can redistribute it and/or modify
 
12
it under the terms of the GNU General Public License as published by
 
13
the Free Software Foundation; either version 2 of the License, or
 
14
(at your option) any later version.
 
15
 
 
16
This program is distributed in the hope that it will be useful,
 
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
GNU General Public License for more details.
 
20
 
 
21
You should have received a copy of the GNU General Public License
 
22
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
23
*********************************************************************/
 
24
 
 
25
#ifndef _KDE_B2CONFIG_H
 
26
#define _KDE_B2CONFIG_H
 
27
 
 
28
#include <QCheckBox>
 
29
#include <QGroupBox>
 
30
#include <QLabel>
 
31
#include <KComboBox>
 
32
#include <kconfig.h>
 
33
 
 
34
class B2Config: public QObject
 
35
{
 
36
    Q_OBJECT
 
37
 
 
38
public:
 
39
    B2Config(KConfig *conf, QWidget *parent);
 
40
    ~B2Config();
 
41
 
 
42
    // These public signals/slots work similar to KCM modules
 
43
signals:
 
44
    void changed();
 
45
 
 
46
public slots:
 
47
    void load(const KConfigGroup &conf);        
 
48
    void save(KConfigGroup &conf);
 
49
    void defaults();
 
50
 
 
51
protected slots:
 
52
    void slotSelectionChanged(); // Internal use
 
53
 
 
54
private:
 
55
    KConfig *b2Config;
 
56
    QCheckBox *cbColorBorder;
 
57
    QCheckBox *showGrabHandleCb;
 
58
    QCheckBox *autoMoveTitlebarCb;
 
59
    QGroupBox *actionsGB;
 
60
    KComboBox *menuDblClickOp;
 
61
    QWidget *gb;
 
62
};
 
63
 
 
64
#endif
 
65
 
 
66
// vi: sw=4 ts=8