2014-04-01 03:26:50 +01:00
|
|
|
#include <QDockWidget>
|
2014-04-18 23:30:53 +01:00
|
|
|
#include "../ui_disassembler.h"
|
2014-04-01 03:26:50 +01:00
|
|
|
|
2014-04-11 01:50:10 +01:00
|
|
|
#include "common/common.h"
|
|
|
|
#include "common/break_points.h"
|
2014-04-01 03:26:50 +01:00
|
|
|
|
|
|
|
class QAction;
|
|
|
|
class QStandardItemModel;
|
|
|
|
class EmuThread;
|
|
|
|
|
2014-04-18 23:30:53 +01:00
|
|
|
class DisassemblerWidget : public QDockWidget
|
2014-04-01 03:26:50 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2014-04-18 23:30:53 +01:00
|
|
|
DisassemblerWidget(QWidget* parent, EmuThread& emu_thread);
|
2014-04-01 03:26:50 +01:00
|
|
|
|
2014-04-04 02:24:07 +01:00
|
|
|
void Init();
|
|
|
|
|
2014-04-01 03:26:50 +01:00
|
|
|
public slots:
|
|
|
|
void OnSetBreakpoint();
|
2014-04-04 02:24:07 +01:00
|
|
|
void OnContinue();
|
2014-04-01 03:26:50 +01:00
|
|
|
void OnStep();
|
2014-04-04 02:24:07 +01:00
|
|
|
void OnStepInto();
|
2014-04-01 03:26:50 +01:00
|
|
|
void OnPause();
|
2014-04-04 02:24:07 +01:00
|
|
|
void OnToggleStartStop();
|
2014-04-01 03:26:50 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|