diff options
| author | hachem <im@hachem.wtf> | 2026-09-04 19:30:33 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-04 19:30:33 +0200 |
| commit | 3f33c536c06535052d029c7270023a3dae351696 (patch) | |
| tree | b072f2135bfc3f7d996aff9c21299dfcd8affaf3 /src/ui/source_view.h | |
| parent | dcb23f8b4b889061e96d43949d570581469cab84 (diff) | |
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.
Diffstat (limited to 'src/ui/source_view.h')
| -rw-r--r-- | src/ui/source_view.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::string>; + // 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<std::string>; + private: auto draw_open_bar() -> void; auto draw_lines(Debugger& debugger) -> void; @@ -80,6 +84,7 @@ namespace Hsdbg std::vector<std::vector<SourceSpan>> m_spans; MacroTable m_macros; std::optional<std::string> m_macro_request; + std::optional<std::string> m_watch_request; bool m_highlight = false; bool m_highlighting_enabled = true; bool m_line_numbers = true; |
