diff options
author | Max Horn | 2009-01-18 14:42:26 +0000 |
---|---|---|
committer | Max Horn | 2009-01-18 14:42:26 +0000 |
commit | 5e1cf1e166099c4beb3f5d19729a17558e748f7b (patch) | |
tree | 7555a55aa74fc6f6a1c0aea5d9a9bcc707258f73 /gui/launcher.cpp | |
parent | 964a451e42568f014124c2899efbb81d9faee018 (diff) | |
download | scummvm-rg350-5e1cf1e166099c4beb3f5d19729a17558e748f7b.tar.gz scummvm-rg350-5e1cf1e166099c4beb3f5d19729a17558e748f7b.tar.bz2 scummvm-rg350-5e1cf1e166099c4beb3f5d19729a17558e748f7b.zip |
GUI: Renamed Globals.TabLabelWidth to Globals.PopUpWidget.labelWidth (that's what it really is); changed PopUpWidget to use that value directly
svn-id: r35895
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r-- | gui/launcher.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 119e3596f8..4d54a60eb0 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -121,8 +121,6 @@ class EditGameDialog : public OptionsDialog { public: EditGameDialog(const String &domain, const String &desc); - virtual void reflowLayout(); - void open(); void close(); virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); @@ -147,8 +145,6 @@ protected: EditGameDialog::EditGameDialog(const String &domain, const String &desc) : OptionsDialog(domain, "GameOptions") { - int labelWidth = g_gui.xmlEval()->getVar("Globals.TabLabelWidth"); - // GAME: Path to game data (r/o), extra data (r/o), and save data (r/w) String gamePath(ConfMan.get("path", _domain)); String extraPath(ConfMan.get("extrapath", _domain)); @@ -177,7 +173,7 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc) _descriptionWidget = new EditTextWidget(tab, "GameOptions_Game.Desc", description); // Language popup - _langPopUp = new PopUpWidget(tab, "GameOptions_Game.Lang", "Language:", labelWidth); + _langPopUp = new PopUpWidget(tab, "GameOptions_Game.Lang", "Language:"); _langPopUp->appendEntry("<default>"); _langPopUp->appendEntry(""); const Common::LanguageDescription *l = Common::g_languages; @@ -186,7 +182,7 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc) } // Platform popup - _platformPopUp = new PopUpWidget(tab, "GameOptions_Game.Platform", "Platform:", labelWidth); + _platformPopUp = new PopUpWidget(tab, "GameOptions_Game.Platform", "Platform:"); _platformPopUp->appendEntry("<default>"); _platformPopUp->appendEntry(""); const Common::PlatformDescription *p = Common::g_platforms; @@ -260,17 +256,6 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc) new ButtonWidget(this, "GameOptions.Ok", "OK", kOKCmd, 0); } -void EditGameDialog::reflowLayout() { - OptionsDialog::reflowLayout(); - - int labelWidth = g_gui.xmlEval()->getVar("Globals.TabLabelWidth"); - - if (_langPopUp) - _langPopUp->changeLabelWidth(labelWidth); - if (_platformPopUp) - _platformPopUp->changeLabelWidth(labelWidth); -} - void EditGameDialog::open() { OptionsDialog::open(); |