Warning, /plasma/kdeplasma-addons/applets/timer/package/contents/ui/configAppearance.qml is written in an unsupported language. File is not indexed.

0001     /*
0002  *  SPDX-FileCopyrightText: 2015 Bernhard Friedreich <friesoft@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 import QtQuick 2.5
0008 import QtQuick.Controls 2.5 as QQC2
0009 import QtQuick.Layouts 1.0
0010 
0011 import org.kde.kirigami 2.5 as Kirigami
0012 import org.kde.kcmutils as KCM
0013 
0014 KCM.SimpleKCM {
0015     property alias cfg_showTitle: showTitle.checked
0016     property alias cfg_title: title.text
0017 
0018     property alias cfg_showRemainingTime: showRemainingTime.checked
0019     property alias cfg_showSeconds: showSeconds.checked
0020     property alias cfg_showTimerToggle: showTimerToggle.checked
0021     property alias cfg_showProgressBar: showProgressBar.checked
0022 
0023     property alias cfg_showNotification: showNotification.checked
0024     property alias cfg_notificationText: notificationText.text
0025 
0026     Kirigami.FormLayout {
0027         RowLayout {
0028             Layout.fillWidth: true
0029 
0030             Kirigami.FormData.label: i18nc("@title:label", "Display:")
0031 
0032             QQC2.CheckBox {
0033                 id: showTitle
0034 
0035                 text: i18nc("@option:check", "Show title:");
0036                 onClicked: {
0037                     if (checked) {
0038                         title.forceActiveFocus();
0039                     }
0040                 }
0041             }
0042 
0043             QQC2.TextField {
0044                 id: title
0045                 Layout.fillWidth: true
0046                 enabled: showTitle.checked
0047             }
0048         }
0049 
0050         QQC2.CheckBox {
0051             id: showRemainingTime
0052             text: i18nc("@option:check", "Show remaining time");
0053         }
0054 
0055         QQC2.CheckBox {
0056             id: showSeconds
0057             enabled: showRemainingTime.checked
0058             text: i18nc("@option:check", "Show seconds");
0059         }
0060 
0061         QQC2.CheckBox {
0062             id: showTimerToggle
0063             text: i18nc("@option:check", "Show timer toggle");
0064         }
0065 
0066         QQC2.CheckBox {
0067             id: showProgressBar
0068             text: i18nc("@option:check", "Show progress bar");
0069         }
0070 
0071         Item {
0072             Kirigami.FormData.isSection: true
0073         }
0074 
0075         RowLayout {
0076             Layout.fillWidth: true
0077 
0078             Kirigami.FormData.label: i18nc("@title:label", "Notifications:")
0079 
0080             QQC2.CheckBox {
0081                 id: showNotification
0082                 text: i18nc("@option:check", "Show notification text:");
0083                 onClicked: {
0084                     if (checked) {
0085                         notificationText.forceActiveFocus();
0086                     }
0087                 }
0088             }
0089 
0090             QQC2.TextField {
0091                 id: notificationText
0092                 Layout.fillWidth: true
0093                 enabled: showNotification.checked
0094             }
0095         }
0096     }
0097 }
0098