-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
486 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/* | ||
* 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.4 | ||
|
||
import MaliitKeyboard 2.0 | ||
|
||
import keys 1.0 | ||
|
||
KeyPad { | ||
anchors.fill: parent | ||
|
||
content: c1 | ||
symbols: "languages/Keyboard_symbols.qml" | ||
|
||
Column { | ||
id: c1 | ||
anchors.fill: parent | ||
spacing: 0 | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
TabKey { padding: 0 } | ||
CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; } | ||
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] } | ||
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", "€"]; extendedShifted: ["3", "È","É", "Ë", "Ê", "€"] } | ||
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] } | ||
CharKey { label: "t"; shifted: "T"; extended: ["5", "þ"]; extendedShifted: ["5", "Þ"] } | ||
CharKey { label: "z"; shifted: "Z"; extended: ["6"]; extendedShifted: ["6"] } | ||
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] } | ||
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] } | ||
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] } | ||
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; } | ||
} | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
CapsLockKey { padding: 0 } | ||
CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"] } | ||
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["ẞ","Ş","$"] } | ||
CharKey { label: "d"; shifted: "D"; } | ||
CharKey { label: "f"; shifted: "F"; } | ||
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; } | ||
CharKey { label: "h"; shifted: "H"; } | ||
CharKey { label: "j"; shifted: "J"; } | ||
CharKey { label: "k"; shifted: "K"; } | ||
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] } | ||
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; } | ||
} | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
ShiftKey { padding: 0 } | ||
CharKey { label: "y"; shifted: "Y"; extended: ["ÿ","¥"]; extendedShifted: ["Ÿ","¥"] } | ||
CharKey { label: "x"; shifted: "X"; } | ||
CharKey { label: "c"; shifted: "C"; extended: ["ç","¢"]; extendedShifted: ["Ç","¢"] } | ||
CharKey { label: "v"; shifted: "V"; } | ||
CharKey { label: "b"; shifted: "B"; } | ||
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] } | ||
CharKey { label: "m"; shifted: "M"; } | ||
CharKey { label: "ä"; shifted: "Ä"; } | ||
BackspaceKey { padding: 0 } | ||
} | ||
|
||
Item { | ||
anchors.left: parent.left | ||
anchors.right: parent.right | ||
|
||
height: panel.keyHeight + Device.row_margin; | ||
|
||
SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; } | ||
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; } | ||
CharKey { id: commaKey; label: ","; shifted: ","; extended: ["'", "\"", ";", ":", "@", "&", "(", ")"]; extendedShifted: ["'", "\"", ";", ":", "@", "&", "(", ")"]; anchors.left: languageMenuButton.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: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; } | ||
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; } | ||
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; } | ||
} | ||
} // column | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* 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.4 | ||
|
||
import MaliitKeyboard 2.0 | ||
|
||
import keys 1.0 | ||
|
||
KeyPad { | ||
anchors.fill: parent | ||
|
||
content: c1 | ||
symbols: "languages/Keyboard_symbols.qml" | ||
|
||
Column { | ||
id: c1 | ||
anchors.fill: parent | ||
spacing: 0 | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; } | ||
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] } | ||
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", "€"]; extendedShifted: ["3", "È","É", "Ë", "Ê", "€"] } | ||
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] } | ||
CharKey { label: "t"; shifted: "T"; extended: ["5", "þ"]; extendedShifted: ["5", "Þ"] } | ||
CharKey { label: "z"; shifted: "Z"; extended: ["6"]; extendedShifted: ["6"] } | ||
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] } | ||
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] } | ||
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] } | ||
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; } | ||
} | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"]; leftSide: true; } | ||
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["ẞ","Ş","$"] } | ||
CharKey { label: "d"; shifted: "D"; } | ||
CharKey { label: "f"; shifted: "F"; } | ||
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; } | ||
CharKey { label: "h"; shifted: "H"; } | ||
CharKey { label: "j"; shifted: "J"; } | ||
CharKey { label: "k"; shifted: "K"; } | ||
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] } | ||
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; } | ||
} | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
ShiftKey { padding: 0 } | ||
CharKey { label: "y"; shifted: "Y"; extended: ["ÿ","¥"]; extendedShifted: ["Ÿ","¥"] } | ||
CharKey { label: "x"; shifted: "X"; } | ||
CharKey { label: "c"; shifted: "C"; extended: ["ç","¢"]; extendedShifted: ["Ç","¢"] } | ||
CharKey { label: "v"; shifted: "V"; } | ||
CharKey { label: "b"; shifted: "B"; } | ||
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] } | ||
CharKey { label: "m"; shifted: "M"; } | ||
CharKey { label: "ä"; shifted: "Ä"; } | ||
BackspaceKey { padding: 0 } | ||
} | ||
|
||
Item { | ||
anchors.left: parent.left | ||
anchors.right: parent.right | ||
|
||
height: panel.keyHeight + Device.row_margin; | ||
|
||
SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; } | ||
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; } | ||
CharKey { id: atKey; label: "@"; shifted: "@"; anchors.left: languageMenuButton.right; height: parent.height; } | ||
SpaceKey { id: spaceKey; anchors.left: atKey.right; anchors.right: urlKey.left; noMagnifier: true; height: parent.height; } | ||
UrlKey { id: urlKey; label: ".de"; extended: [".com", ".at", ".ch"]; anchors.right: dotKey.left; height: parent.height; } | ||
CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; } | ||
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; } | ||
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; } | ||
} | ||
} // column | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
* 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.4 | ||
|
||
import MaliitKeyboard 2.0 | ||
|
||
import keys 1.0 | ||
|
||
KeyPad { | ||
anchors.fill: parent | ||
|
||
content: c1 | ||
symbols: "languages/Keyboard_symbols.qml" | ||
|
||
Column { | ||
id: c1 | ||
anchors.fill: parent | ||
spacing: 0 | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; } | ||
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] } | ||
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", "€"]; extendedShifted: ["3", "È","É", "Ë", "Ê", "€"] } | ||
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] } | ||
CharKey { label: "t"; shifted: "T"; extended: ["5", "þ"]; extendedShifted: ["5", "Þ"] } | ||
CharKey { label: "z"; shifted: "Z"; extended: ["6"]; extendedShifted: ["6"] } | ||
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] } | ||
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] } | ||
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] } | ||
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; } | ||
} | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"]; leftSide: true; } | ||
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["ẞ","Ş","$"] } | ||
CharKey { label: "d"; shifted: "D"; } | ||
CharKey { label: "f"; shifted: "F"; } | ||
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; } | ||
CharKey { label: "h"; shifted: "H"; } | ||
CharKey { label: "j"; shifted: "J"; } | ||
CharKey { label: "k"; shifted: "K"; } | ||
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] } | ||
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; } | ||
} | ||
|
||
Row { | ||
anchors.horizontalCenter: parent.horizontalCenter; | ||
spacing: 0 | ||
|
||
ShiftKey { padding: 0 } | ||
CharKey { label: "y"; shifted: "Y"; extended: ["ÿ","¥"]; extendedShifted: ["Ÿ","¥"] } | ||
CharKey { label: "x"; shifted: "X"; } | ||
CharKey { label: "c"; shifted: "C"; extended: ["ç","¢"]; extendedShifted: ["Ç","¢"] } | ||
CharKey { label: "v"; shifted: "V"; } | ||
CharKey { label: "b"; shifted: "B"; } | ||
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] } | ||
CharKey { label: "m"; shifted: "M"; } | ||
CharKey { label: "ä"; shifted: "Ä"; } | ||
BackspaceKey { padding: 0 } | ||
} | ||
|
||
Item { | ||
anchors.left: parent.left | ||
anchors.right: parent.right | ||
|
||
height: panel.keyHeight + Device.row_margin; | ||
|
||
SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; } | ||
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; } | ||
CharKey { id: slashKey; label: "/"; shifted: "/"; anchors.left: languageMenuButton.right; height: parent.height; } | ||
UrlKey { id: urlKey; label: ".de"; extended: [".com", ".at", ".ch"]; anchors.right: dotKey.left; height: parent.height; } | ||
CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; } | ||
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; } | ||
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; } | ||
} | ||
} // column | ||
} |
Oops, something went wrong.