1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.0
import "../keys"
import "../keys/key_constants.js" as UI
KeyPad {
anchors.fill: parent
content: c1
Column {
id: c1
anchors.fill: parent
anchors.margins: 0;
spacing: 0
Row {
anchors.horizontalCenter: parent.horizontalCenter;
anchors.margins: 50;
spacing: 0
CharKey { label: "1"; shifted: "€"; leftSide: true; }
CharKey { label: "2"; shifted: "£"; }
CharKey { label: "3"; shifted: "$"; }
CharKey { label: "4"; shifted: "¥"; }
CharKey { label: "5"; shifted: "₹"; }
CharKey { label: "6"; shifted: "%"; }
CharKey { label: "7"; shifted: "<"; }
CharKey { label: "8"; shifted: ">"; }
CharKey { label: "9"; shifted: "["; }
CharKey { label: "0"; shifted: "]"; rightSide: true; }
}
Row {
anchors.horizontalCenter: parent.horizontalCenter;
anchors.margins: 50;
spacing: 0
CharKey { label: "*"; shifted: "`"; leftSide: true; }
CharKey { label: "#"; shifted: "^"; }
CharKey { label: "+"; shifted: "|"; }
CharKey { label: "-"; shifted: "_"; extended: ["—", "–", "•"]; }
CharKey { label: "="; shifted: "§"; }
CharKey { label: "("; shifted: "{"; }
CharKey { label: ")"; shifted: "}"; }
CharKey { label: "!"; shifted: "¡"; }
CharKey { label: "?"; shifted: "¿"; rightSide: true; }
}
Row {
anchors.horizontalCenter: parent.horizontalCenter;
anchors.margins: 50;
spacing: 0
OneTwoKey { label: "1/2"; shifted: "2/2"; fontSize: units.gu(UI.fontSize); }
CharKey { label: "@"; shifted: "«"; }
CharKey { label: "~"; shifted: "»"; }
CharKey { label: "/"; shifted: "\""; }
CharKey { label: "\\"; shifted: "“"; }
CharKey { label: "'"; shifted: "”"; switchBackFromSymbols: true; }
CharKey { label: ";"; shifted: "„"; }
CharKey { label: ":"; shifted: "&"; }
BackspaceKey {}
}
Item {
anchors.left: parent.left
anchors.right: parent.right
height: panel.keyHeight + units.gu(UI.bottom_margin*2);
SymbolShiftKey { id: symShiftKey; label: "ABC"; shifted: "ABC"; anchors.left: parent.left; height: parent.height; }
CharKey { id: commaKey; label: ","; shifted: "/"; anchors.left: symShiftKey.right; height: parent.height; }
SpaceKey { id: spaceKey; anchors.left: commaKey.right; anchors.right: dotKey.left; noMagnifier: true; height: parent.height }
CharKey { id: dotKey; label: "."; shifted: "."; anchors.right: enterKey.left; height: parent.height; }
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
}
} // column
}
|