From 3f33c536c06535052d029c7270023a3dae351696 Mon Sep 17 00:00:00 2001 From: hachem Date: Fri, 4 Sep 2026 19:30:33 +0200 Subject: refactor: overhaul the ui the old ui interface was very disconnected, each tool was its own panel, without much interaction. this commit is an attempt to fix this. --- src/ui/source_view.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/source_view.h') diff --git a/src/ui/source_view.h b/src/ui/source_view.h index 0c10efa..4c2cbe4 100644 --- a/src/ui/source_view.h +++ b/src/ui/source_view.h @@ -66,6 +66,10 @@ namespace Hsdbg // hand to the macros panel; cleared once taken auto take_macro_request() -> std::optional; + // right-clicking a name in the source stashes it here for the ui to add to + // the watch list; cleared once taken + auto take_watch_request() -> std::optional; + private: auto draw_open_bar() -> void; auto draw_lines(Debugger& debugger) -> void; @@ -80,6 +84,7 @@ namespace Hsdbg std::vector> m_spans; MacroTable m_macros; std::optional m_macro_request; + std::optional m_watch_request; bool m_highlight = false; bool m_highlighting_enabled = true; bool m_line_numbers = true; -- cgit v1.3