-
Notifications
You must be signed in to change notification settings - Fork 24
Add danish and finnish layout #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,8 @@ struct DeclarativeInputEnginePrivate { | |
| {DeclarativeInputEngine::Cs, {"CsLayout", "Čeština"}}, | ||
| {DeclarativeInputEngine::El, {"ElLayout", "Ελληνικός"}}, | ||
| {DeclarativeInputEngine::Pl, {"PlLayout", "Polski"}}, | ||
| {DeclarativeInputEngine::Da, {"DaLayout", "Dansk"}}, | ||
| {DeclarativeInputEngine::Fi, {"FiLayout", "Suomi"}}, | ||
|
Comment on lines
+42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and readability, it would be better to group the Nordic languages together in this map, similar to how they are grouped in the |
||
| {DeclarativeInputEngine::Hr, {"LtSrHrBsLayout", "Hrvatski"}}, | ||
| {DeclarativeInputEngine::CyBs, {"CySrBsLayout", "Босански"}}, | ||
| {DeclarativeInputEngine::LtBs, {"LtSrHrBsLayout", "Bosanski"}}, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,8 @@ class DeclarativeInputEngine : public QObject { | |
| Cs, | ||
| El, | ||
| Pl, | ||
| Da, | ||
| Fi, | ||
| Sv, | ||
| Hr, | ||
| CyBs, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,272 @@ | ||
| import QtQuick 2.0 | ||
| import QtQuick.Layouts 1.12 | ||
|
|
||
| ColumnLayout { | ||
| property var inputPanel | ||
|
|
||
| RowLayout { | ||
| property real keyWeight: 160 | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Q | ||
| btnText: "q" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_W | ||
| btnText: "w" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_E | ||
| btnText: "e" | ||
| alternativeKeys: "éèêë" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_R | ||
| btnText: "r" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_T | ||
| btnText: "t" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Y | ||
| btnText: "y" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_U | ||
| btnText: "u" | ||
| alternativeKeys: "úùûü" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_I | ||
| btnText: "i" | ||
| alternativeKeys: "íìîï" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_O | ||
| btnText: "o" | ||
| alternativeKeys: "óòôö" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_P | ||
| btnText: "p" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Aring | ||
| btnText: "å" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| BackspaceKey { | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| } | ||
|
|
||
| RowLayout { | ||
| property real keyWeight: 160 | ||
|
|
||
| Key { | ||
| weight: 56 | ||
| functionKey: true | ||
| showPreview: false | ||
| btnBackground: "transparent" | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_A | ||
| btnText: "a" | ||
| alternativeKeys: "áàâä" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_S | ||
| btnText: "s" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_D | ||
| btnText: "d" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_F | ||
| btnText: "f" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_G | ||
| btnText: "g" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_H | ||
| btnText: "h" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_J | ||
| btnText: "j" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_K | ||
| btnText: "k" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_L | ||
| btnText: "l" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_AE | ||
| btnText: "æ" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Ooblique | ||
| btnText: "ø" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| EnterKey { | ||
| weight: 283 | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| } | ||
|
|
||
| RowLayout { | ||
| property real keyWeight: 156 | ||
|
|
||
| ShiftKey { | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Z | ||
| btnText: "z" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_X | ||
| btnText: "x" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_C | ||
| btnText: "c" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_V | ||
| btnText: "v" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_B | ||
| btnText: "b" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_N | ||
| btnText: "n" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_M | ||
| btnText: "m" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Comma | ||
| btnText: "," | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Period | ||
| btnText: "." | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Minus | ||
| btnText: "-" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| ShiftKey { | ||
| weight: 204 | ||
| } | ||
|
|
||
| } | ||
|
|
||
| RowLayout { | ||
| property real keyWeight: 154 | ||
|
|
||
| SymbolKey { | ||
| weight: availableLanguageLayouts.length === 1 ? 217 : 108.5 | ||
| } | ||
|
|
||
| LanguageKey { | ||
| visible: availableLanguageLayouts.length > 1 | ||
| weight: 108.5 | ||
| } | ||
|
|
||
| SpaceKey { | ||
| weight: 1168 | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| Key { | ||
| btnKey: Qt.Key_Apostrophe | ||
| btnText: "'" | ||
| inputPanelRef: inputPanel | ||
| } | ||
|
|
||
| HideKey { | ||
| weight: 205 | ||
| } | ||
|
|
||
| } | ||
|
|
||
|
|
||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better maintainability, it's good practice to keep this list of files sorted alphabetically. The newly added files break the existing (partial) alphabetical order.
DaLayout.qmlshould be placed afterCySrBsLayout.qml.FiLayout.qmlshould be placed afterEsLayout.qml.Consider sorting the entire list alphabetically to make it easier to navigate.