mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
43 lines
726 B
C++
43 lines
726 B
C++
#include <QDockWidget>
|
|
#include "../ui_disassembler.h"
|
|
|
|
#include "common/common.h"
|
|
#include "common/break_points.h"
|
|
|
|
class QAction;
|
|
class QStandardItemModel;
|
|
class EmuThread;
|
|
|
|
class DisassemblerWidget : public QDockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DisassemblerWidget(QWidget* parent, EmuThread& emu_thread);
|
|
|
|
void Init();
|
|
|
|
public slots:
|
|
void OnSetBreakpoint();
|
|
void OnContinue();
|
|
void OnStep();
|
|
void OnStepInto();
|
|
void OnPause();
|
|
void OnToggleStartStop();
|
|
|
|
void OnCPUStepped();
|
|
|
|
private:
|
|
// returns -1 if no row is selected
|
|
int SelectedRow();
|
|
|
|
Ui::DockWidget disasm_ui;
|
|
QStandardItemModel* model;
|
|
|
|
u32 base_addr;
|
|
|
|
BreakPoints* breakpoints;
|
|
|
|
EmuThread& emu_thread;
|
|
};
|