aboutsummaryrefslogtreecommitdiff
path: root/gui/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options.h')
-rw-r--r--gui/options.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/gui/options.h b/gui/options.h
index ffa355cc11..a6eebe5748 100644
--- a/gui/options.h
+++ b/gui/options.h
@@ -67,6 +67,7 @@ public:
void init();
void open();
+ virtual void apply();
void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
const Common::String& getDomain() const { return _domain; }
@@ -80,6 +81,10 @@ protected:
ButtonWidget *_soundFontButton;
StaticTextWidget *_soundFont;
ButtonWidget *_soundFontClearButton;
+
+ virtual void build();
+ virtual void clean();
+ void rebuild();
void addGraphicControls(GuiObject *boss, const Common::String &prefix);
void addAudioControls(GuiObject *boss, const Common::String &prefix);
@@ -194,11 +199,6 @@ protected:
Common::String _guioptionsString;
//
- //Theme Options
- //
- Common::String _oldTheme;
-
- //
// Engine-specific controls
//
CheckboxWidgetList _engineCheckboxes;
@@ -210,7 +210,7 @@ public:
GlobalOptionsDialog(LauncherDialog *launcher);
~GlobalOptionsDialog();
- void open();
+ virtual void apply();
void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
void handleTickle();
@@ -218,6 +218,10 @@ public:
virtual void reflowLayout();
protected:
+ virtual void build();
+ virtual void clean();
+
+ Common::String _newTheme;
LauncherDialog *_launcher;
#ifdef GUI_ENABLE_KEYSDIALOG
KeysDialog *_keysDialog;