/** Copyright 2018 Tomaz Canabrava <tcanabrava@kde.org>** 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) version 3 or any later version* accepted by the membership of KDE e.V. (or its successor approved* by the membership of KDE e.V.), which shall act as a proxy* defined in Section 14 of version 3 of the license.** 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/>.*/import QtQuick 2.6import QtQuick.Layouts 1.1import QtQuick.Controls 2.12 as QQC2import org.kde.kcm 1.3 as KCMimport org.kde.kirigami 2.3 as KirigamiKirigami.FormLayout {QQC2.CheckBox {Kirigami.FormData.label: i18n("Sticky keys:")text: i18nc("Enable sticky keys", "Enable")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeys"}checked: kcm.keyboardSettings.stickyKeysonToggled: kcm.keyboardSettings.stickyKeys = checked}QQC2.CheckBox {text: i18nc("Lock sticky keys", "Lock")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeysLatch"extraEnabledConditions: kcm.keyboardSettings.stickyKeys}checked: kcm.keyboardSettings.stickyKeysLatchonToggled: kcm.keyboardSettings.stickyKeysLatch = checked}QQC2.CheckBox {id: stickyKeysAutoOfftext: i18n("Disable when two keys are held down")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeysAutoOff"extraEnabledConditions: kcm.keyboardSettings.stickyKeys}checked: kcm.keyboardSettings.stickyKeysAutoOffonToggled: kcm.keyboardSettings.stickyKeysAutoOff = checked}QQC2.CheckBox {text: i18n("Ring system bell when modifier keys are used")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeysBeep"extraEnabledConditions: kcm.keyboardSettings.stickyKeys}checked: kcm.keyboardSettings.stickyKeysBeeponToggled: kcm.keyboardSettings.stickyKeysBeep = checked}Item {Kirigami.FormData.isSection: true}QQC2.CheckBox {Kirigami.FormData.label: i18n("Feedback:")text: i18n("Ring system bell when locking keys are toggled")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "ToggleKeysBeep"}checked: kcm.keyboardSettings.toggleKeysBeeponToggled: kcm.keyboardSettings.toggleKeysBeep = checked}QQC2.CheckBox {text: i18n("Show notification when modifier or locking keys are used")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "KeyboardNotifyModifiers"}checked: kcm.keyboardSettings.keyboardNotifyModifiersonToggled: kcm.keyboardSettings.keyboardNotifyModifiers = checked}QQC2.Button {id: thistext: i18n("Configure Notifications...")icon.name: "preferences-desktop-notification"onClicked: kcm.configureKNotify(this)}}