mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 18:27:35 +00:00
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:
parent
606c0e1672
commit
e3e5e57fde
11 changed files with 1165 additions and 775 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue