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