2007-11-29 15:32:50 +00:00
|
|
|
/********************************************************************
|
|
|
|
This file contains the B2 configuration widget
|
|
|
|
|
|
|
|
Copyright (c) 2001
|
|
|
|
Karol Szwed <gallium@kde.org>
|
|
|
|
http://gallium.n3.net/
|
|
|
|
Copyright (c) 2007
|
|
|
|
Luciano Montanaro <mikelima@cirulla.net>
|
2009-11-18 12:48:48 +00:00
|
|
|
Automove titlebar bits Copyright (c) 2009 Jussi Kekkonen <tmt@ubuntu.com>
|
2007-11-29 15:32:50 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*********************************************************************/
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
#ifndef _KDE_B2CONFIG_H
|
|
|
|
#define _KDE_B2CONFIG_H
|
|
|
|
|
|
|
|
#include <QCheckBox>
|
2007-06-09 08:38:23 +00:00
|
|
|
#include <QGroupBox>
|
2007-04-29 17:35:43 +00:00
|
|
|
#include <QLabel>
|
2009-10-30 08:10:35 +00:00
|
|
|
#include <KComboBox>
|
2007-04-29 17:35:43 +00:00
|
|
|
#include <kconfig.h>
|
|
|
|
|
|
|
|
class B2Config: public QObject
|
|
|
|
{
|
2007-06-09 08:38:23 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
B2Config(KConfig *conf, QWidget *parent);
|
|
|
|
~B2Config();
|
|
|
|
|
|
|
|
// These public signals/slots work similar to KCM modules
|
|
|
|
signals:
|
|
|
|
void changed();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void load(const KConfigGroup &conf);
|
|
|
|
void save(KConfigGroup &conf);
|
|
|
|
void defaults();
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void slotSelectionChanged(); // Internal use
|
|
|
|
|
|
|
|
private:
|
|
|
|
KConfig *b2Config;
|
|
|
|
QCheckBox *cbColorBorder;
|
|
|
|
QCheckBox *showGrabHandleCb;
|
2009-11-18 12:48:48 +00:00
|
|
|
QCheckBox *autoMoveTitlebarCb;
|
2007-06-09 08:38:23 +00:00
|
|
|
QGroupBox *actionsGB;
|
2009-10-30 08:10:35 +00:00
|
|
|
KComboBox *menuDblClickOp;
|
2007-06-09 08:38:23 +00:00
|
|
|
QWidget *gb;
|
2007-04-29 17:35:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2007-06-09 08:38:23 +00:00
|
|
|
// vi: sw=4 ts=8
|