1/**************************************************************************** 2** 3** Copyright (C) 2016 The Qt Company Ltd. 4** Contact: https://www.qt.io/licensing/ 5** 6** This file is part of the Qt Virtual Keyboard module of the Qt Toolkit. 7** 8** $QT_BEGIN_LICENSE:GPL$ 9** Commercial License Usage 10** Licensees holding valid commercial Qt licenses may use this file in 11** accordance with the commercial license agreement provided with the 12** Software or, alternatively, in accordance with the terms contained in 13** a written agreement between you and The Qt Company. For licensing terms 14** and conditions see https://www.qt.io/terms-conditions. For further 15** information use the contact form at https://www.qt.io/contact-us. 16** 17** GNU General Public License Usage 18** Alternatively, this file may be used under the terms of the GNU 19** General Public License version 3 or (at your option) any later version 20** approved by the KDE Free Qt Foundation. The licenses are as published by 21** the Free Software Foundation and appearing in the file LICENSE.GPL3 22** included in the packaging of this file. Please review the following 23** information to ensure the GNU General Public License requirements will 24** be met: https://www.gnu.org/licenses/gpl-3.0.html. 25** 26** $QT_END_LICENSE$ 27** 28****************************************************************************/ 29 30import QtQuick 2.0 31import QtQuick.Layouts 1.0 32import QtQuick.VirtualKeyboard 2.1 33import QtQuick.VirtualKeyboard.Plugins 2.3 34 35KeyboardLayout { 36 inputMethod: PlainInputMethod {} 37 inputMode: InputEngine.InputMode.Numeric 38 39 KeyboardRow { 40 Layout.fillWidth: false 41 Layout.fillHeight: true 42 Layout.alignment: Qt.AlignHCenter 43 KeyboardColumn { 44 Layout.fillWidth: false 45 Layout.fillHeight: true 46 Layout.preferredWidth: parent.height / 4 * 3 47 KeyboardRow { 48 Key { 49 key: Qt.Key_ParenLeft 50 text: "(" 51 } 52 Key { 53 key: Qt.Key_ParenRight 54 text: ")" 55 } 56 Key { 57 key: Qt.Key_Period 58 text: "." 59 } 60 } 61 KeyboardRow { 62 Key { 63 key: Qt.Key_division 64 text: "\u00F7" 65 } 66 Key { 67 key: Qt.Key_multiply 68 text: "\u00D7" 69 } 70 Key { 71 key: Qt.Key_Plus 72 text: "+" 73 } 74 } 75 KeyboardRow { 76 Key { 77 key: Qt.Key_AsciiCircum 78 text: "^" 79 } 80 Key { 81 key: Qt.Key_Slash 82 text: "/" 83 } 84 Key { 85 key: Qt.Key_Minus 86 text: "-" 87 } 88 } 89 KeyboardRow { 90 Key { 91 key: 0x221A 92 text: "√" 93 } 94 Key { 95 key: Qt.Key_Percent 96 text: "%" 97 } 98 Key { 99 key: Qt.Key_Asterisk 100 text: "*" 101 } 102 } 103 } 104 KeyboardColumn { 105 Layout.fillWidth: false 106 Layout.fillHeight: true 107 Layout.preferredWidth: parent.height / 8 108 KeyboardRow { 109 FillerKey {} 110 } 111 } 112 KeyboardColumn { 113 Layout.fillWidth: false 114 Layout.fillHeight: true 115 Layout.preferredWidth: parent.height 116 KeyboardRow { 117 Key { 118 text: "\u06F7" 119 alternativeKeys: "\u06F77" 120 } 121 Key { 122 text: "\u06F8" 123 alternativeKeys: "\u06F88" 124 } 125 Key { 126 text: "\u06F9" 127 alternativeKeys: "\u06F99" 128 } 129 BackspaceKey {} 130 } 131 KeyboardRow { 132 Key { 133 text: "\u06F4" 134 alternativeKeys: "\u06F44" 135 } 136 Key { 137 text: "\u06F5" 138 alternativeKeys: "\u06F55" 139 } 140 Key { 141 text: "\u06F6" 142 alternativeKeys: "\u06F66" 143 } 144 Key { 145 text: " " 146 displayText: "\u2423" 147 repeat: true 148 showPreview: false 149 key: Qt.Key_Space 150 } 151 } 152 KeyboardRow { 153 Key { 154 text: "\u06F1" 155 alternativeKeys: "\u06F11" 156 } 157 Key { 158 text: "\u06F2" 159 alternativeKeys: "\u06F22" 160 } 161 Key { 162 text: "\u06F3" 163 alternativeKeys: "\u06F33" 164 } 165 HideKeyboardKey {} 166 } 167 KeyboardRow { 168 ChangeLanguageKey { 169 customLayoutsOnly: true 170 } 171 Key { 172 text: "\u06F0" 173 alternativeKeys: "\u06F00" 174 } 175 Key { 176 key: Qt.Key_Comma 177 text: "\u066B" 178 alternativeKeys: "\u066B,." 179 } 180 EnterKey {} 181 } 182 } 183 } 184} 185