rpcsx/rpcs3/rpcs3qt/osk_dialog_frame.h

28 lines
661 B
C
Raw Normal View History

2020-12-05 13:08:24 +01:00
#pragma once
2019-01-04 22:28:52 +01: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>
#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();
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;
void Close(s32 status) override;
2019-01-04 22:28:52 +01:00
private:
void SetOskText(const QString& text);
2019-01-04 22:28:52 +01:00
custom_dialog* m_dialog = nullptr;
QString m_text_old;
2019-01-04 22:28:52 +01:00
};