1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

HackStudio: GUI support for setting breakpoints on source code lines

This commit is contained in:
Itamar 2020-04-24 23:48:25 +03:00 committed by Andreas Kling
parent 009b4ea3f4
commit 393560d8a2
7 changed files with 135 additions and 6 deletions

View file

@ -35,7 +35,7 @@
extern RefPtr<EditorWrapper> g_current_editor_wrapper;
extern Function<void(String)> g_open_file;
EditorWrapper::EditorWrapper()
EditorWrapper::EditorWrapper(BreakpointChangeCallback breakpoint_change_callback)
{
set_layout<GUI::VerticalBoxLayout>();
@ -72,6 +72,8 @@ EditorWrapper::EditorWrapper()
m_editor->on_open = [this](String path) {
g_open_file(path);
};
m_editor->on_breakpoint_change = move(breakpoint_change_callback);
}
EditorWrapper::~EditorWrapper()