~kokoye2007/ubuntu-keyboard/ubuntu-keyboard

« back to all changes in this revision

Viewing changes to plugins/tdd/qml/Keyboard_tdd_email.qml

  • Committer: kokoye2007
  • Date: 2014-09-26 19:22:29 UTC
  • Revision ID: kokoye2007@gmail.com-20140926192229-wek16jbuzytzabaw
Tai Le Keyboard - tdd

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.0
 
18
import "../../keys"
 
19
 
 
20
KeyPad {
 
21
    anchors.fill: parent
 
22
 
 
23
    content: c1
 
24
    symbols: "languages/Keyboard_symbols.qml"
 
25
 
 
26
    Column {
 
27
        id: c1
 
28
        anchors.fill: parent
 
29
        spacing: 0
 
30
 
 
31
        Row {
 
32
            anchors.horizontalCenter: parent.horizontalCenter;
 
33
            spacing: 0
 
34
 
 
35
            CharKey { label: "q"; shifted: "Q"; }
 
36
            CharKey { label: "w"; shifted: "W"; }
 
37
            CharKey { label: "e"; shifted: "E"; extended: ["è", "é", "ê", "ë", "€"]; extendedShifted: ["È","É", "Ê", "Ë", "€"] }
 
38
            CharKey { label: "r"; shifted: "R"; }
 
39
            CharKey { label: "t"; shifted: "T"; extended: ["þ"]; extendedShifted: ["Þ"] }
 
40
            CharKey { label: "y"; shifted: "Y"; extended: ["ý", "¥"]; extendedShifted: ["Ý", "¥"] }
 
41
            CharKey { label: "u"; shifted: "U"; extended: ["û","ù","ú","ü"]; extendedShifted: ["Û","Ù","Ú","Ü"] }
 
42
            CharKey { label: "i"; shifted: "I"; extended: ["î","ï","ì","í"]; extendedShifted: ["Î","Ï","Ì","Í"] }
 
43
            CharKey { label: "o"; shifted: "O"; extended: ["ö","ô","ò","ó"]; extendedShifted: ["Ö","Ô","Ò","Ó"] }
 
44
            CharKey { label: "p"; shifted: "P"; }
 
45
        }
 
46
 
 
47
        Row {
 
48
            anchors.horizontalCenter: parent.horizontalCenter;
 
49
            spacing: 0
 
50
 
 
51
            CharKey { label: "a"; shifted: "A"; extended: ["ä","à","â","á","ã","å"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å"] }
 
52
            CharKey { label: "s"; shifted: "S"; extended: ["ß","$"]; extendedShifted: ["$"] }
 
53
            CharKey { label: "d"; shifted: "D"; extended: ["ð"]; extendedShifted: ["Ð"] }
 
54
            CharKey { label: "f"; shifted: "F"; }
 
55
            CharKey { label: "g"; shifted: "G"; }
 
56
            CharKey { label: "h"; shifted: "H"; }
 
57
            CharKey { label: "j"; shifted: "J"; }
 
58
            CharKey { label: "k"; shifted: "K"; }
 
59
            CharKey { label: "l"; shifted: "L"; }
 
60
        }
 
61
 
 
62
        Row {
 
63
            anchors.horizontalCenter: parent.horizontalCenter;
 
64
            spacing: 0
 
65
 
 
66
            ShiftKey {}
 
67
            CharKey { label: "z"; shifted: "Z"; }
 
68
            CharKey { label: "x"; shifted: "X"; }
 
69
            CharKey { label: "c"; shifted: "C"; extended: ["ç"]; extendedShifted: ["Ç"] }
 
70
            CharKey { label: "v"; shifted: "V"; }
 
71
            CharKey { label: "b"; shifted: "B"; }
 
72
            CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] }
 
73
            CharKey { label: "m"; shifted: "M"; }
 
74
            BackspaceKey {}
 
75
        }
 
76
 
 
77
        Item {
 
78
            anchors.left: parent.left
 
79
            anchors.right: parent.right
 
80
 
 
81
            height: panel.keyHeight;
 
82
 
 
83
            SymbolShiftKey { id: symShiftKey;                            anchors.left: parent.left; }
 
84
            CharKey        { id: atKey;    label: "@"; shifted: "@";     anchors.left: symShiftKey.right; }
 
85
            SpaceKey       { id: spaceKey;                               anchors.left: atKey.right; anchors.right: urlKey.left; noMagnifier: true }
 
86
            UrlKey         { id: urlKey; label: ".com"; extended: [".net", ".org", ".edu", ".gov", ".com.mm", ".net.mm", ".org.mm" ]; anchors.right: dotKey.left; }
 
87
            CharKey        { id: dotKey;      label: "."; shifted: ".";  anchors.right: enterKey.left; }
 
88
            ReturnKey      { id: enterKey;                               anchors.right: parent.right }
 
89
        }
 
90
    } // column
 
91
}