2018-11-10 02:13:15 +01:00
|
|
|
// Copyright 2018 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
2018-11-11 22:39:25 +01:00
|
|
|
|
2018-11-10 02:13:15 +01:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QValidator>
|
2021-01-30 20:38:00 +01:00
|
|
|
|
2018-11-10 02:13:15 +01:00
|
|
|
#include "core/frontend/applets/software_keyboard.h"
|
|
|
|
|
2018-11-11 22:39:25 +01:00
|
|
|
class GMainWindow;
|
2018-11-10 02:13:15 +01:00
|
|
|
|
|
|
|
class QtSoftwareKeyboardValidator final : public QValidator {
|
|
|
|
public:
|
2021-01-30 20:38:00 +01:00
|
|
|
explicit QtSoftwareKeyboardValidator();
|
2018-11-11 22:39:25 +01:00
|
|
|
State validate(QString& input, int& pos) const override;
|
2018-11-10 02:13:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class QtSoftwareKeyboardDialog final : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-01-30 20:38:00 +01:00
|
|
|
QtSoftwareKeyboardDialog(QWidget* parent);
|
2018-11-11 22:39:25 +01:00
|
|
|
~QtSoftwareKeyboardDialog() override;
|
2018-11-10 02:13:15 +01:00
|
|
|
};
|
|
|
|
|
2018-11-11 22:39:25 +01:00
|
|
|
class QtSoftwareKeyboard final : public QObject, public Core::Frontend::SoftwareKeyboardApplet {
|
2018-11-12 17:08:09 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
2018-11-10 02:13:15 +01:00
|
|
|
public:
|
2018-11-11 22:39:25 +01:00
|
|
|
explicit QtSoftwareKeyboard(GMainWindow& parent);
|
|
|
|
~QtSoftwareKeyboard() override;
|
2018-11-10 02:13:15 +01:00
|
|
|
};
|