2023-09-08 02:38:02 +03:00
|
|
|
/* This file is part of the KDE project
|
|
|
|
Copyright (C) 2023 Ivailo Monev <xakepa10@gmail.com>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License version 2, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This library 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public License
|
|
|
|
along with this library; see the file COPYING.LIB. If not, write to
|
|
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KEYBOARDOPTIONSDIALOG_H
|
|
|
|
#define KEYBOARDOPTIONSDIALOG_H
|
|
|
|
|
|
|
|
#include <QGridLayout>
|
2023-09-08 04:09:57 +03:00
|
|
|
#include <QTreeWidget>
|
2023-09-08 02:38:02 +03:00
|
|
|
#include <kdialog.h>
|
2023-09-08 05:56:19 +03:00
|
|
|
#include <kmessagewidget.h>
|
2023-09-08 02:38:02 +03:00
|
|
|
|
|
|
|
class KCMKeyboardOptionsDialog : public KDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
KCMKeyboardOptionsDialog(QWidget *parent);
|
|
|
|
~KCMKeyboardOptionsDialog();
|
|
|
|
|
|
|
|
QByteArray options() const;
|
|
|
|
void setOptions(const QByteArray &options);
|
|
|
|
|
2023-09-08 04:09:57 +03:00
|
|
|
private Q_SLOTS:
|
|
|
|
void slotItemChanged(QTreeWidgetItem*,int);
|
|
|
|
|
2023-09-08 02:38:02 +03:00
|
|
|
private:
|
|
|
|
QWidget* m_widget;
|
|
|
|
QGridLayout* m_layout;
|
2023-09-08 05:56:19 +03:00
|
|
|
KMessageWidget* m_optionswidget;
|
2023-09-08 04:09:57 +03:00
|
|
|
QTreeWidget* m_optionstree;
|
|
|
|
QList<QByteArray> m_options;
|
|
|
|
QString m_enabledi18n;
|
|
|
|
QString m_disabledi18n;
|
2023-09-08 02:38:02 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // KEYBOARDOPTIONSDIALOG_H
|