HackStudio: Move bulk of GUI logic into HackStudioWidget

Previously, the GUI logic of HackStudio was all stuffed into main(),
and it started getting a bit out of hand :)
This commit is contained in:
Itamar 2020-09-19 17:25:05 +03:00 committed by Andreas Kling
commit e3e5e57fde
Notes: sideshowbarker 2024-07-19 02:19:44 +09:00
11 changed files with 1165 additions and 775 deletions

View file

@ -66,11 +66,11 @@ EditorWrapper::EditorWrapper(BreakpointChangeCallback breakpoint_change_callback
};
m_editor->on_focus = [this] {
g_current_editor_wrapper = this;
set_current_editor_wrapper(this);
};
m_editor->on_open = [](String path) {
g_open_file(path);
open_file(path);
};
m_editor->on_breakpoint_change = move(breakpoint_change_callback);