diff options
| author | hachem <im@hachem.wtf> | 2026-09-01 03:49:18 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-01 03:49:18 +0200 |
| commit | 37098d4db1195d3f18f396d839b4eda6942b1f8c (patch) | |
| tree | 9f988de3e33c333e5f1b1696dfb8c8d958ed91fe /src/ui/ui.h | |
| parent | dc384ed13dc22d2640a20fbb030531b7f5d97502 (diff) | |
feat: add preferences panel
Diffstat (limited to 'src/ui/ui.h')
| -rw-r--r-- | src/ui/ui.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index edd343f..436bfc4 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -3,6 +3,7 @@ #include "core/result.h" #include "ui/animated_image.h" #include "ui/image_renderer.h" +#include "ui/preferences.h" #include "ui/source_view.h" #include <cstdint> @@ -58,6 +59,8 @@ namespace Hsdbg auto draw_toolbar(Debugger& debugger) -> void; auto draw_status_bar(Debugger& debugger) -> void; auto draw_load_target_popup(Debugger& debugger) -> void; + auto draw_preferences_window() -> void; + auto apply_preferences() -> void; auto draw_source_panel(Debugger& debugger) -> void; auto draw_breakpoints_panel(Debugger& debugger) -> void; @@ -81,6 +84,12 @@ namespace Hsdbg SourceView m_source_view; PanelVisibility m_visible; + Preferences m_preferences; + std::filesystem::path m_preferences_path; + bool m_show_preferences = false; + bool m_restyle_pending = false; + int m_preferences_tab = 0; + // the crying-pepe that lives in the toolbar; loaded on the first frame // once there is a gl context to upload its textures to, and drawn with a // dedicated shader after imgui rather than through ImGui::Image |
