Import initial du projet shipheart_cm5

This commit is contained in:
2026-08-13 09:19:38 +02:00
commit 53e47729fb
533 changed files with 127946 additions and 0 deletions
@@ -0,0 +1,103 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Virtual Keyboard module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.0
import QtQuick.Layouts 1.0
import QtQuick.VirtualKeyboard 2.1
KeyboardLayout {
function createInputMethod() {
return Qt.createQmlObject('import QtQuick 2.0; import QtQuick.VirtualKeyboard.Plugins 2.1; HandwritingInputMethod {}', parent)
}
sharedLayouts: ['symbols']
KeyboardRow {
Layout.preferredHeight: 3
KeyboardColumn {
Layout.preferredWidth: bottomRow.width - hideKeyboardKey.width
KeyboardRow {
TraceInputKey {
objectName: "hwrInputArea"
patternRecognitionMode: InputEngine.PatternRecognitionMode.Handwriting
}
}
}
KeyboardColumn {
Layout.preferredWidth: hideKeyboardKey.width
KeyboardRow {
BackspaceKey {}
}
KeyboardRow {
EnterKey {}
}
KeyboardRow {
ShiftKey { }
}
}
}
KeyboardRow {
id: bottomRow
Layout.preferredHeight: 1
keyWeight: 154
Key {
weight: 217
key: Qt.Key_Mode_switch
noKeyEvent: true
functionKey: true
text: InputContext.inputEngine.inputMode === InputEngine.InputMode.Latin ? "123" : "ABC"
onClicked: InputContext.inputEngine.inputMode = InputContext.inputEngine.inputMode === InputEngine.InputMode.Latin ? InputEngine.InputMode.Numeric : InputEngine.InputMode.Latin
enabled: !(InputContext.inputMethodHints & (Qt.ImhDialableCharactersOnly | Qt.ImhFormattedNumbersOnly | Qt.ImhDigitsOnly))
keyPanelDelegate: keyboard.style ? keyboard.style.symbolKeyPanel : undefined
}
ChangeLanguageKey {
weight: 154
customLayoutsOnly: true
}
HandwritingModeKey {
weight: 154
}
SpaceKey {
weight: 864
}
Key {
key: Qt.Key_Apostrophe
text: "'"
alternativeKeys: "<>()#%&*/\\\"'=+-_"
}
Key {
key: Qt.Key_Period
text: "."
alternativeKeys: ":;,.?!"
}
HideKeyboardKey {
id: hideKeyboardKey
weight: 204
}
}
}
+340
View File
@@ -0,0 +1,340 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Virtual Keyboard module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.0
import QtQuick.VirtualKeyboard 2.1
KeyboardLayoutLoader {
inputMode: InputEngine.InputMode.Latin
sourceComponent: InputContext.shiftActive ? page2 : page1
Component {
id: page1
KeyboardLayout {
keyWeight: 160
KeyboardRow {
Key {
text: "\u094C"
}
Key {
text: "\u0948"
}
Key {
text: "\u093E"
}
Key {
text: "\u0940"
}
Key {
text: "\u0942"
}
Key {
text: "\u092C"
}
Key {
text: "\u0939"
}
Key {
text: "\u0917"
}
Key {
text: "\u0926"
}
Key {
text: "\u091C"
}
Key {
text: "\u0921"
}
BackspaceKey {}
}
KeyboardRow {
FillerKey {
weight: 66
}
Key {
text: "\u094B"
alternativeKeys: ["\u094B", "\u094A"]
}
Key {
text: "\u0947"
}
Key {
text: "\u094D"
}
Key {
text: "\u093F"
}
Key {
text: "\u0941"
}
Key {
text: "\u092A"
}
Key {
text: "\u0930"
}
Key {
text: "\u0915"
}
Key {
text: "\u0924"
}
Key {
text: "\u091A"
}
Key {
text: "\u091F"
}
EnterKey {
weight: 283
}
}
KeyboardRow {
keyWeight: 156
ShiftKey { }
Key {
text: "\u0949"
}
Key {
text: "\u0902"
alternativeKeys: "\u0902\u0903"
}
Key {
text: "\u092E"
}
Key {
text: "\u0928"
}
Key {
text: "\u0935"
}
Key {
text: "\u0932"
}
Key {
text: "\u0938"
}
Key {
text: "\u092F"
}
Key {
text: "\u093C"
}
Key {
key: 0x2013
text: "\u2013"
alternativeKeys: "\u2013-“”"
}
ShiftKey {
weight: 264
}
}
KeyboardRow {
keyWeight: 154
SymbolModeKey {
weight: 217
displayText: "&\u0967\u0968\u0969"
}
ChangeLanguageKey {
weight: 154
}
HandwritingModeKey {
weight: 154
}
SpaceKey {
weight: 864
}
Key {
key: Qt.Key_Comma
text: ","
alternativeKeys: "!?:;.,|"
}
Key {
key: 0xE000
text: ":-)"
alternativeKeys: [ ";-)", ":-)", ":-D", ":-(", "<3" ]
}
HideKeyboardKey {
weight: 204
}
}
}
}
Component {
id: page2
KeyboardLayout {
keyWeight: 160
KeyboardRow {
Key {
text: "\u0914"
}
Key {
text: "\u0910"
}
Key {
text: "\u0906"
}
Key {
text: "\u0908"
}
Key {
text: "\u090A"
}
Key {
text: "\u092D"
}
Key {
text: "\u0919"
}
Key {
text: "\u0918"
}
Key {
text: "\u0927"
}
Key {
text: "\u091D"
}
Key {
text: "\u0922"
}
BackspaceKey {}
}
KeyboardRow {
FillerKey {
weight: 66
}
Key {
text: "\u0913"
}
Key {
text: "\u090F"
}
Key {
text: "\u0905"
}
Key {
text: "\u0907"
}
Key {
text: "\u0909"
}
Key {
text: "\u092B"
}
Key {
text: "\u0931"
}
Key {
text: "\u0916"
}
Key {
text: "\u0925"
}
Key {
text: "\u091B"
}
Key {
text: "\u0920"
}
EnterKey {
weight: 283
}
}
KeyboardRow {
keyWeight: 156
ShiftKey { }
Key {
text: "\u0911"
}
Key {
text: "\u0901"
}
Key {
text: "\u0923"
}
Key {
text: "\u0929"
}
Key {
text: "\u091E"
}
Key {
text: "\u0933"
}
Key {
text: "\u0936"
}
Key {
text: "\u0937"
}
Key {
text: "\u0943"
}
Key {
key: 0x2013
text: "\u2013"
alternativeKeys: "\u2013-“”"
}
ShiftKey {
weight: 264
}
}
KeyboardRow {
keyWeight: 154
SymbolModeKey {
weight: 217
displayText: "&\u0967\u0968\u0969"
}
ChangeLanguageKey {
weight: 154
}
HandwritingModeKey {
weight: 154
}
SpaceKey {
weight: 864
}
Key {
key: Qt.Key_Comma
text: ","
alternativeKeys: "!?:;.,|"
}
Key {
key: 0xE000
text: ":-)"
alternativeKeys: [ ";-)", ":-)", ":-D", ":-(", "<3" ]
}
HideKeyboardKey {
weight: 204
}
}
}
}
}
+386
View File
@@ -0,0 +1,386 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Virtual Keyboard module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.0
import QtQuick.Layouts 1.0
import QtQuick.VirtualKeyboard 2.1
KeyboardLayoutLoader {
property bool secondPage
onVisibleChanged: if (!visible) secondPage = false
sourceComponent: secondPage ? page2 : page1
Component {
id: page1
KeyboardLayout {
keyWeight: 160
KeyboardRow {
Key {
key: Qt.Key_1
text: "\u0967"
alternativeKeys: "\u09671"
}
Key {
key: Qt.Key_2
text: "\u0968"
alternativeKeys: "\u09682"
}
Key {
key: Qt.Key_3
text: "\u0969"
alternativeKeys: "\u09693"
}
Key {
key: Qt.Key_4
text: "\u096A"
alternativeKeys: "\u096A4"
}
Key {
key: Qt.Key_5
text: "\u096B"
alternativeKeys: "\u096B5"
}
Key {
key: Qt.Key_6
text: "\u096C"
alternativeKeys: "\u096C6"
}
Key {
key: Qt.Key_7
text: "\u096D"
alternativeKeys: "\u096D7"
}
Key {
key: Qt.Key_8
text: "\u096E"
alternativeKeys: "\u096E8"
}
Key {
key: Qt.Key_9
text: "\u096F"
alternativeKeys: "\u096F9"
}
Key {
key: Qt.Key_0
text: "\u0966"
alternativeKeys: "\u09660"
}
BackspaceKey {}
}
KeyboardRow {
FillerKey {
weight: 56
}
Key {
key: Qt.Key_At
text: "@"
}
Key {
key: Qt.Key_NumberSign
text: "#"
}
Key {
key: Qt.Key_Percent
text: "%"
}
Key {
key: Qt.Key_Ampersand
text: "&"
}
Key {
key: Qt.Key_Asterisk
text: "*"
}
Key {
key: Qt.Key_Minus
text: "-"
}
Key {
key: Qt.Key_Plus
text: "+"
}
Key {
key: Qt.Key_ParenLeft
text: "("
}
Key {
key: Qt.Key_ParenRight
text: ")"
}
EnterKey {
weight: 283
}
}
KeyboardRow {
keyWeight: 156
Key {
displayText: "1/2"
functionKey: true
onClicked: secondPage = !secondPage
}
Key {
key: Qt.Key_Exclam
text: "!"
}
Key {
key: Qt.Key_QuoteDbl
text: '"'
}
Key {
key: Qt.Key_Less
text: "<"
}
Key {
key: Qt.Key_Greater
text: ">"
}
Key {
key: Qt.Key_Apostrophe
text: "'"
}
Key {
key: Qt.Key_Colon
text: ":"
}
Key {
key: Qt.Key_Semicolon
text: ";"
}
Key {
key: Qt.Key_Slash
text: "/"
}
Key {
key: Qt.Key_Question
text: "?"
}
Key {
weight: 204
displayText: "1/2"
functionKey: true
onClicked: secondPage = !secondPage
}
}
KeyboardRow {
keyWeight: 154
SymbolModeKey {
weight: 217
displayText: "\u0915\u0916\u0917"
}
ChangeLanguageKey {
weight: 154
}
SpaceKey {
weight: 864
}
Key {
key: Qt.Key_Period
text: "."
alternativeKeys: ".,"
}
Key {
key: 0xE000
text: ":-)"
alternativeKeys: [ ";-)", ":-)", ":-D", ":-(", "<3" ]
}
HideKeyboardKey {
weight: 204
}
}
}
}
Component {
id: page2
KeyboardLayout {
keyWeight: 160
KeyboardRow {
Key {
key: Qt.Key_AsciiTilde
text: "~"
}
Key {
key: Qt.Key_Agrave
text: "`"
}
Key {
key: Qt.Key_Bar
text: "|"
}
Key {
key: 0x7B
text: "·"
}
Key {
key: 0x221A
text: "√"
}
Key {
key: Qt.Key_division
text: "÷"
}
Key {
key: Qt.Key_multiply
text: "×"
}
Key {
key: Qt.Key_onehalf
text: "½"
alternativeKeys: "¼⅓½¾⅞"
}
Key {
key: Qt.Key_BraceLeft
text: "{"
}
Key {
key: Qt.Key_BraceRight
text: "}"
}
BackspaceKey {}
}
KeyboardRow {
FillerKey {
weight: 56
}
Key {
key: 0x20B9
text: "\u20B9"
}
Key {
key: Qt.Key_Dollar
text: "$"
}
Key {
key: 0x20AC
text: "€"
}
Key {
key: 0xC2
text: "£"
}
Key {
key: 0xA2
text: "¢"
}
Key {
key: Qt.Key_Equal
text: "="
}
Key {
key: Qt.Key_section
text: "§"
}
Key {
key: Qt.Key_BracketLeft
text: "["
}
Key {
key: Qt.Key_BracketRight
text: "]"
}
EnterKey {
weight: 283
}
}
KeyboardRow {
keyWeight: 156
Key {
displayText: "2/2"
functionKey: true
onClicked: secondPage = !secondPage
}
Key {
key: Qt.Key_Underscore
text: "_"
}
Key {
key: 0x2122
text: '™'
}
Key {
key: 0x00AE
text: '®'
}
Key {
key: Qt.Key_guillemotleft
text: '«'
}
Key {
key: Qt.Key_guillemotright
text: '»'
}
Key {
key: 0x201C
text: '“'
}
Key {
key: 0x201D
text: '”'
}
Key {
key: Qt.Key_Backslash
text: "\\"
}
Key {
key: Qt.Key_AsciiCircum
text: "^"
}
Key {
weight: 204
displayText: "2/2"
functionKey: true
onClicked: secondPage = !secondPage
}
}
KeyboardRow {
keyWeight: 154
SymbolModeKey {
weight: 217
displayText: "\u0915\u0916\u0917"
}
ChangeLanguageKey {
weight: 154
}
SpaceKey {
weight: 864
}
Key {
key: 0x2026
text: "\u2026"
}
Key {
key: 0xE000
text: ":-)"
alternativeKeys: [ ";-)", ":-)", ":-D", ":-(", "<3" ]
}
HideKeyboardKey {
weight: 204
}
}
}
}
}