| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
#include "Common/CommonTypes.h" |
| 9 |
|
| 10 |
class QDialogButtonBox; |
| 11 |
class QLabel; |
| 12 |
class QLineEdit; |
| 13 |
|
| 14 |
class PatchInstructionDialog : public QDialog |
| 15 |
{ |
| 16 |
Q_OBJECT |
| 17 |
public: |
| 18 |
explicit PatchInstructionDialog(QWidget* parent, u32 address, u32 value); |
| 19 |
|
| 20 |
u32 GetCode() const; |
| 21 |
|
| 22 |
private: |
| 23 |
void CreateWidgets(); |
| 24 |
void ConnectWidgets(); |
| 25 |
|
| 26 |
void OnEditChanged(); |
| 27 |
|
| 28 |
u32 m_code; |
| 29 |
u32 m_address; |
| 30 |
|
| 31 |
QLineEdit* m_input_edit; |
| 32 |
QLabel* m_preview_label; |
| 33 |
QDialogButtonBox* m_button_box; |
| 34 |
}; |