[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.68,1.69 options.cpp,1.34,1.35
Max Horn
fingolfin at users.sourceforge.net
Tue Nov 4 13:18:13 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common scaler.h,1.19,1.20
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui EditTextWidget.cpp,1.18,1.19 launcher.cpp,1.69,1.70 newgui.cpp,1.66,1.67 newgui.h,1.31,1.32 options.cpp,1.35,1.36
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv22045
Modified Files:
launcher.cpp options.cpp
Log Message:
Added some more dummy checkboxes, functionality to be added
Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- launcher.cpp 3 Nov 2003 23:42:53 -0000 1.68
+++ launcher.cpp 4 Nov 2003 21:17:33 -0000 1.69
@@ -110,6 +110,9 @@
// GUI: Add tab widget
TabWidget *tab = new TabWidget(this, 0, vBorder, _w, _h - 24 - 2*vBorder);
+ //
+ // 1) The game tab
+ //
tab->addTab("Game");
yoffset = vBorder;
@@ -130,7 +133,9 @@
// TODO: Platform and language dropdowns (?)
- // GUI: Add Graphics tab
+ //
+ // 2) The graphics tab
+ //
tab->addTab("Graphics");
yoffset = vBorder;
@@ -148,6 +153,9 @@
gfxPopUp->appendEntry("Super2xSAI");
gfxPopUp->appendEntry("SuperEagle");
gfxPopUp->appendEntry("AdvMAME2x");
+ gfxPopUp->appendEntry("AdvMAME3x");
+ gfxPopUp->appendEntry("hq2x");
+ gfxPopUp->appendEntry("hq3x");
gfxPopUp->appendEntry("TV2x");
gfxPopUp->appendEntry("DotMatrix");
gfxPopUp->setSelected(0);
@@ -156,8 +164,19 @@
gfxPopUp->setEnabled(false);
// GUI: Full screen checkbox
- _fullscreenCheckbox = new CheckboxWidget(tab, 15, yoffset, 200, 16, "Use Fullscreen Mode", 0, 'F');
+ _fullscreenCheckbox = new CheckboxWidget(tab, 15, yoffset, 200, 16, "Fullscreen mode", 0, 'F');
_fullscreenCheckbox->setState(ConfMan.getBool("fullscreen", _domain));
+
+
+ //
+ // 3) The audio tab
+ //
+ tab->addTab("Audio");
+ yoffset = vBorder;
+
+ // TODO: Volume/driver/midi/... settings
+
+
// Activate the first tab
tab->setActiveTab(0);
Index: options.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/options.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- options.cpp 3 Nov 2003 05:27:53 -0000 1.34
+++ options.cpp 4 Nov 2003 21:17:33 -0000 1.35
@@ -65,7 +65,9 @@
GlobalOptionsDialog::GlobalOptionsDialog(GameDetector &detector)
: Dialog(10, 20, 320 - 2 * 10, 200 - 2 * 20) {
+ CheckboxWidget *check;
const int vBorder = 5;
+ int yoffset;
// The tab widget
TabWidget *tab = new TabWidget(this, 0, vBorder, _w, _h - 24 - 2*vBorder);
@@ -74,12 +76,14 @@
// 1) The graphics tab
//
tab->addTab("Graphics");
+ yoffset = vBorder;
// The GFX mode popup & a label
// TODO - add an API to query the list of available GFX modes, and to get/set the mode
//new StaticTextWidget(tab, 5, vBorder+2, 100, kLineHeight, "Graphics mode: ", kTextAlignRight);
PopUpWidget *gfxPopUp;
- gfxPopUp = new PopUpWidget(tab, 5, vBorder, 280, kLineHeight, "Graphics mode: ", 100);
+ gfxPopUp = new PopUpWidget(tab, 5, yoffset, 280, kLineHeight, "Graphics mode: ", 100);
+ yoffset += 16;
// Ender: We don't really want a <default> here at all, we want to setSelected to the current global
gfxPopUp->appendEntry("<default>");
@@ -91,6 +95,9 @@
gfxPopUp->appendEntry("Super2xSAI");
gfxPopUp->appendEntry("SuperEagle");
gfxPopUp->appendEntry("AdvMAME2x");
+ gfxPopUp->appendEntry("AdvMAME3x");
+ gfxPopUp->appendEntry("hq2x");
+ gfxPopUp->appendEntry("hq3x");
gfxPopUp->appendEntry("TV2x");
gfxPopUp->appendEntry("DotMatrix");
gfxPopUp->setSelected(0);
@@ -98,18 +105,29 @@
// FIXME - disable GFX popup for now
gfxPopUp->setEnabled(false);
+#if 1
// TODO: Aspect ratio setting
// TODO: Fullscreen setting
+ check = new CheckboxWidget(tab, 10, yoffset, 280, 16, "Fullscreen mode");
+ check->setState(ConfMan.getBool("fullscreen"));
+ yoffset += 16;
+
+ check = new CheckboxWidget(tab, 10, yoffset, 280, 16, "Aspect ratio correction");
+ check->setState(ConfMan.getBool("aspect_ratio"));
+ yoffset += 16;
+#endif
//
// 2) The audio tab
//
tab->addTab("Audio");
+ yoffset = vBorder;
// The MIDI mode popup & a label
//new StaticTextWidget(tab, 5, vBorder+2, 100, kLineHeight, "Music driver: ", kTextAlignRight);
- _midiPopUp = new PopUpWidget(tab, 5, vBorder, 280, kLineHeight, "Music driver: ", 100);
+ _midiPopUp = new PopUpWidget(tab, 5, yoffset, 280, kLineHeight, "Music driver: ", 100);
+ yoffset += 16;
// Populate it
const MidiDriverDescription *md = getAvailableMidiDrivers();
@@ -125,8 +143,6 @@
_midiPopUp->setSelected(midiSelected);
// Volume controllers
- int yoffset = vBorder + 16;
-
_masterVolumeSlider = new SliderWidget(tab, 5, yoffset, 185, 12, "Master volume: ", 100, kMasterVolumeChanged);
_masterVolumeLabel = new StaticTextWidget(tab, 200, yoffset+2, 24, 16, "100%", kTextAlignLeft);
_masterVolumeSlider->setMinValue(0); _masterVolumeSlider->setMaxValue(255);
@@ -145,21 +161,31 @@
_sfxVolumeLabel->setFlags(WIDGET_CLEARBG);
yoffset += 16;
+#if 1
// TODO: cd drive setting
// TODO: multi midi setting
// TODO: native mt32 setting
+ check = new CheckboxWidget(tab, 10, yoffset, 280, 16, "Mixed Adlib/MIDI mode");
+ check->setState(ConfMan.getBool("multi_midi"));
+ yoffset += 16;
+
+ check = new CheckboxWidget(tab, 10, yoffset, 280, 16, "True Roland MT-32 (disable GM emulation)");
+ check->setState(ConfMan.getBool("native_mt32"));
+ yoffset += 16;
+#endif
//
// 3) The miscellaneous tab
//
tab->addTab("Misc");
+ yoffset = vBorder;
#if !( defined(__DC__) || defined(__GP32__) )
// Save game path
- new StaticTextWidget(tab, 5, vBorder+2, 100, kLineHeight, "Savegame path: ", kTextAlignRight);
- _savePath = new StaticTextWidget(tab, 105, vBorder+2, 180, kLineHeight, "/foo/bar", kTextAlignLeft);
- new ButtonWidget(tab, 105, vBorder+14, 64, 16, "Choose...", kChooseSaveDirCmd, 0);
+ new StaticTextWidget(tab, 5, yoffset+2, 100, kLineHeight, "Savegame path: ", kTextAlignRight);
+ _savePath = new StaticTextWidget(tab, 105, yoffset+2, 180, kLineHeight, "/foo/bar", kTextAlignLeft);
+ new ButtonWidget(tab, 105, yoffset+14, 64, 16, "Choose...", kChooseSaveDirCmd, 0);
// TODO: set _savePath to the current save path
Common::String dir(ConfMan.get("savepath"));
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common scaler.h,1.19,1.20
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui EditTextWidget.cpp,1.18,1.19 launcher.cpp,1.69,1.70 newgui.cpp,1.66,1.67 newgui.h,1.31,1.32 options.cpp,1.35,1.36
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list