| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QWidget> |
| 7 |
|
| 8 |
#include <string> |
| 9 |
|
| 10 |
class QLabel; |
| 11 |
class QPushButton; |
| 12 |
|
| 13 |
class CheatWarningWidget : public QWidget |
| 14 |
{ |
| 15 |
Q_OBJECT |
| 16 |
public: |
| 17 |
explicit CheatWarningWidget(std::string game_id, bool restart_required, QWidget* parent); |
| 18 |
|
| 19 |
signals: |
| 20 |
void OpenCheatEnableSettings(); |
| 21 |
|
| 22 |
private: |
| 23 |
void CreateWidgets(); |
| 24 |
void ConnectWidgets(); |
| 25 |
|
| 26 |
void Update(bool running); |
| 27 |
|
| 28 |
QLabel* m_text; |
| 29 |
QPushButton* m_config_button; |
| 30 |
const std::string m_game_id; |
| 31 |
bool m_restart_required; |
| 32 |
}; |