[Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.132,1.133

Max Horn fingolfin at users.sourceforge.net
Wed May 11 12:35:25 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2762/scumm

Modified Files:
	dialogs.cpp 
Log Message:
Simple and crude demo of the 'big' buttons -- the infrastructure for this isn't complete, but at least you can see where we are heading...

Index: dialogs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- dialogs.cpp	11 May 2005 18:14:22 -0000	1.132
+++ dialogs.cpp	11 May 2005 19:32:18 -0000	1.133
@@ -50,6 +50,8 @@
 using GUI::CommandSender;
 using GUI::StaticTextWidget;
 using GUI::kButtonWidth;
+using GUI::kBigButtonWidth;
+using GUI::kBigButtonHeight;
 using GUI::kCloseCmd;
 using GUI::kTextAlignCenter;
 using GUI::kTextAlignLeft;
@@ -287,7 +289,7 @@
 	new StaticTextWidget(this, 10, 6, _w - 2 * 10, kLineHeight, title, kTextAlignCenter);
 	
 	// Add choice list
-	_list = new GUI::ListWidget(this, 10, 18, _w - 2 * 10 - 180, _h - 14 - 24 - 10);
+	_list = new GUI::ListWidget(this, 10, 18, _w - 2 * 10 - 180, _h - 14 - kBigButtonHeight - 18);
 	_list->setEditable(saveMode);
 	_list->setNumberingMode(saveMode ? GUI::kListNumberingOne : GUI::kListNumberingZero);
 	
@@ -300,8 +302,8 @@
 	_gfxWidget->setFlags(GUI::WIDGET_BORDER);
 	
 	// Buttons
-	addButton(_w - 2 * (kButtonWidth + 10), _h - 24, "Cancel", kCloseCmd, 0);
-	_chooseButton = addButton(_w-(kButtonWidth + 10), _h - 24, buttonLabel, kChooseCmd, 0);
+	addButton(_w - 2 * (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, "Cancel", kCloseCmd, 0, GUI::kBigWidgetSize);
+	_chooseButton = addButton(_w - (kBigButtonWidth + 10), _h - kBigButtonHeight - 8, buttonLabel, kChooseCmd, 0, GUI::kBigWidgetSize);
 	_chooseButton->setEnabled(false);
 }
 





More information about the Scummvm-git-logs mailing list