[Scummvm-cvs-logs] SF.net SVN: scummvm: [23034] scummvm/trunk/gui/launcher.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Jun 11 23:26:51 CEST 2006


Revision: 23034
Author:   eriktorbjorn
Date:     2006-06-11 14:26:43 -0700 (Sun, 11 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23034&view=rev

Log Message:
-----------
Re-calculate the label width for EditGameDialog's language and platform pop-ups
when the screen changes.

Modified Paths:
--------------
    scummvm/trunk/gui/launcher.cpp
Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2006-06-11 20:51:14 UTC (rev 23033)
+++ scummvm/trunk/gui/launcher.cpp	2006-06-11 21:26:43 UTC (rev 23034)
@@ -117,6 +117,8 @@
 public:
 	EditGameDialog(const String &domain, const String &desc);
 
+	virtual void handleScreenChanged();	
+
 	void open();
 	void close();
 	virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
@@ -260,6 +262,17 @@
 	new ButtonWidget(this, "gameoptions_ok", "OK", kOKCmd, 0);
 }
 
+void EditGameDialog::handleScreenChanged() {
+	OptionsDialog::handleScreenChanged();
+
+	int labelWidth = g_gui.evaluator()->getVar("gameOptionsLabelWidth");
+
+	if (_langPopUp)
+		_langPopUp->changeLabelWidth(labelWidth);
+	if (_platformPopUp)
+		_platformPopUp->changeLabelWidth(labelWidth);
+}
+
 void EditGameDialog::open() {
 	OptionsDialog::open();
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list