diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_breakpoints.h')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints.h b/src/citra_qt/debugger/graphics_breakpoints.h new file mode 100644 index 000000000..5b9ba324e --- /dev/null +++ b/src/citra_qt/debugger/graphics_breakpoints.h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <memory> | ||
| 8 | |||
| 9 | #include <QAbstractListModel> | ||
| 10 | #include <QDockWidget> | ||
| 11 | |||
| 12 | #include "video_core/debug_utils/debug_utils.h" | ||
| 13 | |||
| 14 | class QLabel; | ||
| 15 | class QPushButton; | ||
| 16 | class QTreeView; | ||
| 17 | |||
| 18 | class BreakPointModel; | ||
| 19 | |||
| 20 | class GraphicsBreakPointsWidget : public QDockWidget, Pica::DebugContext::BreakPointObserver { | ||
| 21 | Q_OBJECT | ||
| 22 | |||
| 23 | using Event = Pica::DebugContext::Event; | ||
| 24 | |||
| 25 | public: | ||
| 26 | GraphicsBreakPointsWidget(std::shared_ptr<Pica::DebugContext> debug_context, | ||
| 27 | QWidget* parent = nullptr); | ||
| 28 | |||
| 29 | void OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) override; | ||
| 30 | void OnPicaResume() override; | ||
| 31 | |||
| 32 | public slots: | ||
| 33 | void OnBreakPointHit(Pica::DebugContext::Event event, void* data); | ||
| 34 | void OnResumeRequested(); | ||
| 35 | void OnResumed(); | ||
| 36 | void OnBreakpointSelectionChanged(const QModelIndex&); | ||
| 37 | void OnToggleBreakpointEnabled(); | ||
| 38 | |||
| 39 | signals: | ||
| 40 | void Resumed(); | ||
| 41 | void BreakPointHit(Pica::DebugContext::Event event, void* data); | ||
| 42 | void BreakPointsChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); | ||
| 43 | |||
| 44 | private: | ||
| 45 | void UpdateToggleBreakpointButton(const QModelIndex& index); | ||
| 46 | |||
| 47 | QLabel* status_text; | ||
| 48 | QPushButton* resume_button; | ||
| 49 | QPushButton* toggle_breakpoint_button; | ||
| 50 | |||
| 51 | BreakPointModel* breakpoint_model; | ||
| 52 | QTreeView* breakpoint_list; | ||
| 53 | }; | ||