diff options
author | Alexander Tkachev | 2019-07-19 17:04:44 +0700 |
---|---|---|
committer | Matan Bareket | 2019-07-30 14:51:41 -0400 |
commit | 3df126853aa661f760792d478f80c2e2427b298c (patch) | |
tree | 2806a9bde1eda195a1b3af727e01f90552a4c415 /gui/options.h | |
parent | 99c2418d1a270c4496b21d6d6c8035b6ef73e8a1 (diff) | |
download | scummvm-rg350-3df126853aa661f760792d478f80c2e2427b298c.tar.gz scummvm-rg350-3df126853aa661f760792d478f80c2e2427b298c.tar.bz2 scummvm-rg350-3df126853aa661f760792d478f80c2e2427b298c.zip |
GUI: Separate Cloud tab in two
All local webserver-related settings are now shown in a separate, "Wi-Fi
Sharing" tab (shown if built with USE_SDL_NET). Cloud tab is only shown
if actual cloud storages are built (USE_LIBCURL).
Diffstat (limited to 'gui/options.h')
-rw-r--r-- | gui/options.h | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/gui/options.h b/gui/options.h index 13983c1657..c10dcca77c 100644 --- a/gui/options.h +++ b/gui/options.h @@ -291,12 +291,13 @@ protected: #endif #ifdef USE_CLOUD +#ifdef USE_LIBCURL // // Cloud controls // uint32 _selectedStorageIndex; StaticTextWidget *_storagePopUpDesc; - PopUpWidget *_storagePopUp; + PopUpWidget *_storagePopUp; StaticTextWidget *_storageUsernameDesc; StaticTextWidget *_storageUsername; StaticTextWidget *_storageUsedSpaceDesc; @@ -315,32 +316,39 @@ protected: StaticTextWidget *_storageWizardOpenLinkHint; StaticTextWidget *_storageWizardLink; StaticTextWidget *_storageWizardCodeHint; - EditTextWidget *_storageWizardCodeBox; + EditTextWidget *_storageWizardCodeBox; ButtonWidget *_storageWizardPasteButton; ButtonWidget *_storageWizardConnectButton; StaticTextWidget *_storageWizardConnectionStatusHint; + bool _redrawCloudTab; + + void addCloudControls(GuiObject *boss, const Common::String &prefix, const char *context = nullptr); + void setupCloudTab(); + void shiftWidget(Widget *widget, const char *widgetName, int32 xOffset, int32 yOffset); + void storageConnectionCallback(Networking::ErrorResponse response); + void storageSavesSyncedCallback(Cloud::Storage::BoolResponse response); + void storageErrorCallback(Networking::ErrorResponse response); +#endif // USE_LIBCURL + +#ifdef USE_SDL_NET + // + // Wi-Fi Sharing controls + // ButtonWidget *_runServerButton; StaticTextWidget *_serverInfoLabel; ButtonWidget *_rootPathButton; StaticTextWidget *_rootPath; ButtonWidget *_rootPathClearButton; StaticTextWidget *_serverPortDesc; - EditTextWidget *_serverPort; + EditTextWidget *_serverPort; ButtonWidget *_serverPortClearButton; - bool _redrawCloudTab; -#ifdef USE_SDL_NET bool _serverWasRunning; -#endif - void shiftWidget(Widget *widget, const char *widgetName, int32 xOffset, int32 yOffset); - void setupCloudTab(); + void addWiFiSharingControls(GuiObject *boss, const Common::String &prefix, const char *context = nullptr); + void reflowWiFiSharingTabLayout(); +#endif // USE_SDL_NET -#ifdef USE_LIBCURL - void storageConnectionCallback(Networking::ErrorResponse response); - void storageSavesSyncedCallback(Cloud::Storage::BoolResponse response); - void storageErrorCallback(Networking::ErrorResponse response); -#endif #endif // USE_CLOUD }; |