| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
#include "Common/CommonTypes.h" |
| 9 |
#include "Core/PowerPC/BreakPoints.h" |
| 10 |
#include "Core/PowerPC/PowerPC.h" |
| 11 |
|
| 12 |
class BreakpointWidget; |
| 13 |
class QCheckBox; |
| 14 |
class QDialogButtonBox; |
| 15 |
class QGroupBox; |
| 16 |
class QLabel; |
| 17 |
class QLineEdit; |
| 18 |
class QRadioButton; |
| 19 |
class QPushButton; |
| 20 |
|
| 21 |
class BreakpointDialog : public QDialog |
| 22 |
{ |
| 23 |
Q_OBJECT |
| 24 |
public: |
| 25 |
enum class OpenMode |
| 26 |
{ |
| 27 |
New, |
| 28 |
EditBreakPoint, |
| 29 |
EditMemCheck |
| 30 |
}; |
| 31 |
|
| 32 |
explicit BreakpointDialog(BreakpointWidget* parent); |
| 33 |
BreakpointDialog(BreakpointWidget* parent, const TBreakPoint* breakpoint); |
| 34 |
BreakpointDialog(BreakpointWidget* parent, const TMemCheck* memcheck); |
| 35 |
|
| 36 |
void accept() override; |
| 37 |
|
| 38 |
private: |
| 39 |
void CreateWidgets(); |
| 40 |
void ConnectWidgets(); |
| 41 |
|
| 42 |
void OnBPTypeChanged(); |
| 43 |
void OnAddressTypeChanged(); |
| 44 |
void ShowConditionHelp(); |
| 45 |
|
| 46 |
|
| 47 |
QRadioButton* m_instruction_bp; |
| 48 |
QGroupBox* m_instruction_box; |
| 49 |
QLineEdit* m_instruction_address; |
| 50 |
|
| 51 |
|
| 52 |
QRadioButton* m_memory_bp; |
| 53 |
QRadioButton* m_memory_use_address; |
| 54 |
QRadioButton* m_memory_use_range; |
| 55 |
QGroupBox* m_memory_box; |
| 56 |
QLabel* m_memory_address_from_label; |
| 57 |
QLineEdit* m_memory_address_from; |
| 58 |
QLabel* m_memory_address_to_label; |
| 59 |
QLineEdit* m_memory_address_to; |
| 60 |
QRadioButton* m_memory_on_read; |
| 61 |
QRadioButton* m_memory_on_read_and_write; |
| 62 |
QRadioButton* m_memory_on_write; |
| 63 |
|
| 64 |
|
| 65 |
QRadioButton* m_do_log; |
| 66 |
QRadioButton* m_do_break; |
| 67 |
QRadioButton* m_do_log_and_break; |
| 68 |
|
| 69 |
QLineEdit* m_conditional; |
| 70 |
QPushButton* m_cond_help_btn; |
| 71 |
|
| 72 |
QDialogButtonBox* m_buttons; |
| 73 |
BreakpointWidget* m_parent; |
| 74 |
|
| 75 |
OpenMode m_open_mode; |
| 76 |
}; |