1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

HackStudio: Add ProjectFile::create_if_needed

This commit is contained in:
Itamar 2021-03-05 17:21:01 +02:00 committed by Andreas Kling
parent ba6cbf160b
commit 684cc5f027
2 changed files with 27 additions and 11 deletions

View file

@ -44,6 +44,7 @@ public:
const String& name() const { return m_name; }
GUI::TextDocument& document() const;
CodeDocument& code_document() const;
int vertical_scroll_value() const;
void vertical_scroll_value(int);
@ -52,6 +53,7 @@ public:
private:
explicit ProjectFile(const String& name);
void create_document_if_needed() const;
String m_name;
mutable RefPtr<CodeDocument> m_document;