2
* Copyright 2015 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
32
anchors.horizontalCenter: parent.horizontalCenter;
35
UndoKey { leftSide: true; width: panel.keyWidth; }
37
label: layout.state == "kana" ? "あ" : "@ / : _";
38
leaves: layout.state == "kana" ? ["あ", "い", "う", "え", "お"] : ["@", "/", ":", "_", "1"];
39
annotation: layout.state == "kana" ? "" : "1";
42
label: layout.state == "kana" ? "か" : "ABC";
43
leaves: layout.state == "kana" ? ["か", "き", "く", "け", "こ"] : ["a", "b", "c", "#", "2"];
44
annotation: layout.state == "kana" ? "" : "2#";
47
label: layout.state == "kana" ? "さ" : "DEF";
48
leaves: layout.state == "kana" ? ["さ", "し", "す", "せ", "そ"] : ["d", "e", "f", "$", "3"];
49
annotation: layout.state == "kana" ? "" : "3$";
51
BackspaceKey { rightSide: true; width: panel.keyWidth; }
55
anchors.horizontalCenter: parent.horizontalCenter;
58
CursorKey { action: "left"; }
60
label: layout.state == "kana" ? "た" : "GHI";
61
leaves: layout.state == "kana" ? ["た", "ち", "つ", "て", "と"] : ["g", "h", "i", "(", "4"];
62
annotation: layout.state == "kana" ? "" : "4(";
65
label: layout.state == "kana" ? "な" : "JKL";
66
leaves: layout.state == "kana" ? ["な", "に", "ぬ", "ね", "の"] : ["j", "k", "l", "\"", "5"];
67
annotation: layout.state == "kana" ? "" : "5\"";
70
label: layout.state == "kana" ? "は" : "MNO";
71
leaves: layout.state == "kana" ? ["は", "ひ", "ふ", "へ", "ほ"] : ["m", "n", "o", ")", "6"];
72
annotation: layout.state == "kana" ? "" : "6)";
74
CursorKey { action: "right"; }
78
anchors.horizontalCenter: parent.horizontalCenter;
81
LanguageKey { id: languageMenuButton; height: panel.keyHeight; }
83
label: layout.state == "kana" ? "ま" : "PQRS"
84
leaves: layout.state == "kana" ? ["ま", "み", "む", "め", "も"] : ["p", "q", "r", "s", "7"]
85
annotation: layout.state == "kana" ? "" : "7"
88
label: layout.state == "kana" ? "や" : "TUV"
89
leaves: layout.state == "kana" ? ["や", "(", "ゆ", ")", "よ"] : ["t", "u", "v", "'", "8"]
90
annotation: layout.state == "kana" ? "" : "8'"
93
label: layout.state == "kana" ? "ら" : "WXYZ"
94
leaves: layout.state == "kana" ? ["ら", "り", "る", "れ", "ろ"] : ["w", "x", "y", "z", "9"]
95
annotation: layout.state == "kana" ? "" : "9"
97
ActionKey { label: "記号"; action: "symbol"; width: panel.keyWidth; }
101
anchors.horizontalCenter: parent.horizontalCenter;
104
KanaSwitchKey { id: layout; default_state: "alnum" }
105
ModifierKey { layoutState: layout.state; }
107
label: layout.state == "kana" ? "わ" : "- + *"
108
leaves: layout.state == "kana" ? ["わ", "を", "ん", "ー"] : ["-", "+", "0", "*"];
109
annotation: layout.state == "kana" ? "" : "0";
112
label: layout.state == "kana" ? "、。" : ". ,";
113
leaves: layout.state == "kana" ? ["、", "。", "!", "?"] :
114
[".", ",", "<font size=\"1\">.com</font>", "<font size=\"1\">.jp</font>"];
115
unstyledLeaves: layout.state == "kana" ? ["、", "。", "!", "?"] : [".", ",", ".com", ".jp"];
116
annotation: layout.state == "kana" ? "" : ".com .jp"
118
CommitKey { id: enterKey; width: panel.keyWidth; }