diff options
author | Alexander Tkachev | 2016-06-05 20:20:22 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | e9721976aa4fc604810cf1daf6d60b206197cd9a (patch) | |
tree | dec04a05a4348dd42ed7c0f8d885ab5b0c4041ce /gui/saveload-dialog.h | |
parent | e7763700e2e2016f4573e3feb77b5fab69268683 (diff) | |
download | scummvm-rg350-e9721976aa4fc604810cf1daf6d60b206197cd9a.tar.gz scummvm-rg350-e9721976aa4fc604810cf1daf6d60b206197cd9a.tar.bz2 scummvm-rg350-e9721976aa4fc604810cf1daf6d60b206197cd9a.zip |
GUI: Add SaveLoadCloudSyncProgressDialog
It's shown by SaveLoadChooserDialog when files are downloaded and some
save slots are locked. One can hide that dialog to interact with
non-locked slots or cancel saves sync completely. Dialog's label shows
current sync progress.
Dialog automatically hides itself when all files are downloaded.
WARNING: right now that results in a crash!
Diffstat (limited to 'gui/saveload-dialog.h')
-rw-r--r-- | gui/saveload-dialog.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/saveload-dialog.h b/gui/saveload-dialog.h index 0e67ba89fe..ffb8f34458 100644 --- a/gui/saveload-dialog.h +++ b/gui/saveload-dialog.h @@ -30,6 +30,15 @@ namespace GUI { +class SaveLoadCloudSyncProgressDialog : public Dialog { //protected? + StaticTextWidget *_label; +public: + SaveLoadCloudSyncProgressDialog(); + virtual ~SaveLoadCloudSyncProgressDialog(); + + virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); +}; + #define kSwitchSaveLoadDialog -2 // TODO: We might want to disable the grid based save/load chooser for more @@ -61,6 +70,8 @@ public: virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); virtual void runSaveSync(bool hasSavepathOverride); + + virtual void handleTickle(); #ifndef DISABLE_SAVELOADCHOOSER_GRID virtual SaveLoadChooserType getType() const = 0; @@ -80,6 +91,7 @@ protected: bool _saveDateSupport; bool _playTimeSupport; Common::String _target; + bool _dialogWasShown; #ifndef DISABLE_SAVELOADCHOOSER_GRID ButtonWidget *_listButton; |