aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-12 12:07:46 +0000
committerMax Horn2002-12-12 12:07:46 +0000
commit57d8bb978f8808b5884a717a4d032b68eab4db76 (patch)
treeb3072c9b4be4e06123085ebc16f28acd11a81a45 /gui/launcher.cpp
parent6338b9663920ee553416f335f4d6d61ee6230d14 (diff)
downloadscummvm-rg350-57d8bb978f8808b5884a717a4d032b68eab4db76.tar.gz
scummvm-rg350-57d8bb978f8808b5884a717a4d032b68eab4db76.tar.bz2
scummvm-rg350-57d8bb978f8808b5884a717a4d032b68eab4db76.zip
added PopUpWidget; hacked it into the edit game dialog just to show how to use it; note: this is NOT finished by any means, the look will change, the code will change, this is just an early preview :-)
svn-id: r5914
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 0bfae7ca35..5d77021b6e 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -26,6 +26,7 @@
#include "message.h"
#include "EditTextWidget.h"
#include "ListWidget.h"
+#include "PopUpWidget.h"
#include "backends/fs/fs.h"
#include "common/config-file.h"
@@ -86,7 +87,8 @@ protected:
};
EditGameDialog::EditGameDialog(NewGui *gui, Config &config, const String &domain)
- : Dialog(gui, 8, 50, 320-2*8, 200-2*40), _config(config), _domain(domain)
+// : Dialog(gui, 8, 50, 320-2*8, 200-2*40), _config(config), _domain(domain)
+ : Dialog(gui, 8, 30, 320-2*8, 200-2*30), _config(config), _domain(domain)
{
// Determine the description string
String gameid(_config.get("gameid", _domain));
@@ -130,7 +132,15 @@ EditGameDialog::EditGameDialog(NewGui *gui, Config &config, const String &domain
// Load in settings for the checkboxs
_fullscreenCheckbox->setState(_config.getBool("fullscreen", false, _domain));
_AmigaPalCheckbox->setState(_config.getBool("amiga", false, _domain));
-
+
+ // FIXME HACK - add a dummy popup widget here, for debugging.
+ // Note: this isn't useful at all right now...
+ PopUpWidget *foo;
+ foo = new PopUpWidget(this, 15, 102, 200, kLineHeight);
+ foo->appendEntry("Foo");
+ foo->appendEntry("Bar");
+ foo->appendEntry("Baz", 'QUUX');
+ foo->setSelected(0);
}
void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data)