diff options
author | ry-sev <rickyseverino@protonmail.com> | 2022-03-07 19:30:21 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-16 14:36:46 +0100 |
commit | 23643cf21b5b102486e1501adccae708d9a1d4e6 (patch) | |
tree | dbc0e8260d56584a03c3e9a36f5780b02e43c326 /Userland/DevTools/HackStudio/Editor.cpp | |
parent | da714f771d2a164aca529e72207c80409b38d7b1 (diff) | |
download | serenity-23643cf21b5b102486e1501adccae708d9a1d4e6.zip |
HackStudio: Move editors inside tab widgets
This will move the editors inside a tab widget and the user
will be able to add new editors as tabs as well as add new
tab widgets. The user will be able to easily switch between
editors as well as the tab widgets.
Diffstat (limited to 'Userland/DevTools/HackStudio/Editor.cpp')
-rw-r--r-- | Userland/DevTools/HackStudio/Editor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/DevTools/HackStudio/Editor.cpp b/Userland/DevTools/HackStudio/Editor.cpp index a742c58731..f452428e5b 100644 --- a/Userland/DevTools/HackStudio/Editor.cpp +++ b/Userland/DevTools/HackStudio/Editor.cpp @@ -108,7 +108,6 @@ const EditorWrapper& Editor::wrapper() const void Editor::focusin_event(GUI::FocusEvent& event) { - wrapper().set_editor_has_focus({}, true); if (on_focus) on_focus(); GUI::TextEditor::focusin_event(event); @@ -116,7 +115,6 @@ void Editor::focusin_event(GUI::FocusEvent& event) void Editor::focusout_event(GUI::FocusEvent& event) { - wrapper().set_editor_has_focus({}, false); GUI::TextEditor::focusout_event(event); } @@ -323,10 +321,10 @@ void Editor::mousedown_event(GUI::MouseEvent& event) if (event.button() == GUI::MouseButton::Primary && event.position().x() < ruler_line_rect.width()) { if (!breakpoint_lines().contains_slow(text_position.line())) { breakpoint_lines().append(text_position.line()); - Debugger::the().on_breakpoint_change(wrapper().filename_label().text(), text_position.line(), BreakpointChange::Added); + Debugger::the().on_breakpoint_change(wrapper().filename_title(), text_position.line(), BreakpointChange::Added); } else { breakpoint_lines().remove_first_matching([&](size_t line) { return line == text_position.line(); }); - Debugger::the().on_breakpoint_change(wrapper().filename_label().text(), text_position.line(), BreakpointChange::Removed); + Debugger::the().on_breakpoint_change(wrapper().filename_title(), text_position.line(), BreakpointChange::Removed); } } |