2017-08-26 18:55:16 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-08-26 18:55:16 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class QLabel;
|
|
|
|
class QPushButton;
|
|
|
|
|
|
|
|
class CheatWarningWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2018-05-18 05:17:30 +00:00
|
|
|
explicit CheatWarningWidget(const std::string& game_id, bool restart_required, QWidget* parent);
|
2017-08-26 18:55:16 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void OpenCheatEnableSettings();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
2017-08-30 19:00:59 +00:00
|
|
|
void Update(bool running);
|
2017-08-26 18:55:16 +00:00
|
|
|
|
|
|
|
QLabel* m_text;
|
|
|
|
QPushButton* m_config_button;
|
2017-08-30 19:00:59 +00:00
|
|
|
const std::string m_game_id;
|
2018-03-26 02:17:47 +00:00
|
|
|
bool m_restart_required;
|
2017-08-26 18:55:16 +00:00
|
|
|
};
|