mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
HackStudio: Add a "document dirty" indicator to the EditorWrapper
This commit is contained in:
parent
7f2e1991cc
commit
672b14b70d
3 changed files with 32 additions and 2 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
Editor& editor() { return *m_editor; }
|
||||
const Editor& editor() const { return *m_editor; }
|
||||
|
||||
void save();
|
||||
|
||||
GUI::Label& filename_label() { return *m_filename_label; }
|
||||
const GUI::Label& filename_label() const { return *m_filename_label; }
|
||||
|
||||
|
@ -40,10 +42,13 @@ public:
|
|||
private:
|
||||
EditorWrapper();
|
||||
|
||||
void update_title();
|
||||
|
||||
String m_filename;
|
||||
RefPtr<GUI::Label> m_filename_label;
|
||||
RefPtr<GUI::Label> m_cursor_label;
|
||||
RefPtr<Editor> m_editor;
|
||||
bool m_document_dirty {false};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue