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;
179 bool _enableAudioSettings;
193 bool _enableMIDISettings;
202 bool _enableMT32Settings;
209 int getSubtitleMode(
bool subtitles,
bool speech_mute);
210 bool _enableSubtitleSettings;
211 bool _enableSubtitleToggle;
217 static const char *_subModeDesc[];
218 static const char *_lowresSubModeDesc[];
226 void updateMusicVolume(
const int newValue)
const;
227 void updateSfxVolume(
const int newValue)
const;
228 void updateSpeechVolume(
const int newValue)
const;
229 bool _enableVolumeSettings;
264 void apply()
override;
265 void close()
override;
266 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
267 void handleTickle()
override;
269 void reflowLayout()
override;
272 void build()
override;
273 void clean()
override;
277 #ifdef USE_FLUIDSYNTH 295 #ifdef DYNAMIC_MODULES 338 bool updateAutosavePeriod(
int newValue);
346 uint32 _selectedStorageIndex;
364 bool _connectingStorage;
367 bool _redrawCloudTab;
370 void setupCloudTab();
371 void shiftWidget(
Widget *widget,
const char *widgetName, int32 xOffset, int32 yOffset);
375 #endif // USE_LIBCURL 392 bool _serverWasRunning;
395 void reflowNetworkTabLayout();
396 #endif // USE_SDL_NET 409 bool _enableDiscordRpc;
Definition: fluidsynth-dialog.h:36
Definition: launcher.h:107
Definition: edittext.h:32
MusicType
Definition: mididrv.h:44
Definition: options.h:259
Definition: algorithm.h:29
Common::String _domain
Definition: options.h:82