Auto-Save implementation for project files (issue SpartanJ/ecode#220). Still pending Auto-Save for non-open project environment.

This commit is contained in:
Martín Lucas Golini
2024-07-14 20:15:04 -03:00
parent a836f6335e
commit 8ce9e7045b
11 changed files with 439 additions and 127 deletions

View File

@@ -457,7 +457,7 @@ class App : public UICodeEditorSplitter::Client {
const std::string& getFileToOpen() const;
void saveProject();
void saveProject( bool onlyIfNeeded = false, bool autoSaveEnabled = true );
std::pair<bool, std::string> generateConfigPath();
@@ -465,6 +465,8 @@ class App : public UICodeEditorSplitter::Client {
bool isAnyStatusBarSectionVisible() const;
void createDocDirtyAlert( UICodeEditor* editor, bool showEnableAutoReload = true );
protected:
std::vector<std::string> mArgs;
EE::Window::Window* mWindow{ nullptr };
@@ -623,8 +625,6 @@ class App : public UICodeEditorSplitter::Client {
void removeFolderWatches();
void createDocDirtyAlert( UICodeEditor* editor );
void createDocManyLangsAlert( UICodeEditor* editor );
void syncProjectTreeWithEditor( UICodeEditor* editor );