22 #ifndef OPTIONS_DIALOG_H 23 #define OPTIONS_DIALOG_H 25 #include "engines/metaengine.h" 27 #include "gui/dialog.h" 28 #include "common/str.h" 29 #include "audio/mididrv.h" 32 #include "gui/fluidsynth-dialog.h" 36 #include "backends/cloud/storage.h" 50 class StaticTextWidget;
55 class RadiobuttonGroup;
56 class RadiobuttonWidget;
58 class ScrollContainerWidget;
59 class OptionsContainerWidget;
71 void close()
override;
72 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
73 void handleTickle()
override;
78 void reflowLayout()
override;
91 bool testGraphicsSettings();
106 void setGraphicSettingsState(
bool enabled);
107 void setAudioSettingsState(
bool enabled);
108 void setMIDISettingsState(
bool enabled);
109 void setMT32SettingsState(
bool enabled);
110 void setVolumeSettingsState(
bool enabled);
111 void setSubtitleSettingsState(
bool enabled);
113 void enableShaderControls(
bool enabled);
115 virtual void setupGraphicsTab();
116 void updateScaleFactors(uint32 tag);
136 bool _enableControlSettings;
155 bool _enableGraphicSettings;
177 bool _enableAudioSettings;
191 bool _enableMIDISettings;
200 bool _enableMT32Settings;
207 int getSubtitleMode(
bool subtitles,
bool speech_mute);
208 bool _enableSubtitleSettings;
209 bool _enableSubtitleToggle;
215 static const char *_subModeDesc[];
216 static const char *_lowresSubModeDesc[];
224 void updateMusicVolume(
const int newValue)
const;
225 void updateSfxVolume(
const int newValue)
const;
226 void updateSpeechVolume(
const int newValue)
const;
227 bool _enableVolumeSettings;
262 void apply()
override;
263 void close()
override;
264 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
265 void handleTickle()
override;
267 void reflowLayout()
override;
270 void build()
override;
271 void clean()
override;
275 #ifdef USE_FLUIDSYNTH 293 #ifdef DYNAMIC_MODULES 336 bool updateAutosavePeriod(
int newValue);
344 uint32 _selectedStorageIndex;
362 bool _connectingStorage;
365 bool _redrawCloudTab;
368 void setupCloudTab();
369 void shiftWidget(
Widget *widget,
const char *widgetName, int32 xOffset, int32 yOffset);
373 #endif // USE_LIBCURL 390 bool _serverWasRunning;
393 void reflowNetworkTabLayout();
394 #endif // USE_SDL_NET 407 bool _enableDiscordRpc;
Definition: fluidsynth-dialog.h:36
Definition: launcher.h:107
Definition: edittext.h:32
MusicType
Definition: mididrv.h:44
Definition: options.h:257
Definition: algorithm.h:29
Common::String _domain
Definition: options.h:82