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:
parent
ba6cbf160b
commit
684cc5f027
2 changed files with 27 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue