Changeset View
Changeset View
Standalone View
Standalone View
kcms/new-keyboard/package/contents/ui/Layouts.qml
- This file was added.
1 | import QtQuick 2.1 | ||||
---|---|---|---|---|---|
2 | import QtQuick.Layouts 1.3 | ||||
3 | import QtQuick.Controls 2.3 as Controls | ||||
4 | import org.kde.kirigami 2.3 as Kirigami | ||||
5 | import org.kde.kcm 1.1 as KCM | ||||
6 | | ||||
7 | KCM.SimpleKCM { | ||||
8 | id: root | ||||
9 | | ||||
10 | anchors.fill: parent | ||||
11 | | ||||
12 | Kirigami.FormLayout { | ||||
13 | id: formLayout | ||||
14 | | ||||
15 | Column { | ||||
16 | Kirigami.FormData.label: i18n("Layout Indicator") | ||||
17 | | ||||
18 | Controls.CheckBox { | ||||
19 | id: layout_indicator_show; | ||||
20 | text: i18n("Show layout indicator"); | ||||
21 | } | ||||
22 | Controls.CheckBox { | ||||
23 | id: single_layout_show; | ||||
24 | text: i18n("Show for single layout"); | ||||
25 | } | ||||
26 | } | ||||
27 | | ||||
28 | Column { | ||||
29 | Kirigami.FormData.label: i18n("Layout Indicator Icon") | ||||
30 | | ||||
31 | Controls.RadioButton { | ||||
32 | id: show_flag; | ||||
33 | text: i18n("Show flag"); | ||||
34 | } | ||||
35 | Controls.RadioButton { | ||||
36 | id: show_label; | ||||
37 | text: i18n("Show label"); | ||||
38 | } | ||||
39 | Controls.RadioButton { | ||||
40 | id: show_label_on_flag; | ||||
41 | text: i18n("Show label on flag"); | ||||
42 | } | ||||
43 | } | ||||
44 | | ||||
45 | Item { | ||||
46 | Kirigami.FormData.isSection: true | ||||
47 | } | ||||
48 | | ||||
49 | Controls.ComboBox { | ||||
50 | Kirigami.FormData.label: i18n("Switching Policy") | ||||
51 | | ||||
52 | model: [i18n("Global"), i18n("Desktop"), i18n("Application"), i18n("Window")] | ||||
53 | } | ||||
54 | | ||||
55 | Item { | ||||
56 | Kirigami.FormData.isSection: true | ||||
57 | Kirigami.FormData.label: i18n("Shortcuts for Switching Layout") | ||||
58 | } | ||||
59 | | ||||
60 | Controls.Button { | ||||
61 | Kirigami.FormData.label: i18n("Main shortcuts") | ||||
62 | implicitWidth: 200 | ||||
63 | } | ||||
64 | Controls.Button { | ||||
65 | Kirigami.FormData.label: i18n("3rd level shortcut") | ||||
66 | implicitWidth: 200 | ||||
67 | } | ||||
68 | Controls.Button { | ||||
69 | Kirigami.FormData.label: i18n("Alternative shortcut") | ||||
70 | implicitWidth: 200 | ||||
71 | } | ||||
72 | | ||||
73 | ListView { | ||||
74 | id: layout_list | ||||
75 | Kirigami.FormData.isSection: true | ||||
76 | | ||||
77 | contentWidth: headerItem.width | ||||
78 | | ||||
79 | header: Row { | ||||
80 | spacing: 1 | ||||
81 | function itemAt(index) { return repeater.itemAt(index) } | ||||
82 | Repeater { | ||||
83 | id: repeater | ||||
84 | model: ["Map", "Layout", "Variant", "Label", "Shortcut"] | ||||
85 | Controls.Label { | ||||
86 | text: modelData | ||||
87 | font.bold: true | ||||
88 | padding: 5 | ||||
89 | background: Rectangle { color: "white" } | ||||
90 | } | ||||
91 | } | ||||
92 | } | ||||
93 | } | ||||
94 | | ||||
95 | | ||||
96 | } | ||||
97 | } |