| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
class QDialogButtonBox; |
| 9 |
class QLabel; |
| 10 |
class QLineEdit; |
| 11 |
class QTextEdit; |
| 12 |
|
| 13 |
namespace ActionReplay |
| 14 |
{ |
| 15 |
struct ARCode; |
| 16 |
} |
| 17 |
|
| 18 |
namespace Gecko |
| 19 |
{ |
| 20 |
class GeckoCode; |
| 21 |
} |
| 22 |
|
| 23 |
class CheatCodeEditor : public QDialog |
| 24 |
{ |
| 25 |
public: |
| 26 |
explicit CheatCodeEditor(QWidget* parent); |
| 27 |
|
| 28 |
void SetARCode(ActionReplay::ARCode* code); |
| 29 |
void SetGeckoCode(Gecko::GeckoCode* code); |
| 30 |
|
| 31 |
private: |
| 32 |
void CreateWidgets(); |
| 33 |
void ConnectWidgets(); |
| 34 |
|
| 35 |
bool AcceptAR(); |
| 36 |
bool AcceptGecko(); |
| 37 |
|
| 38 |
void accept() override; |
| 39 |
|
| 40 |
QLabel* m_creator_label; |
| 41 |
QLabel* m_notes_label; |
| 42 |
|
| 43 |
QLineEdit* m_name_edit; |
| 44 |
QLineEdit* m_creator_edit; |
| 45 |
QTextEdit* m_notes_edit; |
| 46 |
QTextEdit* m_code_edit; |
| 47 |
QDialogButtonBox* m_button_box; |
| 48 |
|
| 49 |
ActionReplay::ARCode* m_ar_code = nullptr; |
| 50 |
Gecko::GeckoCode* m_gecko_code = nullptr; |
| 51 |
}; |