Warning, /utilities/mycroft-plasmoid/plasmoid/contents/ui/config/configGeneral.qml is written in an unsupported language. File is not indexed.
0001 /* Copyright 2019 Aditya Mehra <aix.m@outlook.com>
0002
0003 This library is free software; you can redistribute it and/or
0004 modify it under the terms of the GNU Lesser General Public
0005 License as published by the Free Software Foundation; either
0006 version 2.1 of the License, or (at your option) version 3, or any
0007 later version accepted by the membership of KDE e.V. (or its
0008 successor approved by the membership of KDE e.V.), which shall
0009 act as a proxy defined in Section 6 of version 3 of the license.
0010
0011 This library is distributed in the hope that it will be useful,
0012 but WITHOUT ANY WARRANTY; without even the implied warranty of
0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0014 Lesser General Public License for more details.
0015
0016 You should have received a copy of the GNU Lesser General Public
0017 License along with this library. If not, see <http://www.gnu.org/licenses/>.
0018 */
0019
0020 import QtQuick 2.9
0021 import QtQml.Models 2.2
0022 import QtQuick.Controls 2.2
0023 import QtQuick.Layouts 1.3
0024 import org.kde.plasma.core 2.0 as PlasmaCore
0025 import org.kde.plasma.plasmoid 2.0
0026 import org.kde.plasma.components 2.0 as PlasmaComponents
0027 import org.kde.plasma.extras 2.0 as PlasmaExtras
0028 import org.kde.kirigami 2.5 as Kirigami
0029 import Mycroft 1.0 as Mycroft
0030
0031 Item {
0032 id: page
0033 property alias cfg_websocketAddress: websocketAddress.text
0034 property alias cfg_notificationSwitch: notificationSwitch.checked
0035 property alias cfg_enableRemoteTTS: enableRemoteTTS.checked
0036 property alias cfg_enableRemoteSTT: enableRemoteSTT.checked
0037
0038 Kirigami.FormLayout {
0039 anchors.left: parent.left
0040 anchors.right: parent.right
0041
0042 PlasmaComponents.TextField {
0043 id: websocketAddress
0044 Layout.fillWidth: true
0045 Kirigami.FormData.label: i18n("Websocket Address:")
0046 Component.onCompleted: {
0047 websocketAddress.text = Mycroft.GlobalSettings.webSocketAddress
0048 }
0049 }
0050
0051 CheckBox {
0052 id: notificationSwitch
0053 Kirigami.FormData.label: i18n ("Additional Settings:")
0054 text: i18n("Enable Notifications")
0055 checked: true
0056 }
0057
0058 CheckBox {
0059 id: enableRemoteTTS
0060 text: i18n("Enable Remote TTS")
0061 checked: Mycroft.GlobalSettings.usesRemoteTTS
0062 onCheckedChanged: Mycroft.GlobalSettings.usesRemoteTTS = checked
0063 }
0064 }
0065 }
0066