diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/yuzu/applets/software_keyboard.cpp | 1635 | ||||
| -rw-r--r-- | src/yuzu/applets/software_keyboard.h | 267 | ||||
| -rw-r--r-- | src/yuzu/applets/software_keyboard.ui | 3503 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 112 | ||||
| -rw-r--r-- | src/yuzu/main.h | 14 |
6 files changed, 5518 insertions, 14 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index 3e00ff39f..cc0790e07 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt | |||
| @@ -18,6 +18,7 @@ add_executable(yuzu | |||
| 18 | applets/profile_select.h | 18 | applets/profile_select.h |
| 19 | applets/software_keyboard.cpp | 19 | applets/software_keyboard.cpp |
| 20 | applets/software_keyboard.h | 20 | applets/software_keyboard.h |
| 21 | applets/software_keyboard.ui | ||
| 21 | applets/web_browser.cpp | 22 | applets/web_browser.cpp |
| 22 | applets/web_browser.h | 23 | applets/web_browser.h |
| 23 | bootmanager.cpp | 24 | bootmanager.cpp |
diff --git a/src/yuzu/applets/software_keyboard.cpp b/src/yuzu/applets/software_keyboard.cpp index da0fed774..fd3368479 100644 --- a/src/yuzu/applets/software_keyboard.cpp +++ b/src/yuzu/applets/software_keyboard.cpp | |||
| @@ -1,18 +1,1641 @@ | |||
| 1 | // Copyright 2018 yuzu Emulator Project | 1 | // Copyright 2021 yuzu Emulator Project |
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <QCursor> | ||
| 6 | #include <QKeyEvent> | ||
| 7 | #include <QScreen> | ||
| 8 | |||
| 9 | #include "common/logging/log.h" | ||
| 10 | #include "common/settings.h" | ||
| 11 | #include "common/string_util.h" | ||
| 12 | #include "core/core.h" | ||
| 13 | #include "core/frontend/input_interpreter.h" | ||
| 14 | #include "ui_software_keyboard.h" | ||
| 5 | #include "yuzu/applets/software_keyboard.h" | 15 | #include "yuzu/applets/software_keyboard.h" |
| 6 | #include "yuzu/main.h" | 16 | #include "yuzu/main.h" |
| 17 | #include "yuzu/util/overlay_dialog.h" | ||
| 18 | |||
| 19 | namespace { | ||
| 20 | |||
| 21 | using namespace Service::AM::Applets; | ||
| 22 | |||
| 23 | constexpr float BASE_HEADER_FONT_SIZE = 23.0f; | ||
| 24 | constexpr float BASE_SUB_FONT_SIZE = 17.0f; | ||
| 25 | constexpr float BASE_EDITOR_FONT_SIZE = 26.0f; | ||
| 26 | constexpr float BASE_CHAR_BUTTON_FONT_SIZE = 28.0f; | ||
| 27 | constexpr float BASE_LABEL_BUTTON_FONT_SIZE = 18.0f; | ||
| 28 | constexpr float BASE_ICON_BUTTON_SIZE = 36.0f; | ||
| 29 | [[maybe_unused]] constexpr float BASE_WIDTH = 1280.0f; | ||
| 30 | constexpr float BASE_HEIGHT = 720.0f; | ||
| 31 | |||
| 32 | } // Anonymous namespace | ||
| 33 | |||
| 34 | QtSoftwareKeyboardDialog::QtSoftwareKeyboardDialog( | ||
| 35 | QWidget* parent, Core::System& system_, bool is_inline_, | ||
| 36 | Core::Frontend::KeyboardInitializeParameters initialize_parameters_) | ||
| 37 | : QDialog(parent), ui{std::make_unique<Ui::QtSoftwareKeyboardDialog>()}, system{system_}, | ||
| 38 | is_inline{is_inline_}, initialize_parameters{std::move(initialize_parameters_)} { | ||
| 39 | ui->setupUi(this); | ||
| 40 | |||
| 41 | setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowTitleHint | | ||
| 42 | Qt::WindowSystemMenuHint | Qt::CustomizeWindowHint); | ||
| 43 | setWindowModality(Qt::WindowModal); | ||
| 44 | setAttribute(Qt::WA_DeleteOnClose); | ||
| 45 | setAttribute(Qt::WA_TranslucentBackground); | ||
| 46 | |||
| 47 | keyboard_buttons = {{ | ||
| 48 | {{ | ||
| 49 | { | ||
| 50 | ui->button_1, | ||
| 51 | ui->button_2, | ||
| 52 | ui->button_3, | ||
| 53 | ui->button_4, | ||
| 54 | ui->button_5, | ||
| 55 | ui->button_6, | ||
| 56 | ui->button_7, | ||
| 57 | ui->button_8, | ||
| 58 | ui->button_9, | ||
| 59 | ui->button_0, | ||
| 60 | ui->button_minus, | ||
| 61 | ui->button_backspace, | ||
| 62 | }, | ||
| 63 | { | ||
| 64 | ui->button_q, | ||
| 65 | ui->button_w, | ||
| 66 | ui->button_e, | ||
| 67 | ui->button_r, | ||
| 68 | ui->button_t, | ||
| 69 | ui->button_y, | ||
| 70 | ui->button_u, | ||
| 71 | ui->button_i, | ||
| 72 | ui->button_o, | ||
| 73 | ui->button_p, | ||
| 74 | ui->button_slash, | ||
| 75 | ui->button_return, | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | ui->button_a, | ||
| 79 | ui->button_s, | ||
| 80 | ui->button_d, | ||
| 81 | ui->button_f, | ||
| 82 | ui->button_g, | ||
| 83 | ui->button_h, | ||
| 84 | ui->button_j, | ||
| 85 | ui->button_k, | ||
| 86 | ui->button_l, | ||
| 87 | ui->button_colon, | ||
| 88 | ui->button_apostrophe, | ||
| 89 | ui->button_return, | ||
| 90 | }, | ||
| 91 | { | ||
| 92 | ui->button_z, | ||
| 93 | ui->button_x, | ||
| 94 | ui->button_c, | ||
| 95 | ui->button_v, | ||
| 96 | ui->button_b, | ||
| 97 | ui->button_n, | ||
| 98 | ui->button_m, | ||
| 99 | ui->button_comma, | ||
| 100 | ui->button_dot, | ||
| 101 | ui->button_question, | ||
| 102 | ui->button_exclamation, | ||
| 103 | ui->button_ok, | ||
| 104 | }, | ||
| 105 | { | ||
| 106 | ui->button_shift, | ||
| 107 | ui->button_shift, | ||
| 108 | ui->button_space, | ||
| 109 | ui->button_space, | ||
| 110 | ui->button_space, | ||
| 111 | ui->button_space, | ||
| 112 | ui->button_space, | ||
| 113 | ui->button_space, | ||
| 114 | ui->button_space, | ||
| 115 | ui->button_space, | ||
| 116 | ui->button_space, | ||
| 117 | ui->button_ok, | ||
| 118 | }, | ||
| 119 | }}, | ||
| 120 | {{ | ||
| 121 | { | ||
| 122 | ui->button_hash, | ||
| 123 | ui->button_left_bracket, | ||
| 124 | ui->button_right_bracket, | ||
| 125 | ui->button_dollar, | ||
| 126 | ui->button_percent, | ||
| 127 | ui->button_circumflex, | ||
| 128 | ui->button_ampersand, | ||
| 129 | ui->button_asterisk, | ||
| 130 | ui->button_left_parenthesis, | ||
| 131 | ui->button_right_parenthesis, | ||
| 132 | ui->button_underscore, | ||
| 133 | ui->button_backspace_shift, | ||
| 134 | }, | ||
| 135 | { | ||
| 136 | ui->button_q_shift, | ||
| 137 | ui->button_w_shift, | ||
| 138 | ui->button_e_shift, | ||
| 139 | ui->button_r_shift, | ||
| 140 | ui->button_t_shift, | ||
| 141 | ui->button_y_shift, | ||
| 142 | ui->button_u_shift, | ||
| 143 | ui->button_i_shift, | ||
| 144 | ui->button_o_shift, | ||
| 145 | ui->button_p_shift, | ||
| 146 | ui->button_at, | ||
| 147 | ui->button_return_shift, | ||
| 148 | }, | ||
| 149 | { | ||
| 150 | ui->button_a_shift, | ||
| 151 | ui->button_s_shift, | ||
| 152 | ui->button_d_shift, | ||
| 153 | ui->button_f_shift, | ||
| 154 | ui->button_g_shift, | ||
| 155 | ui->button_h_shift, | ||
| 156 | ui->button_j_shift, | ||
| 157 | ui->button_k_shift, | ||
| 158 | ui->button_l_shift, | ||
| 159 | ui->button_semicolon, | ||
| 160 | ui->button_quotation, | ||
| 161 | ui->button_return_shift, | ||
| 162 | }, | ||
| 163 | { | ||
| 164 | ui->button_z_shift, | ||
| 165 | ui->button_x_shift, | ||
| 166 | ui->button_c_shift, | ||
| 167 | ui->button_v_shift, | ||
| 168 | ui->button_b_shift, | ||
| 169 | ui->button_n_shift, | ||
| 170 | ui->button_m_shift, | ||
| 171 | ui->button_less_than, | ||
| 172 | ui->button_greater_than, | ||
| 173 | ui->button_plus, | ||
| 174 | ui->button_equal, | ||
| 175 | ui->button_ok_shift, | ||
| 176 | }, | ||
| 177 | { | ||
| 178 | ui->button_shift_shift, | ||
| 179 | ui->button_shift_shift, | ||
| 180 | ui->button_space_shift, | ||
| 181 | ui->button_space_shift, | ||
| 182 | ui->button_space_shift, | ||
| 183 | ui->button_space_shift, | ||
| 184 | ui->button_space_shift, | ||
| 185 | ui->button_space_shift, | ||
| 186 | ui->button_space_shift, | ||
| 187 | ui->button_space_shift, | ||
| 188 | ui->button_space_shift, | ||
| 189 | ui->button_ok_shift, | ||
| 190 | }, | ||
| 191 | }}, | ||
| 192 | }}; | ||
| 193 | |||
| 194 | numberpad_buttons = {{ | ||
| 195 | { | ||
| 196 | ui->button_1_num, | ||
| 197 | ui->button_2_num, | ||
| 198 | ui->button_3_num, | ||
| 199 | ui->button_backspace_num, | ||
| 200 | }, | ||
| 201 | { | ||
| 202 | ui->button_4_num, | ||
| 203 | ui->button_5_num, | ||
| 204 | ui->button_6_num, | ||
| 205 | ui->button_ok_num, | ||
| 206 | }, | ||
| 207 | { | ||
| 208 | ui->button_7_num, | ||
| 209 | ui->button_8_num, | ||
| 210 | ui->button_9_num, | ||
| 211 | ui->button_ok_num, | ||
| 212 | }, | ||
| 213 | { | ||
| 214 | nullptr, | ||
| 215 | ui->button_0_num, | ||
| 216 | nullptr, | ||
| 217 | ui->button_ok_num, | ||
| 218 | }, | ||
| 219 | }}; | ||
| 220 | |||
| 221 | all_buttons = { | ||
| 222 | ui->button_1, | ||
| 223 | ui->button_2, | ||
| 224 | ui->button_3, | ||
| 225 | ui->button_4, | ||
| 226 | ui->button_5, | ||
| 227 | ui->button_6, | ||
| 228 | ui->button_7, | ||
| 229 | ui->button_8, | ||
| 230 | ui->button_9, | ||
| 231 | ui->button_0, | ||
| 232 | ui->button_minus, | ||
| 233 | ui->button_backspace, | ||
| 234 | ui->button_q, | ||
| 235 | ui->button_w, | ||
| 236 | ui->button_e, | ||
| 237 | ui->button_r, | ||
| 238 | ui->button_t, | ||
| 239 | ui->button_y, | ||
| 240 | ui->button_u, | ||
| 241 | ui->button_i, | ||
| 242 | ui->button_o, | ||
| 243 | ui->button_p, | ||
| 244 | ui->button_slash, | ||
| 245 | ui->button_return, | ||
| 246 | ui->button_a, | ||
| 247 | ui->button_s, | ||
| 248 | ui->button_d, | ||
| 249 | ui->button_f, | ||
| 250 | ui->button_g, | ||
| 251 | ui->button_h, | ||
| 252 | ui->button_j, | ||
| 253 | ui->button_k, | ||
| 254 | ui->button_l, | ||
| 255 | ui->button_colon, | ||
| 256 | ui->button_apostrophe, | ||
| 257 | ui->button_z, | ||
| 258 | ui->button_x, | ||
| 259 | ui->button_c, | ||
| 260 | ui->button_v, | ||
| 261 | ui->button_b, | ||
| 262 | ui->button_n, | ||
| 263 | ui->button_m, | ||
| 264 | ui->button_comma, | ||
| 265 | ui->button_dot, | ||
| 266 | ui->button_question, | ||
| 267 | ui->button_exclamation, | ||
| 268 | ui->button_ok, | ||
| 269 | ui->button_shift, | ||
| 270 | ui->button_space, | ||
| 271 | ui->button_hash, | ||
| 272 | ui->button_left_bracket, | ||
| 273 | ui->button_right_bracket, | ||
| 274 | ui->button_dollar, | ||
| 275 | ui->button_percent, | ||
| 276 | ui->button_circumflex, | ||
| 277 | ui->button_ampersand, | ||
| 278 | ui->button_asterisk, | ||
| 279 | ui->button_left_parenthesis, | ||
| 280 | ui->button_right_parenthesis, | ||
| 281 | ui->button_underscore, | ||
| 282 | ui->button_backspace_shift, | ||
| 283 | ui->button_q_shift, | ||
| 284 | ui->button_w_shift, | ||
| 285 | ui->button_e_shift, | ||
| 286 | ui->button_r_shift, | ||
| 287 | ui->button_t_shift, | ||
| 288 | ui->button_y_shift, | ||
| 289 | ui->button_u_shift, | ||
| 290 | ui->button_i_shift, | ||
| 291 | ui->button_o_shift, | ||
| 292 | ui->button_p_shift, | ||
| 293 | ui->button_at, | ||
| 294 | ui->button_return_shift, | ||
| 295 | ui->button_a_shift, | ||
| 296 | ui->button_s_shift, | ||
| 297 | ui->button_d_shift, | ||
| 298 | ui->button_f_shift, | ||
| 299 | ui->button_g_shift, | ||
| 300 | ui->button_h_shift, | ||
| 301 | ui->button_j_shift, | ||
| 302 | ui->button_k_shift, | ||
| 303 | ui->button_l_shift, | ||
| 304 | ui->button_semicolon, | ||
| 305 | ui->button_quotation, | ||
| 306 | ui->button_z_shift, | ||
| 307 | ui->button_x_shift, | ||
| 308 | ui->button_c_shift, | ||
| 309 | ui->button_v_shift, | ||
| 310 | ui->button_b_shift, | ||
| 311 | ui->button_n_shift, | ||
| 312 | ui->button_m_shift, | ||
| 313 | ui->button_less_than, | ||
| 314 | ui->button_greater_than, | ||
| 315 | ui->button_plus, | ||
| 316 | ui->button_equal, | ||
| 317 | ui->button_ok_shift, | ||
| 318 | ui->button_shift_shift, | ||
| 319 | ui->button_space_shift, | ||
| 320 | ui->button_1_num, | ||
| 321 | ui->button_2_num, | ||
| 322 | ui->button_3_num, | ||
| 323 | ui->button_backspace_num, | ||
| 324 | ui->button_4_num, | ||
| 325 | ui->button_5_num, | ||
| 326 | ui->button_6_num, | ||
| 327 | ui->button_ok_num, | ||
| 328 | ui->button_7_num, | ||
| 329 | ui->button_8_num, | ||
| 330 | ui->button_9_num, | ||
| 331 | ui->button_0_num, | ||
| 332 | }; | ||
| 333 | |||
| 334 | SetupMouseHover(); | ||
| 335 | |||
| 336 | if (!initialize_parameters.ok_text.empty()) { | ||
| 337 | ui->button_ok->setText(QString::fromStdU16String(initialize_parameters.ok_text)); | ||
| 338 | } | ||
| 339 | |||
| 340 | ui->label_header->setText(QString::fromStdU16String(initialize_parameters.header_text)); | ||
| 341 | ui->label_sub->setText(QString::fromStdU16String(initialize_parameters.sub_text)); | ||
| 342 | |||
| 343 | current_text = initialize_parameters.initial_text; | ||
| 344 | cursor_position = initialize_parameters.initial_cursor_position; | ||
| 345 | |||
| 346 | SetTextDrawType(); | ||
| 347 | |||
| 348 | for (auto* button : all_buttons) { | ||
| 349 | connect(button, &QPushButton::clicked, this, [this, button](bool) { | ||
| 350 | if (is_inline) { | ||
| 351 | InlineKeyboardButtonClicked(button); | ||
| 352 | } else { | ||
| 353 | NormalKeyboardButtonClicked(button); | ||
| 354 | } | ||
| 355 | }); | ||
| 356 | } | ||
| 357 | |||
| 358 | // TODO (Morph): Remove this when InputInterpreter no longer relies on the HID backend | ||
| 359 | if (system.IsPoweredOn()) { | ||
| 360 | input_interpreter = std::make_unique<InputInterpreter>(system); | ||
| 361 | } | ||
| 362 | } | ||
| 363 | |||
| 364 | QtSoftwareKeyboardDialog::~QtSoftwareKeyboardDialog() { | ||
| 365 | StopInputThread(); | ||
| 366 | } | ||
| 367 | |||
| 368 | void QtSoftwareKeyboardDialog::ShowNormalKeyboard(QPoint pos, QSize size) { | ||
| 369 | if (isVisible()) { | ||
| 370 | return; | ||
| 371 | } | ||
| 372 | |||
| 373 | MoveAndResizeWindow(pos, size); | ||
| 374 | |||
| 375 | SetKeyboardType(); | ||
| 376 | SetPasswordMode(); | ||
| 377 | SetControllerImage(); | ||
| 378 | DisableKeyboardButtons(); | ||
| 379 | SetBackspaceOkEnabled(); | ||
| 380 | |||
| 381 | open(); | ||
| 382 | } | ||
| 383 | |||
| 384 | void QtSoftwareKeyboardDialog::ShowTextCheckDialog( | ||
| 385 | Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 386 | std::u16string text_check_message) { | ||
| 387 | switch (text_check_result) { | ||
| 388 | case SwkbdTextCheckResult::Success: | ||
| 389 | case SwkbdTextCheckResult::Silent: | ||
| 390 | default: | ||
| 391 | break; | ||
| 392 | case SwkbdTextCheckResult::Failure: { | ||
| 393 | StopInputThread(); | ||
| 394 | |||
| 395 | OverlayDialog dialog(this, system, QString{}, QString::fromStdU16String(text_check_message), | ||
| 396 | QString{}, tr("OK"), Qt::AlignCenter); | ||
| 397 | dialog.exec(); | ||
| 398 | |||
| 399 | StartInputThread(); | ||
| 400 | break; | ||
| 401 | } | ||
| 402 | case SwkbdTextCheckResult::Confirm: { | ||
| 403 | StopInputThread(); | ||
| 404 | |||
| 405 | OverlayDialog dialog(this, system, QString{}, QString::fromStdU16String(text_check_message), | ||
| 406 | tr("Cancel"), tr("OK"), Qt::AlignCenter); | ||
| 407 | if (dialog.exec() == QDialog::Accepted) { | ||
| 408 | emit SubmitNormalText(SwkbdResult::Ok, current_text); | ||
| 409 | break; | ||
| 410 | } | ||
| 411 | |||
| 412 | StartInputThread(); | ||
| 413 | break; | ||
| 414 | } | ||
| 415 | } | ||
| 416 | } | ||
| 417 | |||
| 418 | void QtSoftwareKeyboardDialog::ShowInlineKeyboard( | ||
| 419 | Core::Frontend::InlineAppearParameters appear_parameters, QPoint pos, QSize size) { | ||
| 420 | MoveAndResizeWindow(pos, size); | ||
| 421 | |||
| 422 | ui->topOSK->setStyleSheet(QStringLiteral("background: rgba(0, 0, 0, 0);")); | ||
| 423 | |||
| 424 | ui->headerOSK->hide(); | ||
| 425 | ui->subOSK->hide(); | ||
| 426 | ui->inputOSK->hide(); | ||
| 427 | ui->charactersOSK->hide(); | ||
| 428 | ui->inputBoxOSK->hide(); | ||
| 429 | ui->charactersBoxOSK->hide(); | ||
| 430 | |||
| 431 | initialize_parameters.max_text_length = appear_parameters.max_text_length; | ||
| 432 | initialize_parameters.min_text_length = appear_parameters.min_text_length; | ||
| 433 | initialize_parameters.type = appear_parameters.type; | ||
| 434 | initialize_parameters.key_disable_flags = appear_parameters.key_disable_flags; | ||
| 435 | initialize_parameters.enable_backspace_button = appear_parameters.enable_backspace_button; | ||
| 436 | initialize_parameters.enable_return_button = appear_parameters.enable_return_button; | ||
| 437 | initialize_parameters.disable_cancel_button = initialize_parameters.disable_cancel_button; | ||
| 438 | |||
| 439 | SetKeyboardType(); | ||
| 440 | SetControllerImage(); | ||
| 441 | DisableKeyboardButtons(); | ||
| 442 | SetBackspaceOkEnabled(); | ||
| 443 | |||
| 444 | open(); | ||
| 445 | } | ||
| 446 | |||
| 447 | void QtSoftwareKeyboardDialog::HideInlineKeyboard() { | ||
| 448 | StopInputThread(); | ||
| 449 | QDialog::hide(); | ||
| 450 | } | ||
| 451 | |||
| 452 | void QtSoftwareKeyboardDialog::InlineTextChanged( | ||
| 453 | Core::Frontend::InlineTextParameters text_parameters) { | ||
| 454 | current_text = text_parameters.input_text; | ||
| 455 | cursor_position = text_parameters.cursor_position; | ||
| 456 | |||
| 457 | SetBackspaceOkEnabled(); | ||
| 458 | } | ||
| 459 | |||
| 460 | void QtSoftwareKeyboardDialog::ExitKeyboard() { | ||
| 461 | StopInputThread(); | ||
| 462 | QDialog::done(QDialog::Accepted); | ||
| 463 | } | ||
| 464 | |||
| 465 | void QtSoftwareKeyboardDialog::open() { | ||
| 466 | QDialog::open(); | ||
| 467 | |||
| 468 | row = 0; | ||
| 469 | column = 0; | ||
| 470 | |||
| 471 | const auto* const curr_button = | ||
| 472 | keyboard_buttons[static_cast<int>(bottom_osk_index)][row][column]; | ||
| 473 | |||
| 474 | // This is a workaround for setFocus() randomly not showing focus in the UI | ||
| 475 | QCursor::setPos(curr_button->mapToGlobal(curr_button->rect().center())); | ||
| 476 | |||
| 477 | StartInputThread(); | ||
| 478 | } | ||
| 479 | |||
| 480 | void QtSoftwareKeyboardDialog::reject() { | ||
| 481 | // Pressing the ESC key in a dialog calls QDialog::reject(). | ||
| 482 | // We will override this behavior to the "Cancel" action on the software keyboard. | ||
| 483 | if (is_inline) { | ||
| 484 | emit SubmitInlineText(SwkbdReplyType::DecidedCancel, current_text, cursor_position); | ||
| 485 | } else { | ||
| 486 | emit SubmitNormalText(SwkbdResult::Cancel, current_text); | ||
| 487 | } | ||
| 488 | } | ||
| 489 | |||
| 490 | void QtSoftwareKeyboardDialog::keyPressEvent(QKeyEvent* event) { | ||
| 491 | if (!is_inline) { | ||
| 492 | QDialog::keyPressEvent(event); | ||
| 493 | return; | ||
| 494 | } | ||
| 495 | |||
| 496 | const auto entered_key = event->key(); | ||
| 497 | |||
| 498 | switch (entered_key) { | ||
| 499 | case Qt::Key_Escape: | ||
| 500 | QDialog::keyPressEvent(event); | ||
| 501 | return; | ||
| 502 | case Qt::Key_Backspace: | ||
| 503 | switch (bottom_osk_index) { | ||
| 504 | case BottomOSKIndex::LowerCase: | ||
| 505 | ui->button_backspace->click(); | ||
| 506 | break; | ||
| 507 | case BottomOSKIndex::UpperCase: | ||
| 508 | ui->button_backspace_shift->click(); | ||
| 509 | break; | ||
| 510 | case BottomOSKIndex::NumberPad: | ||
| 511 | ui->button_backspace_num->click(); | ||
| 512 | break; | ||
| 513 | default: | ||
| 514 | break; | ||
| 515 | } | ||
| 516 | return; | ||
| 517 | case Qt::Key_Return: | ||
| 518 | switch (bottom_osk_index) { | ||
| 519 | case BottomOSKIndex::LowerCase: | ||
| 520 | ui->button_ok->click(); | ||
| 521 | break; | ||
| 522 | case BottomOSKIndex::UpperCase: | ||
| 523 | ui->button_ok_shift->click(); | ||
| 524 | break; | ||
| 525 | case BottomOSKIndex::NumberPad: | ||
| 526 | ui->button_ok_num->click(); | ||
| 527 | break; | ||
| 528 | default: | ||
| 529 | break; | ||
| 530 | } | ||
| 531 | return; | ||
| 532 | case Qt::Key_Left: | ||
| 533 | MoveTextCursorDirection(Direction::Left); | ||
| 534 | return; | ||
| 535 | case Qt::Key_Right: | ||
| 536 | MoveTextCursorDirection(Direction::Right); | ||
| 537 | return; | ||
| 538 | default: | ||
| 539 | break; | ||
| 540 | } | ||
| 541 | |||
| 542 | const auto entered_text = event->text(); | ||
| 543 | |||
| 544 | if (entered_text.isEmpty()) { | ||
| 545 | return; | ||
| 546 | } | ||
| 547 | |||
| 548 | InlineTextInsertString(entered_text.toStdU16String()); | ||
| 549 | } | ||
| 550 | |||
| 551 | void QtSoftwareKeyboardDialog::MoveAndResizeWindow(QPoint pos, QSize size) { | ||
| 552 | QDialog::move(pos); | ||
| 553 | QDialog::resize(size); | ||
| 554 | |||
| 555 | // High DPI | ||
| 556 | const float dpi_scale = qApp->screenAt(pos)->logicalDotsPerInch() / 96.0f; | ||
| 557 | |||
| 558 | RescaleKeyboardElements(size.width(), size.height(), dpi_scale); | ||
| 559 | } | ||
| 560 | |||
| 561 | void QtSoftwareKeyboardDialog::RescaleKeyboardElements(float width, float height, float dpi_scale) { | ||
| 562 | const auto header_font_size = BASE_HEADER_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale; | ||
| 563 | const auto sub_font_size = BASE_SUB_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale; | ||
| 564 | const auto editor_font_size = BASE_EDITOR_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale; | ||
| 565 | const auto char_button_font_size = | ||
| 566 | BASE_CHAR_BUTTON_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale; | ||
| 567 | const auto label_button_font_size = | ||
| 568 | BASE_LABEL_BUTTON_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale; | ||
| 569 | |||
| 570 | QFont header_font(QStringLiteral("MS Shell Dlg 2"), header_font_size, QFont::Normal); | ||
| 571 | QFont sub_font(QStringLiteral("MS Shell Dlg 2"), sub_font_size, QFont::Normal); | ||
| 572 | QFont editor_font(QStringLiteral("MS Shell Dlg 2"), editor_font_size, QFont::Normal); | ||
| 573 | QFont char_button_font(QStringLiteral("MS Shell Dlg 2"), char_button_font_size, QFont::Normal); | ||
| 574 | QFont label_button_font(QStringLiteral("MS Shell Dlg 2"), label_button_font_size, | ||
| 575 | QFont::Normal); | ||
| 576 | |||
| 577 | ui->label_header->setFont(header_font); | ||
| 578 | ui->label_sub->setFont(sub_font); | ||
| 579 | ui->line_edit_osk->setFont(editor_font); | ||
| 580 | ui->text_edit_osk->setFont(editor_font); | ||
| 581 | ui->label_characters->setFont(sub_font); | ||
| 582 | ui->label_characters_box->setFont(sub_font); | ||
| 583 | |||
| 584 | ui->label_shift->setFont(label_button_font); | ||
| 585 | ui->label_shift_shift->setFont(label_button_font); | ||
| 586 | ui->label_cancel->setFont(label_button_font); | ||
| 587 | ui->label_cancel_shift->setFont(label_button_font); | ||
| 588 | ui->label_cancel_num->setFont(label_button_font); | ||
| 589 | ui->label_enter->setFont(label_button_font); | ||
| 590 | ui->label_enter_shift->setFont(label_button_font); | ||
| 591 | ui->label_enter_num->setFont(label_button_font); | ||
| 592 | |||
| 593 | for (auto* button : all_buttons) { | ||
| 594 | if (button == ui->button_return || button == ui->button_return_shift) { | ||
| 595 | button->setFont(label_button_font); | ||
| 596 | continue; | ||
| 597 | } | ||
| 598 | |||
| 599 | if (button == ui->button_space || button == ui->button_space_shift) { | ||
| 600 | button->setFont(label_button_font); | ||
| 601 | continue; | ||
| 602 | } | ||
| 603 | |||
| 604 | if (button == ui->button_shift || button == ui->button_shift_shift) { | ||
| 605 | button->setFont(label_button_font); | ||
| 606 | button->setIconSize(QSize(BASE_ICON_BUTTON_SIZE, BASE_ICON_BUTTON_SIZE) * | ||
| 607 | (height / BASE_HEIGHT)); | ||
| 608 | continue; | ||
| 609 | } | ||
| 610 | |||
| 611 | if (button == ui->button_backspace || button == ui->button_backspace_shift || | ||
| 612 | button == ui->button_backspace_num) { | ||
| 613 | button->setFont(label_button_font); | ||
| 614 | button->setIconSize(QSize(BASE_ICON_BUTTON_SIZE, BASE_ICON_BUTTON_SIZE) * | ||
| 615 | (height / BASE_HEIGHT)); | ||
| 616 | continue; | ||
| 617 | } | ||
| 618 | |||
| 619 | if (button == ui->button_ok || button == ui->button_ok_shift || | ||
| 620 | button == ui->button_ok_num) { | ||
| 621 | button->setFont(label_button_font); | ||
| 622 | continue; | ||
| 623 | } | ||
| 624 | |||
| 625 | button->setFont(char_button_font); | ||
| 626 | } | ||
| 627 | } | ||
| 628 | |||
| 629 | void QtSoftwareKeyboardDialog::SetKeyboardType() { | ||
| 630 | switch (initialize_parameters.type) { | ||
| 631 | case SwkbdType::Normal: | ||
| 632 | case SwkbdType::Qwerty: | ||
| 633 | case SwkbdType::Unknown3: | ||
| 634 | case SwkbdType::Latin: | ||
| 635 | case SwkbdType::SimplifiedChinese: | ||
| 636 | case SwkbdType::TraditionalChinese: | ||
| 637 | case SwkbdType::Korean: | ||
| 638 | default: { | ||
| 639 | bottom_osk_index = BottomOSKIndex::LowerCase; | ||
| 640 | ui->bottomOSK->setCurrentIndex(static_cast<int>(bottom_osk_index)); | ||
| 641 | |||
| 642 | ui->verticalLayout_2->setStretch(0, 320); | ||
| 643 | ui->verticalLayout_2->setStretch(1, 400); | ||
| 644 | |||
| 645 | ui->gridLineOSK->setRowStretch(5, 94); | ||
| 646 | ui->gridBoxOSK->setRowStretch(2, 81); | ||
| 647 | break; | ||
| 648 | } | ||
| 649 | case SwkbdType::NumberPad: { | ||
| 650 | bottom_osk_index = BottomOSKIndex::NumberPad; | ||
| 651 | ui->bottomOSK->setCurrentIndex(static_cast<int>(bottom_osk_index)); | ||
| 652 | |||
| 653 | ui->verticalLayout_2->setStretch(0, 370); | ||
| 654 | ui->verticalLayout_2->setStretch(1, 350); | ||
| 655 | |||
| 656 | ui->gridLineOSK->setRowStretch(5, 144); | ||
| 657 | ui->gridBoxOSK->setRowStretch(2, 131); | ||
| 658 | break; | ||
| 659 | } | ||
| 660 | } | ||
| 661 | } | ||
| 662 | |||
| 663 | void QtSoftwareKeyboardDialog::SetPasswordMode() { | ||
| 664 | switch (initialize_parameters.password_mode) { | ||
| 665 | case SwkbdPasswordMode::Disabled: | ||
| 666 | default: | ||
| 667 | ui->line_edit_osk->setEchoMode(QLineEdit::Normal); | ||
| 668 | break; | ||
| 669 | case SwkbdPasswordMode::Enabled: | ||
| 670 | ui->line_edit_osk->setEchoMode(QLineEdit::Password); | ||
| 671 | break; | ||
| 672 | } | ||
| 673 | } | ||
| 674 | |||
| 675 | void QtSoftwareKeyboardDialog::SetTextDrawType() { | ||
| 676 | switch (initialize_parameters.text_draw_type) { | ||
| 677 | case SwkbdTextDrawType::Line: | ||
| 678 | case SwkbdTextDrawType::DownloadCode: { | ||
| 679 | ui->topOSK->setCurrentIndex(0); | ||
| 680 | |||
| 681 | if (initialize_parameters.max_text_length <= 10) { | ||
| 682 | ui->gridLineOSK->setColumnStretch(0, 390); | ||
| 683 | ui->gridLineOSK->setColumnStretch(1, 500); | ||
| 684 | ui->gridLineOSK->setColumnStretch(2, 390); | ||
| 685 | } else { | ||
| 686 | ui->gridLineOSK->setColumnStretch(0, 130); | ||
| 687 | ui->gridLineOSK->setColumnStretch(1, 1020); | ||
| 688 | ui->gridLineOSK->setColumnStretch(2, 130); | ||
| 689 | } | ||
| 690 | |||
| 691 | if (is_inline) { | ||
| 692 | return; | ||
| 693 | } | ||
| 694 | |||
| 695 | connect(ui->line_edit_osk, &QLineEdit::textChanged, [this](const QString& changed_string) { | ||
| 696 | const auto is_valid = ValidateInputText(changed_string); | ||
| 697 | |||
| 698 | const auto text_length = static_cast<u32>(changed_string.length()); | ||
| 699 | |||
| 700 | ui->label_characters->setText(QStringLiteral("%1/%2") | ||
| 701 | .arg(text_length) | ||
| 702 | .arg(initialize_parameters.max_text_length)); | ||
| 703 | |||
| 704 | ui->button_ok->setEnabled(is_valid); | ||
| 705 | ui->button_ok_shift->setEnabled(is_valid); | ||
| 706 | ui->button_ok_num->setEnabled(is_valid); | ||
| 707 | |||
| 708 | ui->line_edit_osk->setFocus(); | ||
| 709 | }); | ||
| 710 | |||
| 711 | connect(ui->line_edit_osk, &QLineEdit::cursorPositionChanged, | ||
| 712 | [this](int old_cursor_position, int new_cursor_position) { | ||
| 713 | ui->button_backspace->setEnabled( | ||
| 714 | initialize_parameters.enable_backspace_button && new_cursor_position > 0); | ||
| 715 | ui->button_backspace_shift->setEnabled( | ||
| 716 | initialize_parameters.enable_backspace_button && new_cursor_position > 0); | ||
| 717 | ui->button_backspace_num->setEnabled( | ||
| 718 | initialize_parameters.enable_backspace_button && new_cursor_position > 0); | ||
| 719 | |||
| 720 | ui->line_edit_osk->setFocus(); | ||
| 721 | }); | ||
| 722 | |||
| 723 | connect(ui->line_edit_osk, &QLineEdit::returnPressed, [this] { | ||
| 724 | switch (bottom_osk_index) { | ||
| 725 | case BottomOSKIndex::LowerCase: | ||
| 726 | ui->button_ok->click(); | ||
| 727 | break; | ||
| 728 | case BottomOSKIndex::UpperCase: | ||
| 729 | ui->button_ok_shift->click(); | ||
| 730 | break; | ||
| 731 | case BottomOSKIndex::NumberPad: | ||
| 732 | ui->button_ok_num->click(); | ||
| 733 | break; | ||
| 734 | default: | ||
| 735 | break; | ||
| 736 | } | ||
| 737 | }); | ||
| 738 | |||
| 739 | ui->line_edit_osk->setPlaceholderText( | ||
| 740 | QString::fromStdU16String(initialize_parameters.guide_text)); | ||
| 741 | ui->line_edit_osk->setText(QString::fromStdU16String(initialize_parameters.initial_text)); | ||
| 742 | ui->line_edit_osk->setMaxLength(initialize_parameters.max_text_length); | ||
| 743 | ui->line_edit_osk->setCursorPosition(initialize_parameters.initial_cursor_position); | ||
| 744 | |||
| 745 | ui->label_characters->setText(QStringLiteral("%1/%2") | ||
| 746 | .arg(initialize_parameters.initial_text.size()) | ||
| 747 | .arg(initialize_parameters.max_text_length)); | ||
| 748 | break; | ||
| 749 | } | ||
| 750 | case SwkbdTextDrawType::Box: | ||
| 751 | default: { | ||
| 752 | ui->topOSK->setCurrentIndex(1); | ||
| 753 | |||
| 754 | if (is_inline) { | ||
| 755 | return; | ||
| 756 | } | ||
| 757 | |||
| 758 | connect(ui->text_edit_osk, &QTextEdit::textChanged, [this] { | ||
| 759 | if (static_cast<u32>(ui->text_edit_osk->toPlainText().length()) > | ||
| 760 | initialize_parameters.max_text_length) { | ||
| 761 | auto text_cursor = ui->text_edit_osk->textCursor(); | ||
| 762 | ui->text_edit_osk->setTextCursor(text_cursor); | ||
| 763 | text_cursor.deletePreviousChar(); | ||
| 764 | } | ||
| 765 | |||
| 766 | const auto is_valid = ValidateInputText(ui->text_edit_osk->toPlainText()); | ||
| 767 | |||
| 768 | const auto text_length = static_cast<u32>(ui->text_edit_osk->toPlainText().length()); | ||
| 769 | |||
| 770 | ui->label_characters_box->setText(QStringLiteral("%1/%2") | ||
| 771 | .arg(text_length) | ||
| 772 | .arg(initialize_parameters.max_text_length)); | ||
| 773 | |||
| 774 | ui->button_ok->setEnabled(is_valid); | ||
| 775 | ui->button_ok_shift->setEnabled(is_valid); | ||
| 776 | ui->button_ok_num->setEnabled(is_valid); | ||
| 777 | |||
| 778 | ui->text_edit_osk->setFocus(); | ||
| 779 | }); | ||
| 780 | |||
| 781 | connect(ui->text_edit_osk, &QTextEdit::cursorPositionChanged, [this] { | ||
| 782 | const auto new_cursor_position = ui->text_edit_osk->textCursor().position(); | ||
| 783 | |||
| 784 | ui->button_backspace->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 785 | new_cursor_position > 0); | ||
| 786 | ui->button_backspace_shift->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 787 | new_cursor_position > 0); | ||
| 788 | ui->button_backspace_num->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 789 | new_cursor_position > 0); | ||
| 790 | |||
| 791 | ui->text_edit_osk->setFocus(); | ||
| 792 | }); | ||
| 793 | |||
| 794 | ui->text_edit_osk->setPlaceholderText( | ||
| 795 | QString::fromStdU16String(initialize_parameters.guide_text)); | ||
| 796 | ui->text_edit_osk->setText(QString::fromStdU16String(initialize_parameters.initial_text)); | ||
| 797 | ui->text_edit_osk->moveCursor(initialize_parameters.initial_cursor_position == 0 | ||
| 798 | ? QTextCursor::Start | ||
| 799 | : QTextCursor::End); | ||
| 800 | |||
| 801 | ui->label_characters_box->setText(QStringLiteral("%1/%2") | ||
| 802 | .arg(initialize_parameters.initial_text.size()) | ||
| 803 | .arg(initialize_parameters.max_text_length)); | ||
| 804 | break; | ||
| 805 | } | ||
| 806 | } | ||
| 807 | } | ||
| 808 | |||
| 809 | void QtSoftwareKeyboardDialog::SetControllerImage() { | ||
| 810 | const auto controller_type = Settings::values.players.GetValue()[8].connected | ||
| 811 | ? Settings::values.players.GetValue()[8].controller_type | ||
| 812 | : Settings::values.players.GetValue()[0].controller_type; | ||
| 813 | |||
| 814 | const QString theme = [] { | ||
| 815 | if (QIcon::themeName().contains(QStringLiteral("dark")) || | ||
| 816 | QIcon::themeName().contains(QStringLiteral("midnight"))) { | ||
| 817 | return QStringLiteral("_dark"); | ||
| 818 | } else { | ||
| 819 | return QString{}; | ||
| 820 | } | ||
| 821 | }(); | ||
| 822 | |||
| 823 | switch (controller_type) { | ||
| 824 | case Settings::ControllerType::ProController: | ||
| 825 | case Settings::ControllerType::GameCube: | ||
| 826 | ui->icon_controller->setStyleSheet( | ||
| 827 | QStringLiteral("image: url(:/overlay/controller_pro%1.png);").arg(theme)); | ||
| 828 | ui->icon_controller_shift->setStyleSheet( | ||
| 829 | QStringLiteral("image: url(:/overlay/controller_pro%1.png);").arg(theme)); | ||
| 830 | ui->icon_controller_num->setStyleSheet( | ||
| 831 | QStringLiteral("image: url(:/overlay/controller_pro%1.png);").arg(theme)); | ||
| 832 | break; | ||
| 833 | case Settings::ControllerType::DualJoyconDetached: | ||
| 834 | ui->icon_controller->setStyleSheet( | ||
| 835 | QStringLiteral("image: url(:/overlay/controller_dual_joycon%1.png);").arg(theme)); | ||
| 836 | ui->icon_controller_shift->setStyleSheet( | ||
| 837 | QStringLiteral("image: url(:/overlay/controller_dual_joycon%1.png);").arg(theme)); | ||
| 838 | ui->icon_controller_num->setStyleSheet( | ||
| 839 | QStringLiteral("image: url(:/overlay/controller_dual_joycon%1.png);").arg(theme)); | ||
| 840 | break; | ||
| 841 | case Settings::ControllerType::LeftJoycon: | ||
| 842 | ui->icon_controller->setStyleSheet( | ||
| 843 | QStringLiteral("image: url(:/overlay/controller_single_joycon_left%1.png);") | ||
| 844 | .arg(theme)); | ||
| 845 | ui->icon_controller_shift->setStyleSheet( | ||
| 846 | QStringLiteral("image: url(:/overlay/controller_single_joycon_left%1.png);") | ||
| 847 | .arg(theme)); | ||
| 848 | ui->icon_controller_num->setStyleSheet( | ||
| 849 | QStringLiteral("image: url(:/overlay/controller_single_joycon_left%1.png);") | ||
| 850 | .arg(theme)); | ||
| 851 | break; | ||
| 852 | case Settings::ControllerType::RightJoycon: | ||
| 853 | ui->icon_controller->setStyleSheet( | ||
| 854 | QStringLiteral("image: url(:/overlay/controller_single_joycon_right%1.png);") | ||
| 855 | .arg(theme)); | ||
| 856 | ui->icon_controller_shift->setStyleSheet( | ||
| 857 | QStringLiteral("image: url(:/overlay/controller_single_joycon_right%1.png);") | ||
| 858 | .arg(theme)); | ||
| 859 | ui->icon_controller_num->setStyleSheet( | ||
| 860 | QStringLiteral("image: url(:/overlay/controller_single_joycon_right%1.png);") | ||
| 861 | .arg(theme)); | ||
| 862 | break; | ||
| 863 | case Settings::ControllerType::Handheld: | ||
| 864 | ui->icon_controller->setStyleSheet( | ||
| 865 | QStringLiteral("image: url(:/overlay/controller_handheld%1.png);").arg(theme)); | ||
| 866 | ui->icon_controller_shift->setStyleSheet( | ||
| 867 | QStringLiteral("image: url(:/overlay/controller_handheld%1.png);").arg(theme)); | ||
| 868 | ui->icon_controller_num->setStyleSheet( | ||
| 869 | QStringLiteral("image: url(:/overlay/controller_handheld%1.png);").arg(theme)); | ||
| 870 | break; | ||
| 871 | default: | ||
| 872 | break; | ||
| 873 | } | ||
| 874 | } | ||
| 7 | 875 | ||
| 8 | QtSoftwareKeyboardValidator::QtSoftwareKeyboardValidator() {} | 876 | void QtSoftwareKeyboardDialog::DisableKeyboardButtons() { |
| 877 | switch (bottom_osk_index) { | ||
| 878 | case BottomOSKIndex::LowerCase: | ||
| 879 | case BottomOSKIndex::UpperCase: | ||
| 880 | default: { | ||
| 881 | for (const auto& keys : keyboard_buttons) { | ||
| 882 | for (const auto& rows : keys) { | ||
| 883 | for (auto* button : rows) { | ||
| 884 | if (!button) { | ||
| 885 | continue; | ||
| 886 | } | ||
| 9 | 887 | ||
| 10 | QValidator::State QtSoftwareKeyboardValidator::validate(QString& input, int& pos) const {} | 888 | button->setEnabled(true); |
| 889 | } | ||
| 890 | } | ||
| 891 | } | ||
| 11 | 892 | ||
| 12 | QtSoftwareKeyboardDialog::QtSoftwareKeyboardDialog(QWidget* parent) : QDialog(parent) {} | 893 | const auto& key_disable_flags = initialize_parameters.key_disable_flags; |
| 13 | 894 | ||
| 14 | QtSoftwareKeyboardDialog::~QtSoftwareKeyboardDialog() = default; | 895 | ui->button_space->setDisabled(key_disable_flags.space); |
| 896 | ui->button_space_shift->setDisabled(key_disable_flags.space); | ||
| 15 | 897 | ||
| 16 | QtSoftwareKeyboard::QtSoftwareKeyboard(GMainWindow& main_window) {} | 898 | ui->button_at->setDisabled(key_disable_flags.at || key_disable_flags.username); |
| 899 | |||
| 900 | ui->button_percent->setDisabled(key_disable_flags.percent || key_disable_flags.username); | ||
| 901 | |||
| 902 | ui->button_slash->setDisabled(key_disable_flags.slash); | ||
| 903 | |||
| 904 | ui->button_1->setDisabled(key_disable_flags.numbers); | ||
| 905 | ui->button_2->setDisabled(key_disable_flags.numbers); | ||
| 906 | ui->button_3->setDisabled(key_disable_flags.numbers); | ||
| 907 | ui->button_4->setDisabled(key_disable_flags.numbers); | ||
| 908 | ui->button_5->setDisabled(key_disable_flags.numbers); | ||
| 909 | ui->button_6->setDisabled(key_disable_flags.numbers); | ||
| 910 | ui->button_7->setDisabled(key_disable_flags.numbers); | ||
| 911 | ui->button_8->setDisabled(key_disable_flags.numbers); | ||
| 912 | ui->button_9->setDisabled(key_disable_flags.numbers); | ||
| 913 | ui->button_0->setDisabled(key_disable_flags.numbers); | ||
| 914 | |||
| 915 | ui->button_return->setEnabled(initialize_parameters.enable_return_button); | ||
| 916 | ui->button_return_shift->setEnabled(initialize_parameters.enable_return_button); | ||
| 917 | break; | ||
| 918 | } | ||
| 919 | case BottomOSKIndex::NumberPad: { | ||
| 920 | for (const auto& rows : numberpad_buttons) { | ||
| 921 | for (auto* button : rows) { | ||
| 922 | if (!button) { | ||
| 923 | continue; | ||
| 924 | } | ||
| 925 | |||
| 926 | button->setEnabled(true); | ||
| 927 | } | ||
| 928 | } | ||
| 929 | break; | ||
| 930 | } | ||
| 931 | } | ||
| 932 | } | ||
| 933 | |||
| 934 | void QtSoftwareKeyboardDialog::SetBackspaceOkEnabled() { | ||
| 935 | if (is_inline) { | ||
| 936 | ui->button_ok->setEnabled(current_text.size() >= initialize_parameters.min_text_length); | ||
| 937 | ui->button_ok_shift->setEnabled(current_text.size() >= | ||
| 938 | initialize_parameters.min_text_length); | ||
| 939 | ui->button_ok_num->setEnabled(current_text.size() >= initialize_parameters.min_text_length); | ||
| 940 | |||
| 941 | ui->button_backspace->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 942 | cursor_position > 0); | ||
| 943 | ui->button_backspace_shift->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 944 | cursor_position > 0); | ||
| 945 | ui->button_backspace_num->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 946 | cursor_position > 0); | ||
| 947 | } else { | ||
| 948 | const auto text_length = [this] { | ||
| 949 | if (ui->topOSK->currentIndex() == 1) { | ||
| 950 | return static_cast<u32>(ui->text_edit_osk->toPlainText().length()); | ||
| 951 | } else { | ||
| 952 | return static_cast<u32>(ui->line_edit_osk->text().length()); | ||
| 953 | } | ||
| 954 | }(); | ||
| 955 | |||
| 956 | const auto normal_cursor_position = [this] { | ||
| 957 | if (ui->topOSK->currentIndex() == 1) { | ||
| 958 | return ui->text_edit_osk->textCursor().position(); | ||
| 959 | } else { | ||
| 960 | return ui->line_edit_osk->cursorPosition(); | ||
| 961 | } | ||
| 962 | }(); | ||
| 963 | |||
| 964 | ui->button_ok->setEnabled(text_length >= initialize_parameters.min_text_length); | ||
| 965 | ui->button_ok_shift->setEnabled(text_length >= initialize_parameters.min_text_length); | ||
| 966 | ui->button_ok_num->setEnabled(text_length >= initialize_parameters.min_text_length); | ||
| 967 | |||
| 968 | ui->button_backspace->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 969 | normal_cursor_position > 0); | ||
| 970 | ui->button_backspace_shift->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 971 | normal_cursor_position > 0); | ||
| 972 | ui->button_backspace_num->setEnabled(initialize_parameters.enable_backspace_button && | ||
| 973 | normal_cursor_position > 0); | ||
| 974 | } | ||
| 975 | } | ||
| 976 | |||
| 977 | bool QtSoftwareKeyboardDialog::ValidateInputText(const QString& input_text) { | ||
| 978 | const auto& key_disable_flags = initialize_parameters.key_disable_flags; | ||
| 979 | |||
| 980 | const auto input_text_length = static_cast<u32>(input_text.length()); | ||
| 981 | |||
| 982 | if (input_text_length < initialize_parameters.min_text_length || | ||
| 983 | input_text_length > initialize_parameters.max_text_length) { | ||
| 984 | return false; | ||
| 985 | } | ||
| 986 | |||
| 987 | if (key_disable_flags.space && input_text.contains(QLatin1Char{' '})) { | ||
| 988 | return false; | ||
| 989 | } | ||
| 990 | |||
| 991 | if ((key_disable_flags.at || key_disable_flags.username) && | ||
| 992 | input_text.contains(QLatin1Char{'@'})) { | ||
| 993 | return false; | ||
| 994 | } | ||
| 995 | |||
| 996 | if ((key_disable_flags.percent || key_disable_flags.username) && | ||
| 997 | input_text.contains(QLatin1Char{'%'})) { | ||
| 998 | return false; | ||
| 999 | } | ||
| 1000 | |||
| 1001 | if (key_disable_flags.slash && input_text.contains(QLatin1Char{'/'})) { | ||
| 1002 | return false; | ||
| 1003 | } | ||
| 1004 | |||
| 1005 | if ((key_disable_flags.backslash || key_disable_flags.username) && | ||
| 1006 | input_text.contains(QLatin1Char('\\'))) { | ||
| 1007 | return false; | ||
| 1008 | } | ||
| 1009 | |||
| 1010 | if (key_disable_flags.numbers && | ||
| 1011 | std::any_of(input_text.begin(), input_text.end(), [](QChar c) { return c.isDigit(); })) { | ||
| 1012 | return false; | ||
| 1013 | } | ||
| 1014 | |||
| 1015 | if (bottom_osk_index == BottomOSKIndex::NumberPad && | ||
| 1016 | std::any_of(input_text.begin(), input_text.end(), [](QChar c) { return !c.isDigit(); })) { | ||
| 1017 | return false; | ||
| 1018 | } | ||
| 1019 | |||
| 1020 | return true; | ||
| 1021 | } | ||
| 1022 | |||
| 1023 | void QtSoftwareKeyboardDialog::ChangeBottomOSKIndex() { | ||
| 1024 | switch (bottom_osk_index) { | ||
| 1025 | case BottomOSKIndex::LowerCase: | ||
| 1026 | bottom_osk_index = BottomOSKIndex::UpperCase; | ||
| 1027 | ui->bottomOSK->setCurrentIndex(static_cast<int>(bottom_osk_index)); | ||
| 1028 | |||
| 1029 | ui->button_shift_shift->setStyleSheet( | ||
| 1030 | QStringLiteral("background-image: url(:/overlay/osk_button_shift_lock_off.png);" | ||
| 1031 | "\nbackground-position: left top;" | ||
| 1032 | "\nbackground-repeat: no-repeat;" | ||
| 1033 | "\nbackground-origin: content;")); | ||
| 1034 | |||
| 1035 | ui->button_shift_shift->setIconSize(ui->button_shift->iconSize()); | ||
| 1036 | ui->button_backspace_shift->setIconSize(ui->button_backspace->iconSize()); | ||
| 1037 | break; | ||
| 1038 | case BottomOSKIndex::UpperCase: | ||
| 1039 | if (caps_lock_enabled) { | ||
| 1040 | caps_lock_enabled = false; | ||
| 1041 | |||
| 1042 | ui->button_shift_shift->setStyleSheet( | ||
| 1043 | QStringLiteral("background-image: url(:/overlay/osk_button_shift_lock_off.png);" | ||
| 1044 | "\nbackground-position: left top;" | ||
| 1045 | "\nbackground-repeat: no-repeat;" | ||
| 1046 | "\nbackground-origin: content;")); | ||
| 1047 | |||
| 1048 | ui->button_shift_shift->setIconSize(ui->button_shift->iconSize()); | ||
| 1049 | ui->button_backspace_shift->setIconSize(ui->button_backspace->iconSize()); | ||
| 1050 | |||
| 1051 | ui->label_shift_shift->setText(QStringLiteral("Caps Lock")); | ||
| 1052 | |||
| 1053 | bottom_osk_index = BottomOSKIndex::LowerCase; | ||
| 1054 | ui->bottomOSK->setCurrentIndex(static_cast<int>(bottom_osk_index)); | ||
| 1055 | } else { | ||
| 1056 | caps_lock_enabled = true; | ||
| 1057 | |||
| 1058 | ui->button_shift_shift->setStyleSheet( | ||
| 1059 | QStringLiteral("background-image: url(:/overlay/osk_button_shift_lock_on.png);" | ||
| 1060 | "\nbackground-position: left top;" | ||
| 1061 | "\nbackground-repeat: no-repeat;" | ||
| 1062 | "\nbackground-origin: content;")); | ||
| 1063 | |||
| 1064 | ui->button_shift_shift->setIconSize(ui->button_shift->iconSize()); | ||
| 1065 | ui->button_backspace_shift->setIconSize(ui->button_backspace->iconSize()); | ||
| 1066 | |||
| 1067 | ui->label_shift_shift->setText(QStringLiteral("Caps Lock Off")); | ||
| 1068 | } | ||
| 1069 | break; | ||
| 1070 | case BottomOSKIndex::NumberPad: | ||
| 1071 | default: | ||
| 1072 | break; | ||
| 1073 | } | ||
| 1074 | } | ||
| 1075 | |||
| 1076 | void QtSoftwareKeyboardDialog::NormalKeyboardButtonClicked(QPushButton* button) { | ||
| 1077 | if (button == ui->button_ampersand) { | ||
| 1078 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1079 | ui->text_edit_osk->insertPlainText(QStringLiteral("&")); | ||
| 1080 | } else { | ||
| 1081 | ui->line_edit_osk->insert(QStringLiteral("&")); | ||
| 1082 | } | ||
| 1083 | return; | ||
| 1084 | } | ||
| 1085 | |||
| 1086 | if (button == ui->button_return || button == ui->button_return_shift) { | ||
| 1087 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1088 | ui->text_edit_osk->insertPlainText(QStringLiteral("\n")); | ||
| 1089 | } else { | ||
| 1090 | ui->line_edit_osk->insert(QStringLiteral("\n")); | ||
| 1091 | } | ||
| 1092 | return; | ||
| 1093 | } | ||
| 1094 | |||
| 1095 | if (button == ui->button_space || button == ui->button_space_shift) { | ||
| 1096 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1097 | ui->text_edit_osk->insertPlainText(QStringLiteral(" ")); | ||
| 1098 | } else { | ||
| 1099 | ui->line_edit_osk->insert(QStringLiteral(" ")); | ||
| 1100 | } | ||
| 1101 | return; | ||
| 1102 | } | ||
| 1103 | |||
| 1104 | if (button == ui->button_shift || button == ui->button_shift_shift) { | ||
| 1105 | ChangeBottomOSKIndex(); | ||
| 1106 | return; | ||
| 1107 | } | ||
| 1108 | |||
| 1109 | if (button == ui->button_backspace || button == ui->button_backspace_shift || | ||
| 1110 | button == ui->button_backspace_num) { | ||
| 1111 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1112 | auto text_cursor = ui->text_edit_osk->textCursor(); | ||
| 1113 | ui->text_edit_osk->setTextCursor(text_cursor); | ||
| 1114 | text_cursor.deletePreviousChar(); | ||
| 1115 | } else { | ||
| 1116 | ui->line_edit_osk->backspace(); | ||
| 1117 | } | ||
| 1118 | return; | ||
| 1119 | } | ||
| 1120 | |||
| 1121 | if (button == ui->button_ok || button == ui->button_ok_shift || button == ui->button_ok_num) { | ||
| 1122 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1123 | emit SubmitNormalText(SwkbdResult::Ok, | ||
| 1124 | ui->text_edit_osk->toPlainText().toStdU16String()); | ||
| 1125 | } else { | ||
| 1126 | emit SubmitNormalText(SwkbdResult::Ok, ui->line_edit_osk->text().toStdU16String()); | ||
| 1127 | } | ||
| 1128 | return; | ||
| 1129 | } | ||
| 1130 | |||
| 1131 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1132 | ui->text_edit_osk->insertPlainText(button->text()); | ||
| 1133 | } else { | ||
| 1134 | ui->line_edit_osk->insert(button->text()); | ||
| 1135 | } | ||
| 1136 | |||
| 1137 | // Revert the keyboard to lowercase if the shift key is active. | ||
| 1138 | if (bottom_osk_index == BottomOSKIndex::UpperCase && !caps_lock_enabled) { | ||
| 1139 | // This is set to true since ChangeBottomOSKIndex will change bottom_osk_index to LowerCase | ||
| 1140 | // if bottom_osk_index is UpperCase and caps_lock_enabled is true. | ||
| 1141 | caps_lock_enabled = true; | ||
| 1142 | ChangeBottomOSKIndex(); | ||
| 1143 | } | ||
| 1144 | } | ||
| 1145 | |||
| 1146 | void QtSoftwareKeyboardDialog::InlineKeyboardButtonClicked(QPushButton* button) { | ||
| 1147 | if (!button->isEnabled()) { | ||
| 1148 | return; | ||
| 1149 | } | ||
| 1150 | |||
| 1151 | if (button == ui->button_ampersand) { | ||
| 1152 | InlineTextInsertString(u"&"); | ||
| 1153 | return; | ||
| 1154 | } | ||
| 1155 | |||
| 1156 | if (button == ui->button_return || button == ui->button_return_shift) { | ||
| 1157 | InlineTextInsertString(u"\n"); | ||
| 1158 | return; | ||
| 1159 | } | ||
| 1160 | |||
| 1161 | if (button == ui->button_space || button == ui->button_space_shift) { | ||
| 1162 | InlineTextInsertString(u" "); | ||
| 1163 | return; | ||
| 1164 | } | ||
| 1165 | |||
| 1166 | if (button == ui->button_shift || button == ui->button_shift_shift) { | ||
| 1167 | ChangeBottomOSKIndex(); | ||
| 1168 | return; | ||
| 1169 | } | ||
| 1170 | |||
| 1171 | if (button == ui->button_backspace || button == ui->button_backspace_shift || | ||
| 1172 | button == ui->button_backspace_num) { | ||
| 1173 | if (cursor_position <= 0 || current_text.empty()) { | ||
| 1174 | cursor_position = 0; | ||
| 1175 | return; | ||
| 1176 | } | ||
| 1177 | |||
| 1178 | --cursor_position; | ||
| 1179 | |||
| 1180 | current_text.erase(cursor_position, 1); | ||
| 1181 | |||
| 1182 | SetBackspaceOkEnabled(); | ||
| 1183 | |||
| 1184 | emit SubmitInlineText(SwkbdReplyType::ChangedString, current_text, cursor_position); | ||
| 1185 | return; | ||
| 1186 | } | ||
| 1187 | |||
| 1188 | if (button == ui->button_ok || button == ui->button_ok_shift || button == ui->button_ok_num) { | ||
| 1189 | emit SubmitInlineText(SwkbdReplyType::DecidedEnter, current_text, cursor_position); | ||
| 1190 | return; | ||
| 1191 | } | ||
| 1192 | |||
| 1193 | InlineTextInsertString(button->text().toStdU16String()); | ||
| 1194 | |||
| 1195 | // Revert the keyboard to lowercase if the shift key is active. | ||
| 1196 | if (bottom_osk_index == BottomOSKIndex::UpperCase && !caps_lock_enabled) { | ||
| 1197 | // This is set to true since ChangeBottomOSKIndex will change bottom_osk_index to LowerCase | ||
| 1198 | // if bottom_osk_index is UpperCase and caps_lock_enabled is true. | ||
| 1199 | caps_lock_enabled = true; | ||
| 1200 | ChangeBottomOSKIndex(); | ||
| 1201 | } | ||
| 1202 | } | ||
| 1203 | |||
| 1204 | void QtSoftwareKeyboardDialog::InlineTextInsertString(std::u16string_view string) { | ||
| 1205 | if ((current_text.size() + string.size()) > initialize_parameters.max_text_length) { | ||
| 1206 | return; | ||
| 1207 | } | ||
| 1208 | |||
| 1209 | current_text.insert(cursor_position, string); | ||
| 1210 | |||
| 1211 | cursor_position += static_cast<s32>(string.size()); | ||
| 1212 | |||
| 1213 | SetBackspaceOkEnabled(); | ||
| 1214 | |||
| 1215 | emit SubmitInlineText(SwkbdReplyType::ChangedString, current_text, cursor_position); | ||
| 1216 | } | ||
| 1217 | |||
| 1218 | void QtSoftwareKeyboardDialog::SetupMouseHover() { | ||
| 1219 | // setFocus() has a bug where continuously changing focus will cause the focus UI to | ||
| 1220 | // mysteriously disappear. A workaround we have found is using the mouse to hover over | ||
| 1221 | // the buttons to act in place of the button focus. As a result, we will have to set | ||
| 1222 | // a blank cursor when hovering over all the buttons and set a no focus policy so the | ||
| 1223 | // buttons do not stay in focus in addition to the mouse hover. | ||
| 1224 | for (auto* button : all_buttons) { | ||
| 1225 | button->setCursor(QCursor(Qt::BlankCursor)); | ||
| 1226 | button->setFocusPolicy(Qt::NoFocus); | ||
| 1227 | } | ||
| 1228 | } | ||
| 1229 | |||
| 1230 | template <HIDButton... T> | ||
| 1231 | void QtSoftwareKeyboardDialog::HandleButtonPressedOnce() { | ||
| 1232 | const auto f = [this](HIDButton button) { | ||
| 1233 | if (input_interpreter->IsButtonPressedOnce(button)) { | ||
| 1234 | TranslateButtonPress(button); | ||
| 1235 | } | ||
| 1236 | }; | ||
| 1237 | |||
| 1238 | (f(T), ...); | ||
| 1239 | } | ||
| 1240 | |||
| 1241 | template <HIDButton... T> | ||
| 1242 | void QtSoftwareKeyboardDialog::HandleButtonHold() { | ||
| 1243 | const auto f = [this](HIDButton button) { | ||
| 1244 | if (input_interpreter->IsButtonHeld(button)) { | ||
| 1245 | TranslateButtonPress(button); | ||
| 1246 | } | ||
| 1247 | }; | ||
| 1248 | |||
| 1249 | (f(T), ...); | ||
| 1250 | } | ||
| 1251 | |||
| 1252 | void QtSoftwareKeyboardDialog::TranslateButtonPress(HIDButton button) { | ||
| 1253 | switch (button) { | ||
| 1254 | case HIDButton::A: | ||
| 1255 | switch (bottom_osk_index) { | ||
| 1256 | case BottomOSKIndex::LowerCase: | ||
| 1257 | case BottomOSKIndex::UpperCase: | ||
| 1258 | keyboard_buttons[static_cast<std::size_t>(bottom_osk_index)][row][column]->click(); | ||
| 1259 | break; | ||
| 1260 | case BottomOSKIndex::NumberPad: | ||
| 1261 | numberpad_buttons[row][column]->click(); | ||
| 1262 | break; | ||
| 1263 | default: | ||
| 1264 | break; | ||
| 1265 | } | ||
| 1266 | break; | ||
| 1267 | case HIDButton::B: | ||
| 1268 | switch (bottom_osk_index) { | ||
| 1269 | case BottomOSKIndex::LowerCase: | ||
| 1270 | ui->button_backspace->click(); | ||
| 1271 | break; | ||
| 1272 | case BottomOSKIndex::UpperCase: | ||
| 1273 | ui->button_backspace_shift->click(); | ||
| 1274 | break; | ||
| 1275 | case BottomOSKIndex::NumberPad: | ||
| 1276 | ui->button_backspace_num->click(); | ||
| 1277 | break; | ||
| 1278 | default: | ||
| 1279 | break; | ||
| 1280 | } | ||
| 1281 | break; | ||
| 1282 | case HIDButton::X: | ||
| 1283 | if (is_inline) { | ||
| 1284 | emit SubmitInlineText(SwkbdReplyType::DecidedCancel, current_text, cursor_position); | ||
| 1285 | } else { | ||
| 1286 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1287 | emit SubmitNormalText(SwkbdResult::Cancel, | ||
| 1288 | ui->text_edit_osk->toPlainText().toStdU16String()); | ||
| 1289 | } else { | ||
| 1290 | emit SubmitNormalText(SwkbdResult::Cancel, | ||
| 1291 | ui->line_edit_osk->text().toStdU16String()); | ||
| 1292 | } | ||
| 1293 | } | ||
| 1294 | break; | ||
| 1295 | case HIDButton::Y: | ||
| 1296 | switch (bottom_osk_index) { | ||
| 1297 | case BottomOSKIndex::LowerCase: | ||
| 1298 | ui->button_space->click(); | ||
| 1299 | break; | ||
| 1300 | case BottomOSKIndex::UpperCase: | ||
| 1301 | ui->button_space_shift->click(); | ||
| 1302 | break; | ||
| 1303 | case BottomOSKIndex::NumberPad: | ||
| 1304 | default: | ||
| 1305 | break; | ||
| 1306 | } | ||
| 1307 | break; | ||
| 1308 | case HIDButton::LStick: | ||
| 1309 | case HIDButton::RStick: | ||
| 1310 | switch (bottom_osk_index) { | ||
| 1311 | case BottomOSKIndex::LowerCase: | ||
| 1312 | ui->button_shift->click(); | ||
| 1313 | break; | ||
| 1314 | case BottomOSKIndex::UpperCase: | ||
| 1315 | ui->button_shift_shift->click(); | ||
| 1316 | break; | ||
| 1317 | case BottomOSKIndex::NumberPad: | ||
| 1318 | default: | ||
| 1319 | break; | ||
| 1320 | } | ||
| 1321 | break; | ||
| 1322 | case HIDButton::L: | ||
| 1323 | MoveTextCursorDirection(Direction::Left); | ||
| 1324 | break; | ||
| 1325 | case HIDButton::R: | ||
| 1326 | MoveTextCursorDirection(Direction::Right); | ||
| 1327 | break; | ||
| 1328 | case HIDButton::Plus: | ||
| 1329 | switch (bottom_osk_index) { | ||
| 1330 | case BottomOSKIndex::LowerCase: | ||
| 1331 | ui->button_ok->click(); | ||
| 1332 | break; | ||
| 1333 | case BottomOSKIndex::UpperCase: | ||
| 1334 | ui->button_ok_shift->click(); | ||
| 1335 | break; | ||
| 1336 | case BottomOSKIndex::NumberPad: | ||
| 1337 | ui->button_ok_num->click(); | ||
| 1338 | break; | ||
| 1339 | default: | ||
| 1340 | break; | ||
| 1341 | } | ||
| 1342 | break; | ||
| 1343 | case HIDButton::DLeft: | ||
| 1344 | case HIDButton::LStickLeft: | ||
| 1345 | case HIDButton::RStickLeft: | ||
| 1346 | MoveButtonDirection(Direction::Left); | ||
| 1347 | break; | ||
| 1348 | case HIDButton::DUp: | ||
| 1349 | case HIDButton::LStickUp: | ||
| 1350 | case HIDButton::RStickUp: | ||
| 1351 | MoveButtonDirection(Direction::Up); | ||
| 1352 | break; | ||
| 1353 | case HIDButton::DRight: | ||
| 1354 | case HIDButton::LStickRight: | ||
| 1355 | case HIDButton::RStickRight: | ||
| 1356 | MoveButtonDirection(Direction::Right); | ||
| 1357 | break; | ||
| 1358 | case HIDButton::DDown: | ||
| 1359 | case HIDButton::LStickDown: | ||
| 1360 | case HIDButton::RStickDown: | ||
| 1361 | MoveButtonDirection(Direction::Down); | ||
| 1362 | break; | ||
| 1363 | default: | ||
| 1364 | break; | ||
| 1365 | } | ||
| 1366 | } | ||
| 1367 | |||
| 1368 | void QtSoftwareKeyboardDialog::MoveButtonDirection(Direction direction) { | ||
| 1369 | // Changes the row or column index depending on the direction. | ||
| 1370 | auto move_direction = [this, direction](std::size_t max_rows, std::size_t max_columns) { | ||
| 1371 | switch (direction) { | ||
| 1372 | case Direction::Left: | ||
| 1373 | column = (column + max_columns - 1) % max_columns; | ||
| 1374 | break; | ||
| 1375 | case Direction::Up: | ||
| 1376 | row = (row + max_rows - 1) % max_rows; | ||
| 1377 | break; | ||
| 1378 | case Direction::Right: | ||
| 1379 | column = (column + 1) % max_columns; | ||
| 1380 | break; | ||
| 1381 | case Direction::Down: | ||
| 1382 | row = (row + 1) % max_rows; | ||
| 1383 | break; | ||
| 1384 | default: | ||
| 1385 | break; | ||
| 1386 | } | ||
| 1387 | }; | ||
| 1388 | |||
| 1389 | switch (bottom_osk_index) { | ||
| 1390 | case BottomOSKIndex::LowerCase: | ||
| 1391 | case BottomOSKIndex::UpperCase: { | ||
| 1392 | const auto index = static_cast<std::size_t>(bottom_osk_index); | ||
| 1393 | |||
| 1394 | const auto* const prev_button = keyboard_buttons[index][row][column]; | ||
| 1395 | move_direction(NUM_ROWS_NORMAL, NUM_COLUMNS_NORMAL); | ||
| 1396 | auto* curr_button = keyboard_buttons[index][row][column]; | ||
| 1397 | |||
| 1398 | while (!curr_button || !curr_button->isEnabled() || curr_button == prev_button) { | ||
| 1399 | move_direction(NUM_ROWS_NORMAL, NUM_COLUMNS_NORMAL); | ||
| 1400 | curr_button = keyboard_buttons[index][row][column]; | ||
| 1401 | } | ||
| 1402 | |||
| 1403 | // This is a workaround for setFocus() randomly not showing focus in the UI | ||
| 1404 | QCursor::setPos(curr_button->mapToGlobal(curr_button->rect().center())); | ||
| 1405 | break; | ||
| 1406 | } | ||
| 1407 | case BottomOSKIndex::NumberPad: { | ||
| 1408 | const auto* const prev_button = numberpad_buttons[row][column]; | ||
| 1409 | move_direction(NUM_ROWS_NUMPAD, NUM_COLUMNS_NUMPAD); | ||
| 1410 | auto* curr_button = numberpad_buttons[row][column]; | ||
| 1411 | |||
| 1412 | while (!curr_button || !curr_button->isEnabled() || curr_button == prev_button) { | ||
| 1413 | move_direction(NUM_ROWS_NUMPAD, NUM_COLUMNS_NUMPAD); | ||
| 1414 | curr_button = numberpad_buttons[row][column]; | ||
| 1415 | } | ||
| 1416 | |||
| 1417 | // This is a workaround for setFocus() randomly not showing focus in the UI | ||
| 1418 | QCursor::setPos(curr_button->mapToGlobal(curr_button->rect().center())); | ||
| 1419 | break; | ||
| 1420 | } | ||
| 1421 | default: | ||
| 1422 | break; | ||
| 1423 | } | ||
| 1424 | } | ||
| 1425 | |||
| 1426 | void QtSoftwareKeyboardDialog::MoveTextCursorDirection(Direction direction) { | ||
| 1427 | switch (direction) { | ||
| 1428 | case Direction::Left: | ||
| 1429 | if (is_inline) { | ||
| 1430 | if (cursor_position <= 0) { | ||
| 1431 | cursor_position = 0; | ||
| 1432 | } else { | ||
| 1433 | --cursor_position; | ||
| 1434 | emit SubmitInlineText(SwkbdReplyType::MovedCursor, current_text, cursor_position); | ||
| 1435 | } | ||
| 1436 | } else { | ||
| 1437 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1438 | ui->text_edit_osk->moveCursor(QTextCursor::Left); | ||
| 1439 | } else { | ||
| 1440 | ui->line_edit_osk->setCursorPosition(ui->line_edit_osk->cursorPosition() - 1); | ||
| 1441 | } | ||
| 1442 | } | ||
| 1443 | break; | ||
| 1444 | case Direction::Right: | ||
| 1445 | if (is_inline) { | ||
| 1446 | if (cursor_position >= static_cast<s32>(current_text.size())) { | ||
| 1447 | cursor_position = static_cast<s32>(current_text.size()); | ||
| 1448 | } else { | ||
| 1449 | ++cursor_position; | ||
| 1450 | emit SubmitInlineText(SwkbdReplyType::MovedCursor, current_text, cursor_position); | ||
| 1451 | } | ||
| 1452 | } else { | ||
| 1453 | if (ui->topOSK->currentIndex() == 1) { | ||
| 1454 | ui->text_edit_osk->moveCursor(QTextCursor::Right); | ||
| 1455 | } else { | ||
| 1456 | ui->line_edit_osk->setCursorPosition(ui->line_edit_osk->cursorPosition() + 1); | ||
| 1457 | } | ||
| 1458 | } | ||
| 1459 | break; | ||
| 1460 | default: | ||
| 1461 | break; | ||
| 1462 | } | ||
| 1463 | } | ||
| 1464 | |||
| 1465 | void QtSoftwareKeyboardDialog::StartInputThread() { | ||
| 1466 | if (input_thread_running) { | ||
| 1467 | return; | ||
| 1468 | } | ||
| 1469 | |||
| 1470 | input_thread_running = true; | ||
| 1471 | |||
| 1472 | input_thread = std::thread(&QtSoftwareKeyboardDialog::InputThread, this); | ||
| 1473 | } | ||
| 1474 | |||
| 1475 | void QtSoftwareKeyboardDialog::StopInputThread() { | ||
| 1476 | input_thread_running = false; | ||
| 1477 | |||
| 1478 | if (input_thread.joinable()) { | ||
| 1479 | input_thread.join(); | ||
| 1480 | } | ||
| 1481 | |||
| 1482 | if (input_interpreter) { | ||
| 1483 | input_interpreter->ResetButtonStates(); | ||
| 1484 | } | ||
| 1485 | } | ||
| 1486 | |||
| 1487 | void QtSoftwareKeyboardDialog::InputThread() { | ||
| 1488 | while (input_thread_running) { | ||
| 1489 | input_interpreter->PollInput(); | ||
| 1490 | |||
| 1491 | HandleButtonPressedOnce<HIDButton::A, HIDButton::B, HIDButton::X, HIDButton::Y, | ||
| 1492 | HIDButton::LStick, HIDButton::RStick, HIDButton::L, HIDButton::R, | ||
| 1493 | HIDButton::Plus, HIDButton::DLeft, HIDButton::DUp, | ||
| 1494 | HIDButton::DRight, HIDButton::DDown, HIDButton::LStickLeft, | ||
| 1495 | HIDButton::LStickUp, HIDButton::LStickRight, HIDButton::LStickDown, | ||
| 1496 | HIDButton::RStickLeft, HIDButton::RStickUp, HIDButton::RStickRight, | ||
| 1497 | HIDButton::RStickDown>(); | ||
| 1498 | |||
| 1499 | HandleButtonHold<HIDButton::B, HIDButton::L, HIDButton::R, HIDButton::DLeft, HIDButton::DUp, | ||
| 1500 | HIDButton::DRight, HIDButton::DDown, HIDButton::LStickLeft, | ||
| 1501 | HIDButton::LStickUp, HIDButton::LStickRight, HIDButton::LStickDown, | ||
| 1502 | HIDButton::RStickLeft, HIDButton::RStickUp, HIDButton::RStickRight, | ||
| 1503 | HIDButton::RStickDown>(); | ||
| 1504 | |||
| 1505 | std::this_thread::sleep_for(std::chrono::milliseconds(50)); | ||
| 1506 | } | ||
| 1507 | } | ||
| 1508 | |||
| 1509 | QtSoftwareKeyboard::QtSoftwareKeyboard(GMainWindow& main_window) { | ||
| 1510 | connect(this, &QtSoftwareKeyboard::MainWindowInitializeKeyboard, &main_window, | ||
| 1511 | &GMainWindow::SoftwareKeyboardInitialize, Qt::QueuedConnection); | ||
| 1512 | connect(this, &QtSoftwareKeyboard::MainWindowShowNormalKeyboard, &main_window, | ||
| 1513 | &GMainWindow::SoftwareKeyboardShowNormal, Qt::QueuedConnection); | ||
| 1514 | connect(this, &QtSoftwareKeyboard::MainWindowShowTextCheckDialog, &main_window, | ||
| 1515 | &GMainWindow::SoftwareKeyboardShowTextCheck, Qt::QueuedConnection); | ||
| 1516 | connect(this, &QtSoftwareKeyboard::MainWindowShowInlineKeyboard, &main_window, | ||
| 1517 | &GMainWindow::SoftwareKeyboardShowInline, Qt::QueuedConnection); | ||
| 1518 | connect(this, &QtSoftwareKeyboard::MainWindowHideInlineKeyboard, &main_window, | ||
| 1519 | &GMainWindow::SoftwareKeyboardHideInline, Qt::QueuedConnection); | ||
| 1520 | connect(this, &QtSoftwareKeyboard::MainWindowInlineTextChanged, &main_window, | ||
| 1521 | &GMainWindow::SoftwareKeyboardInlineTextChanged, Qt::QueuedConnection); | ||
| 1522 | connect(this, &QtSoftwareKeyboard::MainWindowExitKeyboard, &main_window, | ||
| 1523 | &GMainWindow::SoftwareKeyboardExit, Qt::QueuedConnection); | ||
| 1524 | connect(&main_window, &GMainWindow::SoftwareKeyboardSubmitNormalText, this, | ||
| 1525 | &QtSoftwareKeyboard::SubmitNormalText, Qt::QueuedConnection); | ||
| 1526 | connect(&main_window, &GMainWindow::SoftwareKeyboardSubmitInlineText, this, | ||
| 1527 | &QtSoftwareKeyboard::SubmitInlineText, Qt::QueuedConnection); | ||
| 1528 | } | ||
| 17 | 1529 | ||
| 18 | QtSoftwareKeyboard::~QtSoftwareKeyboard() = default; | 1530 | QtSoftwareKeyboard::~QtSoftwareKeyboard() = default; |
| 1531 | |||
| 1532 | void QtSoftwareKeyboard::InitializeKeyboard( | ||
| 1533 | bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters, | ||
| 1534 | std::function<void(Service::AM::Applets::SwkbdResult, std::u16string)> submit_normal_callback_, | ||
| 1535 | std::function<void(Service::AM::Applets::SwkbdReplyType, std::u16string, s32)> | ||
| 1536 | submit_inline_callback_) { | ||
| 1537 | if (is_inline) { | ||
| 1538 | submit_inline_callback = std::move(submit_inline_callback_); | ||
| 1539 | } else { | ||
| 1540 | submit_normal_callback = std::move(submit_normal_callback_); | ||
| 1541 | } | ||
| 1542 | |||
| 1543 | LOG_INFO(Service_AM, | ||
| 1544 | "\nKeyboardInitializeParameters:" | ||
| 1545 | "\nok_text={}" | ||
| 1546 | "\nheader_text={}" | ||
| 1547 | "\nsub_text={}" | ||
| 1548 | "\nguide_text={}" | ||
| 1549 | "\ninitial_text={}" | ||
| 1550 | "\nmax_text_length={}" | ||
| 1551 | "\nmin_text_length={}" | ||
| 1552 | "\ninitial_cursor_position={}" | ||
| 1553 | "\ntype={}" | ||
| 1554 | "\npassword_mode={}" | ||
| 1555 | "\ntext_draw_type={}" | ||
| 1556 | "\nkey_disable_flags={}" | ||
| 1557 | "\nuse_blur_background={}" | ||
| 1558 | "\nenable_backspace_button={}" | ||
| 1559 | "\nenable_return_button={}" | ||
| 1560 | "\ndisable_cancel_button={}", | ||
| 1561 | Common::UTF16ToUTF8(initialize_parameters.ok_text), | ||
| 1562 | Common::UTF16ToUTF8(initialize_parameters.header_text), | ||
| 1563 | Common::UTF16ToUTF8(initialize_parameters.sub_text), | ||
| 1564 | Common::UTF16ToUTF8(initialize_parameters.guide_text), | ||
| 1565 | Common::UTF16ToUTF8(initialize_parameters.initial_text), | ||
| 1566 | initialize_parameters.max_text_length, initialize_parameters.min_text_length, | ||
| 1567 | initialize_parameters.initial_cursor_position, initialize_parameters.type, | ||
| 1568 | initialize_parameters.password_mode, initialize_parameters.text_draw_type, | ||
| 1569 | initialize_parameters.key_disable_flags.raw, initialize_parameters.use_blur_background, | ||
| 1570 | initialize_parameters.enable_backspace_button, | ||
| 1571 | initialize_parameters.enable_return_button, | ||
| 1572 | initialize_parameters.disable_cancel_button); | ||
| 1573 | |||
| 1574 | emit MainWindowInitializeKeyboard(is_inline, std::move(initialize_parameters)); | ||
| 1575 | } | ||
| 1576 | |||
| 1577 | void QtSoftwareKeyboard::ShowNormalKeyboard() const { | ||
| 1578 | emit MainWindowShowNormalKeyboard(); | ||
| 1579 | } | ||
| 1580 | |||
| 1581 | void QtSoftwareKeyboard::ShowTextCheckDialog( | ||
| 1582 | Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 1583 | std::u16string text_check_message) const { | ||
| 1584 | emit MainWindowShowTextCheckDialog(text_check_result, text_check_message); | ||
| 1585 | } | ||
| 1586 | |||
| 1587 | void QtSoftwareKeyboard::ShowInlineKeyboard( | ||
| 1588 | Core::Frontend::InlineAppearParameters appear_parameters) const { | ||
| 1589 | LOG_INFO(Service_AM, | ||
| 1590 | "\nInlineAppearParameters:" | ||
| 1591 | "\nmax_text_length={}" | ||
| 1592 | "\nmin_text_length={}" | ||
| 1593 | "\nkey_top_scale_x={}" | ||
| 1594 | "\nkey_top_scale_y={}" | ||
| 1595 | "\nkey_top_translate_x={}" | ||
| 1596 | "\nkey_top_translate_y={}" | ||
| 1597 | "\ntype={}" | ||
| 1598 | "\nkey_disable_flags={}" | ||
| 1599 | "\nkey_top_as_floating={}" | ||
| 1600 | "\nenable_backspace_button={}" | ||
| 1601 | "\nenable_return_button={}" | ||
| 1602 | "\ndisable_cancel_button={}", | ||
| 1603 | appear_parameters.max_text_length, appear_parameters.min_text_length, | ||
| 1604 | appear_parameters.key_top_scale_x, appear_parameters.key_top_scale_y, | ||
| 1605 | appear_parameters.key_top_translate_x, appear_parameters.key_top_translate_y, | ||
| 1606 | appear_parameters.type, appear_parameters.key_disable_flags.raw, | ||
| 1607 | appear_parameters.key_top_as_floating, appear_parameters.enable_backspace_button, | ||
| 1608 | appear_parameters.enable_return_button, appear_parameters.disable_cancel_button); | ||
| 1609 | |||
| 1610 | emit MainWindowShowInlineKeyboard(std::move(appear_parameters)); | ||
| 1611 | } | ||
| 1612 | |||
| 1613 | void QtSoftwareKeyboard::HideInlineKeyboard() const { | ||
| 1614 | emit MainWindowHideInlineKeyboard(); | ||
| 1615 | } | ||
| 1616 | |||
| 1617 | void QtSoftwareKeyboard::InlineTextChanged( | ||
| 1618 | Core::Frontend::InlineTextParameters text_parameters) const { | ||
| 1619 | LOG_INFO(Service_AM, | ||
| 1620 | "\nInlineTextParameters:" | ||
| 1621 | "\ninput_text={}" | ||
| 1622 | "\ncursor_position={}", | ||
| 1623 | Common::UTF16ToUTF8(text_parameters.input_text), text_parameters.cursor_position); | ||
| 1624 | |||
| 1625 | emit MainWindowInlineTextChanged(std::move(text_parameters)); | ||
| 1626 | } | ||
| 1627 | |||
| 1628 | void QtSoftwareKeyboard::ExitKeyboard() const { | ||
| 1629 | emit MainWindowExitKeyboard(); | ||
| 1630 | } | ||
| 1631 | |||
| 1632 | void QtSoftwareKeyboard::SubmitNormalText(Service::AM::Applets::SwkbdResult result, | ||
| 1633 | std::u16string submitted_text) const { | ||
| 1634 | submit_normal_callback(result, submitted_text); | ||
| 1635 | } | ||
| 1636 | |||
| 1637 | void QtSoftwareKeyboard::SubmitInlineText(Service::AM::Applets::SwkbdReplyType reply_type, | ||
| 1638 | std::u16string submitted_text, | ||
| 1639 | s32 cursor_position) const { | ||
| 1640 | submit_inline_callback(reply_type, submitted_text, cursor_position); | ||
| 1641 | } | ||
diff --git a/src/yuzu/applets/software_keyboard.h b/src/yuzu/applets/software_keyboard.h index 8427c0a6c..1a03c098c 100644 --- a/src/yuzu/applets/software_keyboard.h +++ b/src/yuzu/applets/software_keyboard.h | |||
| @@ -1,28 +1,228 @@ | |||
| 1 | // Copyright 2018 yuzu Emulator Project | 1 | // Copyright 2021 yuzu Emulator Project |
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <array> | ||
| 8 | #include <atomic> | ||
| 9 | #include <memory> | ||
| 10 | #include <thread> | ||
| 11 | |||
| 7 | #include <QDialog> | 12 | #include <QDialog> |
| 8 | #include <QValidator> | 13 | #include <QValidator> |
| 9 | 14 | ||
| 10 | #include "core/frontend/applets/software_keyboard.h" | 15 | #include "core/frontend/applets/software_keyboard.h" |
| 11 | 16 | ||
| 12 | class GMainWindow; | 17 | enum class HIDButton : u8; |
| 13 | 18 | ||
| 14 | class QtSoftwareKeyboardValidator final : public QValidator { | 19 | class InputInterpreter; |
| 15 | public: | 20 | |
| 16 | explicit QtSoftwareKeyboardValidator(); | 21 | namespace Core { |
| 17 | State validate(QString& input, int& pos) const override; | 22 | class System; |
| 18 | }; | 23 | } |
| 24 | |||
| 25 | namespace Ui { | ||
| 26 | class QtSoftwareKeyboardDialog; | ||
| 27 | } | ||
| 28 | |||
| 29 | class GMainWindow; | ||
| 19 | 30 | ||
| 20 | class QtSoftwareKeyboardDialog final : public QDialog { | 31 | class QtSoftwareKeyboardDialog final : public QDialog { |
| 21 | Q_OBJECT | 32 | Q_OBJECT |
| 22 | 33 | ||
| 23 | public: | 34 | public: |
| 24 | QtSoftwareKeyboardDialog(QWidget* parent); | 35 | QtSoftwareKeyboardDialog(QWidget* parent, Core::System& system_, bool is_inline_, |
| 36 | Core::Frontend::KeyboardInitializeParameters initialize_parameters_); | ||
| 25 | ~QtSoftwareKeyboardDialog() override; | 37 | ~QtSoftwareKeyboardDialog() override; |
| 38 | |||
| 39 | void ShowNormalKeyboard(QPoint pos, QSize size); | ||
| 40 | |||
| 41 | void ShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 42 | std::u16string text_check_message); | ||
| 43 | |||
| 44 | void ShowInlineKeyboard(Core::Frontend::InlineAppearParameters appear_parameters, QPoint pos, | ||
| 45 | QSize size); | ||
| 46 | |||
| 47 | void HideInlineKeyboard(); | ||
| 48 | |||
| 49 | void InlineTextChanged(Core::Frontend::InlineTextParameters text_parameters); | ||
| 50 | |||
| 51 | void ExitKeyboard(); | ||
| 52 | |||
| 53 | signals: | ||
| 54 | void SubmitNormalText(Service::AM::Applets::SwkbdResult result, | ||
| 55 | std::u16string submitted_text) const; | ||
| 56 | |||
| 57 | void SubmitInlineText(Service::AM::Applets::SwkbdReplyType reply_type, | ||
| 58 | std::u16string submitted_text, s32 cursor_position) const; | ||
| 59 | |||
| 60 | public slots: | ||
| 61 | void open() override; | ||
| 62 | void reject() override; | ||
| 63 | |||
| 64 | protected: | ||
| 65 | /// We override the keyPressEvent for inputting text into the inline software keyboard. | ||
| 66 | void keyPressEvent(QKeyEvent* event) override; | ||
| 67 | |||
| 68 | private: | ||
| 69 | enum class Direction { | ||
| 70 | Left, | ||
| 71 | Up, | ||
| 72 | Right, | ||
| 73 | Down, | ||
| 74 | }; | ||
| 75 | |||
| 76 | enum class BottomOSKIndex { | ||
| 77 | LowerCase, | ||
| 78 | UpperCase, | ||
| 79 | NumberPad, | ||
| 80 | }; | ||
| 81 | |||
| 82 | /** | ||
| 83 | * Moves and resizes the window to a specified position and size. | ||
| 84 | * | ||
| 85 | * @param pos Top-left window position | ||
| 86 | * @param size Window size | ||
| 87 | */ | ||
| 88 | void MoveAndResizeWindow(QPoint pos, QSize size); | ||
| 89 | |||
| 90 | /** | ||
| 91 | * Rescales all keyboard elements to account for High DPI displays. | ||
| 92 | * | ||
| 93 | * @param width Window width | ||
| 94 | * @param height Window height | ||
| 95 | * @param dpi_scale Display scaling factor | ||
| 96 | */ | ||
| 97 | void RescaleKeyboardElements(float width, float height, float dpi_scale); | ||
| 98 | |||
| 99 | /// Sets the keyboard type based on initialize_parameters. | ||
| 100 | void SetKeyboardType(); | ||
| 101 | |||
| 102 | /// Sets the password mode based on initialize_parameters. | ||
| 103 | void SetPasswordMode(); | ||
| 104 | |||
| 105 | /// Sets the text draw type based on initialize_parameters. | ||
| 106 | void SetTextDrawType(); | ||
| 107 | |||
| 108 | /// Sets the controller image at the bottom left of the software keyboard. | ||
| 109 | void SetControllerImage(); | ||
| 110 | |||
| 111 | /// Disables buttons based on initialize_parameters. | ||
| 112 | void DisableKeyboardButtons(); | ||
| 113 | |||
| 114 | /// Changes whether the backspace or/and ok buttons should be enabled or disabled. | ||
| 115 | void SetBackspaceOkEnabled(); | ||
| 116 | |||
| 117 | /** | ||
| 118 | * Validates the input text sent in based on the parameters in initialize_parameters. | ||
| 119 | * | ||
| 120 | * @param input_text Input text | ||
| 121 | * | ||
| 122 | * @returns True if the input text is valid, false otherwise. | ||
| 123 | */ | ||
| 124 | bool ValidateInputText(const QString& input_text); | ||
| 125 | |||
| 126 | /// Switches between LowerCase and UpperCase (Shift and Caps Lock) | ||
| 127 | void ChangeBottomOSKIndex(); | ||
| 128 | |||
| 129 | /// Processes a keyboard button click from the UI as normal keyboard input. | ||
| 130 | void NormalKeyboardButtonClicked(QPushButton* button); | ||
| 131 | |||
| 132 | /// Processes a keyboard button click from the UI as inline keyboard input. | ||
| 133 | void InlineKeyboardButtonClicked(QPushButton* button); | ||
| 134 | |||
| 135 | /** | ||
| 136 | * Inserts a string of arbitrary length into the current_text at the current cursor position. | ||
| 137 | * This is only used for the inline software keyboard. | ||
| 138 | */ | ||
| 139 | void InlineTextInsertString(std::u16string_view string); | ||
| 140 | |||
| 141 | /// Setup the mouse hover workaround for "focusing" buttons. This should only be called once. | ||
| 142 | void SetupMouseHover(); | ||
| 143 | |||
| 144 | /** | ||
| 145 | * Handles button presses and converts them into keyboard input. | ||
| 146 | * | ||
| 147 | * @tparam HIDButton The list of buttons that can be converted into keyboard input. | ||
| 148 | */ | ||
| 149 | template <HIDButton... T> | ||
| 150 | void HandleButtonPressedOnce(); | ||
| 151 | |||
| 152 | /** | ||
| 153 | * Handles button holds and converts them into keyboard input. | ||
| 154 | * | ||
| 155 | * @tparam HIDButton The list of buttons that can be converted into keyboard input. | ||
| 156 | */ | ||
| 157 | template <HIDButton... T> | ||
| 158 | void HandleButtonHold(); | ||
| 159 | |||
| 160 | /** | ||
| 161 | * Translates a button press to focus or click a keyboard button. | ||
| 162 | * | ||
| 163 | * @param button The button press to process. | ||
| 164 | */ | ||
| 165 | void TranslateButtonPress(HIDButton button); | ||
| 166 | |||
| 167 | /** | ||
| 168 | * Moves the focus of a button in a certain direction. | ||
| 169 | * | ||
| 170 | * @param direction The direction to move. | ||
| 171 | */ | ||
| 172 | void MoveButtonDirection(Direction direction); | ||
| 173 | |||
| 174 | /** | ||
| 175 | * Moves the text cursor in a certain direction. | ||
| 176 | * | ||
| 177 | * @param direction The direction to move. | ||
| 178 | */ | ||
| 179 | void MoveTextCursorDirection(Direction direction); | ||
| 180 | |||
| 181 | void StartInputThread(); | ||
| 182 | void StopInputThread(); | ||
| 183 | |||
| 184 | /// The thread where input is being polled and processed. | ||
| 185 | void InputThread(); | ||
| 186 | |||
| 187 | std::unique_ptr<Ui::QtSoftwareKeyboardDialog> ui; | ||
| 188 | |||
| 189 | Core::System& system; | ||
| 190 | |||
| 191 | // True if it is the inline software keyboard. | ||
| 192 | bool is_inline; | ||
| 193 | |||
| 194 | // Common software keyboard initialize parameters. | ||
| 195 | Core::Frontend::KeyboardInitializeParameters initialize_parameters; | ||
| 196 | |||
| 197 | // Used only by the inline software keyboard since the QLineEdit or QTextEdit is hidden. | ||
| 198 | std::u16string current_text; | ||
| 199 | s32 cursor_position{0}; | ||
| 200 | |||
| 201 | static constexpr std::size_t NUM_ROWS_NORMAL = 5; | ||
| 202 | static constexpr std::size_t NUM_COLUMNS_NORMAL = 12; | ||
| 203 | static constexpr std::size_t NUM_ROWS_NUMPAD = 4; | ||
| 204 | static constexpr std::size_t NUM_COLUMNS_NUMPAD = 4; | ||
| 205 | |||
| 206 | // Stores the normal keyboard layout. | ||
| 207 | std::array<std::array<std::array<QPushButton*, NUM_COLUMNS_NORMAL>, NUM_ROWS_NORMAL>, 2> | ||
| 208 | keyboard_buttons; | ||
| 209 | // Stores the numberpad keyboard layout. | ||
| 210 | std::array<std::array<QPushButton*, NUM_COLUMNS_NUMPAD>, NUM_ROWS_NUMPAD> numberpad_buttons; | ||
| 211 | |||
| 212 | // Contains a set of all buttons used in keyboard_buttons and numberpad_buttons. | ||
| 213 | std::array<QPushButton*, 110> all_buttons; | ||
| 214 | |||
| 215 | std::size_t row{0}; | ||
| 216 | std::size_t column{0}; | ||
| 217 | |||
| 218 | BottomOSKIndex bottom_osk_index{BottomOSKIndex::LowerCase}; | ||
| 219 | std::atomic<bool> caps_lock_enabled{false}; | ||
| 220 | |||
| 221 | std::unique_ptr<InputInterpreter> input_interpreter; | ||
| 222 | |||
| 223 | std::thread input_thread; | ||
| 224 | |||
| 225 | std::atomic<bool> input_thread_running{}; | ||
| 26 | }; | 226 | }; |
| 27 | 227 | ||
| 28 | class QtSoftwareKeyboard final : public QObject, public Core::Frontend::SoftwareKeyboardApplet { | 228 | class QtSoftwareKeyboard final : public QObject, public Core::Frontend::SoftwareKeyboardApplet { |
| @@ -31,4 +231,55 @@ class QtSoftwareKeyboard final : public QObject, public Core::Frontend::Software | |||
| 31 | public: | 231 | public: |
| 32 | explicit QtSoftwareKeyboard(GMainWindow& parent); | 232 | explicit QtSoftwareKeyboard(GMainWindow& parent); |
| 33 | ~QtSoftwareKeyboard() override; | 233 | ~QtSoftwareKeyboard() override; |
| 234 | |||
| 235 | void InitializeKeyboard( | ||
| 236 | bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters, | ||
| 237 | std::function<void(Service::AM::Applets::SwkbdResult, std::u16string)> | ||
| 238 | submit_normal_callback_, | ||
| 239 | std::function<void(Service::AM::Applets::SwkbdReplyType, std::u16string, s32)> | ||
| 240 | submit_inline_callback_) override; | ||
| 241 | |||
| 242 | void ShowNormalKeyboard() const override; | ||
| 243 | |||
| 244 | void ShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 245 | std::u16string text_check_message) const override; | ||
| 246 | |||
| 247 | void ShowInlineKeyboard( | ||
| 248 | Core::Frontend::InlineAppearParameters appear_parameters) const override; | ||
| 249 | |||
| 250 | void HideInlineKeyboard() const override; | ||
| 251 | |||
| 252 | void InlineTextChanged(Core::Frontend::InlineTextParameters text_parameters) const override; | ||
| 253 | |||
| 254 | void ExitKeyboard() const override; | ||
| 255 | |||
| 256 | signals: | ||
| 257 | void MainWindowInitializeKeyboard( | ||
| 258 | bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters) const; | ||
| 259 | |||
| 260 | void MainWindowShowNormalKeyboard() const; | ||
| 261 | |||
| 262 | void MainWindowShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 263 | std::u16string text_check_message) const; | ||
| 264 | |||
| 265 | void MainWindowShowInlineKeyboard( | ||
| 266 | Core::Frontend::InlineAppearParameters appear_parameters) const; | ||
| 267 | |||
| 268 | void MainWindowHideInlineKeyboard() const; | ||
| 269 | |||
| 270 | void MainWindowInlineTextChanged(Core::Frontend::InlineTextParameters text_parameters) const; | ||
| 271 | |||
| 272 | void MainWindowExitKeyboard() const; | ||
| 273 | |||
| 274 | private: | ||
| 275 | void SubmitNormalText(Service::AM::Applets::SwkbdResult result, | ||
| 276 | std::u16string submitted_text) const; | ||
| 277 | |||
| 278 | void SubmitInlineText(Service::AM::Applets::SwkbdReplyType reply_type, | ||
| 279 | std::u16string submitted_text, s32 cursor_position) const; | ||
| 280 | |||
| 281 | mutable std::function<void(Service::AM::Applets::SwkbdResult, std::u16string)> | ||
| 282 | submit_normal_callback; | ||
| 283 | mutable std::function<void(Service::AM::Applets::SwkbdReplyType, std::u16string, s32)> | ||
| 284 | submit_inline_callback; | ||
| 34 | }; | 285 | }; |
diff --git a/src/yuzu/applets/software_keyboard.ui b/src/yuzu/applets/software_keyboard.ui new file mode 100644 index 000000000..b0a1fcde9 --- /dev/null +++ b/src/yuzu/applets/software_keyboard.ui | |||
| @@ -0,0 +1,3503 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <ui version="4.0"> | ||
| 3 | <class>QtSoftwareKeyboardDialog</class> | ||
| 4 | <widget class="QDialog" name="QtSoftwareKeyboardDialog"> | ||
| 5 | <property name="geometry"> | ||
| 6 | <rect> | ||
| 7 | <x>0</x> | ||
| 8 | <y>0</y> | ||
| 9 | <width>1280</width> | ||
| 10 | <height>720</height> | ||
| 11 | </rect> | ||
| 12 | </property> | ||
| 13 | <property name="windowTitle"> | ||
| 14 | <string>Software Keyboard</string> | ||
| 15 | </property> | ||
| 16 | <property name="styleSheet"> | ||
| 17 | <string notr="true"/> | ||
| 18 | </property> | ||
| 19 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
| 20 | <property name="spacing"> | ||
| 21 | <number>0</number> | ||
| 22 | </property> | ||
| 23 | <property name="leftMargin"> | ||
| 24 | <number>0</number> | ||
| 25 | </property> | ||
| 26 | <property name="topMargin"> | ||
| 27 | <number>0</number> | ||
| 28 | </property> | ||
| 29 | <property name="rightMargin"> | ||
| 30 | <number>0</number> | ||
| 31 | </property> | ||
| 32 | <property name="bottomMargin"> | ||
| 33 | <number>0</number> | ||
| 34 | </property> | ||
| 35 | <item> | ||
| 36 | <widget class="QWidget" name="mainOSK" native="true"> | ||
| 37 | <layout class="QVBoxLayout" name="verticalLayout_2" stretch="320,400"> | ||
| 38 | <property name="spacing"> | ||
| 39 | <number>0</number> | ||
| 40 | </property> | ||
| 41 | <property name="leftMargin"> | ||
| 42 | <number>0</number> | ||
| 43 | </property> | ||
| 44 | <property name="topMargin"> | ||
| 45 | <number>0</number> | ||
| 46 | </property> | ||
| 47 | <property name="rightMargin"> | ||
| 48 | <number>0</number> | ||
| 49 | </property> | ||
| 50 | <property name="bottomMargin"> | ||
| 51 | <number>0</number> | ||
| 52 | </property> | ||
| 53 | <item> | ||
| 54 | <widget class="QStackedWidget" name="topOSK"> | ||
| 55 | <property name="currentIndex"> | ||
| 56 | <number>0</number> | ||
| 57 | </property> | ||
| 58 | <widget class="QWidget" name="lineOSK"> | ||
| 59 | <property name="minimumSize"> | ||
| 60 | <size> | ||
| 61 | <width>0</width> | ||
| 62 | <height>100</height> | ||
| 63 | </size> | ||
| 64 | </property> | ||
| 65 | <layout class="QVBoxLayout" name="lineOSKVerticalLayout"> | ||
| 66 | <property name="spacing"> | ||
| 67 | <number>0</number> | ||
| 68 | </property> | ||
| 69 | <property name="leftMargin"> | ||
| 70 | <number>0</number> | ||
| 71 | </property> | ||
| 72 | <property name="topMargin"> | ||
| 73 | <number>0</number> | ||
| 74 | </property> | ||
| 75 | <property name="rightMargin"> | ||
| 76 | <number>0</number> | ||
| 77 | </property> | ||
| 78 | <property name="bottomMargin"> | ||
| 79 | <number>0</number> | ||
| 80 | </property> | ||
| 81 | <item> | ||
| 82 | <layout class="QGridLayout" name="gridLineOSK" rowstretch="40,50,23,48,65,94" columnstretch="130,1020,130"> | ||
| 83 | <property name="topMargin"> | ||
| 84 | <number>0</number> | ||
| 85 | </property> | ||
| 86 | <property name="spacing"> | ||
| 87 | <number>0</number> | ||
| 88 | </property> | ||
| 89 | <item row="4" column="2"> | ||
| 90 | <spacer name="horizontalSpacer_3"> | ||
| 91 | <property name="orientation"> | ||
| 92 | <enum>Qt::Horizontal</enum> | ||
| 93 | </property> | ||
| 94 | <property name="sizeHint" stdset="0"> | ||
| 95 | <size> | ||
| 96 | <width>40</width> | ||
| 97 | <height>20</height> | ||
| 98 | </size> | ||
| 99 | </property> | ||
| 100 | </spacer> | ||
| 101 | </item> | ||
| 102 | <item row="4" column="0"> | ||
| 103 | <spacer name="horizontalSpacer_4"> | ||
| 104 | <property name="orientation"> | ||
| 105 | <enum>Qt::Horizontal</enum> | ||
| 106 | </property> | ||
| 107 | <property name="sizeHint" stdset="0"> | ||
| 108 | <size> | ||
| 109 | <width>40</width> | ||
| 110 | <height>20</height> | ||
| 111 | </size> | ||
| 112 | </property> | ||
| 113 | </spacer> | ||
| 114 | </item> | ||
| 115 | <item row="5" column="1"> | ||
| 116 | <widget class="QWidget" name="charactersOSK" native="true"> | ||
| 117 | <layout class="QVBoxLayout" name="verticalLayout_5"> | ||
| 118 | <property name="spacing"> | ||
| 119 | <number>0</number> | ||
| 120 | </property> | ||
| 121 | <property name="leftMargin"> | ||
| 122 | <number>0</number> | ||
| 123 | </property> | ||
| 124 | <property name="topMargin"> | ||
| 125 | <number>0</number> | ||
| 126 | </property> | ||
| 127 | <property name="rightMargin"> | ||
| 128 | <number>0</number> | ||
| 129 | </property> | ||
| 130 | <property name="bottomMargin"> | ||
| 131 | <number>0</number> | ||
| 132 | </property> | ||
| 133 | <item alignment="Qt::AlignRight|Qt::AlignTop"> | ||
| 134 | <widget class="QLabel" name="label_characters"> | ||
| 135 | <property name="font"> | ||
| 136 | <font> | ||
| 137 | <pointsize>17</pointsize> | ||
| 138 | </font> | ||
| 139 | </property> | ||
| 140 | <property name="text"> | ||
| 141 | <string notr="true">0/32</string> | ||
| 142 | </property> | ||
| 143 | <property name="alignment"> | ||
| 144 | <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> | ||
| 145 | </property> | ||
| 146 | </widget> | ||
| 147 | </item> | ||
| 148 | </layout> | ||
| 149 | </widget> | ||
| 150 | </item> | ||
| 151 | <item row="3" column="1"> | ||
| 152 | <spacer name="verticalSpacer_2"> | ||
| 153 | <property name="orientation"> | ||
| 154 | <enum>Qt::Vertical</enum> | ||
| 155 | </property> | ||
| 156 | <property name="sizeHint" stdset="0"> | ||
| 157 | <size> | ||
| 158 | <width>20</width> | ||
| 159 | <height>40</height> | ||
| 160 | </size> | ||
| 161 | </property> | ||
| 162 | </spacer> | ||
| 163 | </item> | ||
| 164 | <item row="5" column="0"> | ||
| 165 | <spacer name="verticalSpacer_3"> | ||
| 166 | <property name="orientation"> | ||
| 167 | <enum>Qt::Vertical</enum> | ||
| 168 | </property> | ||
| 169 | <property name="sizeHint" stdset="0"> | ||
| 170 | <size> | ||
| 171 | <width>20</width> | ||
| 172 | <height>40</height> | ||
| 173 | </size> | ||
| 174 | </property> | ||
| 175 | </spacer> | ||
| 176 | </item> | ||
| 177 | <item row="4" column="1"> | ||
| 178 | <widget class="QWidget" name="inputOSK" native="true"> | ||
| 179 | <layout class="QVBoxLayout" name="verticalLayout_3"> | ||
| 180 | <item> | ||
| 181 | <widget class="QLineEdit" name="line_edit_osk"> | ||
| 182 | <property name="font"> | ||
| 183 | <font> | ||
| 184 | <pointsize>26</pointsize> | ||
| 185 | <weight>50</weight> | ||
| 186 | <bold>false</bold> | ||
| 187 | </font> | ||
| 188 | </property> | ||
| 189 | <property name="focusPolicy"> | ||
| 190 | <enum>Qt::StrongFocus</enum> | ||
| 191 | </property> | ||
| 192 | <property name="text"> | ||
| 193 | <string/> | ||
| 194 | </property> | ||
| 195 | <property name="maxLength"> | ||
| 196 | <number>32</number> | ||
| 197 | </property> | ||
| 198 | <property name="placeholderText"> | ||
| 199 | <string>Enter Text</string> | ||
| 200 | </property> | ||
| 201 | </widget> | ||
| 202 | </item> | ||
| 203 | </layout> | ||
| 204 | </widget> | ||
| 205 | </item> | ||
| 206 | <item row="0" column="1"> | ||
| 207 | <spacer name="verticalSpacer_4"> | ||
| 208 | <property name="orientation"> | ||
| 209 | <enum>Qt::Vertical</enum> | ||
| 210 | </property> | ||
| 211 | <property name="sizeHint" stdset="0"> | ||
| 212 | <size> | ||
| 213 | <width>20</width> | ||
| 214 | <height>40</height> | ||
| 215 | </size> | ||
| 216 | </property> | ||
| 217 | </spacer> | ||
| 218 | </item> | ||
| 219 | <item row="1" column="0" colspan="3"> | ||
| 220 | <widget class="QWidget" name="headerOSK" native="true"> | ||
| 221 | <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="130,1020,130"> | ||
| 222 | <property name="spacing"> | ||
| 223 | <number>0</number> | ||
| 224 | </property> | ||
| 225 | <property name="leftMargin"> | ||
| 226 | <number>0</number> | ||
| 227 | </property> | ||
| 228 | <property name="topMargin"> | ||
| 229 | <number>0</number> | ||
| 230 | </property> | ||
| 231 | <property name="rightMargin"> | ||
| 232 | <number>0</number> | ||
| 233 | </property> | ||
| 234 | <property name="bottomMargin"> | ||
| 235 | <number>0</number> | ||
| 236 | </property> | ||
| 237 | <item> | ||
| 238 | <spacer name="horizontalSpacer_18"> | ||
| 239 | <property name="orientation"> | ||
| 240 | <enum>Qt::Horizontal</enum> | ||
| 241 | </property> | ||
| 242 | <property name="sizeHint" stdset="0"> | ||
| 243 | <size> | ||
| 244 | <width>127</width> | ||
| 245 | <height>20</height> | ||
| 246 | </size> | ||
| 247 | </property> | ||
| 248 | </spacer> | ||
| 249 | </item> | ||
| 250 | <item> | ||
| 251 | <widget class="QLabel" name="label_header"> | ||
| 252 | <property name="font"> | ||
| 253 | <font> | ||
| 254 | <pointsize>23</pointsize> | ||
| 255 | </font> | ||
| 256 | </property> | ||
| 257 | <property name="text"> | ||
| 258 | <string/> | ||
| 259 | </property> | ||
| 260 | </widget> | ||
| 261 | </item> | ||
| 262 | <item> | ||
| 263 | <spacer name="horizontalSpacer_19"> | ||
| 264 | <property name="orientation"> | ||
| 265 | <enum>Qt::Horizontal</enum> | ||
| 266 | </property> | ||
| 267 | <property name="sizeHint" stdset="0"> | ||
| 268 | <size> | ||
| 269 | <width>127</width> | ||
| 270 | <height>20</height> | ||
| 271 | </size> | ||
| 272 | </property> | ||
| 273 | </spacer> | ||
| 274 | </item> | ||
| 275 | </layout> | ||
| 276 | </widget> | ||
| 277 | </item> | ||
| 278 | <item row="2" column="0" colspan="3"> | ||
| 279 | <widget class="QWidget" name="subOSK" native="true"> | ||
| 280 | <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="130,1020,130"> | ||
| 281 | <property name="spacing"> | ||
| 282 | <number>0</number> | ||
| 283 | </property> | ||
| 284 | <property name="leftMargin"> | ||
| 285 | <number>0</number> | ||
| 286 | </property> | ||
| 287 | <property name="topMargin"> | ||
| 288 | <number>0</number> | ||
| 289 | </property> | ||
| 290 | <property name="rightMargin"> | ||
| 291 | <number>0</number> | ||
| 292 | </property> | ||
| 293 | <property name="bottomMargin"> | ||
| 294 | <number>0</number> | ||
| 295 | </property> | ||
| 296 | <item> | ||
| 297 | <spacer name="horizontalSpacer_16"> | ||
| 298 | <property name="orientation"> | ||
| 299 | <enum>Qt::Horizontal</enum> | ||
| 300 | </property> | ||
| 301 | <property name="sizeHint" stdset="0"> | ||
| 302 | <size> | ||
| 303 | <width>127</width> | ||
| 304 | <height>20</height> | ||
| 305 | </size> | ||
| 306 | </property> | ||
| 307 | </spacer> | ||
| 308 | </item> | ||
| 309 | <item> | ||
| 310 | <widget class="QLabel" name="label_sub"> | ||
| 311 | <property name="font"> | ||
| 312 | <font> | ||
| 313 | <pointsize>17</pointsize> | ||
| 314 | </font> | ||
| 315 | </property> | ||
| 316 | <property name="text"> | ||
| 317 | <string/> | ||
| 318 | </property> | ||
| 319 | </widget> | ||
| 320 | </item> | ||
| 321 | <item> | ||
| 322 | <spacer name="horizontalSpacer_17"> | ||
| 323 | <property name="orientation"> | ||
| 324 | <enum>Qt::Horizontal</enum> | ||
| 325 | </property> | ||
| 326 | <property name="sizeHint" stdset="0"> | ||
| 327 | <size> | ||
| 328 | <width>127</width> | ||
| 329 | <height>20</height> | ||
| 330 | </size> | ||
| 331 | </property> | ||
| 332 | </spacer> | ||
| 333 | </item> | ||
| 334 | </layout> | ||
| 335 | </widget> | ||
| 336 | </item> | ||
| 337 | </layout> | ||
| 338 | </item> | ||
| 339 | </layout> | ||
| 340 | </widget> | ||
| 341 | <widget class="QWidget" name="boxOSK"> | ||
| 342 | <layout class="QVBoxLayout" name="boxOSKVerticalLayout"> | ||
| 343 | <property name="spacing"> | ||
| 344 | <number>0</number> | ||
| 345 | </property> | ||
| 346 | <property name="leftMargin"> | ||
| 347 | <number>0</number> | ||
| 348 | </property> | ||
| 349 | <property name="topMargin"> | ||
| 350 | <number>0</number> | ||
| 351 | </property> | ||
| 352 | <property name="rightMargin"> | ||
| 353 | <number>0</number> | ||
| 354 | </property> | ||
| 355 | <property name="bottomMargin"> | ||
| 356 | <number>0</number> | ||
| 357 | </property> | ||
| 358 | <item> | ||
| 359 | <layout class="QGridLayout" name="gridBoxOSK" rowstretch="61,178,81" columnstretch="120,1040,120"> | ||
| 360 | <property name="leftMargin"> | ||
| 361 | <number>0</number> | ||
| 362 | </property> | ||
| 363 | <property name="topMargin"> | ||
| 364 | <number>0</number> | ||
| 365 | </property> | ||
| 366 | <property name="rightMargin"> | ||
| 367 | <number>0</number> | ||
| 368 | </property> | ||
| 369 | <property name="bottomMargin"> | ||
| 370 | <number>0</number> | ||
| 371 | </property> | ||
| 372 | <property name="spacing"> | ||
| 373 | <number>0</number> | ||
| 374 | </property> | ||
| 375 | <item row="0" column="1"> | ||
| 376 | <spacer name="verticalSpacer_5"> | ||
| 377 | <property name="orientation"> | ||
| 378 | <enum>Qt::Vertical</enum> | ||
| 379 | </property> | ||
| 380 | <property name="sizeHint" stdset="0"> | ||
| 381 | <size> | ||
| 382 | <width>20</width> | ||
| 383 | <height>40</height> | ||
| 384 | </size> | ||
| 385 | </property> | ||
| 386 | </spacer> | ||
| 387 | </item> | ||
| 388 | <item row="1" column="0"> | ||
| 389 | <spacer name="horizontalSpacer_20"> | ||
| 390 | <property name="orientation"> | ||
| 391 | <enum>Qt::Horizontal</enum> | ||
| 392 | </property> | ||
| 393 | <property name="sizeHint" stdset="0"> | ||
| 394 | <size> | ||
| 395 | <width>40</width> | ||
| 396 | <height>20</height> | ||
| 397 | </size> | ||
| 398 | </property> | ||
| 399 | </spacer> | ||
| 400 | </item> | ||
| 401 | <item row="1" column="2"> | ||
| 402 | <spacer name="horizontalSpacer_21"> | ||
| 403 | <property name="orientation"> | ||
| 404 | <enum>Qt::Horizontal</enum> | ||
| 405 | </property> | ||
| 406 | <property name="sizeHint" stdset="0"> | ||
| 407 | <size> | ||
| 408 | <width>40</width> | ||
| 409 | <height>20</height> | ||
| 410 | </size> | ||
| 411 | </property> | ||
| 412 | </spacer> | ||
| 413 | </item> | ||
| 414 | <item row="2" column="1" alignment="Qt::AlignRight|Qt::AlignTop"> | ||
| 415 | <widget class="QWidget" name="charactersBoxOSK" native="true"> | ||
| 416 | <layout class="QVBoxLayout" name="verticalLayout_4"> | ||
| 417 | <property name="spacing"> | ||
| 418 | <number>0</number> | ||
| 419 | </property> | ||
| 420 | <property name="leftMargin"> | ||
| 421 | <number>0</number> | ||
| 422 | </property> | ||
| 423 | <property name="topMargin"> | ||
| 424 | <number>0</number> | ||
| 425 | </property> | ||
| 426 | <property name="rightMargin"> | ||
| 427 | <number>0</number> | ||
| 428 | </property> | ||
| 429 | <property name="bottomMargin"> | ||
| 430 | <number>0</number> | ||
| 431 | </property> | ||
| 432 | <item> | ||
| 433 | <widget class="QLabel" name="label_characters_box"> | ||
| 434 | <property name="enabled"> | ||
| 435 | <bool>true</bool> | ||
| 436 | </property> | ||
| 437 | <property name="font"> | ||
| 438 | <font> | ||
| 439 | <pointsize>17</pointsize> | ||
| 440 | </font> | ||
| 441 | </property> | ||
| 442 | <property name="text"> | ||
| 443 | <string notr="true">0/500</string> | ||
| 444 | </property> | ||
| 445 | </widget> | ||
| 446 | </item> | ||
| 447 | </layout> | ||
| 448 | </widget> | ||
| 449 | </item> | ||
| 450 | <item row="1" column="1"> | ||
| 451 | <widget class="QWidget" name="inputBoxOSK" native="true"> | ||
| 452 | <layout class="QVBoxLayout" name="verticalLayout_6"> | ||
| 453 | <property name="spacing"> | ||
| 454 | <number>0</number> | ||
| 455 | </property> | ||
| 456 | <property name="leftMargin"> | ||
| 457 | <number>14</number> | ||
| 458 | </property> | ||
| 459 | <property name="topMargin"> | ||
| 460 | <number>9</number> | ||
| 461 | </property> | ||
| 462 | <property name="rightMargin"> | ||
| 463 | <number>14</number> | ||
| 464 | </property> | ||
| 465 | <property name="bottomMargin"> | ||
| 466 | <number>9</number> | ||
| 467 | </property> | ||
| 468 | <item> | ||
| 469 | <widget class="QTextEdit" name="text_edit_osk"> | ||
| 470 | <property name="font"> | ||
| 471 | <font> | ||
| 472 | <pointsize>26</pointsize> | ||
| 473 | </font> | ||
| 474 | </property> | ||
| 475 | <property name="focusPolicy"> | ||
| 476 | <enum>Qt::StrongFocus</enum> | ||
| 477 | </property> | ||
| 478 | <property name="html"> | ||
| 479 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
| 480 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
| 481 | p, li { white-space: pre-wrap; } | ||
| 482 | </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:26pt; font-weight:400; font-style:normal;"> | ||
| 483 | <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string> | ||
| 484 | </property> | ||
| 485 | </widget> | ||
| 486 | </item> | ||
| 487 | </layout> | ||
| 488 | </widget> | ||
| 489 | </item> | ||
| 490 | </layout> | ||
| 491 | </item> | ||
| 492 | </layout> | ||
| 493 | </widget> | ||
| 494 | </widget> | ||
| 495 | </item> | ||
| 496 | <item> | ||
| 497 | <widget class="QStackedWidget" name="bottomOSK"> | ||
| 498 | <property name="currentIndex"> | ||
| 499 | <number>0</number> | ||
| 500 | </property> | ||
| 501 | <widget class="QWidget" name="normalOSK"> | ||
| 502 | <layout class="QVBoxLayout" name="normalPageVerticalLayout"> | ||
| 503 | <property name="leftMargin"> | ||
| 504 | <number>0</number> | ||
| 505 | </property> | ||
| 506 | <property name="topMargin"> | ||
| 507 | <number>0</number> | ||
| 508 | </property> | ||
| 509 | <property name="rightMargin"> | ||
| 510 | <number>0</number> | ||
| 511 | </property> | ||
| 512 | <property name="bottomMargin"> | ||
| 513 | <number>0</number> | ||
| 514 | </property> | ||
| 515 | <item> | ||
| 516 | <layout class="QGridLayout" name="kbOSKnormal" rowstretch="15,63,63,63,63,63,70" columnstretch="54,96,96,96,96,96,96,96,96,96,96,96,116,54"> | ||
| 517 | <property name="spacing"> | ||
| 518 | <number>0</number> | ||
| 519 | </property> | ||
| 520 | <item row="6" column="1" colspan="12"> | ||
| 521 | <widget class="QWidget" name="legendOSK" native="true"> | ||
| 522 | <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="70,525,25,12,22,41,25,12,22,41,25,12,47,37,29,12,69,37,29,12,56,8"> | ||
| 523 | <property name="spacing"> | ||
| 524 | <number>0</number> | ||
| 525 | </property> | ||
| 526 | <property name="leftMargin"> | ||
| 527 | <number>2</number> | ||
| 528 | </property> | ||
| 529 | <property name="topMargin"> | ||
| 530 | <number>0</number> | ||
| 531 | </property> | ||
| 532 | <property name="rightMargin"> | ||
| 533 | <number>0</number> | ||
| 534 | </property> | ||
| 535 | <property name="bottomMargin"> | ||
| 536 | <number>0</number> | ||
| 537 | </property> | ||
| 538 | <item> | ||
| 539 | <widget class="QWidget" name="icon_controller" native="true"> | ||
| 540 | <property name="styleSheet"> | ||
| 541 | <string notr="true"/> | ||
| 542 | </property> | ||
| 543 | </widget> | ||
| 544 | </item> | ||
| 545 | <item> | ||
| 546 | <spacer name="horizontalSpacer_5"> | ||
| 547 | <property name="orientation"> | ||
| 548 | <enum>Qt::Horizontal</enum> | ||
| 549 | </property> | ||
| 550 | <property name="sizeHint" stdset="0"> | ||
| 551 | <size> | ||
| 552 | <width>0</width> | ||
| 553 | <height>20</height> | ||
| 554 | </size> | ||
| 555 | </property> | ||
| 556 | </spacer> | ||
| 557 | </item> | ||
| 558 | <item> | ||
| 559 | <widget class="QWidget" name="button_L" native="true"/> | ||
| 560 | </item> | ||
| 561 | <item> | ||
| 562 | <spacer name="horizontalSpacer_14"> | ||
| 563 | <property name="orientation"> | ||
| 564 | <enum>Qt::Horizontal</enum> | ||
| 565 | </property> | ||
| 566 | <property name="sizeHint" stdset="0"> | ||
| 567 | <size> | ||
| 568 | <width>0</width> | ||
| 569 | <height>20</height> | ||
| 570 | </size> | ||
| 571 | </property> | ||
| 572 | </spacer> | ||
| 573 | </item> | ||
| 574 | <item> | ||
| 575 | <widget class="QWidget" name="arrow_left" native="true"/> | ||
| 576 | </item> | ||
| 577 | <item> | ||
| 578 | <spacer name="horizontalSpacer_13"> | ||
| 579 | <property name="orientation"> | ||
| 580 | <enum>Qt::Horizontal</enum> | ||
| 581 | </property> | ||
| 582 | <property name="sizeHint" stdset="0"> | ||
| 583 | <size> | ||
| 584 | <width>0</width> | ||
| 585 | <height>20</height> | ||
| 586 | </size> | ||
| 587 | </property> | ||
| 588 | </spacer> | ||
| 589 | </item> | ||
| 590 | <item> | ||
| 591 | <widget class="QWidget" name="button_R" native="true"/> | ||
| 592 | </item> | ||
| 593 | <item> | ||
| 594 | <spacer name="horizontalSpacer_12"> | ||
| 595 | <property name="orientation"> | ||
| 596 | <enum>Qt::Horizontal</enum> | ||
| 597 | </property> | ||
| 598 | <property name="sizeHint" stdset="0"> | ||
| 599 | <size> | ||
| 600 | <width>0</width> | ||
| 601 | <height>20</height> | ||
| 602 | </size> | ||
| 603 | </property> | ||
| 604 | </spacer> | ||
| 605 | </item> | ||
| 606 | <item> | ||
| 607 | <widget class="QWidget" name="arrow_right" native="true"/> | ||
| 608 | </item> | ||
| 609 | <item> | ||
| 610 | <spacer name="horizontalSpacer_11"> | ||
| 611 | <property name="orientation"> | ||
| 612 | <enum>Qt::Horizontal</enum> | ||
| 613 | </property> | ||
| 614 | <property name="sizeHint" stdset="0"> | ||
| 615 | <size> | ||
| 616 | <width>0</width> | ||
| 617 | <height>20</height> | ||
| 618 | </size> | ||
| 619 | </property> | ||
| 620 | </spacer> | ||
| 621 | </item> | ||
| 622 | <item> | ||
| 623 | <widget class="QWidget" name="button_press_stick" native="true"/> | ||
| 624 | </item> | ||
| 625 | <item> | ||
| 626 | <spacer name="horizontalSpacer_10"> | ||
| 627 | <property name="orientation"> | ||
| 628 | <enum>Qt::Horizontal</enum> | ||
| 629 | </property> | ||
| 630 | <property name="sizeHint" stdset="0"> | ||
| 631 | <size> | ||
| 632 | <width>0</width> | ||
| 633 | <height>20</height> | ||
| 634 | </size> | ||
| 635 | </property> | ||
| 636 | </spacer> | ||
| 637 | </item> | ||
| 638 | <item> | ||
| 639 | <widget class="QLabel" name="label_shift"> | ||
| 640 | <property name="font"> | ||
| 641 | <font> | ||
| 642 | <pointsize>18</pointsize> | ||
| 643 | </font> | ||
| 644 | </property> | ||
| 645 | <property name="text"> | ||
| 646 | <string notr="true">Shift</string> | ||
| 647 | </property> | ||
| 648 | </widget> | ||
| 649 | </item> | ||
| 650 | <item> | ||
| 651 | <spacer name="horizontalSpacer_15"> | ||
| 652 | <property name="orientation"> | ||
| 653 | <enum>Qt::Horizontal</enum> | ||
| 654 | </property> | ||
| 655 | <property name="sizeHint" stdset="0"> | ||
| 656 | <size> | ||
| 657 | <width>0</width> | ||
| 658 | <height>20</height> | ||
| 659 | </size> | ||
| 660 | </property> | ||
| 661 | </spacer> | ||
| 662 | </item> | ||
| 663 | <item> | ||
| 664 | <widget class="QWidget" name="button_X" native="true"/> | ||
| 665 | </item> | ||
| 666 | <item> | ||
| 667 | <spacer name="horizontalSpacer_9"> | ||
| 668 | <property name="orientation"> | ||
| 669 | <enum>Qt::Horizontal</enum> | ||
| 670 | </property> | ||
| 671 | <property name="sizeHint" stdset="0"> | ||
| 672 | <size> | ||
| 673 | <width>0</width> | ||
| 674 | <height>20</height> | ||
| 675 | </size> | ||
| 676 | </property> | ||
| 677 | </spacer> | ||
| 678 | </item> | ||
| 679 | <item> | ||
| 680 | <widget class="QLabel" name="label_cancel"> | ||
| 681 | <property name="font"> | ||
| 682 | <font> | ||
| 683 | <pointsize>18</pointsize> | ||
| 684 | </font> | ||
| 685 | </property> | ||
| 686 | <property name="text"> | ||
| 687 | <string notr="true">Cancel</string> | ||
| 688 | </property> | ||
| 689 | </widget> | ||
| 690 | </item> | ||
| 691 | <item> | ||
| 692 | <spacer name="horizontalSpacer_8"> | ||
| 693 | <property name="orientation"> | ||
| 694 | <enum>Qt::Horizontal</enum> | ||
| 695 | </property> | ||
| 696 | <property name="sizeHint" stdset="0"> | ||
| 697 | <size> | ||
| 698 | <width>0</width> | ||
| 699 | <height>20</height> | ||
| 700 | </size> | ||
| 701 | </property> | ||
| 702 | </spacer> | ||
| 703 | </item> | ||
| 704 | <item> | ||
| 705 | <widget class="QWidget" name="button_A" native="true"/> | ||
| 706 | </item> | ||
| 707 | <item> | ||
| 708 | <spacer name="horizontalSpacer_7"> | ||
| 709 | <property name="orientation"> | ||
| 710 | <enum>Qt::Horizontal</enum> | ||
| 711 | </property> | ||
| 712 | <property name="sizeHint" stdset="0"> | ||
| 713 | <size> | ||
| 714 | <width>0</width> | ||
| 715 | <height>20</height> | ||
| 716 | </size> | ||
| 717 | </property> | ||
| 718 | </spacer> | ||
| 719 | </item> | ||
| 720 | <item> | ||
| 721 | <widget class="QLabel" name="label_enter"> | ||
| 722 | <property name="font"> | ||
| 723 | <font> | ||
| 724 | <pointsize>18</pointsize> | ||
| 725 | </font> | ||
| 726 | </property> | ||
| 727 | <property name="text"> | ||
| 728 | <string notr="true">Enter</string> | ||
| 729 | </property> | ||
| 730 | </widget> | ||
| 731 | </item> | ||
| 732 | <item> | ||
| 733 | <spacer name="horizontalSpacer_6"> | ||
| 734 | <property name="orientation"> | ||
| 735 | <enum>Qt::Horizontal</enum> | ||
| 736 | </property> | ||
| 737 | <property name="sizeHint" stdset="0"> | ||
| 738 | <size> | ||
| 739 | <width>0</width> | ||
| 740 | <height>20</height> | ||
| 741 | </size> | ||
| 742 | </property> | ||
| 743 | </spacer> | ||
| 744 | </item> | ||
| 745 | </layout> | ||
| 746 | </widget> | ||
| 747 | </item> | ||
| 748 | <item row="1" column="11"> | ||
| 749 | <widget class="QPushButton" name="button_minus"> | ||
| 750 | <property name="sizePolicy"> | ||
| 751 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 752 | <horstretch>1</horstretch> | ||
| 753 | <verstretch>1</verstretch> | ||
| 754 | </sizepolicy> | ||
| 755 | </property> | ||
| 756 | <property name="font"> | ||
| 757 | <font> | ||
| 758 | <pointsize>28</pointsize> | ||
| 759 | </font> | ||
| 760 | </property> | ||
| 761 | <property name="text"> | ||
| 762 | <string notr="true">-</string> | ||
| 763 | </property> | ||
| 764 | </widget> | ||
| 765 | </item> | ||
| 766 | <item row="3" column="11"> | ||
| 767 | <widget class="QPushButton" name="button_apostrophe"> | ||
| 768 | <property name="sizePolicy"> | ||
| 769 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 770 | <horstretch>1</horstretch> | ||
| 771 | <verstretch>1</verstretch> | ||
| 772 | </sizepolicy> | ||
| 773 | </property> | ||
| 774 | <property name="font"> | ||
| 775 | <font> | ||
| 776 | <pointsize>28</pointsize> | ||
| 777 | </font> | ||
| 778 | </property> | ||
| 779 | <property name="text"> | ||
| 780 | <string notr="true">'</string> | ||
| 781 | </property> | ||
| 782 | </widget> | ||
| 783 | </item> | ||
| 784 | <item row="2" column="11"> | ||
| 785 | <widget class="QPushButton" name="button_slash"> | ||
| 786 | <property name="sizePolicy"> | ||
| 787 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 788 | <horstretch>1</horstretch> | ||
| 789 | <verstretch>1</verstretch> | ||
| 790 | </sizepolicy> | ||
| 791 | </property> | ||
| 792 | <property name="font"> | ||
| 793 | <font> | ||
| 794 | <pointsize>28</pointsize> | ||
| 795 | </font> | ||
| 796 | </property> | ||
| 797 | <property name="text"> | ||
| 798 | <string notr="true">/</string> | ||
| 799 | </property> | ||
| 800 | </widget> | ||
| 801 | </item> | ||
| 802 | <item row="4" column="11"> | ||
| 803 | <widget class="QPushButton" name="button_exclamation"> | ||
| 804 | <property name="sizePolicy"> | ||
| 805 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 806 | <horstretch>1</horstretch> | ||
| 807 | <verstretch>1</verstretch> | ||
| 808 | </sizepolicy> | ||
| 809 | </property> | ||
| 810 | <property name="font"> | ||
| 811 | <font> | ||
| 812 | <pointsize>28</pointsize> | ||
| 813 | </font> | ||
| 814 | </property> | ||
| 815 | <property name="text"> | ||
| 816 | <string notr="true">!</string> | ||
| 817 | </property> | ||
| 818 | </widget> | ||
| 819 | </item> | ||
| 820 | <item row="1" column="7"> | ||
| 821 | <widget class="QPushButton" name="button_7"> | ||
| 822 | <property name="sizePolicy"> | ||
| 823 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 824 | <horstretch>1</horstretch> | ||
| 825 | <verstretch>1</verstretch> | ||
| 826 | </sizepolicy> | ||
| 827 | </property> | ||
| 828 | <property name="font"> | ||
| 829 | <font> | ||
| 830 | <pointsize>28</pointsize> | ||
| 831 | </font> | ||
| 832 | </property> | ||
| 833 | <property name="text"> | ||
| 834 | <string notr="true">7</string> | ||
| 835 | </property> | ||
| 836 | </widget> | ||
| 837 | </item> | ||
| 838 | <item row="1" column="8"> | ||
| 839 | <widget class="QPushButton" name="button_8"> | ||
| 840 | <property name="sizePolicy"> | ||
| 841 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 842 | <horstretch>1</horstretch> | ||
| 843 | <verstretch>1</verstretch> | ||
| 844 | </sizepolicy> | ||
| 845 | </property> | ||
| 846 | <property name="font"> | ||
| 847 | <font> | ||
| 848 | <pointsize>28</pointsize> | ||
| 849 | </font> | ||
| 850 | </property> | ||
| 851 | <property name="text"> | ||
| 852 | <string notr="true">8</string> | ||
| 853 | </property> | ||
| 854 | </widget> | ||
| 855 | </item> | ||
| 856 | <item row="1" column="10"> | ||
| 857 | <widget class="QPushButton" name="button_0"> | ||
| 858 | <property name="sizePolicy"> | ||
| 859 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 860 | <horstretch>1</horstretch> | ||
| 861 | <verstretch>1</verstretch> | ||
| 862 | </sizepolicy> | ||
| 863 | </property> | ||
| 864 | <property name="font"> | ||
| 865 | <font> | ||
| 866 | <pointsize>28</pointsize> | ||
| 867 | </font> | ||
| 868 | </property> | ||
| 869 | <property name="text"> | ||
| 870 | <string notr="true">0</string> | ||
| 871 | </property> | ||
| 872 | </widget> | ||
| 873 | </item> | ||
| 874 | <item row="1" column="9"> | ||
| 875 | <widget class="QPushButton" name="button_9"> | ||
| 876 | <property name="sizePolicy"> | ||
| 877 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 878 | <horstretch>1</horstretch> | ||
| 879 | <verstretch>1</verstretch> | ||
| 880 | </sizepolicy> | ||
| 881 | </property> | ||
| 882 | <property name="font"> | ||
| 883 | <font> | ||
| 884 | <pointsize>28</pointsize> | ||
| 885 | </font> | ||
| 886 | </property> | ||
| 887 | <property name="text"> | ||
| 888 | <string notr="true">9</string> | ||
| 889 | </property> | ||
| 890 | </widget> | ||
| 891 | </item> | ||
| 892 | <item row="2" column="2"> | ||
| 893 | <widget class="QPushButton" name="button_w"> | ||
| 894 | <property name="sizePolicy"> | ||
| 895 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 896 | <horstretch>1</horstretch> | ||
| 897 | <verstretch>1</verstretch> | ||
| 898 | </sizepolicy> | ||
| 899 | </property> | ||
| 900 | <property name="font"> | ||
| 901 | <font> | ||
| 902 | <pointsize>28</pointsize> | ||
| 903 | </font> | ||
| 904 | </property> | ||
| 905 | <property name="text"> | ||
| 906 | <string notr="true">w</string> | ||
| 907 | </property> | ||
| 908 | </widget> | ||
| 909 | </item> | ||
| 910 | <item row="2" column="4"> | ||
| 911 | <widget class="QPushButton" name="button_r"> | ||
| 912 | <property name="sizePolicy"> | ||
| 913 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 914 | <horstretch>1</horstretch> | ||
| 915 | <verstretch>1</verstretch> | ||
| 916 | </sizepolicy> | ||
| 917 | </property> | ||
| 918 | <property name="font"> | ||
| 919 | <font> | ||
| 920 | <pointsize>28</pointsize> | ||
| 921 | </font> | ||
| 922 | </property> | ||
| 923 | <property name="text"> | ||
| 924 | <string notr="true">r</string> | ||
| 925 | </property> | ||
| 926 | </widget> | ||
| 927 | </item> | ||
| 928 | <item row="2" column="3"> | ||
| 929 | <widget class="QPushButton" name="button_e"> | ||
| 930 | <property name="sizePolicy"> | ||
| 931 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 932 | <horstretch>1</horstretch> | ||
| 933 | <verstretch>1</verstretch> | ||
| 934 | </sizepolicy> | ||
| 935 | </property> | ||
| 936 | <property name="font"> | ||
| 937 | <font> | ||
| 938 | <pointsize>28</pointsize> | ||
| 939 | </font> | ||
| 940 | </property> | ||
| 941 | <property name="text"> | ||
| 942 | <string notr="true">e</string> | ||
| 943 | </property> | ||
| 944 | </widget> | ||
| 945 | </item> | ||
| 946 | <item row="2" column="1"> | ||
| 947 | <widget class="QPushButton" name="button_q"> | ||
| 948 | <property name="sizePolicy"> | ||
| 949 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 950 | <horstretch>1</horstretch> | ||
| 951 | <verstretch>1</verstretch> | ||
| 952 | </sizepolicy> | ||
| 953 | </property> | ||
| 954 | <property name="font"> | ||
| 955 | <font> | ||
| 956 | <pointsize>28</pointsize> | ||
| 957 | </font> | ||
| 958 | </property> | ||
| 959 | <property name="text"> | ||
| 960 | <string notr="true">q</string> | ||
| 961 | </property> | ||
| 962 | </widget> | ||
| 963 | </item> | ||
| 964 | <item row="2" column="7"> | ||
| 965 | <widget class="QPushButton" name="button_u"> | ||
| 966 | <property name="sizePolicy"> | ||
| 967 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 968 | <horstretch>1</horstretch> | ||
| 969 | <verstretch>1</verstretch> | ||
| 970 | </sizepolicy> | ||
| 971 | </property> | ||
| 972 | <property name="font"> | ||
| 973 | <font> | ||
| 974 | <pointsize>28</pointsize> | ||
| 975 | </font> | ||
| 976 | </property> | ||
| 977 | <property name="text"> | ||
| 978 | <string notr="true">u</string> | ||
| 979 | </property> | ||
| 980 | </widget> | ||
| 981 | </item> | ||
| 982 | <item row="2" column="6"> | ||
| 983 | <widget class="QPushButton" name="button_y"> | ||
| 984 | <property name="sizePolicy"> | ||
| 985 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 986 | <horstretch>1</horstretch> | ||
| 987 | <verstretch>1</verstretch> | ||
| 988 | </sizepolicy> | ||
| 989 | </property> | ||
| 990 | <property name="font"> | ||
| 991 | <font> | ||
| 992 | <pointsize>28</pointsize> | ||
| 993 | </font> | ||
| 994 | </property> | ||
| 995 | <property name="text"> | ||
| 996 | <string notr="true">y</string> | ||
| 997 | </property> | ||
| 998 | </widget> | ||
| 999 | </item> | ||
| 1000 | <item row="2" column="5"> | ||
| 1001 | <widget class="QPushButton" name="button_t"> | ||
| 1002 | <property name="sizePolicy"> | ||
| 1003 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1004 | <horstretch>1</horstretch> | ||
| 1005 | <verstretch>1</verstretch> | ||
| 1006 | </sizepolicy> | ||
| 1007 | </property> | ||
| 1008 | <property name="font"> | ||
| 1009 | <font> | ||
| 1010 | <pointsize>28</pointsize> | ||
| 1011 | </font> | ||
| 1012 | </property> | ||
| 1013 | <property name="text"> | ||
| 1014 | <string notr="true">t</string> | ||
| 1015 | </property> | ||
| 1016 | </widget> | ||
| 1017 | </item> | ||
| 1018 | <item row="2" column="9"> | ||
| 1019 | <widget class="QPushButton" name="button_o"> | ||
| 1020 | <property name="sizePolicy"> | ||
| 1021 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1022 | <horstretch>1</horstretch> | ||
| 1023 | <verstretch>1</verstretch> | ||
| 1024 | </sizepolicy> | ||
| 1025 | </property> | ||
| 1026 | <property name="font"> | ||
| 1027 | <font> | ||
| 1028 | <pointsize>28</pointsize> | ||
| 1029 | </font> | ||
| 1030 | </property> | ||
| 1031 | <property name="text"> | ||
| 1032 | <string notr="true">o</string> | ||
| 1033 | </property> | ||
| 1034 | </widget> | ||
| 1035 | </item> | ||
| 1036 | <item row="2" column="10"> | ||
| 1037 | <widget class="QPushButton" name="button_p"> | ||
| 1038 | <property name="sizePolicy"> | ||
| 1039 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1040 | <horstretch>1</horstretch> | ||
| 1041 | <verstretch>1</verstretch> | ||
| 1042 | </sizepolicy> | ||
| 1043 | </property> | ||
| 1044 | <property name="font"> | ||
| 1045 | <font> | ||
| 1046 | <pointsize>28</pointsize> | ||
| 1047 | </font> | ||
| 1048 | </property> | ||
| 1049 | <property name="text"> | ||
| 1050 | <string notr="true">p</string> | ||
| 1051 | </property> | ||
| 1052 | </widget> | ||
| 1053 | </item> | ||
| 1054 | <item row="2" column="8"> | ||
| 1055 | <widget class="QPushButton" name="button_i"> | ||
| 1056 | <property name="sizePolicy"> | ||
| 1057 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1058 | <horstretch>1</horstretch> | ||
| 1059 | <verstretch>1</verstretch> | ||
| 1060 | </sizepolicy> | ||
| 1061 | </property> | ||
| 1062 | <property name="font"> | ||
| 1063 | <font> | ||
| 1064 | <pointsize>28</pointsize> | ||
| 1065 | </font> | ||
| 1066 | </property> | ||
| 1067 | <property name="text"> | ||
| 1068 | <string notr="true">i</string> | ||
| 1069 | </property> | ||
| 1070 | </widget> | ||
| 1071 | </item> | ||
| 1072 | <item row="3" column="1"> | ||
| 1073 | <widget class="QPushButton" name="button_a"> | ||
| 1074 | <property name="sizePolicy"> | ||
| 1075 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1076 | <horstretch>1</horstretch> | ||
| 1077 | <verstretch>1</verstretch> | ||
| 1078 | </sizepolicy> | ||
| 1079 | </property> | ||
| 1080 | <property name="font"> | ||
| 1081 | <font> | ||
| 1082 | <pointsize>28</pointsize> | ||
| 1083 | </font> | ||
| 1084 | </property> | ||
| 1085 | <property name="text"> | ||
| 1086 | <string notr="true">a</string> | ||
| 1087 | </property> | ||
| 1088 | </widget> | ||
| 1089 | </item> | ||
| 1090 | <item row="3" column="2"> | ||
| 1091 | <widget class="QPushButton" name="button_s"> | ||
| 1092 | <property name="sizePolicy"> | ||
| 1093 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1094 | <horstretch>1</horstretch> | ||
| 1095 | <verstretch>1</verstretch> | ||
| 1096 | </sizepolicy> | ||
| 1097 | </property> | ||
| 1098 | <property name="font"> | ||
| 1099 | <font> | ||
| 1100 | <pointsize>28</pointsize> | ||
| 1101 | </font> | ||
| 1102 | </property> | ||
| 1103 | <property name="text"> | ||
| 1104 | <string notr="true">s</string> | ||
| 1105 | </property> | ||
| 1106 | </widget> | ||
| 1107 | </item> | ||
| 1108 | <item row="3" column="3"> | ||
| 1109 | <widget class="QPushButton" name="button_d"> | ||
| 1110 | <property name="sizePolicy"> | ||
| 1111 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1112 | <horstretch>1</horstretch> | ||
| 1113 | <verstretch>1</verstretch> | ||
| 1114 | </sizepolicy> | ||
| 1115 | </property> | ||
| 1116 | <property name="font"> | ||
| 1117 | <font> | ||
| 1118 | <pointsize>28</pointsize> | ||
| 1119 | </font> | ||
| 1120 | </property> | ||
| 1121 | <property name="text"> | ||
| 1122 | <string notr="true">d</string> | ||
| 1123 | </property> | ||
| 1124 | </widget> | ||
| 1125 | </item> | ||
| 1126 | <item row="3" column="4"> | ||
| 1127 | <widget class="QPushButton" name="button_f"> | ||
| 1128 | <property name="sizePolicy"> | ||
| 1129 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1130 | <horstretch>1</horstretch> | ||
| 1131 | <verstretch>1</verstretch> | ||
| 1132 | </sizepolicy> | ||
| 1133 | </property> | ||
| 1134 | <property name="font"> | ||
| 1135 | <font> | ||
| 1136 | <pointsize>28</pointsize> | ||
| 1137 | </font> | ||
| 1138 | </property> | ||
| 1139 | <property name="text"> | ||
| 1140 | <string notr="true">f</string> | ||
| 1141 | </property> | ||
| 1142 | </widget> | ||
| 1143 | </item> | ||
| 1144 | <item row="3" column="6"> | ||
| 1145 | <widget class="QPushButton" name="button_h"> | ||
| 1146 | <property name="sizePolicy"> | ||
| 1147 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1148 | <horstretch>1</horstretch> | ||
| 1149 | <verstretch>1</verstretch> | ||
| 1150 | </sizepolicy> | ||
| 1151 | </property> | ||
| 1152 | <property name="font"> | ||
| 1153 | <font> | ||
| 1154 | <pointsize>28</pointsize> | ||
| 1155 | </font> | ||
| 1156 | </property> | ||
| 1157 | <property name="text"> | ||
| 1158 | <string notr="true">h</string> | ||
| 1159 | </property> | ||
| 1160 | </widget> | ||
| 1161 | </item> | ||
| 1162 | <item row="3" column="7"> | ||
| 1163 | <widget class="QPushButton" name="button_j"> | ||
| 1164 | <property name="sizePolicy"> | ||
| 1165 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1166 | <horstretch>1</horstretch> | ||
| 1167 | <verstretch>1</verstretch> | ||
| 1168 | </sizepolicy> | ||
| 1169 | </property> | ||
| 1170 | <property name="font"> | ||
| 1171 | <font> | ||
| 1172 | <pointsize>28</pointsize> | ||
| 1173 | </font> | ||
| 1174 | </property> | ||
| 1175 | <property name="text"> | ||
| 1176 | <string notr="true">j</string> | ||
| 1177 | </property> | ||
| 1178 | </widget> | ||
| 1179 | </item> | ||
| 1180 | <item row="3" column="5"> | ||
| 1181 | <widget class="QPushButton" name="button_g"> | ||
| 1182 | <property name="sizePolicy"> | ||
| 1183 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1184 | <horstretch>1</horstretch> | ||
| 1185 | <verstretch>1</verstretch> | ||
| 1186 | </sizepolicy> | ||
| 1187 | </property> | ||
| 1188 | <property name="font"> | ||
| 1189 | <font> | ||
| 1190 | <pointsize>28</pointsize> | ||
| 1191 | </font> | ||
| 1192 | </property> | ||
| 1193 | <property name="text"> | ||
| 1194 | <string notr="true">g</string> | ||
| 1195 | </property> | ||
| 1196 | </widget> | ||
| 1197 | </item> | ||
| 1198 | <item row="3" column="8"> | ||
| 1199 | <widget class="QPushButton" name="button_k"> | ||
| 1200 | <property name="sizePolicy"> | ||
| 1201 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1202 | <horstretch>1</horstretch> | ||
| 1203 | <verstretch>1</verstretch> | ||
| 1204 | </sizepolicy> | ||
| 1205 | </property> | ||
| 1206 | <property name="font"> | ||
| 1207 | <font> | ||
| 1208 | <pointsize>28</pointsize> | ||
| 1209 | </font> | ||
| 1210 | </property> | ||
| 1211 | <property name="text"> | ||
| 1212 | <string notr="true">k</string> | ||
| 1213 | </property> | ||
| 1214 | </widget> | ||
| 1215 | </item> | ||
| 1216 | <item row="3" column="9"> | ||
| 1217 | <widget class="QPushButton" name="button_l"> | ||
| 1218 | <property name="sizePolicy"> | ||
| 1219 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1220 | <horstretch>1</horstretch> | ||
| 1221 | <verstretch>1</verstretch> | ||
| 1222 | </sizepolicy> | ||
| 1223 | </property> | ||
| 1224 | <property name="font"> | ||
| 1225 | <font> | ||
| 1226 | <pointsize>28</pointsize> | ||
| 1227 | </font> | ||
| 1228 | </property> | ||
| 1229 | <property name="text"> | ||
| 1230 | <string notr="true">l</string> | ||
| 1231 | </property> | ||
| 1232 | </widget> | ||
| 1233 | </item> | ||
| 1234 | <item row="3" column="10"> | ||
| 1235 | <widget class="QPushButton" name="button_colon"> | ||
| 1236 | <property name="sizePolicy"> | ||
| 1237 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1238 | <horstretch>1</horstretch> | ||
| 1239 | <verstretch>1</verstretch> | ||
| 1240 | </sizepolicy> | ||
| 1241 | </property> | ||
| 1242 | <property name="font"> | ||
| 1243 | <font> | ||
| 1244 | <pointsize>28</pointsize> | ||
| 1245 | </font> | ||
| 1246 | </property> | ||
| 1247 | <property name="text"> | ||
| 1248 | <string notr="true">:</string> | ||
| 1249 | </property> | ||
| 1250 | </widget> | ||
| 1251 | </item> | ||
| 1252 | <item row="2" column="12" rowspan="2"> | ||
| 1253 | <widget class="QPushButton" name="button_return"> | ||
| 1254 | <property name="sizePolicy"> | ||
| 1255 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1256 | <horstretch>1</horstretch> | ||
| 1257 | <verstretch>1</verstretch> | ||
| 1258 | </sizepolicy> | ||
| 1259 | </property> | ||
| 1260 | <property name="font"> | ||
| 1261 | <font> | ||
| 1262 | <pointsize>18</pointsize> | ||
| 1263 | </font> | ||
| 1264 | </property> | ||
| 1265 | <property name="text"> | ||
| 1266 | <string notr="true">Return</string> | ||
| 1267 | </property> | ||
| 1268 | </widget> | ||
| 1269 | </item> | ||
| 1270 | <item row="4" column="12" rowspan="2"> | ||
| 1271 | <widget class="QPushButton" name="button_ok"> | ||
| 1272 | <property name="sizePolicy"> | ||
| 1273 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1274 | <horstretch>1</horstretch> | ||
| 1275 | <verstretch>1</verstretch> | ||
| 1276 | </sizepolicy> | ||
| 1277 | </property> | ||
| 1278 | <property name="font"> | ||
| 1279 | <font> | ||
| 1280 | <pointsize>18</pointsize> | ||
| 1281 | </font> | ||
| 1282 | </property> | ||
| 1283 | <property name="text"> | ||
| 1284 | <string notr="true">OK</string> | ||
| 1285 | </property> | ||
| 1286 | </widget> | ||
| 1287 | </item> | ||
| 1288 | <item row="4" column="1"> | ||
| 1289 | <widget class="QPushButton" name="button_z"> | ||
| 1290 | <property name="sizePolicy"> | ||
| 1291 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1292 | <horstretch>1</horstretch> | ||
| 1293 | <verstretch>1</verstretch> | ||
| 1294 | </sizepolicy> | ||
| 1295 | </property> | ||
| 1296 | <property name="font"> | ||
| 1297 | <font> | ||
| 1298 | <pointsize>28</pointsize> | ||
| 1299 | </font> | ||
| 1300 | </property> | ||
| 1301 | <property name="text"> | ||
| 1302 | <string notr="true">z</string> | ||
| 1303 | </property> | ||
| 1304 | </widget> | ||
| 1305 | </item> | ||
| 1306 | <item row="4" column="3"> | ||
| 1307 | <widget class="QPushButton" name="button_c"> | ||
| 1308 | <property name="sizePolicy"> | ||
| 1309 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1310 | <horstretch>1</horstretch> | ||
| 1311 | <verstretch>1</verstretch> | ||
| 1312 | </sizepolicy> | ||
| 1313 | </property> | ||
| 1314 | <property name="font"> | ||
| 1315 | <font> | ||
| 1316 | <pointsize>28</pointsize> | ||
| 1317 | </font> | ||
| 1318 | </property> | ||
| 1319 | <property name="text"> | ||
| 1320 | <string notr="true">c</string> | ||
| 1321 | </property> | ||
| 1322 | </widget> | ||
| 1323 | </item> | ||
| 1324 | <item row="4" column="2"> | ||
| 1325 | <widget class="QPushButton" name="button_x"> | ||
| 1326 | <property name="sizePolicy"> | ||
| 1327 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1328 | <horstretch>1</horstretch> | ||
| 1329 | <verstretch>1</verstretch> | ||
| 1330 | </sizepolicy> | ||
| 1331 | </property> | ||
| 1332 | <property name="font"> | ||
| 1333 | <font> | ||
| 1334 | <pointsize>28</pointsize> | ||
| 1335 | </font> | ||
| 1336 | </property> | ||
| 1337 | <property name="text"> | ||
| 1338 | <string notr="true">x</string> | ||
| 1339 | </property> | ||
| 1340 | </widget> | ||
| 1341 | </item> | ||
| 1342 | <item row="4" column="4"> | ||
| 1343 | <widget class="QPushButton" name="button_v"> | ||
| 1344 | <property name="sizePolicy"> | ||
| 1345 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1346 | <horstretch>1</horstretch> | ||
| 1347 | <verstretch>1</verstretch> | ||
| 1348 | </sizepolicy> | ||
| 1349 | </property> | ||
| 1350 | <property name="font"> | ||
| 1351 | <font> | ||
| 1352 | <pointsize>28</pointsize> | ||
| 1353 | </font> | ||
| 1354 | </property> | ||
| 1355 | <property name="text"> | ||
| 1356 | <string notr="true">v</string> | ||
| 1357 | </property> | ||
| 1358 | </widget> | ||
| 1359 | </item> | ||
| 1360 | <item row="4" column="7"> | ||
| 1361 | <widget class="QPushButton" name="button_m"> | ||
| 1362 | <property name="sizePolicy"> | ||
| 1363 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1364 | <horstretch>1</horstretch> | ||
| 1365 | <verstretch>1</verstretch> | ||
| 1366 | </sizepolicy> | ||
| 1367 | </property> | ||
| 1368 | <property name="font"> | ||
| 1369 | <font> | ||
| 1370 | <pointsize>28</pointsize> | ||
| 1371 | </font> | ||
| 1372 | </property> | ||
| 1373 | <property name="text"> | ||
| 1374 | <string notr="true">m</string> | ||
| 1375 | </property> | ||
| 1376 | </widget> | ||
| 1377 | </item> | ||
| 1378 | <item row="4" column="8"> | ||
| 1379 | <widget class="QPushButton" name="button_comma"> | ||
| 1380 | <property name="sizePolicy"> | ||
| 1381 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1382 | <horstretch>1</horstretch> | ||
| 1383 | <verstretch>1</verstretch> | ||
| 1384 | </sizepolicy> | ||
| 1385 | </property> | ||
| 1386 | <property name="font"> | ||
| 1387 | <font> | ||
| 1388 | <pointsize>28</pointsize> | ||
| 1389 | </font> | ||
| 1390 | </property> | ||
| 1391 | <property name="text"> | ||
| 1392 | <string notr="true">,</string> | ||
| 1393 | </property> | ||
| 1394 | </widget> | ||
| 1395 | </item> | ||
| 1396 | <item row="4" column="6"> | ||
| 1397 | <widget class="QPushButton" name="button_n"> | ||
| 1398 | <property name="sizePolicy"> | ||
| 1399 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1400 | <horstretch>1</horstretch> | ||
| 1401 | <verstretch>1</verstretch> | ||
| 1402 | </sizepolicy> | ||
| 1403 | </property> | ||
| 1404 | <property name="font"> | ||
| 1405 | <font> | ||
| 1406 | <pointsize>28</pointsize> | ||
| 1407 | </font> | ||
| 1408 | </property> | ||
| 1409 | <property name="text"> | ||
| 1410 | <string notr="true">n</string> | ||
| 1411 | </property> | ||
| 1412 | </widget> | ||
| 1413 | </item> | ||
| 1414 | <item row="4" column="5"> | ||
| 1415 | <widget class="QPushButton" name="button_b"> | ||
| 1416 | <property name="sizePolicy"> | ||
| 1417 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1418 | <horstretch>1</horstretch> | ||
| 1419 | <verstretch>1</verstretch> | ||
| 1420 | </sizepolicy> | ||
| 1421 | </property> | ||
| 1422 | <property name="font"> | ||
| 1423 | <font> | ||
| 1424 | <pointsize>28</pointsize> | ||
| 1425 | </font> | ||
| 1426 | </property> | ||
| 1427 | <property name="text"> | ||
| 1428 | <string notr="true">b</string> | ||
| 1429 | </property> | ||
| 1430 | </widget> | ||
| 1431 | </item> | ||
| 1432 | <item row="5" column="1" colspan="2"> | ||
| 1433 | <widget class="QPushButton" name="button_shift"> | ||
| 1434 | <property name="sizePolicy"> | ||
| 1435 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1436 | <horstretch>1</horstretch> | ||
| 1437 | <verstretch>1</verstretch> | ||
| 1438 | </sizepolicy> | ||
| 1439 | </property> | ||
| 1440 | <property name="font"> | ||
| 1441 | <font> | ||
| 1442 | <pointsize>18</pointsize> | ||
| 1443 | </font> | ||
| 1444 | </property> | ||
| 1445 | <property name="text"> | ||
| 1446 | <string notr="true"/> | ||
| 1447 | </property> | ||
| 1448 | <property name="checkable"> | ||
| 1449 | <bool>true</bool> | ||
| 1450 | </property> | ||
| 1451 | <property name="checked"> | ||
| 1452 | <bool>false</bool> | ||
| 1453 | </property> | ||
| 1454 | </widget> | ||
| 1455 | </item> | ||
| 1456 | <item row="4" column="10"> | ||
| 1457 | <widget class="QPushButton" name="button_question"> | ||
| 1458 | <property name="sizePolicy"> | ||
| 1459 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1460 | <horstretch>1</horstretch> | ||
| 1461 | <verstretch>1</verstretch> | ||
| 1462 | </sizepolicy> | ||
| 1463 | </property> | ||
| 1464 | <property name="font"> | ||
| 1465 | <font> | ||
| 1466 | <pointsize>28</pointsize> | ||
| 1467 | </font> | ||
| 1468 | </property> | ||
| 1469 | <property name="text"> | ||
| 1470 | <string notr="true">?</string> | ||
| 1471 | </property> | ||
| 1472 | </widget> | ||
| 1473 | </item> | ||
| 1474 | <item row="4" column="9"> | ||
| 1475 | <widget class="QPushButton" name="button_dot"> | ||
| 1476 | <property name="sizePolicy"> | ||
| 1477 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1478 | <horstretch>1</horstretch> | ||
| 1479 | <verstretch>1</verstretch> | ||
| 1480 | </sizepolicy> | ||
| 1481 | </property> | ||
| 1482 | <property name="font"> | ||
| 1483 | <font> | ||
| 1484 | <pointsize>28</pointsize> | ||
| 1485 | </font> | ||
| 1486 | </property> | ||
| 1487 | <property name="text"> | ||
| 1488 | <string notr="true">.</string> | ||
| 1489 | </property> | ||
| 1490 | </widget> | ||
| 1491 | </item> | ||
| 1492 | <item row="1" column="1"> | ||
| 1493 | <widget class="QPushButton" name="button_1"> | ||
| 1494 | <property name="sizePolicy"> | ||
| 1495 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1496 | <horstretch>1</horstretch> | ||
| 1497 | <verstretch>1</verstretch> | ||
| 1498 | </sizepolicy> | ||
| 1499 | </property> | ||
| 1500 | <property name="font"> | ||
| 1501 | <font> | ||
| 1502 | <pointsize>28</pointsize> | ||
| 1503 | </font> | ||
| 1504 | </property> | ||
| 1505 | <property name="text"> | ||
| 1506 | <string notr="true">1</string> | ||
| 1507 | </property> | ||
| 1508 | </widget> | ||
| 1509 | </item> | ||
| 1510 | <item row="1" column="3"> | ||
| 1511 | <widget class="QPushButton" name="button_3"> | ||
| 1512 | <property name="sizePolicy"> | ||
| 1513 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1514 | <horstretch>1</horstretch> | ||
| 1515 | <verstretch>1</verstretch> | ||
| 1516 | </sizepolicy> | ||
| 1517 | </property> | ||
| 1518 | <property name="font"> | ||
| 1519 | <font> | ||
| 1520 | <pointsize>28</pointsize> | ||
| 1521 | </font> | ||
| 1522 | </property> | ||
| 1523 | <property name="text"> | ||
| 1524 | <string notr="true">3</string> | ||
| 1525 | </property> | ||
| 1526 | </widget> | ||
| 1527 | </item> | ||
| 1528 | <item row="1" column="4"> | ||
| 1529 | <widget class="QPushButton" name="button_4"> | ||
| 1530 | <property name="sizePolicy"> | ||
| 1531 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1532 | <horstretch>1</horstretch> | ||
| 1533 | <verstretch>1</verstretch> | ||
| 1534 | </sizepolicy> | ||
| 1535 | </property> | ||
| 1536 | <property name="font"> | ||
| 1537 | <font> | ||
| 1538 | <pointsize>28</pointsize> | ||
| 1539 | </font> | ||
| 1540 | </property> | ||
| 1541 | <property name="text"> | ||
| 1542 | <string notr="true">4</string> | ||
| 1543 | </property> | ||
| 1544 | </widget> | ||
| 1545 | </item> | ||
| 1546 | <item row="1" column="2"> | ||
| 1547 | <widget class="QPushButton" name="button_2"> | ||
| 1548 | <property name="sizePolicy"> | ||
| 1549 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1550 | <horstretch>1</horstretch> | ||
| 1551 | <verstretch>1</verstretch> | ||
| 1552 | </sizepolicy> | ||
| 1553 | </property> | ||
| 1554 | <property name="font"> | ||
| 1555 | <font> | ||
| 1556 | <pointsize>28</pointsize> | ||
| 1557 | </font> | ||
| 1558 | </property> | ||
| 1559 | <property name="text"> | ||
| 1560 | <string notr="true">2</string> | ||
| 1561 | </property> | ||
| 1562 | </widget> | ||
| 1563 | </item> | ||
| 1564 | <item row="1" column="6"> | ||
| 1565 | <widget class="QPushButton" name="button_6"> | ||
| 1566 | <property name="sizePolicy"> | ||
| 1567 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1568 | <horstretch>1</horstretch> | ||
| 1569 | <verstretch>1</verstretch> | ||
| 1570 | </sizepolicy> | ||
| 1571 | </property> | ||
| 1572 | <property name="font"> | ||
| 1573 | <font> | ||
| 1574 | <pointsize>28</pointsize> | ||
| 1575 | </font> | ||
| 1576 | </property> | ||
| 1577 | <property name="text"> | ||
| 1578 | <string notr="true">6</string> | ||
| 1579 | </property> | ||
| 1580 | </widget> | ||
| 1581 | </item> | ||
| 1582 | <item row="1" column="5"> | ||
| 1583 | <widget class="QPushButton" name="button_5"> | ||
| 1584 | <property name="sizePolicy"> | ||
| 1585 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1586 | <horstretch>1</horstretch> | ||
| 1587 | <verstretch>1</verstretch> | ||
| 1588 | </sizepolicy> | ||
| 1589 | </property> | ||
| 1590 | <property name="font"> | ||
| 1591 | <font> | ||
| 1592 | <pointsize>28</pointsize> | ||
| 1593 | </font> | ||
| 1594 | </property> | ||
| 1595 | <property name="text"> | ||
| 1596 | <string notr="true">5</string> | ||
| 1597 | </property> | ||
| 1598 | </widget> | ||
| 1599 | </item> | ||
| 1600 | <item row="5" column="3" colspan="9"> | ||
| 1601 | <widget class="QPushButton" name="button_space"> | ||
| 1602 | <property name="sizePolicy"> | ||
| 1603 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1604 | <horstretch>1</horstretch> | ||
| 1605 | <verstretch>1</verstretch> | ||
| 1606 | </sizepolicy> | ||
| 1607 | </property> | ||
| 1608 | <property name="font"> | ||
| 1609 | <font> | ||
| 1610 | <pointsize>18</pointsize> | ||
| 1611 | </font> | ||
| 1612 | </property> | ||
| 1613 | <property name="text"> | ||
| 1614 | <string notr="true">Space</string> | ||
| 1615 | </property> | ||
| 1616 | </widget> | ||
| 1617 | </item> | ||
| 1618 | <item row="1" column="12"> | ||
| 1619 | <widget class="QPushButton" name="button_backspace"> | ||
| 1620 | <property name="sizePolicy"> | ||
| 1621 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1622 | <horstretch>1</horstretch> | ||
| 1623 | <verstretch>1</verstretch> | ||
| 1624 | </sizepolicy> | ||
| 1625 | </property> | ||
| 1626 | <property name="font"> | ||
| 1627 | <font> | ||
| 1628 | <pointsize>18</pointsize> | ||
| 1629 | </font> | ||
| 1630 | </property> | ||
| 1631 | <property name="text"> | ||
| 1632 | <string notr="true"/> | ||
| 1633 | </property> | ||
| 1634 | </widget> | ||
| 1635 | </item> | ||
| 1636 | <item row="1" column="0"> | ||
| 1637 | <spacer name="horizontalSpacer"> | ||
| 1638 | <property name="orientation"> | ||
| 1639 | <enum>Qt::Horizontal</enum> | ||
| 1640 | </property> | ||
| 1641 | <property name="sizeHint" stdset="0"> | ||
| 1642 | <size> | ||
| 1643 | <width>40</width> | ||
| 1644 | <height>20</height> | ||
| 1645 | </size> | ||
| 1646 | </property> | ||
| 1647 | </spacer> | ||
| 1648 | </item> | ||
| 1649 | <item row="0" column="1"> | ||
| 1650 | <spacer name="verticalSpacer"> | ||
| 1651 | <property name="orientation"> | ||
| 1652 | <enum>Qt::Vertical</enum> | ||
| 1653 | </property> | ||
| 1654 | <property name="sizeHint" stdset="0"> | ||
| 1655 | <size> | ||
| 1656 | <width>20</width> | ||
| 1657 | <height>0</height> | ||
| 1658 | </size> | ||
| 1659 | </property> | ||
| 1660 | </spacer> | ||
| 1661 | </item> | ||
| 1662 | <item row="1" column="13"> | ||
| 1663 | <spacer name="horizontalSpacer_2"> | ||
| 1664 | <property name="orientation"> | ||
| 1665 | <enum>Qt::Horizontal</enum> | ||
| 1666 | </property> | ||
| 1667 | <property name="sizeHint" stdset="0"> | ||
| 1668 | <size> | ||
| 1669 | <width>40</width> | ||
| 1670 | <height>20</height> | ||
| 1671 | </size> | ||
| 1672 | </property> | ||
| 1673 | </spacer> | ||
| 1674 | </item> | ||
| 1675 | </layout> | ||
| 1676 | </item> | ||
| 1677 | </layout> | ||
| 1678 | </widget> | ||
| 1679 | <widget class="QWidget" name="shiftOSK"> | ||
| 1680 | <layout class="QVBoxLayout" name="shiftPageVerticalLayout"> | ||
| 1681 | <property name="leftMargin"> | ||
| 1682 | <number>0</number> | ||
| 1683 | </property> | ||
| 1684 | <property name="topMargin"> | ||
| 1685 | <number>0</number> | ||
| 1686 | </property> | ||
| 1687 | <property name="rightMargin"> | ||
| 1688 | <number>0</number> | ||
| 1689 | </property> | ||
| 1690 | <property name="bottomMargin"> | ||
| 1691 | <number>0</number> | ||
| 1692 | </property> | ||
| 1693 | <item> | ||
| 1694 | <layout class="QGridLayout" name="kbOSKshift" rowstretch="15,63,63,63,63,63,70" columnstretch="54,96,96,96,96,96,96,96,96,96,96,96,116,54"> | ||
| 1695 | <property name="spacing"> | ||
| 1696 | <number>0</number> | ||
| 1697 | </property> | ||
| 1698 | <item row="6" column="1" colspan="12"> | ||
| 1699 | <widget class="QWidget" name="legendOSKshift" native="true"> | ||
| 1700 | <layout class="QHBoxLayout" name="horizontalLayout_5" stretch="70,464,25,12,22,41,25,12,22,41,25,12,95,37,29,12,69,37,29,12,56,8"> | ||
| 1701 | <property name="spacing"> | ||
| 1702 | <number>0</number> | ||
| 1703 | </property> | ||
| 1704 | <property name="leftMargin"> | ||
| 1705 | <number>2</number> | ||
| 1706 | </property> | ||
| 1707 | <property name="topMargin"> | ||
| 1708 | <number>0</number> | ||
| 1709 | </property> | ||
| 1710 | <property name="rightMargin"> | ||
| 1711 | <number>0</number> | ||
| 1712 | </property> | ||
| 1713 | <property name="bottomMargin"> | ||
| 1714 | <number>0</number> | ||
| 1715 | </property> | ||
| 1716 | <item> | ||
| 1717 | <widget class="QWidget" name="icon_controller_shift" native="true"> | ||
| 1718 | <property name="styleSheet"> | ||
| 1719 | <string notr="true"/> | ||
| 1720 | </property> | ||
| 1721 | </widget> | ||
| 1722 | </item> | ||
| 1723 | <item> | ||
| 1724 | <spacer name="horizontalSpacer_22"> | ||
| 1725 | <property name="orientation"> | ||
| 1726 | <enum>Qt::Horizontal</enum> | ||
| 1727 | </property> | ||
| 1728 | <property name="sizeHint" stdset="0"> | ||
| 1729 | <size> | ||
| 1730 | <width>0</width> | ||
| 1731 | <height>20</height> | ||
| 1732 | </size> | ||
| 1733 | </property> | ||
| 1734 | </spacer> | ||
| 1735 | </item> | ||
| 1736 | <item> | ||
| 1737 | <widget class="QWidget" name="button_L_shift" native="true"/> | ||
| 1738 | </item> | ||
| 1739 | <item> | ||
| 1740 | <spacer name="horizontalSpacer_23"> | ||
| 1741 | <property name="orientation"> | ||
| 1742 | <enum>Qt::Horizontal</enum> | ||
| 1743 | </property> | ||
| 1744 | <property name="sizeHint" stdset="0"> | ||
| 1745 | <size> | ||
| 1746 | <width>0</width> | ||
| 1747 | <height>20</height> | ||
| 1748 | </size> | ||
| 1749 | </property> | ||
| 1750 | </spacer> | ||
| 1751 | </item> | ||
| 1752 | <item> | ||
| 1753 | <widget class="QWidget" name="arrow_left_shift" native="true"/> | ||
| 1754 | </item> | ||
| 1755 | <item> | ||
| 1756 | <spacer name="horizontalSpacer_24"> | ||
| 1757 | <property name="orientation"> | ||
| 1758 | <enum>Qt::Horizontal</enum> | ||
| 1759 | </property> | ||
| 1760 | <property name="sizeHint" stdset="0"> | ||
| 1761 | <size> | ||
| 1762 | <width>0</width> | ||
| 1763 | <height>20</height> | ||
| 1764 | </size> | ||
| 1765 | </property> | ||
| 1766 | </spacer> | ||
| 1767 | </item> | ||
| 1768 | <item> | ||
| 1769 | <widget class="QWidget" name="button_R_shift" native="true"/> | ||
| 1770 | </item> | ||
| 1771 | <item> | ||
| 1772 | <spacer name="horizontalSpacer_25"> | ||
| 1773 | <property name="orientation"> | ||
| 1774 | <enum>Qt::Horizontal</enum> | ||
| 1775 | </property> | ||
| 1776 | <property name="sizeHint" stdset="0"> | ||
| 1777 | <size> | ||
| 1778 | <width>0</width> | ||
| 1779 | <height>20</height> | ||
| 1780 | </size> | ||
| 1781 | </property> | ||
| 1782 | </spacer> | ||
| 1783 | </item> | ||
| 1784 | <item> | ||
| 1785 | <widget class="QWidget" name="arrow_right_shift" native="true"/> | ||
| 1786 | </item> | ||
| 1787 | <item> | ||
| 1788 | <spacer name="horizontalSpacer_26"> | ||
| 1789 | <property name="orientation"> | ||
| 1790 | <enum>Qt::Horizontal</enum> | ||
| 1791 | </property> | ||
| 1792 | <property name="sizeHint" stdset="0"> | ||
| 1793 | <size> | ||
| 1794 | <width>0</width> | ||
| 1795 | <height>20</height> | ||
| 1796 | </size> | ||
| 1797 | </property> | ||
| 1798 | </spacer> | ||
| 1799 | </item> | ||
| 1800 | <item> | ||
| 1801 | <widget class="QWidget" name="button_press_stick_shift" native="true"/> | ||
| 1802 | </item> | ||
| 1803 | <item> | ||
| 1804 | <spacer name="horizontalSpacer_27"> | ||
| 1805 | <property name="orientation"> | ||
| 1806 | <enum>Qt::Horizontal</enum> | ||
| 1807 | </property> | ||
| 1808 | <property name="sizeHint" stdset="0"> | ||
| 1809 | <size> | ||
| 1810 | <width>0</width> | ||
| 1811 | <height>20</height> | ||
| 1812 | </size> | ||
| 1813 | </property> | ||
| 1814 | </spacer> | ||
| 1815 | </item> | ||
| 1816 | <item> | ||
| 1817 | <widget class="QLabel" name="label_shift_shift"> | ||
| 1818 | <property name="font"> | ||
| 1819 | <font> | ||
| 1820 | <pointsize>18</pointsize> | ||
| 1821 | </font> | ||
| 1822 | </property> | ||
| 1823 | <property name="text"> | ||
| 1824 | <string notr="true">Caps Lock</string> | ||
| 1825 | </property> | ||
| 1826 | </widget> | ||
| 1827 | </item> | ||
| 1828 | <item> | ||
| 1829 | <spacer name="horizontalSpacer_28"> | ||
| 1830 | <property name="orientation"> | ||
| 1831 | <enum>Qt::Horizontal</enum> | ||
| 1832 | </property> | ||
| 1833 | <property name="sizeHint" stdset="0"> | ||
| 1834 | <size> | ||
| 1835 | <width>0</width> | ||
| 1836 | <height>20</height> | ||
| 1837 | </size> | ||
| 1838 | </property> | ||
| 1839 | </spacer> | ||
| 1840 | </item> | ||
| 1841 | <item> | ||
| 1842 | <widget class="QWidget" name="button_X_shift" native="true"/> | ||
| 1843 | </item> | ||
| 1844 | <item> | ||
| 1845 | <spacer name="horizontalSpacer_29"> | ||
| 1846 | <property name="orientation"> | ||
| 1847 | <enum>Qt::Horizontal</enum> | ||
| 1848 | </property> | ||
| 1849 | <property name="sizeHint" stdset="0"> | ||
| 1850 | <size> | ||
| 1851 | <width>0</width> | ||
| 1852 | <height>20</height> | ||
| 1853 | </size> | ||
| 1854 | </property> | ||
| 1855 | </spacer> | ||
| 1856 | </item> | ||
| 1857 | <item> | ||
| 1858 | <widget class="QLabel" name="label_cancel_shift"> | ||
| 1859 | <property name="font"> | ||
| 1860 | <font> | ||
| 1861 | <pointsize>18</pointsize> | ||
| 1862 | </font> | ||
| 1863 | </property> | ||
| 1864 | <property name="text"> | ||
| 1865 | <string notr="true">Cancel</string> | ||
| 1866 | </property> | ||
| 1867 | </widget> | ||
| 1868 | </item> | ||
| 1869 | <item> | ||
| 1870 | <spacer name="horizontalSpacer_30"> | ||
| 1871 | <property name="orientation"> | ||
| 1872 | <enum>Qt::Horizontal</enum> | ||
| 1873 | </property> | ||
| 1874 | <property name="sizeHint" stdset="0"> | ||
| 1875 | <size> | ||
| 1876 | <width>0</width> | ||
| 1877 | <height>20</height> | ||
| 1878 | </size> | ||
| 1879 | </property> | ||
| 1880 | </spacer> | ||
| 1881 | </item> | ||
| 1882 | <item> | ||
| 1883 | <widget class="QWidget" name="button_A_shift" native="true"/> | ||
| 1884 | </item> | ||
| 1885 | <item> | ||
| 1886 | <spacer name="horizontalSpacer_31"> | ||
| 1887 | <property name="orientation"> | ||
| 1888 | <enum>Qt::Horizontal</enum> | ||
| 1889 | </property> | ||
| 1890 | <property name="sizeHint" stdset="0"> | ||
| 1891 | <size> | ||
| 1892 | <width>0</width> | ||
| 1893 | <height>20</height> | ||
| 1894 | </size> | ||
| 1895 | </property> | ||
| 1896 | </spacer> | ||
| 1897 | </item> | ||
| 1898 | <item> | ||
| 1899 | <widget class="QLabel" name="label_enter_shift"> | ||
| 1900 | <property name="font"> | ||
| 1901 | <font> | ||
| 1902 | <pointsize>18</pointsize> | ||
| 1903 | </font> | ||
| 1904 | </property> | ||
| 1905 | <property name="text"> | ||
| 1906 | <string notr="true">Enter</string> | ||
| 1907 | </property> | ||
| 1908 | </widget> | ||
| 1909 | </item> | ||
| 1910 | <item> | ||
| 1911 | <spacer name="horizontalSpacer_32"> | ||
| 1912 | <property name="orientation"> | ||
| 1913 | <enum>Qt::Horizontal</enum> | ||
| 1914 | </property> | ||
| 1915 | <property name="sizeHint" stdset="0"> | ||
| 1916 | <size> | ||
| 1917 | <width>0</width> | ||
| 1918 | <height>20</height> | ||
| 1919 | </size> | ||
| 1920 | </property> | ||
| 1921 | </spacer> | ||
| 1922 | </item> | ||
| 1923 | </layout> | ||
| 1924 | </widget> | ||
| 1925 | </item> | ||
| 1926 | <item row="1" column="11"> | ||
| 1927 | <widget class="QPushButton" name="button_underscore"> | ||
| 1928 | <property name="sizePolicy"> | ||
| 1929 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1930 | <horstretch>1</horstretch> | ||
| 1931 | <verstretch>1</verstretch> | ||
| 1932 | </sizepolicy> | ||
| 1933 | </property> | ||
| 1934 | <property name="font"> | ||
| 1935 | <font> | ||
| 1936 | <pointsize>28</pointsize> | ||
| 1937 | </font> | ||
| 1938 | </property> | ||
| 1939 | <property name="text"> | ||
| 1940 | <string notr="true">_</string> | ||
| 1941 | </property> | ||
| 1942 | </widget> | ||
| 1943 | </item> | ||
| 1944 | <item row="3" column="11"> | ||
| 1945 | <widget class="QPushButton" name="button_quotation"> | ||
| 1946 | <property name="sizePolicy"> | ||
| 1947 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1948 | <horstretch>1</horstretch> | ||
| 1949 | <verstretch>1</verstretch> | ||
| 1950 | </sizepolicy> | ||
| 1951 | </property> | ||
| 1952 | <property name="font"> | ||
| 1953 | <font> | ||
| 1954 | <pointsize>28</pointsize> | ||
| 1955 | </font> | ||
| 1956 | </property> | ||
| 1957 | <property name="text"> | ||
| 1958 | <string notr="true">"</string> | ||
| 1959 | </property> | ||
| 1960 | </widget> | ||
| 1961 | </item> | ||
| 1962 | <item row="2" column="11"> | ||
| 1963 | <widget class="QPushButton" name="button_at"> | ||
| 1964 | <property name="sizePolicy"> | ||
| 1965 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1966 | <horstretch>1</horstretch> | ||
| 1967 | <verstretch>1</verstretch> | ||
| 1968 | </sizepolicy> | ||
| 1969 | </property> | ||
| 1970 | <property name="font"> | ||
| 1971 | <font> | ||
| 1972 | <pointsize>28</pointsize> | ||
| 1973 | </font> | ||
| 1974 | </property> | ||
| 1975 | <property name="text"> | ||
| 1976 | <string notr="true">@</string> | ||
| 1977 | </property> | ||
| 1978 | </widget> | ||
| 1979 | </item> | ||
| 1980 | <item row="4" column="11"> | ||
| 1981 | <widget class="QPushButton" name="button_equal"> | ||
| 1982 | <property name="sizePolicy"> | ||
| 1983 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 1984 | <horstretch>1</horstretch> | ||
| 1985 | <verstretch>1</verstretch> | ||
| 1986 | </sizepolicy> | ||
| 1987 | </property> | ||
| 1988 | <property name="font"> | ||
| 1989 | <font> | ||
| 1990 | <pointsize>28</pointsize> | ||
| 1991 | </font> | ||
| 1992 | </property> | ||
| 1993 | <property name="text"> | ||
| 1994 | <string notr="true">=</string> | ||
| 1995 | </property> | ||
| 1996 | </widget> | ||
| 1997 | </item> | ||
| 1998 | <item row="1" column="7"> | ||
| 1999 | <widget class="QPushButton" name="button_ampersand"> | ||
| 2000 | <property name="sizePolicy"> | ||
| 2001 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2002 | <horstretch>1</horstretch> | ||
| 2003 | <verstretch>1</verstretch> | ||
| 2004 | </sizepolicy> | ||
| 2005 | </property> | ||
| 2006 | <property name="font"> | ||
| 2007 | <font> | ||
| 2008 | <pointsize>28</pointsize> | ||
| 2009 | </font> | ||
| 2010 | </property> | ||
| 2011 | <property name="text"> | ||
| 2012 | <string notr="true">&&</string> | ||
| 2013 | </property> | ||
| 2014 | </widget> | ||
| 2015 | </item> | ||
| 2016 | <item row="1" column="8"> | ||
| 2017 | <widget class="QPushButton" name="button_asterisk"> | ||
| 2018 | <property name="sizePolicy"> | ||
| 2019 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2020 | <horstretch>1</horstretch> | ||
| 2021 | <verstretch>1</verstretch> | ||
| 2022 | </sizepolicy> | ||
| 2023 | </property> | ||
| 2024 | <property name="font"> | ||
| 2025 | <font> | ||
| 2026 | <pointsize>28</pointsize> | ||
| 2027 | </font> | ||
| 2028 | </property> | ||
| 2029 | <property name="text"> | ||
| 2030 | <string notr="true">*</string> | ||
| 2031 | </property> | ||
| 2032 | </widget> | ||
| 2033 | </item> | ||
| 2034 | <item row="1" column="10"> | ||
| 2035 | <widget class="QPushButton" name="button_right_parenthesis"> | ||
| 2036 | <property name="sizePolicy"> | ||
| 2037 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2038 | <horstretch>1</horstretch> | ||
| 2039 | <verstretch>1</verstretch> | ||
| 2040 | </sizepolicy> | ||
| 2041 | </property> | ||
| 2042 | <property name="font"> | ||
| 2043 | <font> | ||
| 2044 | <pointsize>28</pointsize> | ||
| 2045 | </font> | ||
| 2046 | </property> | ||
| 2047 | <property name="text"> | ||
| 2048 | <string notr="true">)</string> | ||
| 2049 | </property> | ||
| 2050 | </widget> | ||
| 2051 | </item> | ||
| 2052 | <item row="1" column="9"> | ||
| 2053 | <widget class="QPushButton" name="button_left_parenthesis"> | ||
| 2054 | <property name="sizePolicy"> | ||
| 2055 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2056 | <horstretch>1</horstretch> | ||
| 2057 | <verstretch>1</verstretch> | ||
| 2058 | </sizepolicy> | ||
| 2059 | </property> | ||
| 2060 | <property name="font"> | ||
| 2061 | <font> | ||
| 2062 | <pointsize>28</pointsize> | ||
| 2063 | </font> | ||
| 2064 | </property> | ||
| 2065 | <property name="text"> | ||
| 2066 | <string notr="true">(</string> | ||
| 2067 | </property> | ||
| 2068 | </widget> | ||
| 2069 | </item> | ||
| 2070 | <item row="2" column="2"> | ||
| 2071 | <widget class="QPushButton" name="button_w_shift"> | ||
| 2072 | <property name="sizePolicy"> | ||
| 2073 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2074 | <horstretch>1</horstretch> | ||
| 2075 | <verstretch>1</verstretch> | ||
| 2076 | </sizepolicy> | ||
| 2077 | </property> | ||
| 2078 | <property name="font"> | ||
| 2079 | <font> | ||
| 2080 | <pointsize>28</pointsize> | ||
| 2081 | </font> | ||
| 2082 | </property> | ||
| 2083 | <property name="text"> | ||
| 2084 | <string notr="true">W</string> | ||
| 2085 | </property> | ||
| 2086 | </widget> | ||
| 2087 | </item> | ||
| 2088 | <item row="2" column="4"> | ||
| 2089 | <widget class="QPushButton" name="button_r_shift"> | ||
| 2090 | <property name="sizePolicy"> | ||
| 2091 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2092 | <horstretch>1</horstretch> | ||
| 2093 | <verstretch>1</verstretch> | ||
| 2094 | </sizepolicy> | ||
| 2095 | </property> | ||
| 2096 | <property name="font"> | ||
| 2097 | <font> | ||
| 2098 | <pointsize>28</pointsize> | ||
| 2099 | </font> | ||
| 2100 | </property> | ||
| 2101 | <property name="text"> | ||
| 2102 | <string notr="true">R</string> | ||
| 2103 | </property> | ||
| 2104 | </widget> | ||
| 2105 | </item> | ||
| 2106 | <item row="2" column="3"> | ||
| 2107 | <widget class="QPushButton" name="button_e_shift"> | ||
| 2108 | <property name="sizePolicy"> | ||
| 2109 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2110 | <horstretch>1</horstretch> | ||
| 2111 | <verstretch>1</verstretch> | ||
| 2112 | </sizepolicy> | ||
| 2113 | </property> | ||
| 2114 | <property name="font"> | ||
| 2115 | <font> | ||
| 2116 | <pointsize>28</pointsize> | ||
| 2117 | </font> | ||
| 2118 | </property> | ||
| 2119 | <property name="text"> | ||
| 2120 | <string notr="true">E</string> | ||
| 2121 | </property> | ||
| 2122 | </widget> | ||
| 2123 | </item> | ||
| 2124 | <item row="2" column="1"> | ||
| 2125 | <widget class="QPushButton" name="button_q_shift"> | ||
| 2126 | <property name="sizePolicy"> | ||
| 2127 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2128 | <horstretch>1</horstretch> | ||
| 2129 | <verstretch>1</verstretch> | ||
| 2130 | </sizepolicy> | ||
| 2131 | </property> | ||
| 2132 | <property name="font"> | ||
| 2133 | <font> | ||
| 2134 | <pointsize>28</pointsize> | ||
| 2135 | </font> | ||
| 2136 | </property> | ||
| 2137 | <property name="text"> | ||
| 2138 | <string notr="true">Q</string> | ||
| 2139 | </property> | ||
| 2140 | </widget> | ||
| 2141 | </item> | ||
| 2142 | <item row="2" column="7"> | ||
| 2143 | <widget class="QPushButton" name="button_u_shift"> | ||
| 2144 | <property name="sizePolicy"> | ||
| 2145 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2146 | <horstretch>1</horstretch> | ||
| 2147 | <verstretch>1</verstretch> | ||
| 2148 | </sizepolicy> | ||
| 2149 | </property> | ||
| 2150 | <property name="font"> | ||
| 2151 | <font> | ||
| 2152 | <pointsize>28</pointsize> | ||
| 2153 | </font> | ||
| 2154 | </property> | ||
| 2155 | <property name="text"> | ||
| 2156 | <string notr="true">U</string> | ||
| 2157 | </property> | ||
| 2158 | </widget> | ||
| 2159 | </item> | ||
| 2160 | <item row="2" column="6"> | ||
| 2161 | <widget class="QPushButton" name="button_y_shift"> | ||
| 2162 | <property name="sizePolicy"> | ||
| 2163 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2164 | <horstretch>1</horstretch> | ||
| 2165 | <verstretch>1</verstretch> | ||
| 2166 | </sizepolicy> | ||
| 2167 | </property> | ||
| 2168 | <property name="font"> | ||
| 2169 | <font> | ||
| 2170 | <pointsize>28</pointsize> | ||
| 2171 | </font> | ||
| 2172 | </property> | ||
| 2173 | <property name="text"> | ||
| 2174 | <string notr="true">Y</string> | ||
| 2175 | </property> | ||
| 2176 | </widget> | ||
| 2177 | </item> | ||
| 2178 | <item row="2" column="5"> | ||
| 2179 | <widget class="QPushButton" name="button_t_shift"> | ||
| 2180 | <property name="sizePolicy"> | ||
| 2181 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2182 | <horstretch>1</horstretch> | ||
| 2183 | <verstretch>1</verstretch> | ||
| 2184 | </sizepolicy> | ||
| 2185 | </property> | ||
| 2186 | <property name="font"> | ||
| 2187 | <font> | ||
| 2188 | <pointsize>28</pointsize> | ||
| 2189 | </font> | ||
| 2190 | </property> | ||
| 2191 | <property name="text"> | ||
| 2192 | <string notr="true">T</string> | ||
| 2193 | </property> | ||
| 2194 | </widget> | ||
| 2195 | </item> | ||
| 2196 | <item row="2" column="9"> | ||
| 2197 | <widget class="QPushButton" name="button_o_shift"> | ||
| 2198 | <property name="sizePolicy"> | ||
| 2199 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2200 | <horstretch>1</horstretch> | ||
| 2201 | <verstretch>1</verstretch> | ||
| 2202 | </sizepolicy> | ||
| 2203 | </property> | ||
| 2204 | <property name="font"> | ||
| 2205 | <font> | ||
| 2206 | <pointsize>28</pointsize> | ||
| 2207 | </font> | ||
| 2208 | </property> | ||
| 2209 | <property name="text"> | ||
| 2210 | <string notr="true">O</string> | ||
| 2211 | </property> | ||
| 2212 | </widget> | ||
| 2213 | </item> | ||
| 2214 | <item row="2" column="10"> | ||
| 2215 | <widget class="QPushButton" name="button_p_shift"> | ||
| 2216 | <property name="sizePolicy"> | ||
| 2217 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2218 | <horstretch>1</horstretch> | ||
| 2219 | <verstretch>1</verstretch> | ||
| 2220 | </sizepolicy> | ||
| 2221 | </property> | ||
| 2222 | <property name="font"> | ||
| 2223 | <font> | ||
| 2224 | <pointsize>28</pointsize> | ||
| 2225 | </font> | ||
| 2226 | </property> | ||
| 2227 | <property name="text"> | ||
| 2228 | <string notr="true">P</string> | ||
| 2229 | </property> | ||
| 2230 | </widget> | ||
| 2231 | </item> | ||
| 2232 | <item row="2" column="8"> | ||
| 2233 | <widget class="QPushButton" name="button_i_shift"> | ||
| 2234 | <property name="sizePolicy"> | ||
| 2235 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2236 | <horstretch>1</horstretch> | ||
| 2237 | <verstretch>1</verstretch> | ||
| 2238 | </sizepolicy> | ||
| 2239 | </property> | ||
| 2240 | <property name="font"> | ||
| 2241 | <font> | ||
| 2242 | <pointsize>28</pointsize> | ||
| 2243 | </font> | ||
| 2244 | </property> | ||
| 2245 | <property name="text"> | ||
| 2246 | <string notr="true">I</string> | ||
| 2247 | </property> | ||
| 2248 | </widget> | ||
| 2249 | </item> | ||
| 2250 | <item row="3" column="1"> | ||
| 2251 | <widget class="QPushButton" name="button_a_shift"> | ||
| 2252 | <property name="sizePolicy"> | ||
| 2253 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2254 | <horstretch>1</horstretch> | ||
| 2255 | <verstretch>1</verstretch> | ||
| 2256 | </sizepolicy> | ||
| 2257 | </property> | ||
| 2258 | <property name="font"> | ||
| 2259 | <font> | ||
| 2260 | <pointsize>28</pointsize> | ||
| 2261 | </font> | ||
| 2262 | </property> | ||
| 2263 | <property name="text"> | ||
| 2264 | <string notr="true">A</string> | ||
| 2265 | </property> | ||
| 2266 | </widget> | ||
| 2267 | </item> | ||
| 2268 | <item row="3" column="2"> | ||
| 2269 | <widget class="QPushButton" name="button_s_shift"> | ||
| 2270 | <property name="sizePolicy"> | ||
| 2271 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2272 | <horstretch>1</horstretch> | ||
| 2273 | <verstretch>1</verstretch> | ||
| 2274 | </sizepolicy> | ||
| 2275 | </property> | ||
| 2276 | <property name="font"> | ||
| 2277 | <font> | ||
| 2278 | <pointsize>28</pointsize> | ||
| 2279 | </font> | ||
| 2280 | </property> | ||
| 2281 | <property name="text"> | ||
| 2282 | <string notr="true">S</string> | ||
| 2283 | </property> | ||
| 2284 | </widget> | ||
| 2285 | </item> | ||
| 2286 | <item row="3" column="3"> | ||
| 2287 | <widget class="QPushButton" name="button_d_shift"> | ||
| 2288 | <property name="sizePolicy"> | ||
| 2289 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2290 | <horstretch>1</horstretch> | ||
| 2291 | <verstretch>1</verstretch> | ||
| 2292 | </sizepolicy> | ||
| 2293 | </property> | ||
| 2294 | <property name="font"> | ||
| 2295 | <font> | ||
| 2296 | <pointsize>28</pointsize> | ||
| 2297 | </font> | ||
| 2298 | </property> | ||
| 2299 | <property name="text"> | ||
| 2300 | <string notr="true">D</string> | ||
| 2301 | </property> | ||
| 2302 | </widget> | ||
| 2303 | </item> | ||
| 2304 | <item row="3" column="4"> | ||
| 2305 | <widget class="QPushButton" name="button_f_shift"> | ||
| 2306 | <property name="sizePolicy"> | ||
| 2307 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2308 | <horstretch>1</horstretch> | ||
| 2309 | <verstretch>1</verstretch> | ||
| 2310 | </sizepolicy> | ||
| 2311 | </property> | ||
| 2312 | <property name="font"> | ||
| 2313 | <font> | ||
| 2314 | <pointsize>28</pointsize> | ||
| 2315 | </font> | ||
| 2316 | </property> | ||
| 2317 | <property name="text"> | ||
| 2318 | <string notr="true">F</string> | ||
| 2319 | </property> | ||
| 2320 | </widget> | ||
| 2321 | </item> | ||
| 2322 | <item row="3" column="6"> | ||
| 2323 | <widget class="QPushButton" name="button_h_shift"> | ||
| 2324 | <property name="sizePolicy"> | ||
| 2325 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2326 | <horstretch>1</horstretch> | ||
| 2327 | <verstretch>1</verstretch> | ||
| 2328 | </sizepolicy> | ||
| 2329 | </property> | ||
| 2330 | <property name="font"> | ||
| 2331 | <font> | ||
| 2332 | <pointsize>28</pointsize> | ||
| 2333 | </font> | ||
| 2334 | </property> | ||
| 2335 | <property name="text"> | ||
| 2336 | <string notr="true">H</string> | ||
| 2337 | </property> | ||
| 2338 | </widget> | ||
| 2339 | </item> | ||
| 2340 | <item row="3" column="7"> | ||
| 2341 | <widget class="QPushButton" name="button_j_shift"> | ||
| 2342 | <property name="sizePolicy"> | ||
| 2343 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2344 | <horstretch>1</horstretch> | ||
| 2345 | <verstretch>1</verstretch> | ||
| 2346 | </sizepolicy> | ||
| 2347 | </property> | ||
| 2348 | <property name="font"> | ||
| 2349 | <font> | ||
| 2350 | <pointsize>28</pointsize> | ||
| 2351 | </font> | ||
| 2352 | </property> | ||
| 2353 | <property name="text"> | ||
| 2354 | <string notr="true">J</string> | ||
| 2355 | </property> | ||
| 2356 | </widget> | ||
| 2357 | </item> | ||
| 2358 | <item row="3" column="5"> | ||
| 2359 | <widget class="QPushButton" name="button_g_shift"> | ||
| 2360 | <property name="sizePolicy"> | ||
| 2361 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2362 | <horstretch>1</horstretch> | ||
| 2363 | <verstretch>1</verstretch> | ||
| 2364 | </sizepolicy> | ||
| 2365 | </property> | ||
| 2366 | <property name="font"> | ||
| 2367 | <font> | ||
| 2368 | <pointsize>28</pointsize> | ||
| 2369 | </font> | ||
| 2370 | </property> | ||
| 2371 | <property name="text"> | ||
| 2372 | <string notr="true">G</string> | ||
| 2373 | </property> | ||
| 2374 | </widget> | ||
| 2375 | </item> | ||
| 2376 | <item row="3" column="8"> | ||
| 2377 | <widget class="QPushButton" name="button_k_shift"> | ||
| 2378 | <property name="sizePolicy"> | ||
| 2379 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2380 | <horstretch>1</horstretch> | ||
| 2381 | <verstretch>1</verstretch> | ||
| 2382 | </sizepolicy> | ||
| 2383 | </property> | ||
| 2384 | <property name="font"> | ||
| 2385 | <font> | ||
| 2386 | <pointsize>28</pointsize> | ||
| 2387 | </font> | ||
| 2388 | </property> | ||
| 2389 | <property name="text"> | ||
| 2390 | <string notr="true">K</string> | ||
| 2391 | </property> | ||
| 2392 | </widget> | ||
| 2393 | </item> | ||
| 2394 | <item row="3" column="9"> | ||
| 2395 | <widget class="QPushButton" name="button_l_shift"> | ||
| 2396 | <property name="sizePolicy"> | ||
| 2397 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2398 | <horstretch>1</horstretch> | ||
| 2399 | <verstretch>1</verstretch> | ||
| 2400 | </sizepolicy> | ||
| 2401 | </property> | ||
| 2402 | <property name="font"> | ||
| 2403 | <font> | ||
| 2404 | <pointsize>28</pointsize> | ||
| 2405 | </font> | ||
| 2406 | </property> | ||
| 2407 | <property name="text"> | ||
| 2408 | <string notr="true">L</string> | ||
| 2409 | </property> | ||
| 2410 | </widget> | ||
| 2411 | </item> | ||
| 2412 | <item row="3" column="10"> | ||
| 2413 | <widget class="QPushButton" name="button_semicolon"> | ||
| 2414 | <property name="sizePolicy"> | ||
| 2415 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2416 | <horstretch>1</horstretch> | ||
| 2417 | <verstretch>1</verstretch> | ||
| 2418 | </sizepolicy> | ||
| 2419 | </property> | ||
| 2420 | <property name="font"> | ||
| 2421 | <font> | ||
| 2422 | <pointsize>28</pointsize> | ||
| 2423 | </font> | ||
| 2424 | </property> | ||
| 2425 | <property name="text"> | ||
| 2426 | <string notr="true">;</string> | ||
| 2427 | </property> | ||
| 2428 | </widget> | ||
| 2429 | </item> | ||
| 2430 | <item row="2" column="12" rowspan="2"> | ||
| 2431 | <widget class="QPushButton" name="button_return_shift"> | ||
| 2432 | <property name="sizePolicy"> | ||
| 2433 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2434 | <horstretch>1</horstretch> | ||
| 2435 | <verstretch>1</verstretch> | ||
| 2436 | </sizepolicy> | ||
| 2437 | </property> | ||
| 2438 | <property name="font"> | ||
| 2439 | <font> | ||
| 2440 | <pointsize>18</pointsize> | ||
| 2441 | </font> | ||
| 2442 | </property> | ||
| 2443 | <property name="text"> | ||
| 2444 | <string notr="true">Return</string> | ||
| 2445 | </property> | ||
| 2446 | </widget> | ||
| 2447 | </item> | ||
| 2448 | <item row="4" column="12" rowspan="2"> | ||
| 2449 | <widget class="QPushButton" name="button_ok_shift"> | ||
| 2450 | <property name="sizePolicy"> | ||
| 2451 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2452 | <horstretch>1</horstretch> | ||
| 2453 | <verstretch>1</verstretch> | ||
| 2454 | </sizepolicy> | ||
| 2455 | </property> | ||
| 2456 | <property name="font"> | ||
| 2457 | <font> | ||
| 2458 | <pointsize>18</pointsize> | ||
| 2459 | </font> | ||
| 2460 | </property> | ||
| 2461 | <property name="text"> | ||
| 2462 | <string notr="true">OK</string> | ||
| 2463 | </property> | ||
| 2464 | </widget> | ||
| 2465 | </item> | ||
| 2466 | <item row="4" column="1"> | ||
| 2467 | <widget class="QPushButton" name="button_z_shift"> | ||
| 2468 | <property name="sizePolicy"> | ||
| 2469 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2470 | <horstretch>1</horstretch> | ||
| 2471 | <verstretch>1</verstretch> | ||
| 2472 | </sizepolicy> | ||
| 2473 | </property> | ||
| 2474 | <property name="font"> | ||
| 2475 | <font> | ||
| 2476 | <pointsize>28</pointsize> | ||
| 2477 | </font> | ||
| 2478 | </property> | ||
| 2479 | <property name="text"> | ||
| 2480 | <string notr="true">Z</string> | ||
| 2481 | </property> | ||
| 2482 | </widget> | ||
| 2483 | </item> | ||
| 2484 | <item row="4" column="3"> | ||
| 2485 | <widget class="QPushButton" name="button_c_shift"> | ||
| 2486 | <property name="sizePolicy"> | ||
| 2487 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2488 | <horstretch>1</horstretch> | ||
| 2489 | <verstretch>1</verstretch> | ||
| 2490 | </sizepolicy> | ||
| 2491 | </property> | ||
| 2492 | <property name="font"> | ||
| 2493 | <font> | ||
| 2494 | <pointsize>28</pointsize> | ||
| 2495 | </font> | ||
| 2496 | </property> | ||
| 2497 | <property name="text"> | ||
| 2498 | <string notr="true">C</string> | ||
| 2499 | </property> | ||
| 2500 | </widget> | ||
| 2501 | </item> | ||
| 2502 | <item row="4" column="2"> | ||
| 2503 | <widget class="QPushButton" name="button_x_shift"> | ||
| 2504 | <property name="sizePolicy"> | ||
| 2505 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2506 | <horstretch>1</horstretch> | ||
| 2507 | <verstretch>1</verstretch> | ||
| 2508 | </sizepolicy> | ||
| 2509 | </property> | ||
| 2510 | <property name="font"> | ||
| 2511 | <font> | ||
| 2512 | <pointsize>28</pointsize> | ||
| 2513 | </font> | ||
| 2514 | </property> | ||
| 2515 | <property name="text"> | ||
| 2516 | <string notr="true">X</string> | ||
| 2517 | </property> | ||
| 2518 | </widget> | ||
| 2519 | </item> | ||
| 2520 | <item row="4" column="4"> | ||
| 2521 | <widget class="QPushButton" name="button_v_shift"> | ||
| 2522 | <property name="sizePolicy"> | ||
| 2523 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2524 | <horstretch>1</horstretch> | ||
| 2525 | <verstretch>1</verstretch> | ||
| 2526 | </sizepolicy> | ||
| 2527 | </property> | ||
| 2528 | <property name="font"> | ||
| 2529 | <font> | ||
| 2530 | <pointsize>28</pointsize> | ||
| 2531 | </font> | ||
| 2532 | </property> | ||
| 2533 | <property name="text"> | ||
| 2534 | <string notr="true">V</string> | ||
| 2535 | </property> | ||
| 2536 | </widget> | ||
| 2537 | </item> | ||
| 2538 | <item row="4" column="7"> | ||
| 2539 | <widget class="QPushButton" name="button_m_shift"> | ||
| 2540 | <property name="sizePolicy"> | ||
| 2541 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2542 | <horstretch>1</horstretch> | ||
| 2543 | <verstretch>1</verstretch> | ||
| 2544 | </sizepolicy> | ||
| 2545 | </property> | ||
| 2546 | <property name="font"> | ||
| 2547 | <font> | ||
| 2548 | <pointsize>28</pointsize> | ||
| 2549 | </font> | ||
| 2550 | </property> | ||
| 2551 | <property name="text"> | ||
| 2552 | <string notr="true">M</string> | ||
| 2553 | </property> | ||
| 2554 | </widget> | ||
| 2555 | </item> | ||
| 2556 | <item row="4" column="8"> | ||
| 2557 | <widget class="QPushButton" name="button_less_than"> | ||
| 2558 | <property name="sizePolicy"> | ||
| 2559 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2560 | <horstretch>1</horstretch> | ||
| 2561 | <verstretch>1</verstretch> | ||
| 2562 | </sizepolicy> | ||
| 2563 | </property> | ||
| 2564 | <property name="font"> | ||
| 2565 | <font> | ||
| 2566 | <pointsize>28</pointsize> | ||
| 2567 | </font> | ||
| 2568 | </property> | ||
| 2569 | <property name="text"> | ||
| 2570 | <string notr="true"><</string> | ||
| 2571 | </property> | ||
| 2572 | </widget> | ||
| 2573 | </item> | ||
| 2574 | <item row="4" column="6"> | ||
| 2575 | <widget class="QPushButton" name="button_n_shift"> | ||
| 2576 | <property name="sizePolicy"> | ||
| 2577 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2578 | <horstretch>1</horstretch> | ||
| 2579 | <verstretch>1</verstretch> | ||
| 2580 | </sizepolicy> | ||
| 2581 | </property> | ||
| 2582 | <property name="font"> | ||
| 2583 | <font> | ||
| 2584 | <pointsize>28</pointsize> | ||
| 2585 | </font> | ||
| 2586 | </property> | ||
| 2587 | <property name="text"> | ||
| 2588 | <string notr="true">N</string> | ||
| 2589 | </property> | ||
| 2590 | </widget> | ||
| 2591 | </item> | ||
| 2592 | <item row="4" column="5"> | ||
| 2593 | <widget class="QPushButton" name="button_b_shift"> | ||
| 2594 | <property name="sizePolicy"> | ||
| 2595 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2596 | <horstretch>1</horstretch> | ||
| 2597 | <verstretch>1</verstretch> | ||
| 2598 | </sizepolicy> | ||
| 2599 | </property> | ||
| 2600 | <property name="font"> | ||
| 2601 | <font> | ||
| 2602 | <pointsize>28</pointsize> | ||
| 2603 | </font> | ||
| 2604 | </property> | ||
| 2605 | <property name="text"> | ||
| 2606 | <string notr="true">B</string> | ||
| 2607 | </property> | ||
| 2608 | </widget> | ||
| 2609 | </item> | ||
| 2610 | <item row="5" column="1" colspan="2"> | ||
| 2611 | <widget class="QPushButton" name="button_shift_shift"> | ||
| 2612 | <property name="sizePolicy"> | ||
| 2613 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2614 | <horstretch>1</horstretch> | ||
| 2615 | <verstretch>1</verstretch> | ||
| 2616 | </sizepolicy> | ||
| 2617 | </property> | ||
| 2618 | <property name="font"> | ||
| 2619 | <font> | ||
| 2620 | <pointsize>18</pointsize> | ||
| 2621 | </font> | ||
| 2622 | </property> | ||
| 2623 | <property name="text"> | ||
| 2624 | <string notr="true"/> | ||
| 2625 | </property> | ||
| 2626 | <property name="checkable"> | ||
| 2627 | <bool>true</bool> | ||
| 2628 | </property> | ||
| 2629 | <property name="checked"> | ||
| 2630 | <bool>false</bool> | ||
| 2631 | </property> | ||
| 2632 | </widget> | ||
| 2633 | </item> | ||
| 2634 | <item row="4" column="10"> | ||
| 2635 | <widget class="QPushButton" name="button_plus"> | ||
| 2636 | <property name="sizePolicy"> | ||
| 2637 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2638 | <horstretch>1</horstretch> | ||
| 2639 | <verstretch>1</verstretch> | ||
| 2640 | </sizepolicy> | ||
| 2641 | </property> | ||
| 2642 | <property name="font"> | ||
| 2643 | <font> | ||
| 2644 | <pointsize>28</pointsize> | ||
| 2645 | </font> | ||
| 2646 | </property> | ||
| 2647 | <property name="text"> | ||
| 2648 | <string notr="true">+</string> | ||
| 2649 | </property> | ||
| 2650 | </widget> | ||
| 2651 | </item> | ||
| 2652 | <item row="4" column="9"> | ||
| 2653 | <widget class="QPushButton" name="button_greater_than"> | ||
| 2654 | <property name="sizePolicy"> | ||
| 2655 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2656 | <horstretch>1</horstretch> | ||
| 2657 | <verstretch>1</verstretch> | ||
| 2658 | </sizepolicy> | ||
| 2659 | </property> | ||
| 2660 | <property name="font"> | ||
| 2661 | <font> | ||
| 2662 | <pointsize>28</pointsize> | ||
| 2663 | </font> | ||
| 2664 | </property> | ||
| 2665 | <property name="text"> | ||
| 2666 | <string notr="true">></string> | ||
| 2667 | </property> | ||
| 2668 | </widget> | ||
| 2669 | </item> | ||
| 2670 | <item row="1" column="1"> | ||
| 2671 | <widget class="QPushButton" name="button_hash"> | ||
| 2672 | <property name="sizePolicy"> | ||
| 2673 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2674 | <horstretch>1</horstretch> | ||
| 2675 | <verstretch>1</verstretch> | ||
| 2676 | </sizepolicy> | ||
| 2677 | </property> | ||
| 2678 | <property name="font"> | ||
| 2679 | <font> | ||
| 2680 | <pointsize>28</pointsize> | ||
| 2681 | </font> | ||
| 2682 | </property> | ||
| 2683 | <property name="text"> | ||
| 2684 | <string notr="true">#</string> | ||
| 2685 | </property> | ||
| 2686 | </widget> | ||
| 2687 | </item> | ||
| 2688 | <item row="1" column="3"> | ||
| 2689 | <widget class="QPushButton" name="button_right_bracket"> | ||
| 2690 | <property name="sizePolicy"> | ||
| 2691 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2692 | <horstretch>1</horstretch> | ||
| 2693 | <verstretch>1</verstretch> | ||
| 2694 | </sizepolicy> | ||
| 2695 | </property> | ||
| 2696 | <property name="font"> | ||
| 2697 | <font> | ||
| 2698 | <pointsize>28</pointsize> | ||
| 2699 | </font> | ||
| 2700 | </property> | ||
| 2701 | <property name="text"> | ||
| 2702 | <string notr="true">]</string> | ||
| 2703 | </property> | ||
| 2704 | </widget> | ||
| 2705 | </item> | ||
| 2706 | <item row="1" column="4"> | ||
| 2707 | <widget class="QPushButton" name="button_dollar"> | ||
| 2708 | <property name="sizePolicy"> | ||
| 2709 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2710 | <horstretch>1</horstretch> | ||
| 2711 | <verstretch>1</verstretch> | ||
| 2712 | </sizepolicy> | ||
| 2713 | </property> | ||
| 2714 | <property name="font"> | ||
| 2715 | <font> | ||
| 2716 | <pointsize>28</pointsize> | ||
| 2717 | </font> | ||
| 2718 | </property> | ||
| 2719 | <property name="text"> | ||
| 2720 | <string notr="true">$</string> | ||
| 2721 | </property> | ||
| 2722 | </widget> | ||
| 2723 | </item> | ||
| 2724 | <item row="1" column="2"> | ||
| 2725 | <widget class="QPushButton" name="button_left_bracket"> | ||
| 2726 | <property name="sizePolicy"> | ||
| 2727 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2728 | <horstretch>1</horstretch> | ||
| 2729 | <verstretch>1</verstretch> | ||
| 2730 | </sizepolicy> | ||
| 2731 | </property> | ||
| 2732 | <property name="font"> | ||
| 2733 | <font> | ||
| 2734 | <pointsize>28</pointsize> | ||
| 2735 | </font> | ||
| 2736 | </property> | ||
| 2737 | <property name="text"> | ||
| 2738 | <string notr="true">[</string> | ||
| 2739 | </property> | ||
| 2740 | </widget> | ||
| 2741 | </item> | ||
| 2742 | <item row="1" column="6"> | ||
| 2743 | <widget class="QPushButton" name="button_circumflex"> | ||
| 2744 | <property name="sizePolicy"> | ||
| 2745 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2746 | <horstretch>1</horstretch> | ||
| 2747 | <verstretch>1</verstretch> | ||
| 2748 | </sizepolicy> | ||
| 2749 | </property> | ||
| 2750 | <property name="font"> | ||
| 2751 | <font> | ||
| 2752 | <pointsize>28</pointsize> | ||
| 2753 | </font> | ||
| 2754 | </property> | ||
| 2755 | <property name="text"> | ||
| 2756 | <string notr="true">^</string> | ||
| 2757 | </property> | ||
| 2758 | </widget> | ||
| 2759 | </item> | ||
| 2760 | <item row="1" column="5"> | ||
| 2761 | <widget class="QPushButton" name="button_percent"> | ||
| 2762 | <property name="sizePolicy"> | ||
| 2763 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2764 | <horstretch>1</horstretch> | ||
| 2765 | <verstretch>1</verstretch> | ||
| 2766 | </sizepolicy> | ||
| 2767 | </property> | ||
| 2768 | <property name="font"> | ||
| 2769 | <font> | ||
| 2770 | <pointsize>28</pointsize> | ||
| 2771 | </font> | ||
| 2772 | </property> | ||
| 2773 | <property name="text"> | ||
| 2774 | <string notr="true">%</string> | ||
| 2775 | </property> | ||
| 2776 | </widget> | ||
| 2777 | </item> | ||
| 2778 | <item row="5" column="3" colspan="9"> | ||
| 2779 | <widget class="QPushButton" name="button_space_shift"> | ||
| 2780 | <property name="sizePolicy"> | ||
| 2781 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2782 | <horstretch>1</horstretch> | ||
| 2783 | <verstretch>1</verstretch> | ||
| 2784 | </sizepolicy> | ||
| 2785 | </property> | ||
| 2786 | <property name="font"> | ||
| 2787 | <font> | ||
| 2788 | <pointsize>18</pointsize> | ||
| 2789 | </font> | ||
| 2790 | </property> | ||
| 2791 | <property name="text"> | ||
| 2792 | <string notr="true">Space</string> | ||
| 2793 | </property> | ||
| 2794 | </widget> | ||
| 2795 | </item> | ||
| 2796 | <item row="1" column="12"> | ||
| 2797 | <widget class="QPushButton" name="button_backspace_shift"> | ||
| 2798 | <property name="sizePolicy"> | ||
| 2799 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2800 | <horstretch>1</horstretch> | ||
| 2801 | <verstretch>1</verstretch> | ||
| 2802 | </sizepolicy> | ||
| 2803 | </property> | ||
| 2804 | <property name="font"> | ||
| 2805 | <font> | ||
| 2806 | <pointsize>18</pointsize> | ||
| 2807 | </font> | ||
| 2808 | </property> | ||
| 2809 | <property name="text"> | ||
| 2810 | <string notr="true"/> | ||
| 2811 | </property> | ||
| 2812 | </widget> | ||
| 2813 | </item> | ||
| 2814 | <item row="1" column="0"> | ||
| 2815 | <spacer name="horizontalSpacer_33"> | ||
| 2816 | <property name="orientation"> | ||
| 2817 | <enum>Qt::Horizontal</enum> | ||
| 2818 | </property> | ||
| 2819 | <property name="sizeHint" stdset="0"> | ||
| 2820 | <size> | ||
| 2821 | <width>40</width> | ||
| 2822 | <height>20</height> | ||
| 2823 | </size> | ||
| 2824 | </property> | ||
| 2825 | </spacer> | ||
| 2826 | </item> | ||
| 2827 | <item row="0" column="1"> | ||
| 2828 | <spacer name="verticalSpacer_6"> | ||
| 2829 | <property name="orientation"> | ||
| 2830 | <enum>Qt::Vertical</enum> | ||
| 2831 | </property> | ||
| 2832 | <property name="sizeHint" stdset="0"> | ||
| 2833 | <size> | ||
| 2834 | <width>20</width> | ||
| 2835 | <height>0</height> | ||
| 2836 | </size> | ||
| 2837 | </property> | ||
| 2838 | </spacer> | ||
| 2839 | </item> | ||
| 2840 | <item row="1" column="13"> | ||
| 2841 | <spacer name="horizontalSpacer_34"> | ||
| 2842 | <property name="orientation"> | ||
| 2843 | <enum>Qt::Horizontal</enum> | ||
| 2844 | </property> | ||
| 2845 | <property name="sizeHint" stdset="0"> | ||
| 2846 | <size> | ||
| 2847 | <width>40</width> | ||
| 2848 | <height>20</height> | ||
| 2849 | </size> | ||
| 2850 | </property> | ||
| 2851 | </spacer> | ||
| 2852 | </item> | ||
| 2853 | </layout> | ||
| 2854 | </item> | ||
| 2855 | </layout> | ||
| 2856 | </widget> | ||
| 2857 | <widget class="QWidget" name="numOSK"> | ||
| 2858 | <layout class="QVBoxLayout" name="graphicsTabVerticalLayout"> | ||
| 2859 | <property name="leftMargin"> | ||
| 2860 | <number>0</number> | ||
| 2861 | </property> | ||
| 2862 | <property name="topMargin"> | ||
| 2863 | <number>0</number> | ||
| 2864 | </property> | ||
| 2865 | <property name="rightMargin"> | ||
| 2866 | <number>0</number> | ||
| 2867 | </property> | ||
| 2868 | <property name="bottomMargin"> | ||
| 2869 | <number>0</number> | ||
| 2870 | </property> | ||
| 2871 | <item> | ||
| 2872 | <layout class="QGridLayout" name="kbOSKnum" rowstretch="18,63,63,63,63,10,70" columnstretch="54,307,186,186,186,120,187,54"> | ||
| 2873 | <property name="leftMargin"> | ||
| 2874 | <number>0</number> | ||
| 2875 | </property> | ||
| 2876 | <property name="rightMargin"> | ||
| 2877 | <number>0</number> | ||
| 2878 | </property> | ||
| 2879 | <property name="spacing"> | ||
| 2880 | <number>0</number> | ||
| 2881 | </property> | ||
| 2882 | <item row="1" column="5"> | ||
| 2883 | <widget class="QPushButton" name="button_backspace_num"> | ||
| 2884 | <property name="sizePolicy"> | ||
| 2885 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 2886 | <horstretch>1</horstretch> | ||
| 2887 | <verstretch>1</verstretch> | ||
| 2888 | </sizepolicy> | ||
| 2889 | </property> | ||
| 2890 | <property name="font"> | ||
| 2891 | <font> | ||
| 2892 | <pointsize>18</pointsize> | ||
| 2893 | </font> | ||
| 2894 | </property> | ||
| 2895 | <property name="text"> | ||
| 2896 | <string notr="true"/> | ||
| 2897 | </property> | ||
| 2898 | </widget> | ||
| 2899 | </item> | ||
| 2900 | <item row="1" column="6"> | ||
| 2901 | <spacer name="horizontalSpacer_35"> | ||
| 2902 | <property name="orientation"> | ||
| 2903 | <enum>Qt::Horizontal</enum> | ||
| 2904 | </property> | ||
| 2905 | <property name="sizeHint" stdset="0"> | ||
| 2906 | <size> | ||
| 2907 | <width>40</width> | ||
| 2908 | <height>20</height> | ||
| 2909 | </size> | ||
| 2910 | </property> | ||
| 2911 | </spacer> | ||
| 2912 | </item> | ||
| 2913 | <item row="1" column="1"> | ||
| 2914 | <spacer name="horizontalSpacer_36"> | ||
| 2915 | <property name="orientation"> | ||
| 2916 | <enum>Qt::Horizontal</enum> | ||
| 2917 | </property> | ||
| 2918 | <property name="sizeHint" stdset="0"> | ||
| 2919 | <size> | ||
| 2920 | <width>40</width> | ||
| 2921 | <height>20</height> | ||
| 2922 | </size> | ||
| 2923 | </property> | ||
| 2924 | </spacer> | ||
| 2925 | </item> | ||
| 2926 | <item row="0" column="2"> | ||
| 2927 | <spacer name="verticalSpacer_7"> | ||
| 2928 | <property name="orientation"> | ||
| 2929 | <enum>Qt::Vertical</enum> | ||
| 2930 | </property> | ||
| 2931 | <property name="sizeHint" stdset="0"> | ||
| 2932 | <size> | ||
| 2933 | <width>20</width> | ||
| 2934 | <height>0</height> | ||
| 2935 | </size> | ||
| 2936 | </property> | ||
| 2937 | </spacer> | ||
| 2938 | </item> | ||
| 2939 | <item row="6" column="1" colspan="6"> | ||
| 2940 | <widget class="QWidget" name="legendOSKnum" native="true"> | ||
| 2941 | <layout class="QHBoxLayout" name="horizontalLayout_6" stretch="25,70,601,25,12,22,41,25,12,22,41,29,12,69,37,29,12,56,30"> | ||
| 2942 | <property name="spacing"> | ||
| 2943 | <number>0</number> | ||
| 2944 | </property> | ||
| 2945 | <property name="leftMargin"> | ||
| 2946 | <number>0</number> | ||
| 2947 | </property> | ||
| 2948 | <property name="topMargin"> | ||
| 2949 | <number>0</number> | ||
| 2950 | </property> | ||
| 2951 | <property name="rightMargin"> | ||
| 2952 | <number>0</number> | ||
| 2953 | </property> | ||
| 2954 | <property name="bottomMargin"> | ||
| 2955 | <number>0</number> | ||
| 2956 | </property> | ||
| 2957 | <item> | ||
| 2958 | <spacer name="horizontalSpacer_48"> | ||
| 2959 | <property name="orientation"> | ||
| 2960 | <enum>Qt::Horizontal</enum> | ||
| 2961 | </property> | ||
| 2962 | <property name="sizeHint" stdset="0"> | ||
| 2963 | <size> | ||
| 2964 | <width>40</width> | ||
| 2965 | <height>20</height> | ||
| 2966 | </size> | ||
| 2967 | </property> | ||
| 2968 | </spacer> | ||
| 2969 | </item> | ||
| 2970 | <item> | ||
| 2971 | <widget class="QWidget" name="icon_controller_num" native="true"> | ||
| 2972 | <property name="styleSheet"> | ||
| 2973 | <string notr="true"/> | ||
| 2974 | </property> | ||
| 2975 | </widget> | ||
| 2976 | </item> | ||
| 2977 | <item> | ||
| 2978 | <spacer name="horizontalSpacer_38"> | ||
| 2979 | <property name="orientation"> | ||
| 2980 | <enum>Qt::Horizontal</enum> | ||
| 2981 | </property> | ||
| 2982 | <property name="sizeHint" stdset="0"> | ||
| 2983 | <size> | ||
| 2984 | <width>0</width> | ||
| 2985 | <height>20</height> | ||
| 2986 | </size> | ||
| 2987 | </property> | ||
| 2988 | </spacer> | ||
| 2989 | </item> | ||
| 2990 | <item> | ||
| 2991 | <widget class="QWidget" name="button_L_num" native="true"/> | ||
| 2992 | </item> | ||
| 2993 | <item> | ||
| 2994 | <spacer name="horizontalSpacer_39"> | ||
| 2995 | <property name="orientation"> | ||
| 2996 | <enum>Qt::Horizontal</enum> | ||
| 2997 | </property> | ||
| 2998 | <property name="sizeHint" stdset="0"> | ||
| 2999 | <size> | ||
| 3000 | <width>0</width> | ||
| 3001 | <height>20</height> | ||
| 3002 | </size> | ||
| 3003 | </property> | ||
| 3004 | </spacer> | ||
| 3005 | </item> | ||
| 3006 | <item> | ||
| 3007 | <widget class="QWidget" name="arrow_left_num" native="true"/> | ||
| 3008 | </item> | ||
| 3009 | <item> | ||
| 3010 | <spacer name="horizontalSpacer_40"> | ||
| 3011 | <property name="orientation"> | ||
| 3012 | <enum>Qt::Horizontal</enum> | ||
| 3013 | </property> | ||
| 3014 | <property name="sizeHint" stdset="0"> | ||
| 3015 | <size> | ||
| 3016 | <width>0</width> | ||
| 3017 | <height>20</height> | ||
| 3018 | </size> | ||
| 3019 | </property> | ||
| 3020 | </spacer> | ||
| 3021 | </item> | ||
| 3022 | <item> | ||
| 3023 | <widget class="QWidget" name="button_R_num" native="true"/> | ||
| 3024 | </item> | ||
| 3025 | <item> | ||
| 3026 | <spacer name="horizontalSpacer_41"> | ||
| 3027 | <property name="orientation"> | ||
| 3028 | <enum>Qt::Horizontal</enum> | ||
| 3029 | </property> | ||
| 3030 | <property name="sizeHint" stdset="0"> | ||
| 3031 | <size> | ||
| 3032 | <width>0</width> | ||
| 3033 | <height>20</height> | ||
| 3034 | </size> | ||
| 3035 | </property> | ||
| 3036 | </spacer> | ||
| 3037 | </item> | ||
| 3038 | <item> | ||
| 3039 | <widget class="QWidget" name="arrow_right_num" native="true"/> | ||
| 3040 | </item> | ||
| 3041 | <item> | ||
| 3042 | <spacer name="horizontalSpacer_42"> | ||
| 3043 | <property name="orientation"> | ||
| 3044 | <enum>Qt::Horizontal</enum> | ||
| 3045 | </property> | ||
| 3046 | <property name="sizeHint" stdset="0"> | ||
| 3047 | <size> | ||
| 3048 | <width>0</width> | ||
| 3049 | <height>20</height> | ||
| 3050 | </size> | ||
| 3051 | </property> | ||
| 3052 | </spacer> | ||
| 3053 | </item> | ||
| 3054 | <item> | ||
| 3055 | <widget class="QWidget" name="button_X_num" native="true"/> | ||
| 3056 | </item> | ||
| 3057 | <item> | ||
| 3058 | <spacer name="horizontalSpacer_43"> | ||
| 3059 | <property name="orientation"> | ||
| 3060 | <enum>Qt::Horizontal</enum> | ||
| 3061 | </property> | ||
| 3062 | <property name="sizeHint" stdset="0"> | ||
| 3063 | <size> | ||
| 3064 | <width>0</width> | ||
| 3065 | <height>20</height> | ||
| 3066 | </size> | ||
| 3067 | </property> | ||
| 3068 | </spacer> | ||
| 3069 | </item> | ||
| 3070 | <item> | ||
| 3071 | <widget class="QLabel" name="label_cancel_num"> | ||
| 3072 | <property name="font"> | ||
| 3073 | <font> | ||
| 3074 | <pointsize>18</pointsize> | ||
| 3075 | </font> | ||
| 3076 | </property> | ||
| 3077 | <property name="text"> | ||
| 3078 | <string notr="true">Cancel</string> | ||
| 3079 | </property> | ||
| 3080 | </widget> | ||
| 3081 | </item> | ||
| 3082 | <item> | ||
| 3083 | <spacer name="horizontalSpacer_44"> | ||
| 3084 | <property name="orientation"> | ||
| 3085 | <enum>Qt::Horizontal</enum> | ||
| 3086 | </property> | ||
| 3087 | <property name="sizeHint" stdset="0"> | ||
| 3088 | <size> | ||
| 3089 | <width>0</width> | ||
| 3090 | <height>20</height> | ||
| 3091 | </size> | ||
| 3092 | </property> | ||
| 3093 | </spacer> | ||
| 3094 | </item> | ||
| 3095 | <item> | ||
| 3096 | <widget class="QWidget" name="button_A_num" native="true"/> | ||
| 3097 | </item> | ||
| 3098 | <item> | ||
| 3099 | <spacer name="horizontalSpacer_45"> | ||
| 3100 | <property name="orientation"> | ||
| 3101 | <enum>Qt::Horizontal</enum> | ||
| 3102 | </property> | ||
| 3103 | <property name="sizeHint" stdset="0"> | ||
| 3104 | <size> | ||
| 3105 | <width>0</width> | ||
| 3106 | <height>20</height> | ||
| 3107 | </size> | ||
| 3108 | </property> | ||
| 3109 | </spacer> | ||
| 3110 | </item> | ||
| 3111 | <item> | ||
| 3112 | <widget class="QLabel" name="label_enter_num"> | ||
| 3113 | <property name="font"> | ||
| 3114 | <font> | ||
| 3115 | <pointsize>18</pointsize> | ||
| 3116 | </font> | ||
| 3117 | </property> | ||
| 3118 | <property name="text"> | ||
| 3119 | <string notr="true">Enter</string> | ||
| 3120 | </property> | ||
| 3121 | </widget> | ||
| 3122 | </item> | ||
| 3123 | <item> | ||
| 3124 | <spacer name="horizontalSpacer_46"> | ||
| 3125 | <property name="orientation"> | ||
| 3126 | <enum>Qt::Horizontal</enum> | ||
| 3127 | </property> | ||
| 3128 | <property name="sizeHint" stdset="0"> | ||
| 3129 | <size> | ||
| 3130 | <width>0</width> | ||
| 3131 | <height>20</height> | ||
| 3132 | </size> | ||
| 3133 | </property> | ||
| 3134 | </spacer> | ||
| 3135 | </item> | ||
| 3136 | </layout> | ||
| 3137 | </widget> | ||
| 3138 | </item> | ||
| 3139 | <item row="2" column="4"> | ||
| 3140 | <widget class="QPushButton" name="button_6_num"> | ||
| 3141 | <property name="sizePolicy"> | ||
| 3142 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3143 | <horstretch>1</horstretch> | ||
| 3144 | <verstretch>1</verstretch> | ||
| 3145 | </sizepolicy> | ||
| 3146 | </property> | ||
| 3147 | <property name="font"> | ||
| 3148 | <font> | ||
| 3149 | <pointsize>28</pointsize> | ||
| 3150 | </font> | ||
| 3151 | </property> | ||
| 3152 | <property name="text"> | ||
| 3153 | <string notr="true">6</string> | ||
| 3154 | </property> | ||
| 3155 | </widget> | ||
| 3156 | </item> | ||
| 3157 | <item row="2" column="2"> | ||
| 3158 | <widget class="QPushButton" name="button_4_num"> | ||
| 3159 | <property name="sizePolicy"> | ||
| 3160 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3161 | <horstretch>1</horstretch> | ||
| 3162 | <verstretch>1</verstretch> | ||
| 3163 | </sizepolicy> | ||
| 3164 | </property> | ||
| 3165 | <property name="font"> | ||
| 3166 | <font> | ||
| 3167 | <pointsize>28</pointsize> | ||
| 3168 | </font> | ||
| 3169 | </property> | ||
| 3170 | <property name="text"> | ||
| 3171 | <string notr="true">4</string> | ||
| 3172 | </property> | ||
| 3173 | </widget> | ||
| 3174 | </item> | ||
| 3175 | <item row="3" column="4"> | ||
| 3176 | <widget class="QPushButton" name="button_9_num"> | ||
| 3177 | <property name="sizePolicy"> | ||
| 3178 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3179 | <horstretch>1</horstretch> | ||
| 3180 | <verstretch>1</verstretch> | ||
| 3181 | </sizepolicy> | ||
| 3182 | </property> | ||
| 3183 | <property name="font"> | ||
| 3184 | <font> | ||
| 3185 | <pointsize>28</pointsize> | ||
| 3186 | </font> | ||
| 3187 | </property> | ||
| 3188 | <property name="text"> | ||
| 3189 | <string notr="true">9</string> | ||
| 3190 | </property> | ||
| 3191 | </widget> | ||
| 3192 | </item> | ||
| 3193 | <item row="2" column="3"> | ||
| 3194 | <widget class="QPushButton" name="button_5_num"> | ||
| 3195 | <property name="sizePolicy"> | ||
| 3196 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3197 | <horstretch>1</horstretch> | ||
| 3198 | <verstretch>1</verstretch> | ||
| 3199 | </sizepolicy> | ||
| 3200 | </property> | ||
| 3201 | <property name="font"> | ||
| 3202 | <font> | ||
| 3203 | <pointsize>28</pointsize> | ||
| 3204 | </font> | ||
| 3205 | </property> | ||
| 3206 | <property name="text"> | ||
| 3207 | <string notr="true">5</string> | ||
| 3208 | </property> | ||
| 3209 | </widget> | ||
| 3210 | </item> | ||
| 3211 | <item row="2" column="5" rowspan="3"> | ||
| 3212 | <widget class="QPushButton" name="button_ok_num"> | ||
| 3213 | <property name="sizePolicy"> | ||
| 3214 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3215 | <horstretch>1</horstretch> | ||
| 3216 | <verstretch>1</verstretch> | ||
| 3217 | </sizepolicy> | ||
| 3218 | </property> | ||
| 3219 | <property name="font"> | ||
| 3220 | <font> | ||
| 3221 | <pointsize>18</pointsize> | ||
| 3222 | </font> | ||
| 3223 | </property> | ||
| 3224 | <property name="text"> | ||
| 3225 | <string notr="true">OK</string> | ||
| 3226 | </property> | ||
| 3227 | </widget> | ||
| 3228 | </item> | ||
| 3229 | <item row="3" column="2"> | ||
| 3230 | <widget class="QPushButton" name="button_7_num"> | ||
| 3231 | <property name="sizePolicy"> | ||
| 3232 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3233 | <horstretch>1</horstretch> | ||
| 3234 | <verstretch>1</verstretch> | ||
| 3235 | </sizepolicy> | ||
| 3236 | </property> | ||
| 3237 | <property name="font"> | ||
| 3238 | <font> | ||
| 3239 | <pointsize>28</pointsize> | ||
| 3240 | </font> | ||
| 3241 | </property> | ||
| 3242 | <property name="text"> | ||
| 3243 | <string notr="true">7</string> | ||
| 3244 | </property> | ||
| 3245 | </widget> | ||
| 3246 | </item> | ||
| 3247 | <item row="3" column="3"> | ||
| 3248 | <widget class="QPushButton" name="button_8_num"> | ||
| 3249 | <property name="sizePolicy"> | ||
| 3250 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3251 | <horstretch>1</horstretch> | ||
| 3252 | <verstretch>1</verstretch> | ||
| 3253 | </sizepolicy> | ||
| 3254 | </property> | ||
| 3255 | <property name="font"> | ||
| 3256 | <font> | ||
| 3257 | <pointsize>28</pointsize> | ||
| 3258 | </font> | ||
| 3259 | </property> | ||
| 3260 | <property name="text"> | ||
| 3261 | <string notr="true">8</string> | ||
| 3262 | </property> | ||
| 3263 | </widget> | ||
| 3264 | </item> | ||
| 3265 | <item row="1" column="3"> | ||
| 3266 | <widget class="QPushButton" name="button_2_num"> | ||
| 3267 | <property name="sizePolicy"> | ||
| 3268 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3269 | <horstretch>1</horstretch> | ||
| 3270 | <verstretch>1</verstretch> | ||
| 3271 | </sizepolicy> | ||
| 3272 | </property> | ||
| 3273 | <property name="font"> | ||
| 3274 | <font> | ||
| 3275 | <pointsize>28</pointsize> | ||
| 3276 | </font> | ||
| 3277 | </property> | ||
| 3278 | <property name="text"> | ||
| 3279 | <string notr="true">2</string> | ||
| 3280 | </property> | ||
| 3281 | </widget> | ||
| 3282 | </item> | ||
| 3283 | <item row="1" column="2"> | ||
| 3284 | <widget class="QPushButton" name="button_1_num"> | ||
| 3285 | <property name="sizePolicy"> | ||
| 3286 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3287 | <horstretch>1</horstretch> | ||
| 3288 | <verstretch>1</verstretch> | ||
| 3289 | </sizepolicy> | ||
| 3290 | </property> | ||
| 3291 | <property name="font"> | ||
| 3292 | <font> | ||
| 3293 | <pointsize>28</pointsize> | ||
| 3294 | </font> | ||
| 3295 | </property> | ||
| 3296 | <property name="text"> | ||
| 3297 | <string notr="true">1</string> | ||
| 3298 | </property> | ||
| 3299 | </widget> | ||
| 3300 | </item> | ||
| 3301 | <item row="4" column="3"> | ||
| 3302 | <widget class="QPushButton" name="button_0_num"> | ||
| 3303 | <property name="sizePolicy"> | ||
| 3304 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3305 | <horstretch>1</horstretch> | ||
| 3306 | <verstretch>1</verstretch> | ||
| 3307 | </sizepolicy> | ||
| 3308 | </property> | ||
| 3309 | <property name="font"> | ||
| 3310 | <font> | ||
| 3311 | <pointsize>28</pointsize> | ||
| 3312 | </font> | ||
| 3313 | </property> | ||
| 3314 | <property name="text"> | ||
| 3315 | <string notr="true">0</string> | ||
| 3316 | </property> | ||
| 3317 | </widget> | ||
| 3318 | </item> | ||
| 3319 | <item row="1" column="4"> | ||
| 3320 | <widget class="QPushButton" name="button_3_num"> | ||
| 3321 | <property name="sizePolicy"> | ||
| 3322 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
| 3323 | <horstretch>1</horstretch> | ||
| 3324 | <verstretch>1</verstretch> | ||
| 3325 | </sizepolicy> | ||
| 3326 | </property> | ||
| 3327 | <property name="font"> | ||
| 3328 | <font> | ||
| 3329 | <pointsize>28</pointsize> | ||
| 3330 | </font> | ||
| 3331 | </property> | ||
| 3332 | <property name="text"> | ||
| 3333 | <string notr="true">3</string> | ||
| 3334 | </property> | ||
| 3335 | </widget> | ||
| 3336 | </item> | ||
| 3337 | <item row="1" column="0"> | ||
| 3338 | <spacer name="horizontalSpacer_37"> | ||
| 3339 | <property name="orientation"> | ||
| 3340 | <enum>Qt::Horizontal</enum> | ||
| 3341 | </property> | ||
| 3342 | <property name="sizeHint" stdset="0"> | ||
| 3343 | <size> | ||
| 3344 | <width>40</width> | ||
| 3345 | <height>20</height> | ||
| 3346 | </size> | ||
| 3347 | </property> | ||
| 3348 | </spacer> | ||
| 3349 | </item> | ||
| 3350 | <item row="1" column="7"> | ||
| 3351 | <spacer name="horizontalSpacer_47"> | ||
| 3352 | <property name="orientation"> | ||
| 3353 | <enum>Qt::Horizontal</enum> | ||
| 3354 | </property> | ||
| 3355 | <property name="sizeHint" stdset="0"> | ||
| 3356 | <size> | ||
| 3357 | <width>40</width> | ||
| 3358 | <height>20</height> | ||
| 3359 | </size> | ||
| 3360 | </property> | ||
| 3361 | </spacer> | ||
| 3362 | </item> | ||
| 3363 | <item row="5" column="3"> | ||
| 3364 | <spacer name="verticalSpacer_8"> | ||
| 3365 | <property name="orientation"> | ||
| 3366 | <enum>Qt::Vertical</enum> | ||
| 3367 | </property> | ||
| 3368 | <property name="sizeHint" stdset="0"> | ||
| 3369 | <size> | ||
| 3370 | <width>20</width> | ||
| 3371 | <height>0</height> | ||
| 3372 | </size> | ||
| 3373 | </property> | ||
| 3374 | </spacer> | ||
| 3375 | </item> | ||
| 3376 | </layout> | ||
| 3377 | </item> | ||
| 3378 | </layout> | ||
| 3379 | </widget> | ||
| 3380 | </widget> | ||
| 3381 | </item> | ||
| 3382 | </layout> | ||
| 3383 | </widget> | ||
| 3384 | </item> | ||
| 3385 | </layout> | ||
| 3386 | </widget> | ||
| 3387 | <tabstops> | ||
| 3388 | <tabstop>button_1</tabstop> | ||
| 3389 | <tabstop>button_2</tabstop> | ||
| 3390 | <tabstop>button_3</tabstop> | ||
| 3391 | <tabstop>button_4</tabstop> | ||
| 3392 | <tabstop>button_5</tabstop> | ||
| 3393 | <tabstop>button_6</tabstop> | ||
| 3394 | <tabstop>button_7</tabstop> | ||
| 3395 | <tabstop>button_8</tabstop> | ||
| 3396 | <tabstop>button_9</tabstop> | ||
| 3397 | <tabstop>button_0</tabstop> | ||
| 3398 | <tabstop>button_minus</tabstop> | ||
| 3399 | <tabstop>button_backspace</tabstop> | ||
| 3400 | <tabstop>button_q</tabstop> | ||
| 3401 | <tabstop>button_w</tabstop> | ||
| 3402 | <tabstop>button_e</tabstop> | ||
| 3403 | <tabstop>button_r</tabstop> | ||
| 3404 | <tabstop>button_t</tabstop> | ||
| 3405 | <tabstop>button_y</tabstop> | ||
| 3406 | <tabstop>button_u</tabstop> | ||
| 3407 | <tabstop>button_i</tabstop> | ||
| 3408 | <tabstop>button_o</tabstop> | ||
| 3409 | <tabstop>button_p</tabstop> | ||
| 3410 | <tabstop>button_slash</tabstop> | ||
| 3411 | <tabstop>button_return</tabstop> | ||
| 3412 | <tabstop>button_a</tabstop> | ||
| 3413 | <tabstop>button_s</tabstop> | ||
| 3414 | <tabstop>button_d</tabstop> | ||
| 3415 | <tabstop>button_f</tabstop> | ||
| 3416 | <tabstop>button_g</tabstop> | ||
| 3417 | <tabstop>button_h</tabstop> | ||
| 3418 | <tabstop>button_j</tabstop> | ||
| 3419 | <tabstop>button_k</tabstop> | ||
| 3420 | <tabstop>button_l</tabstop> | ||
| 3421 | <tabstop>button_colon</tabstop> | ||
| 3422 | <tabstop>button_apostrophe</tabstop> | ||
| 3423 | <tabstop>button_z</tabstop> | ||
| 3424 | <tabstop>button_x</tabstop> | ||
| 3425 | <tabstop>button_c</tabstop> | ||
| 3426 | <tabstop>button_v</tabstop> | ||
| 3427 | <tabstop>button_b</tabstop> | ||
| 3428 | <tabstop>button_n</tabstop> | ||
| 3429 | <tabstop>button_m</tabstop> | ||
| 3430 | <tabstop>button_comma</tabstop> | ||
| 3431 | <tabstop>button_dot</tabstop> | ||
| 3432 | <tabstop>button_question</tabstop> | ||
| 3433 | <tabstop>button_exclamation</tabstop> | ||
| 3434 | <tabstop>button_ok</tabstop> | ||
| 3435 | <tabstop>button_shift</tabstop> | ||
| 3436 | <tabstop>button_space</tabstop> | ||
| 3437 | <tabstop>button_hash</tabstop> | ||
| 3438 | <tabstop>button_left_bracket</tabstop> | ||
| 3439 | <tabstop>button_right_bracket</tabstop> | ||
| 3440 | <tabstop>button_dollar</tabstop> | ||
| 3441 | <tabstop>button_percent</tabstop> | ||
| 3442 | <tabstop>button_circumflex</tabstop> | ||
| 3443 | <tabstop>button_ampersand</tabstop> | ||
| 3444 | <tabstop>button_asterisk</tabstop> | ||
| 3445 | <tabstop>button_left_parenthesis</tabstop> | ||
| 3446 | <tabstop>button_right_parenthesis</tabstop> | ||
| 3447 | <tabstop>button_underscore</tabstop> | ||
| 3448 | <tabstop>button_backspace_shift</tabstop> | ||
| 3449 | <tabstop>button_q_shift</tabstop> | ||
| 3450 | <tabstop>button_w_shift</tabstop> | ||
| 3451 | <tabstop>button_e_shift</tabstop> | ||
| 3452 | <tabstop>button_r_shift</tabstop> | ||
| 3453 | <tabstop>button_t_shift</tabstop> | ||
| 3454 | <tabstop>button_y_shift</tabstop> | ||
| 3455 | <tabstop>button_u_shift</tabstop> | ||
| 3456 | <tabstop>button_i_shift</tabstop> | ||
| 3457 | <tabstop>button_o_shift</tabstop> | ||
| 3458 | <tabstop>button_p_shift</tabstop> | ||
| 3459 | <tabstop>button_at</tabstop> | ||
| 3460 | <tabstop>button_return_shift</tabstop> | ||
| 3461 | <tabstop>button_a_shift</tabstop> | ||
| 3462 | <tabstop>button_s_shift</tabstop> | ||
| 3463 | <tabstop>button_d_shift</tabstop> | ||
| 3464 | <tabstop>button_f_shift</tabstop> | ||
| 3465 | <tabstop>button_g_shift</tabstop> | ||
| 3466 | <tabstop>button_h_shift</tabstop> | ||
| 3467 | <tabstop>button_j_shift</tabstop> | ||
| 3468 | <tabstop>button_k_shift</tabstop> | ||
| 3469 | <tabstop>button_l_shift</tabstop> | ||
| 3470 | <tabstop>button_semicolon</tabstop> | ||
| 3471 | <tabstop>button_quotation</tabstop> | ||
| 3472 | <tabstop>button_z_shift</tabstop> | ||
| 3473 | <tabstop>button_x_shift</tabstop> | ||
| 3474 | <tabstop>button_c_shift</tabstop> | ||
| 3475 | <tabstop>button_v_shift</tabstop> | ||
| 3476 | <tabstop>button_b_shift</tabstop> | ||
| 3477 | <tabstop>button_n_shift</tabstop> | ||
| 3478 | <tabstop>button_m_shift</tabstop> | ||
| 3479 | <tabstop>button_less_than</tabstop> | ||
| 3480 | <tabstop>button_greater_than</tabstop> | ||
| 3481 | <tabstop>button_plus</tabstop> | ||
| 3482 | <tabstop>button_equal</tabstop> | ||
| 3483 | <tabstop>button_ok_shift</tabstop> | ||
| 3484 | <tabstop>button_shift_shift</tabstop> | ||
| 3485 | <tabstop>button_space_shift</tabstop> | ||
| 3486 | <tabstop>button_1_num</tabstop> | ||
| 3487 | <tabstop>button_2_num</tabstop> | ||
| 3488 | <tabstop>button_3_num</tabstop> | ||
| 3489 | <tabstop>button_backspace_num</tabstop> | ||
| 3490 | <tabstop>button_4_num</tabstop> | ||
| 3491 | <tabstop>button_5_num</tabstop> | ||
| 3492 | <tabstop>button_6_num</tabstop> | ||
| 3493 | <tabstop>button_ok_num</tabstop> | ||
| 3494 | <tabstop>button_7_num</tabstop> | ||
| 3495 | <tabstop>button_8_num</tabstop> | ||
| 3496 | <tabstop>button_9_num</tabstop> | ||
| 3497 | <tabstop>button_0_num</tabstop> | ||
| 3498 | </tabstops> | ||
| 3499 | <resources> | ||
| 3500 | <include location="../../../dist/icons/overlay/overlay.qrc"/> | ||
| 3501 | </resources> | ||
| 3502 | <connections/> | ||
| 3503 | </ui> | ||
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index ce83dee27..5f6cdc0c6 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -466,6 +466,114 @@ void GMainWindow::ProfileSelectorSelectProfile() { | |||
| 466 | emit ProfileSelectorFinishedSelection(uuid); | 466 | emit ProfileSelectorFinishedSelection(uuid); |
| 467 | } | 467 | } |
| 468 | 468 | ||
| 469 | void GMainWindow::SoftwareKeyboardInitialize( | ||
| 470 | bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters) { | ||
| 471 | if (software_keyboard) { | ||
| 472 | LOG_ERROR(Frontend, "The software keyboard is already initialized!"); | ||
| 473 | return; | ||
| 474 | } | ||
| 475 | |||
| 476 | software_keyboard = new QtSoftwareKeyboardDialog(render_window, Core::System::GetInstance(), | ||
| 477 | is_inline, std::move(initialize_parameters)); | ||
| 478 | |||
| 479 | if (is_inline) { | ||
| 480 | connect( | ||
| 481 | software_keyboard, &QtSoftwareKeyboardDialog::SubmitInlineText, this, | ||
| 482 | [this](Service::AM::Applets::SwkbdReplyType reply_type, std::u16string submitted_text, | ||
| 483 | s32 cursor_position) { | ||
| 484 | emit SoftwareKeyboardSubmitInlineText(reply_type, submitted_text, cursor_position); | ||
| 485 | }, | ||
| 486 | Qt::QueuedConnection); | ||
| 487 | } else { | ||
| 488 | connect( | ||
| 489 | software_keyboard, &QtSoftwareKeyboardDialog::SubmitNormalText, this, | ||
| 490 | [this](Service::AM::Applets::SwkbdResult result, std::u16string submitted_text) { | ||
| 491 | emit SoftwareKeyboardSubmitNormalText(result, submitted_text); | ||
| 492 | }, | ||
| 493 | Qt::QueuedConnection); | ||
| 494 | } | ||
| 495 | } | ||
| 496 | |||
| 497 | void GMainWindow::SoftwareKeyboardShowNormal() { | ||
| 498 | if (!software_keyboard) { | ||
| 499 | LOG_ERROR(Frontend, "The software keyboard is not initialized!"); | ||
| 500 | return; | ||
| 501 | } | ||
| 502 | |||
| 503 | const auto& layout = render_window->GetFramebufferLayout(); | ||
| 504 | |||
| 505 | const auto x = layout.screen.left; | ||
| 506 | const auto y = layout.screen.top; | ||
| 507 | const auto w = layout.screen.GetWidth(); | ||
| 508 | const auto h = layout.screen.GetHeight(); | ||
| 509 | |||
| 510 | software_keyboard->ShowNormalKeyboard(render_window->mapToGlobal(QPoint(x, y)), QSize(w, h)); | ||
| 511 | } | ||
| 512 | |||
| 513 | void GMainWindow::SoftwareKeyboardShowTextCheck( | ||
| 514 | Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 515 | std::u16string text_check_message) { | ||
| 516 | if (!software_keyboard) { | ||
| 517 | LOG_ERROR(Frontend, "The software keyboard is not initialized!"); | ||
| 518 | return; | ||
| 519 | } | ||
| 520 | |||
| 521 | software_keyboard->ShowTextCheckDialog(text_check_result, text_check_message); | ||
| 522 | } | ||
| 523 | |||
| 524 | void GMainWindow::SoftwareKeyboardShowInline( | ||
| 525 | Core::Frontend::InlineAppearParameters appear_parameters) { | ||
| 526 | if (!software_keyboard) { | ||
| 527 | LOG_ERROR(Frontend, "The software keyboard is not initialized!"); | ||
| 528 | return; | ||
| 529 | } | ||
| 530 | |||
| 531 | const auto& layout = render_window->GetFramebufferLayout(); | ||
| 532 | |||
| 533 | const auto x = | ||
| 534 | static_cast<int>(layout.screen.left + (0.5f * layout.screen.GetWidth() * | ||
| 535 | ((2.0f * appear_parameters.key_top_translate_x) + | ||
| 536 | (1.0f - appear_parameters.key_top_scale_x)))); | ||
| 537 | const auto y = | ||
| 538 | static_cast<int>(layout.screen.top + (layout.screen.GetHeight() * | ||
| 539 | ((2.0f * appear_parameters.key_top_translate_y) + | ||
| 540 | (1.0f - appear_parameters.key_top_scale_y)))); | ||
| 541 | const auto w = static_cast<int>(layout.screen.GetWidth() * appear_parameters.key_top_scale_x); | ||
| 542 | const auto h = static_cast<int>(layout.screen.GetHeight() * appear_parameters.key_top_scale_y); | ||
| 543 | |||
| 544 | software_keyboard->ShowInlineKeyboard(std::move(appear_parameters), | ||
| 545 | render_window->mapToGlobal(QPoint(x, y)), QSize(w, h)); | ||
| 546 | } | ||
| 547 | |||
| 548 | void GMainWindow::SoftwareKeyboardHideInline() { | ||
| 549 | if (!software_keyboard) { | ||
| 550 | LOG_ERROR(Frontend, "The software keyboard is not initialized!"); | ||
| 551 | return; | ||
| 552 | } | ||
| 553 | |||
| 554 | software_keyboard->HideInlineKeyboard(); | ||
| 555 | } | ||
| 556 | |||
| 557 | void GMainWindow::SoftwareKeyboardInlineTextChanged( | ||
| 558 | Core::Frontend::InlineTextParameters text_parameters) { | ||
| 559 | if (!software_keyboard) { | ||
| 560 | LOG_ERROR(Frontend, "The software keyboard is not initialized!"); | ||
| 561 | return; | ||
| 562 | } | ||
| 563 | |||
| 564 | software_keyboard->InlineTextChanged(std::move(text_parameters)); | ||
| 565 | } | ||
| 566 | |||
| 567 | void GMainWindow::SoftwareKeyboardExit() { | ||
| 568 | if (!software_keyboard) { | ||
| 569 | return; | ||
| 570 | } | ||
| 571 | |||
| 572 | software_keyboard->ExitKeyboard(); | ||
| 573 | |||
| 574 | software_keyboard = nullptr; | ||
| 575 | } | ||
| 576 | |||
| 469 | void GMainWindow::WebBrowserOpenWebPage(std::string_view main_url, std::string_view additional_args, | 577 | void GMainWindow::WebBrowserOpenWebPage(std::string_view main_url, std::string_view additional_args, |
| 470 | bool is_local) { | 578 | bool is_local) { |
| 471 | #ifdef YUZU_USE_QT_WEB_ENGINE | 579 | #ifdef YUZU_USE_QT_WEB_ENGINE |
| @@ -1009,6 +1117,10 @@ void GMainWindow::ConnectWidgetEvents() { | |||
| 1009 | connect(this, &GMainWindow::EmulationStopping, render_window, | 1117 | connect(this, &GMainWindow::EmulationStopping, render_window, |
| 1010 | &GRenderWindow::OnEmulationStopping); | 1118 | &GRenderWindow::OnEmulationStopping); |
| 1011 | 1119 | ||
| 1120 | // Software Keyboard Applet | ||
| 1121 | connect(this, &GMainWindow::EmulationStarting, this, &GMainWindow::SoftwareKeyboardExit); | ||
| 1122 | connect(this, &GMainWindow::EmulationStopping, this, &GMainWindow::SoftwareKeyboardExit); | ||
| 1123 | |||
| 1012 | connect(&status_bar_update_timer, &QTimer::timeout, this, &GMainWindow::UpdateStatusBar); | 1124 | connect(&status_bar_update_timer, &QTimer::timeout, this, &GMainWindow::UpdateStatusBar); |
| 1013 | } | 1125 | } |
| 1014 | 1126 | ||
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 4c8a879d2..7f1e50a5b 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h | |||
| @@ -135,6 +135,11 @@ signals: | |||
| 135 | 135 | ||
| 136 | void ProfileSelectorFinishedSelection(std::optional<Common::UUID> uuid); | 136 | void ProfileSelectorFinishedSelection(std::optional<Common::UUID> uuid); |
| 137 | 137 | ||
| 138 | void SoftwareKeyboardSubmitNormalText(Service::AM::Applets::SwkbdResult result, | ||
| 139 | std::u16string submitted_text); | ||
| 140 | void SoftwareKeyboardSubmitInlineText(Service::AM::Applets::SwkbdReplyType reply_type, | ||
| 141 | std::u16string submitted_text, s32 cursor_position); | ||
| 142 | |||
| 138 | void WebBrowserExtractOfflineRomFS(); | 143 | void WebBrowserExtractOfflineRomFS(); |
| 139 | void WebBrowserClosed(Service::AM::Applets::WebExitReason exit_reason, std::string last_url); | 144 | void WebBrowserClosed(Service::AM::Applets::WebExitReason exit_reason, std::string last_url); |
| 140 | 145 | ||
| @@ -143,6 +148,15 @@ public slots: | |||
| 143 | void OnExecuteProgram(std::size_t program_index); | 148 | void OnExecuteProgram(std::size_t program_index); |
| 144 | void ControllerSelectorReconfigureControllers( | 149 | void ControllerSelectorReconfigureControllers( |
| 145 | const Core::Frontend::ControllerParameters& parameters); | 150 | const Core::Frontend::ControllerParameters& parameters); |
| 151 | void SoftwareKeyboardInitialize( | ||
| 152 | bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters); | ||
| 153 | void SoftwareKeyboardShowNormal(); | ||
| 154 | void SoftwareKeyboardShowTextCheck(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | ||
| 155 | std::u16string text_check_message); | ||
| 156 | void SoftwareKeyboardShowInline(Core::Frontend::InlineAppearParameters appear_parameters); | ||
| 157 | void SoftwareKeyboardHideInline(); | ||
| 158 | void SoftwareKeyboardInlineTextChanged(Core::Frontend::InlineTextParameters text_parameters); | ||
| 159 | void SoftwareKeyboardExit(); | ||
| 146 | void ErrorDisplayDisplayError(QString error_code, QString error_text); | 160 | void ErrorDisplayDisplayError(QString error_code, QString error_text); |
| 147 | void ProfileSelectorSelectProfile(); | 161 | void ProfileSelectorSelectProfile(); |
| 148 | void WebBrowserOpenWebPage(std::string_view main_url, std::string_view additional_args, | 162 | void WebBrowserOpenWebPage(std::string_view main_url, std::string_view additional_args, |