mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
HackStudio: GUI support for setting breakpoints on source code lines
This commit is contained in:
parent
009b4ea3f4
commit
393560d8a2
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