aboutsummaryrefslogtreecommitdiff
path: root/gui/options.h
diff options
context:
space:
mode:
authorAlexander Tkachev2019-07-19 17:04:44 +0700
committerMatan Bareket2019-07-30 14:51:41 -0400
commit3df126853aa661f760792d478f80c2e2427b298c (patch)
tree2806a9bde1eda195a1b3af727e01f90552a4c415 /gui/options.h
parent99c2418d1a270c4496b21d6d6c8035b6ef73e8a1 (diff)
downloadscummvm-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.h34
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
};