1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:17:35 +00:00

HackStudio: Add statusbar with file and selected text information

This commit is contained in:
ry-sev 2021-07-01 20:39:17 -04:00 committed by Gunnar Beutner
parent e22a34badb
commit 2634cab7a8
8 changed files with 50 additions and 9 deletions

View file

@ -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;