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

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Dec 15 09:20:19 CET 2009


Revision: 46382
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46382&view=rev
Author:   fingolfin
Date:     2009-12-15 08:20:19 +0000 (Tue, 15 Dec 2009)

Log Message:
-----------
GUI: Re-add ellipsis to various button labels

Modified Paths:
--------------
    scummvm/trunk/gui/launcher.cpp

Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2009-12-15 08:19:59 UTC (rev 46381)
+++ scummvm/trunk/gui/launcher.cpp	2009-12-15 08:20:19 UTC (rev 46382)
@@ -497,19 +497,19 @@
 #endif
 
 	new ButtonWidget(this, "Launcher.QuitButton", "Quit", kQuitCmd, 'Q');
-	new ButtonWidget(this, "Launcher.AboutButton", "About", kAboutCmd, 'B');
-	new ButtonWidget(this, "Launcher.OptionsButton", "Options", kOptionsCmd, 'O');
+	new ButtonWidget(this, "Launcher.AboutButton", "About...", kAboutCmd, 'B');
+	new ButtonWidget(this, "Launcher.OptionsButton", "Options...", kOptionsCmd, 'O');
 	_startButton =
 			new ButtonWidget(this, "Launcher.StartButton", "Start", kStartCmd, 'S');
 
 	_loadButton =
-		new ButtonWidget(this, "Launcher.LoadGameButton", "Load", kLoadGameCmd, 'L');
+		new ButtonWidget(this, "Launcher.LoadGameButton", "Load...", kLoadGameCmd, 'L');
 
 	// Above the lowest button rows: two more buttons (directly below the list box)
 	_addButton =
-		new ButtonWidget(this, "Launcher.AddGameButton", "Add Game", kAddGameCmd, 'A');
+		new ButtonWidget(this, "Launcher.AddGameButton", "Add Game...", kAddGameCmd, 'A');
 	_editButton =
-		new ButtonWidget(this, "Launcher.EditGameButton", "Edit Game", kEditGameCmd, 'E');
+		new ButtonWidget(this, "Launcher.EditGameButton", "Edit Game...", kEditGameCmd, 'E');
 	_removeButton =
 		new ButtonWidget(this, "Launcher.RemoveGameButton", "Remove Game", kRemoveGameCmd, 'R');
 
@@ -649,7 +649,7 @@
 
 void LauncherDialog::addGame() {
 	int modifiers = g_system->getEventManager()->getModifierState();
-	bool massAdd = (modifiers & Common::KBD_SHIFT) != 0;
+	const bool massAdd = (modifiers & Common::KBD_SHIFT) != 0;
 
 	if (massAdd) {
 		MessageDialog alert("Do you really want to run the mass game detector? "
@@ -979,9 +979,10 @@
 
 	// Update the label of the "Add" button depending on whether shift is pressed or not
 	int modifiers = g_system->getEventManager()->getModifierState();
-	const char *newAddButtonLabel = ((modifiers & Common::KBD_SHIFT) != 0)
-		? "Mass Add"
-		: "Add Game";
+	const bool massAdd = (modifiers & Common::KBD_SHIFT) != 0;
+	const char *newAddButtonLabel = massAdd
+		? "Mass Add..."
+		: "Add Game...";
 
 	if (_addButton->getLabel() != newAddButtonLabel)
 		_addButton->setLabel(newAddButtonLabel);


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