mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
HackStudio: GUI support for setting breakpoints on source code lines
This commit is contained in:
parent
009b4ea3f4
commit
393560d8a2
Notes:
sideshowbarker
2024-07-19 07:19:04 +09:00
Author: https://github.com/itamar8910
Commit: 393560d8a2
Pull-request: https://github.com/SerenityOS/serenity/pull/1946
Reviewed-by: https://github.com/awesomekling
7 changed files with 135 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue