aboutsummaryrefslogtreecommitdiff
path: root/gui/options.h
diff options
context:
space:
mode:
authorMax Horn2004-03-15 02:21:04 +0000
committerMax Horn2004-03-15 02:21:04 +0000
commit782dabbcd399b0582df73ff82107ffca70abb0f7 (patch)
treec4752b3709de6bc55349f4d1584be794ad421747 /gui/options.h
parentb389dfa2a328f28f5e90982a7146f7e221b1dba1 (diff)
downloadscummvm-rg350-782dabbcd399b0582df73ff82107ffca70abb0f7.tar.gz
scummvm-rg350-782dabbcd399b0582df73ff82107ffca70abb0f7.tar.bz2
scummvm-rg350-782dabbcd399b0582df73ff82107ffca70abb0f7.zip
...and mor. Next big thing should be to document the overlay stuff, but that'll have to wait till after I slept :-)
svn-id: r13295
Diffstat (limited to 'gui/options.h')
-rw-r--r--gui/options.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/gui/options.h b/gui/options.h
index 9f6c6bf852..0196bad21d 100644
--- a/gui/options.h
+++ b/gui/options.h
@@ -42,15 +42,20 @@ public:
void open();
void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
+ void handleScreenChanged();
enum {
- kOKCmd = 'ok '
+ kApplyCmd = 'aply',
+ kSaveCmd = 'save',
+ kRevertCmd = 'rvrt'
};
protected:
/** Config domain this dialog is used to edit. */
String _domain;
+ const bool _isActiveDomain;
+
int addGraphicControls(GuiObject *boss, int yoffset);
int addMIDIControls(GuiObject *boss, int yoffset);
int addVolumeControls(GuiObject *boss, int yoffset);
@@ -58,6 +63,10 @@ protected:
void setGraphicSettingsState(bool enabled);
void setAudioSettingsState(bool enabled);
void setVolumeSettingsState(bool enabled);
+
+ virtual void applySettings();
+ virtual void loadSettings();
+ virtual void saveSettings();
private:
//
@@ -99,13 +108,15 @@ public:
GlobalOptionsDialog(GameDetector &detector);
~GlobalOptionsDialog();
- void open();
- void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
protected:
BrowserDialog *_browser;
StaticTextWidget *_savePath;
+
+ virtual void applySettings();
+ virtual void loadSettings();
+ virtual void saveSettings();
};
} // End of namespace GUI