mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
HackStudio: Add a "document dirty" indicator to the EditorWrapper
This commit is contained in:
parent
7f2e1991cc
commit
672b14b70d
Notes:
sideshowbarker
2024-07-18 18:46:09 +09:00
Author: https://github.com/itamar8910
Commit: 672b14b70d
Pull-request: https://github.com/SerenityOS/serenity/pull/6779
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
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