2
This is the new kwindecoration kcontrol module
5
Karol Szwed <gallium@kde.org>
7
Copyright 2009, 2010 Martin Gräßlin <kde@martin-graesslin.com>
9
Supports new kwin configuration plugins, and titlebar button position
10
modification via dnd interface.
12
Based on original "kwintheme" (Window Borders)
13
Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
15
This program is free software; you can redistribute it and/or modify
16
it under the terms of the GNU General Public License as published by
17
the Free Software Foundation; either version 2 of the License, or
18
(at your option) any later version.
20
This program is distributed in the hope that it will be useful,
21
but WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
GNU General Public License for more details.
25
You should have received a copy of the GNU General Public License
26
along with this program; if not, write to the Free Software
27
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31
#ifndef KWINDECORATION_H
32
#define KWINDECORATION_H
37
#include <kdecoration.h>
39
#include "ui_decoration.h"
41
class QSortFilterProxyModel;
45
class DecorationModel;
47
class KWinDecorationForm : public QWidget, public Ui::KWinDecorationForm
52
explicit KWinDecorationForm(QWidget* parent);
55
class KWinDecorationModule : public KCModule, public KDecorationDefines
60
KWinDecorationModule(QWidget* parent, const QVariantList &);
61
~KWinDecorationModule();
65
virtual void defaults();
67
QString quickHelp() const;
70
void pluginLoad(const KConfigGroup& conf);
71
void pluginSave(KConfigGroup &conf);
72
void pluginDefaults();
75
// Allows us to turn "save" on
76
void slotSelectionChanged();
77
void slotConfigureButtons();
78
void slotGHNSClicked();
79
void slotConfigureDecoration();
82
void readConfig(const KConfigGroup& conf);
83
void writeConfig(KConfigGroup &conf);
85
KSharedConfigPtr kwinConfig;
87
KWinDecorationForm* m_ui;
89
bool m_customPositions;
90
QString m_leftButtons;
91
QString m_rightButtons;
93
DecorationModel* m_model;
94
QSortFilterProxyModel* m_proxyModel;