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.Window 2.2 | ||||
24 | import QtQuick.Dialogs 1.0 as QtDialogs | ||||
25 | import QtQuick.Controls 2.12 as QQC2 | ||||
26 | import org.kde.kirigami 2.4 as Kirigami | ||||
27 | import org.kde.kcm 1.1 as KCM | ||||
28 | | ||||
29 | ColumnLayout { | ||||
30 | QQC2.GroupBox { | ||||
31 | id: audibleBell | ||||
32 | text: i18n("Audible Bell") | ||||
33 | | ||||
34 | ColumnLayout { | ||||
35 | QQC2.CheckBox { | ||||
36 | id: systemBell | ||||
37 | text: i18n("Use system bell") | ||||
38 | } | ||||
39 | QQC2.CheckBox { | ||||
40 | id: customBell | ||||
41 | text: i18n("Use custom bell") | ||||
42 | } | ||||
43 | RowLayout { | ||||
44 | QQC2.TextField { | ||||
45 | placeholderText: i18n("Sound to play"); | ||||
46 | } | ||||
47 | QQC2.Button { | ||||
48 | texT: i18n("Browse") | ||||
49 | } | ||||
50 | } | ||||
51 | } | ||||
52 | } | ||||
53 | | ||||
54 | QQC2.GroupBox { | ||||
55 | id: visualBell | ||||
56 | text: i18n("Visual Bell") | ||||
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 | Rectanble { // 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 | } |