Add "Save as directory"

This commit is contained in:
Twan van Laarhoven
2020-05-09 13:26:33 +02:00
parent 8f6423a96e
commit 968b8eabca
8 changed files with 65 additions and 29 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ class Package : public IntrusivePtrVirtualBase {
void save(bool remove_unused = true);
/// Saves the package under a different filename
void saveAs(const String& package, bool remove_unused = true);
void saveAs(const String& package, bool remove_unused = true, bool as_directory = false);
/// Saves the package under a different filename, but keep the old one open
void saveCopy(const String& package);
@@ -279,7 +279,7 @@ class Packaged : public Package {
/// Ensure the package is fully loaded.
void loadFully();
void save();
void saveAs(const String& package, bool remove_unused = true);
void saveAs(const String& package, bool remove_unused = true, bool as_directory = false);
void saveCopy(const String& package);
/// Check if this package lists a dependency on the given package