aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2003-11-03 23:42:53 +0000
committerMax Horn2003-11-03 23:42:53 +0000
commit76e4cbe2cb298f5b5a87ffb0a8864ae3b517882d (patch)
tree021b1c5c71fa6a8ca688101c6aa37a2df7db7914 /gui
parent93037c3fed09da2318469f6256a9e7d206285254 (diff)
downloadscummvm-rg350-76e4cbe2cb298f5b5a87ffb0a8864ae3b517882d.tar.gz
scummvm-rg350-76e4cbe2cb298f5b5a87ffb0a8864ae3b517882d.tar.bz2
scummvm-rg350-76e4cbe2cb298f5b5a87ffb0a8864ae3b517882d.zip
fix item positions
svn-id: r11122
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp72
1 files changed, 40 insertions, 32 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 6989c5e718..7ab0fa416a 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -94,7 +94,9 @@ protected:
EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
: Dialog(8, 50, 320 - 2 * 8, 200 - 2 * 40),
_domain(domain) {
- const int vBorder = 5; // Tab border
+
+ const int vBorder = 5; // Tab border
+ int yoffset;
// GAME: Path to game data (r/o)
String path(ConfMan.get("path", _domain));
@@ -105,54 +107,60 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
description = target.description;
}
- // GUI: Add tab widget
- TabWidget *tab = new TabWidget(this, 0, vBorder, _w, _h - 24 - 2*vBorder);
+ // GUI: Add tab widget
+ TabWidget *tab = new TabWidget(this, 0, vBorder, _w, _h - 24 - 2*vBorder);
+
tab->addTab("Game");
+ yoffset = vBorder;
// GUI: Label & edit widget for the game ID
- new StaticTextWidget(tab, 10, 10, 40, kLineHeight, "ID: ", kTextAlignRight);
- _domainWidget = new EditTextWidget(tab, 50, 10, _w - 50 - 10, kLineHeight, _domain);
+ new StaticTextWidget(tab, 10, yoffset+2, 40, kLineHeight, "ID: ", kTextAlignRight);
+ _domainWidget = new EditTextWidget(tab, 50, yoffset, _w - 50 - 10, kLineHeight, _domain);
+ yoffset += 16;
// GUI: Label & edit widget for the description
- new StaticTextWidget(tab, 10, 26, 40, kLineHeight, "Name: ", kTextAlignRight);
- _descriptionWidget = new EditTextWidget(tab, 50, 26, _w - 50 - 10, kLineHeight, description);
+ new StaticTextWidget(tab, 10, yoffset+2, 40, kLineHeight, "Name: ", kTextAlignRight);
+ _descriptionWidget = new EditTextWidget(tab, 50, yoffset, _w - 50 - 10, kLineHeight, description);
+ yoffset += 16;
// GUI: Label for the game path
// TODO: Allow editing, and clip to the RIGHT on long paths (to keep meaningful portions)
- new StaticTextWidget(tab, 10, 42, 40, kLineHeight, "Path: ", kTextAlignRight);
- new StaticTextWidget(tab, 50, 42, _w - 50 - 10, kLineHeight, path, kTextAlignLeft);
+ new StaticTextWidget(tab, 10, yoffset, 40, kLineHeight, "Path: ", kTextAlignRight);
+ new StaticTextWidget(tab, 50, yoffset, _w - 50 - 10, kLineHeight, path, kTextAlignLeft);
// TODO: Platform and language dropdowns (?)
// GUI: Add Graphics tab
tab->addTab("Graphics");
-
- // The GFX mode popup & a label
- // TODO - add an API to query the list of available GFX modes, and to get/set the mode
- PopUpWidget *gfxPopUp;
- gfxPopUp = new PopUpWidget(tab, 5, vBorder, 280, kLineHeight, "Graphics mode: ", 100);
- gfxPopUp->appendEntry("<global default>");
- gfxPopUp->appendEntry("");
- gfxPopUp->appendEntry("Normal (no scaling)");
- gfxPopUp->appendEntry("2x");
- gfxPopUp->appendEntry("3x");
- gfxPopUp->appendEntry("2xSAI");
- gfxPopUp->appendEntry("Super2xSAI");
- gfxPopUp->appendEntry("SuperEagle");
- gfxPopUp->appendEntry("AdvMAME2x");
- gfxPopUp->appendEntry("TV2x");
- gfxPopUp->appendEntry("DotMatrix");
- gfxPopUp->setSelected(0);
-
- // FIXME - disable GFX popup for now
- gfxPopUp->setEnabled(false);
+ 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
+ PopUpWidget *gfxPopUp;
+ gfxPopUp = new PopUpWidget(tab, 5, yoffset, 280, kLineHeight, "Graphics mode: ", 100);
+ yoffset += 16;
+ gfxPopUp->appendEntry("<global default>");
+ gfxPopUp->appendEntry("");
+ gfxPopUp->appendEntry("Normal (no scaling)");
+ gfxPopUp->appendEntry("2x");
+ gfxPopUp->appendEntry("3x");
+ gfxPopUp->appendEntry("2xSAI");
+ gfxPopUp->appendEntry("Super2xSAI");
+ gfxPopUp->appendEntry("SuperEagle");
+ gfxPopUp->appendEntry("AdvMAME2x");
+ gfxPopUp->appendEntry("TV2x");
+ gfxPopUp->appendEntry("DotMatrix");
+ gfxPopUp->setSelected(0);
+
+ // FIXME - disable GFX popup for now
+ gfxPopUp->setEnabled(false);
// GUI: Full screen checkbox
- _fullscreenCheckbox = new CheckboxWidget(tab, 15, 62, 200, 16, "Use Fullscreen Mode", 0, 'F');
+ _fullscreenCheckbox = new CheckboxWidget(tab, 15, yoffset, 200, 16, "Use Fullscreen Mode", 0, 'F');
_fullscreenCheckbox->setState(ConfMan.getBool("fullscreen", _domain));
- // Activate the first tab
- tab->setActiveTab(0);
+ // Activate the first tab
+ tab->setActiveTab(0);
// GUI: Add OK & Cancel buttons
addButton(_w - 2 * (kButtonWidth + 10), _h - 24, "Cancel", kCloseCmd, 0);