mirror of https://github.com/PCSX2/pcsx2.git
42 lines
812 B
C++
42 lines
812 B
C++
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include "ui_BreakpointDialog.h"
|
|
|
|
#include "DebugTools/Breakpoints.h"
|
|
|
|
#include "Models/BreakpointModel.h"
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
class BreakpointDialog final : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
BreakpointDialog(QWidget* parent, DebugInterface* cpu, BreakpointModel& model);
|
|
BreakpointDialog(QWidget* parent, DebugInterface* cpu, BreakpointModel& model, BreakpointMemcheck bpmc, int rowIndex);
|
|
~BreakpointDialog();
|
|
|
|
public slots:
|
|
void onRdoButtonToggled();
|
|
void accept() override;
|
|
|
|
private:
|
|
enum class PURPOSE
|
|
{
|
|
CREATE,
|
|
EDIT
|
|
};
|
|
|
|
Ui::BreakpointDialog m_ui;
|
|
DebugInterface* m_cpu;
|
|
|
|
const PURPOSE m_purpose;
|
|
BreakpointModel& m_bpModel;
|
|
BreakpointMemcheck m_bp_mc;
|
|
int m_rowIndex;
|
|
};
|