2020-12-05 13:08:24 +01:00
|
|
|
#pragma once
|
2019-01-04 22:28:52 +01:00
|
|
|
|
2020-12-22 11:42:57 +03:00
|
|
|
#include "util/types.hpp"
|
2019-01-04 22:28:52 +01:00
|
|
|
#include "Emu/Cell/Modules/cellOskDialog.h"
|
|
|
|
|
|
2020-02-22 20:42:49 +01:00
|
|
|
#include <QObject>
|
|
|
|
|
|
2020-12-22 11:42:57 +03:00
|
|
|
#include <string>
|
|
|
|
|
|
2020-02-22 20:42:49 +01:00
|
|
|
class custom_dialog;
|
2019-01-04 22:28:52 +01:00
|
|
|
|
|
|
|
|
class osk_dialog_frame : public QObject, public OskDialogBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2021-04-07 23:05:18 +02:00
|
|
|
osk_dialog_frame() = default;
|
2019-01-04 22:28:52 +01:00
|
|
|
~osk_dialog_frame();
|
2022-04-26 00:20:07 +02:00
|
|
|
void Create(const std::string& title, const std::u16string& message, char16_t* init_text, u32 charlimit, u32 prohibit_flags, u32 panel_flag, u32 first_view_panel, color base_color, bool dimmer_enabled, bool intercept_input) override;
|
2021-09-19 21:12:42 +02:00
|
|
|
void Close(s32 status) override;
|
2019-01-04 22:28:52 +01:00
|
|
|
|
|
|
|
|
private:
|
2019-01-05 18:11:43 +01:00
|
|
|
void SetOskText(const QString& text);
|
|
|
|
|
|
2019-01-04 22:28:52 +01:00
|
|
|
custom_dialog* m_dialog = nullptr;
|
2019-01-08 19:14:58 +01:00
|
|
|
QString m_text_old;
|
2019-01-04 22:28:52 +01:00
|
|
|
};
|