Changeset View
Changeset View
Standalone View
Standalone View
kcms/access/package/contents/ui/Bell.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2018 Tomaz Canabrava <tcanabrava@kde.org> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2 of | ||||
7 | * the License or (at your option) version 3 or any later version | ||||
8 | * accepted by the membership of KDE e.V. (or its successor approved | ||||
9 | * by the membership of KDE e.V.), which shall act as a proxy | ||||
10 | * defined in Section 14 of version 3 of the license. | ||||
11 | * | ||||
12 | * This program is distributed in the hope that it will be useful, | ||||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | * GNU General Public License for more details. | ||||
16 | * | ||||
17 | * You should have received a copy of the GNU General Public License | ||||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
19 | */ | ||||
20 | | ||||
21 | import QtQuick 2.6 | ||||
22 | import QtQuick.Layouts 1.1 | ||||
23 | import QtQuick.Controls 2.12 as QQC2 | ||||
24 | import org.kde.kcm 1.1 as KCM | ||||
25 | | ||||
26 | ColumnLayout { | ||||
27 | QQC2.GroupBox { | ||||
28 | id: audibleBell | ||||
29 | label: QQC2.Label { text: i18n("Audible Bell") } | ||||
30 | | ||||
31 | Layout.fillWidth: true | ||||
32 | ColumnLayout { | ||||
33 | QQC2.CheckBox { | ||||
34 | id: systemBell | ||||
35 | text: i18n("Use system bell") | ||||
36 | } | ||||
37 | QQC2.CheckBox { | ||||
38 | id: customBell | ||||
39 | text: i18n("Use custom bell") | ||||
40 | } | ||||
41 | RowLayout { | ||||
42 | QQC2.TextField { | ||||
43 | placeholderText: i18n("Sound to play"); | ||||
44 | } | ||||
45 | QQC2.Button { | ||||
46 | text: i18n("Browse") | ||||
47 | } | ||||
48 | } | ||||
49 | } | ||||
50 | } | ||||
51 | | ||||
52 | QQC2.GroupBox { | ||||
53 | id: visualBell | ||||
54 | label: QQC2.Label { text: i18n("Visual Bell") } | ||||
55 | Layout.fillWidth: true | ||||
56 | | ||||
57 | ColumnLayout { | ||||
58 | QQC2.CheckBox { | ||||
59 | id: useVisualBell | ||||
60 | text: i18n("Use visual bell") | ||||
61 | } | ||||
62 | QQC2.RadioButton { | ||||
63 | id: invertScreen | ||||
64 | text: i18n("Invert Screen") | ||||
65 | } | ||||
66 | RowLayout { | ||||
67 | QQC2.RadioButton { | ||||
68 | id: flashScreen | ||||
69 | text: i18n("Flash") | ||||
70 | } | ||||
71 | Rectangle { // Should be a color picker. | ||||
72 | color: "black"; | ||||
73 | } | ||||
74 | } | ||||
75 | RowLayout { | ||||
76 | QQC2.Label { | ||||
77 | text: i18n("Duration") | ||||
78 | } | ||||
79 | QQC2.SpinBox { | ||||
80 | id: duration | ||||
81 | } | ||||
82 | } | ||||
83 | } | ||||
84 | } | ||||
85 | Item { | ||||
86 | Layout.fillWidth: true | ||||
87 | Layout.fillHeight: true | ||||
88 | } | ||||
89 | } |