~michael-sheldon/+junk/stentorian

« back to all changes in this revision

Viewing changes to plugins/ro/qml/Keyboard_ro.qml

  • Committer: Michael Sheldon
  • Date: 2017-05-03 09:43:18 UTC
  • Revision ID: michael.sheldon@canonical.com-20170503094318-pe41gzsmqwicq0qt
Convert Ubuntu Keyboard into a standalone speech recognition input

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.4
18
 
import keys 1.0
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"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; }
36
 
            CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] }
37
 
            CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ê", "ë", "€"]; extendedShifted: ["3", "È","É", "Ê", "Ë", "€"] }
38
 
            CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] }
39
 
            CharKey { label: "t"; shifted: "T"; extended: ["5", "ț"]; extendedShifted: ["5", "Ț"] }
40
 
            CharKey { label: "y"; shifted: "Y"; extended: ["6", "ý", "¥"]; extendedShifted: ["6", "Ý", "¥"] }
41
 
            CharKey { label: "u"; shifted: "U"; extended: ["7", "û","ù","ú","ü"]; extendedShifted: ["7", "Û","Ù","Ú","Ü"] }
42
 
            CharKey { label: "i"; shifted: "I"; extended: ["8", "î","ï","ì","í"]; extendedShifted: ["8", "Î","Ï","Ì","Í"] }
43
 
            CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ô","ò","ó"]; extendedShifted: ["9", "Ö","Ô","Ò","Ó"] }
44
 
            CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; }
45
 
        }
46
 
 
47
 
        Row {
48
 
            anchors.horizontalCenter: parent.horizontalCenter;
49
 
            spacing: 0
50
 
 
51
 
            CharKey { label: "a"; shifted: "A"; extended: ["ă", "â", "à"]; extendedShifted: ["Ă", "Â", "À"]; leftSide: true; }
52
 
            CharKey { label: "s"; shifted: "S"; extended: ["ș","$"]; extendedShifted: ["Ș", "$"] }
53
 
            CharKey { label: "d"; shifted: "D"; }
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"; rightSide: true; }
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 + units.gu(UI.row_margin);
82
 
 
83
 
            SymbolShiftKey { id: symShiftKey;                            anchors.left: parent.left; height: parent.height; }
84
 
            LanguageKey    { id: languageMenuButton;                     anchors.left: symShiftKey.right; height: parent.height; }
85
 
            CharKey        { id: commaKey;    label: ","; shifted: ","; extended: ["'", "\"", ";", ":", "@", "&", "(", ")"]; extendedShifted: ["'", "\"", ";", ":", "@", "&", "(", ")"]; anchors.left: languageMenuButton.right; height: parent.height; }
86
 
            SpaceKey       { id: spaceKey;                               anchors.left: commaKey.right; anchors.right: dotKey.left; noMagnifier: true; height: parent.height; }
87
 
            CharKey        { id: dotKey;      label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"];  extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: enterKey.left; height: parent.height; }
88
 
            ReturnKey      { id: enterKey;                               anchors.right: parent.right; height: parent.height; }
89
 
        }
90
 
    } // column
91
 
}