Add helper methods to create and execute save level dialogs

Changes in this commit :
- Added AreDirtyTemplatesPresent() method to PrefabSystemComponentInterface
- Added ConstructSaveLevelDialog() helper method to create the save level dialog
- Added ExecuteSavePrefabsDialog() helper method to create and execute the save prefabs dialog

Signed-off-by: srikappa-amzn <srikappa@amazon.com>
This commit is contained in:
srikappa-amzn
2021-08-24 17:22:50 -07:00
parent c20ec14af7
commit 79dd041d02
6 changed files with 309 additions and 187 deletions
+6
View File
@@ -104,6 +104,12 @@ public: // Create from serialization only
bool CanCloseFrame();
//! Returns a Modal containing options to save the current level.
AZStd::shared_ptr<QDialog> ConstructSaveLevelDialog();
//! Executes a Modal asking users about their prefabs save preference.
void ExecuteSavePrefabsDialog();
enum class FetchPolicy
{
DELETE_FOLDER,