summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio/EditorWrapper.cpp
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-04-24 23:48:25 +0300
committerAndreas Kling <kling@serenityos.org>2020-04-25 13:16:46 +0200
commit393560d8a2de4b507497786f3203e0c0cebb13c2 (patch)
tree207abdab49a27982d944358b714be64c66ccdd3a /DevTools/HackStudio/EditorWrapper.cpp
parent009b4ea3f418e3cd88a4b66e0d6531b871d270c7 (diff)
downloadserenity-393560d8a2de4b507497786f3203e0c0cebb13c2.zip
HackStudio: GUI support for setting breakpoints on source code lines
Diffstat (limited to 'DevTools/HackStudio/EditorWrapper.cpp')
-rw-r--r--DevTools/HackStudio/EditorWrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/DevTools/HackStudio/EditorWrapper.cpp b/DevTools/HackStudio/EditorWrapper.cpp
index 5a638f98e3..1ee9eefb68 100644
--- a/DevTools/HackStudio/EditorWrapper.cpp
+++ b/DevTools/HackStudio/EditorWrapper.cpp
@@ -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()