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