1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

Spreadsheet: Add "Save As"

This commit is contained in:
AnotherTest 2020-08-25 01:06:32 +04:30 committed by Andreas Kling
parent 5568da9a59
commit 3320bb45d1
3 changed files with 41 additions and 0 deletions

View file

@ -41,6 +41,9 @@ public:
void save(const StringView& filename);
void load(const StringView& filename);
const String& current_filename() const { return m_current_filename; }
void set_filename(const String& filename);
private:
explicit SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets = {}, bool should_add_sheet_if_empty = true);
@ -51,6 +54,8 @@ private:
RefPtr<GUI::TabWidget> m_tab_widget;
RefPtr<GUI::Label> m_current_cell_label;
RefPtr<GUI::TextEditor> m_cell_value_editor;
String m_current_filename;
};
}