Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 133 lines (107 sloc) 3.199 kB
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
1 /* ScummVM - Scumm Interpreter
47280d9 @fingolfin Updated copyright
fingolfin authored
2 * Copyright (C) 2002-2005 The ScummVM project
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 * $Header$
19 */
20
21 #ifndef OPTIONS_DIALOG_H
22 #define OPTIONS_DIALOG_H
23
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
24 #include "gui/dialog.h"
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
25 #include "common/str.h"
26
d4716a1 * Start of generic key configuration support for ScummVM
Lars Persson authored
27 #ifdef SMALL_SCREEN_DEVICE
28 #include "gui/KeysDialog.h"
be6a9e6 Add keys mapping option to the main option dialog for WinCE - useful …
Nicolas Bacca authored
29 #endif
30
22c22d1 @fingolfin added namespace GUI
fingolfin authored
31 namespace GUI {
32
aea451f @fingolfin Reunify DirBrowserDialog and FileBrowserDialog; implemented file brow…
fingolfin authored
33 class BrowserDialog;
4cff7c8 @fingolfin save fullscreen/aspect ratio settings; fix midi driver selection (dri…
fingolfin authored
34 class CheckboxWidget;
f5360cb @fingolfin Hook up the midi driver selection popup; disable GFX popup for now, t…
fingolfin authored
35 class PopUpWidget;
e9ae86b @fingolfin introduced common base class GuiObject for Dialog/Widget -> step towa…
fingolfin authored
36 class SliderWidget;
37 class StaticTextWidget;
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
38
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
39 class OptionsDialog : public Dialog {
0e645f8 @fingolfin renamed namespace ScummVM to Common
fingolfin authored
40 typedef Common::String String;
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
41 public:
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
42 OptionsDialog(const String &domain, int x, int y, int w, int h);
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
43
023d84a @fingolfin added some meat to the global options dialog (no prefs are stored yet…
fingolfin authored
44 void open();
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
45 void close();
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
46 void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
47
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
48 enum {
deb9600 @fingolfin Aaargh, didn't mean to commit this...
fingolfin authored
49 kOKCmd = 'ok '
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
50 };
51
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
52 protected:
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
53 /** Config domain this dialog is used to edit. */
54 String _domain;
6bcfb6e Fixed the SoundFont button's behaviour in the Edit Game dialog.
Torbjörn Andersson authored
55
56 ButtonWidget *_soundFontButton;
13dc149 Applied patch #1175374 ("FluidSynth MIDI driver"), with a few documen…
Torbjörn Andersson authored
57 StaticTextWidget *_soundFont;
58
4aac781 Some more scaling work. Parts of the options dialogs scale themselves…
Torbjörn Andersson authored
59 int addGraphicControls(GuiObject *boss, int yoffset, WidgetSize ws);
60 int addAudioControls(GuiObject *boss, int yoffset, WidgetSize ws);
61 int addMIDIControls(GuiObject *boss, int yoffset, WidgetSize ws);
62 int addVolumeControls(GuiObject *boss, int yoffset, WidgetSize ws);
14b7d02 @aquadran cleanup whitespaces
aquadran authored
63
a93c9f4 @fingolfin added checkboxes to the 'Edit Game...' dialog which let the user dete…
fingolfin authored
64 void setGraphicSettingsState(bool enabled);
65 void setAudioSettingsState(bool enabled);
bdbd564 @sev- Patches #1164217 "Updated GS Support + Percussion Remapping Patch" and
sev- authored
66 void setMIDISettingsState(bool enabled);
a93c9f4 @fingolfin added checkboxes to the 'Edit Game...' dialog which let the user dete…
fingolfin authored
67 void setVolumeSettingsState(bool enabled);
023d84a @fingolfin added some meat to the global options dialog (no prefs are stored yet…
fingolfin authored
68
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
69 private:
70 //
71 // Graphics controls
72 //
a93c9f4 @fingolfin added checkboxes to the 'Edit Game...' dialog which let the user dete…
fingolfin authored
73 bool _enableGraphicSettings;
4cff7c8 @fingolfin save fullscreen/aspect ratio settings; fix midi driver selection (dri…
fingolfin authored
74 PopUpWidget *_gfxPopUp;
75 CheckboxWidget *_fullscreenCheckbox;
76 CheckboxWidget *_aspectCheckbox;
27469a1 @sev- Patch #1121337 (CGA rendering in early LEC titles).
sev- authored
77 PopUpWidget *_renderModePopUp;
f5360cb @fingolfin Hook up the midi driver selection popup; disable GFX popup for now, t…
fingolfin authored
78
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
79 //
63afd5f @Enderboi Launcher subtitles checkbox (is Sound the right place for this? I dun…
Enderboi authored
80 // Audio controls
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
81 //
a93c9f4 @fingolfin added checkboxes to the 'Edit Game...' dialog which let the user dete…
fingolfin authored
82 bool _enableAudioSettings;
4cff7c8 @fingolfin save fullscreen/aspect ratio settings; fix midi driver selection (dri…
fingolfin authored
83 PopUpWidget *_midiPopUp;
bdbd564 @sev- Patches #1164217 "Updated GS Support + Percussion Remapping Patch" and
sev- authored
84 CheckboxWidget *_subCheckbox;
85
86 //
87 // MIDI controls
88 //
89 bool _enableMIDISettings;
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
90 CheckboxWidget *_multiMidiCheckbox;
91 CheckboxWidget *_mt32Checkbox;
bdbd564 @sev- Patches #1164217 "Updated GS Support + Percussion Remapping Patch" and
sev- authored
92 CheckboxWidget *_enableGSCheckbox;
023d84a @fingolfin added some meat to the global options dialog (no prefs are stored yet…
fingolfin authored
93
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
94 //
95 // Volume controls
96 //
a93c9f4 @fingolfin added checkboxes to the 'Edit Game...' dialog which let the user dete…
fingolfin authored
97 bool _enableVolumeSettings;
98
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
99 SliderWidget *_musicVolumeSlider;
023d84a @fingolfin added some meat to the global options dialog (no prefs are stored yet…
fingolfin authored
100 StaticTextWidget *_musicVolumeLabel;
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
101
102 SliderWidget *_sfxVolumeSlider;
023d84a @fingolfin added some meat to the global options dialog (no prefs are stored yet…
fingolfin authored
103 StaticTextWidget *_sfxVolumeLabel;
f141ad4 @aquadran added voice group volume to scumm engine for imuse digital and implem…
aquadran authored
104
349f63e Changed "voice_volume" to "speech_volume" for consistency with the Br…
Torbjörn Andersson authored
105 SliderWidget *_speechVolumeSlider;
106 StaticTextWidget *_speechVolumeLabel;
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
107 };
4cff7c8 @fingolfin save fullscreen/aspect ratio settings; fix midi driver selection (dri…
fingolfin authored
108
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
109
110 class GlobalOptionsDialog : public OptionsDialog {
111 typedef Common::String String;
112 public:
1f3ce23 @fingolfin GameDetector isn't actually used here
fingolfin authored
113 GlobalOptionsDialog();
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
114 ~GlobalOptionsDialog();
115
deb9600 @fingolfin Aaargh, didn't mean to commit this...
fingolfin authored
116 void open();
117 void close();
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
118 void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
119
120 protected:
aea451f @fingolfin Reunify DirBrowserDialog and FileBrowserDialog; implemented file brow…
fingolfin authored
121 BrowserDialog *_dirBrowser;
122 BrowserDialog *_fileBrowser;
d4716a1 * Start of generic key configuration support for ScummVM
Lars Persson authored
123 #ifdef SMALL_SCREEN_DEVICE
124 KeysDialog *_keysDialog;
be6a9e6 Add keys mapping option to the main option dialog for WinCE - useful …
Nicolas Bacca authored
125 #endif
297ddb3 @fingolfin refactored common code into a new class OptionsDialog; various fixes …
fingolfin authored
126 StaticTextWidget *_savePath;
71a2c36 @sev- Add global extrapath to GUI and to default directories list.
sev- authored
127 StaticTextWidget *_extraPath;
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
128 };
129
22c22d1 @fingolfin added namespace GUI
fingolfin authored
130 } // End of namespace GUI
131
2af8f20 @fingolfin added a dummy global options dialog; PopUpWidget tweaks
fingolfin authored
132 #endif
Something went wrong with that request. Please try again.