diff options
author | Alexander Tkachev | 2016-06-09 18:49:17 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | e6242b0be8fc9f9abc4daf87f80675cca46df4d9 (patch) | |
tree | 9f775a11ed08c242d926c1135079e8f4ebcc05b9 /gui/options.h | |
parent | beb168a3a5bac602a9bf1455e7fe93dda0b13a1c (diff) | |
download | scummvm-rg350-e6242b0be8fc9f9abc4daf87f80675cca46df4d9.tar.gz scummvm-rg350-e6242b0be8fc9f9abc4daf87f80675cca46df4d9.tar.bz2 scummvm-rg350-e6242b0be8fc9f9abc4daf87f80675cca46df4d9.zip |
GUI: Add Refresh button in Options Cloud tab
Commit changes CloudManager and Storages so they would automatically
refresh the fields when the could.
Diffstat (limited to 'gui/options.h')
-rw-r--r-- | gui/options.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/options.h b/gui/options.h index 4addf717b8..1454ddbfc8 100644 --- a/gui/options.h +++ b/gui/options.h @@ -37,6 +37,10 @@ #include "gui/fluidsynth-dialog.h" #endif +#ifdef USE_CLOUD +#include "backends/cloud/storage.h" +#endif + namespace GUI { class CheckboxWidget; @@ -206,6 +210,7 @@ public: void open(); void close(); void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); + void handleTickle(); virtual void reflowLayout(); @@ -256,8 +261,12 @@ protected: StaticTextWidget *_storageLastSyncDesc; StaticTextWidget *_storageLastSync; ButtonWidget *_storageConnectButton; + ButtonWidget *_storageRefreshButton; + bool _redrawCloudTab; void setupCloudTab(); + void storageInfoCallback(Cloud::Storage::StorageInfoResponse response); + void storageListDirectoryCallback(Cloud::Storage::ListDirectoryResponse response); #endif }; |