diff options
| author | Léo Lam <leo@leolam.fr> | 2020-03-15 16:45:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-15 16:45:36 +0100 |
| commit | 24a01642e0074345abe09dc7e80a90d95db7d7a8 (patch) | |
| tree | 7648ce2c9c98aeafa50dc393d4f8ddee1b70051f /Source/Core/DolphinQt/Debugger/CodeViewWidget.h | |
| parent | 5db7add9c78b461bfbcb69425938c75242551d1d (diff) | |
| parent | 9c98b659f1b6f4727a3f9b0b85da329923bc4dfd (diff) | |
Merge pull request #8642 from AdmiralCurtiss/debugger_branch_arrows
Qt/CodeViewWidget: Implement branch arrows.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.h')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.h b/Source/Core/DolphinQt/Debugger/CodeViewWidget.h index 50e8ccc365..eddb3b09f7 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.h +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.h @@ -15,6 +15,9 @@ class QMouseEvent; class QResizeEvent; class QShowEvent; +struct CodeViewBranch; +class BranchDisplayDelegate; + class CodeViewWidget : public QTableWidget { Q_OBJECT @@ -26,6 +29,7 @@ public: }; explicit CodeViewWidget(); + ~CodeViewWidget() override; u32 GetAddress() const; u32 GetContextAddress() const; @@ -38,6 +42,8 @@ public: void ToggleBreakpoint(); void AddBreakpoint(); + u32 AddressForRow(int row) const; + signals: void RequestPPCComparison(u32 addr); void ShowMemory(u32 address); @@ -79,8 +85,14 @@ private: void OnReplaceInstruction(); void OnRestoreInstruction(); + void CalculateBranchIndentation(); + bool m_updating = false; u32 m_address = 0; u32 m_context_address = 0; + + std::vector<CodeViewBranch> m_branches; + + friend class BranchDisplayDelegate; }; |
