mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
HackStudio: Add statusbar with file and selected text information
This commit is contained in:
parent
e22a34badb
commit
2634cab7a8
Notes:
sideshowbarker
2024-07-18 08:56:33 +09:00
Author: https://github.com/ry-sev
Commit: 2634cab7a8
Pull-request: https://github.com/SerenityOS/serenity/pull/8380
Reviewed-by: https://github.com/aatosmajava
8 changed files with 50 additions and 9 deletions
|
@ -24,6 +24,7 @@ public:
|
|||
void set_execution_position(size_t line) { m_execution_position = line; }
|
||||
void clear_execution_position() { m_execution_position.clear(); }
|
||||
const String& file_path() const { return m_file_path; }
|
||||
const String& language_name() const { return m_language_name; };
|
||||
Language language() const { return m_language; }
|
||||
|
||||
virtual bool is_code_document() const override final { return true; }
|
||||
|
@ -33,6 +34,7 @@ private:
|
|||
explicit CodeDocument(Client* client = nullptr);
|
||||
|
||||
String m_file_path;
|
||||
String m_language_name;
|
||||
Language m_language { Language::Unknown };
|
||||
Vector<size_t> m_breakpoint_lines;
|
||||
Optional<size_t> m_execution_position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue