aboutsummaryrefslogtreecommitdiff
path: root/gui/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options.h')
-rw-r--r--gui/options.h56
1 files changed, 53 insertions, 3 deletions
diff --git a/gui/options.h b/gui/options.h
index 1e65bfd134..03dbdac492 100644
--- a/gui/options.h
+++ b/gui/options.h
@@ -29,7 +29,7 @@
#include "common/str.h"
#include "audio/mididrv.h"
-#ifdef SMALL_SCREEN_DEVICE
+#ifdef GUI_ENABLE_KEYSDIALOG
#include "gui/KeysDialog.h"
#endif
@@ -37,9 +37,15 @@
#include "gui/fluidsynth-dialog.h"
#endif
+#ifdef USE_LIBCURL
+#include "backends/cloud/storage.h"
+#endif
+
namespace GUI {
+class LauncherDialog;
class CheckboxWidget;
+class EditTextWidget;
class PopUpWidget;
class SliderWidget;
class StaticTextWidget;
@@ -200,17 +206,19 @@ protected:
class GlobalOptionsDialog : public OptionsDialog {
public:
- GlobalOptionsDialog();
+ GlobalOptionsDialog(LauncherDialog *launcher);
~GlobalOptionsDialog();
void open();
void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
+ void handleTickle();
virtual void reflowLayout();
protected:
-#ifdef SMALL_SCREEN_DEVICE
+ LauncherDialog *_launcher;
+#ifdef GUI_ENABLE_KEYSDIALOG
KeysDialog *_keysDialog;
#endif
#ifdef USE_FLUIDSYNTH
@@ -236,6 +244,48 @@ protected:
PopUpWidget *_autosavePeriodPopUp;
StaticTextWidget *_guiLanguagePopUpDesc;
PopUpWidget *_guiLanguagePopUp;
+
+#ifdef USE_UPDATES
+ StaticTextWidget *_updatesPopUpDesc;
+ PopUpWidget *_updatesPopUp;
+#endif
+
+#ifdef USE_CLOUD
+ //
+ // Cloud controls
+ //
+ uint32 _selectedStorageIndex;
+ StaticTextWidget *_storagePopUpDesc;
+ PopUpWidget *_storagePopUp;
+ StaticTextWidget *_storageUsernameDesc;
+ StaticTextWidget *_storageUsername;
+ StaticTextWidget *_storageUsedSpaceDesc;
+ StaticTextWidget *_storageUsedSpace;
+ StaticTextWidget *_storageLastSyncDesc;
+ StaticTextWidget *_storageLastSync;
+ ButtonWidget *_storageConnectButton;
+ ButtonWidget *_storageRefreshButton;
+ ButtonWidget *_storageDownloadButton;
+ ButtonWidget *_runServerButton;
+ StaticTextWidget *_serverInfoLabel;
+ ButtonWidget *_rootPathButton;
+ StaticTextWidget *_rootPath;
+ ButtonWidget *_rootPathClearButton;
+ StaticTextWidget *_serverPortDesc;
+ EditTextWidget *_serverPort;
+ ButtonWidget *_serverPortClearButton;
+ bool _redrawCloudTab;
+#ifdef USE_SDL_NET
+ bool _serverWasRunning;
+#endif
+
+ void setupCloudTab();
+#endif
+#ifdef USE_LIBCURL
+ void storageInfoCallback(Cloud::Storage::StorageInfoResponse response);
+ void storageListDirectoryCallback(Cloud::Storage::ListDirectoryResponse response);
+ void storageErrorCallback(Networking::ErrorResponse response);
+#endif
};
} // End of namespace GUI