diff options
author | Itamar <itamar8910@gmail.com> | 2021-02-20 09:48:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-20 15:53:37 +0100 |
commit | 50f887c9d5a5ae7d7c5e8f20492570c9b99481f2 (patch) | |
tree | 8ab81a9c4a079ded9202bacdf12202c30bffa1e5 /Userland/DevTools/HackStudio/Editor.h | |
parent | adb6db9774ecc132305ee206271d17a3d0306300 (diff) | |
download | serenity-50f887c9d5a5ae7d7c5e8f20492570c9b99481f2.zip |
HackStudio: Display identifiers as clickable
This extends the "navigate to include" feature to also display
identifiers as clickable when they're hovered over while left control
is pressed.
Diffstat (limited to 'Userland/DevTools/HackStudio/Editor.h')
-rw-r--r-- | Userland/DevTools/HackStudio/Editor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/Editor.h b/Userland/DevTools/HackStudio/Editor.h index 10c83a59d0..2d82357612 100644 --- a/Userland/DevTools/HackStudio/Editor.h +++ b/Userland/DevTools/HackStudio/Editor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -76,6 +76,7 @@ private: void show_documentation_tooltip_if_available(const String&, const Gfx::IntPoint& screen_location); void navigate_to_include_if_available(String); + void on_navigatable_link_click(const GUI::TextDocumentSpan&); Gfx::IntRect breakpoint_icon_rect(size_t line_number) const; static const Gfx::Bitmap& breakpoint_icon_bitmap(); @@ -109,7 +110,7 @@ private: String m_last_parsed_token; GUI::TextPosition m_previous_text_position { 0, 0 }; bool m_hovering_editor { false }; - bool m_hovering_link { false }; + bool m_hovering_clickable { false }; bool m_autocomplete_in_focus { false }; OwnPtr<LanguageClient> m_language_client; |