2020-02-22 20:42:49 +01:00
|
|
|
|
#pragma once
|
2018-03-02 15:40:29 -06:00
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
2020-02-22 20:42:49 +01:00
|
|
|
|
class CPUDisAsm;
|
|
|
|
|
|
class cpu_thread;
|
|
|
|
|
|
class breakpoint_handler;
|
|
|
|
|
|
|
2018-03-02 15:40:29 -06:00
|
|
|
|
class breakpoint_list : public QListWidget
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
breakpoint_list(QWidget* parent, breakpoint_handler* handler);
|
|
|
|
|
|
void UpdateCPUData(std::weak_ptr<cpu_thread> cpu, std::shared_ptr<CPUDisAsm> disasm);
|
|
|
|
|
|
void ClearBreakpoints();
|
|
|
|
|
|
void AddBreakpoint(u32 addr);
|
|
|
|
|
|
void RemoveBreakpoint(u32 addr);
|
|
|
|
|
|
|
|
|
|
|
|
QColor m_text_color_bp;
|
|
|
|
|
|
QColor m_color_bp;
|
|
|
|
|
|
Q_SIGNALS:
|
2020-04-01 01:02:24 +03:00
|
|
|
|
void RequestShowAddress(u32 addr, bool force = false);
|
2018-03-02 15:40:29 -06:00
|
|
|
|
public Q_SLOTS:
|
|
|
|
|
|
void HandleBreakpointRequest(u32 addr);
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
|
void OnBreakpointListDoubleClicked();
|
|
|
|
|
|
void OnBreakpointListRightClicked(const QPoint &pos);
|
|
|
|
|
|
void OnBreakpointListDelete();
|
|
|
|
|
|
private:
|
|
|
|
|
|
breakpoint_handler* m_breakpoint_handler;
|
|
|
|
|
|
|
|
|
|
|
|
std::weak_ptr<cpu_thread> cpu;
|
|
|
|
|
|
std::shared_ptr<CPUDisAsm> m_disasm;
|
|
|
|
|
|
};
|