/*SPDX-FileCopyrightText: 2018 Tomaz Canabrava <tcanabrava@kde.org>SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL*/import QtQuick 2.6import QtQuick.Layouts 1.1import QtQuick.Controls 2.12 as QQC2import org.kde.kcmutils as KCMimport org.kde.kirigami 2.3 as KirigamiKirigami.FormLayout {property var screenReaderInstalled : nullQQC2.CheckBox {text: i18n("Enable Screen Reader")KCM.SettingStateBinding {configObject: kcm.screenReaderSettingssettingName: "Enabled"}checked: kcm.screenReaderSettings.enabledonToggled: kcm.screenReaderSettings.enabled = checked}QQC2.Button {text: i18n("Launch Orca Screen Reader Configurationβ¦")enabled: !kcm.screenReaderSettings.isImmutable("Enabled") && screenReaderInstalledonClicked: kcm.launchOrcaConfiguration()}QQC2.Label {text: kcm.orcaLaunchFeedbacktextFormat: Text.PlainText}QQC2.Label {Layout.fillWidth: truewrapMode: Text.Wraptext: screenReaderInstalled? i18n("Please note that you may have to log out or reboot once to allow the screen reader to work properly."): i18n("It appears that the Orca Screen Reader is not installed. Please install it before trying to use this feature, and then log out or reboot")textFormat: Text.PlainText}onVisibleChanged: {if (visible === true && screenReaderInstalled === null) {screenReaderInstalled = kcm.orcaInstalled()}}}