[Scummvm-cvs-logs] CVS: scummvm/gui dialog.cpp,1.23,1.24 dialog.h,1.13,1.14 widget.cpp,1.19,1.20 widget.h,1.17,1.18

Max Horn fingolfin at users.sourceforge.net
Fri Jul 19 03:10:04 CEST 2002


Update of /cvsroot/scummvm/scummvm/gui
In directory usw-pr-cvs1:/tmp/cvs-serv25321

Modified Files:
	dialog.cpp dialog.h widget.cpp widget.h 
Log Message:
added khalek's about dialog (but changed the text items to be centered)

Index: dialog.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/dialog.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- dialog.cpp	18 Jul 2002 20:26:35 -0000	1.23
+++ dialog.cpp	19 Jul 2002 10:09:46 -0000	1.24
@@ -369,6 +369,16 @@
 
 #pragma mark -
 
+AboutDialog::AboutDialog(NewGui *gui)
+	: Dialog (gui, 30, 10, 260, 134)
+{
+	addButton(110, 110, 40, 15, CUSTOM_STRING(23), kCloseCmd, 'C');	// Close dialog - FIXME
+	new StaticTextWidget(this, 10, 17, 240, 16, "Build " SCUMMVM_VERSION " (" SCUMMVM_CVS ")", true);
+	new StaticTextWidget(this, 10, 37, 240, 16, "ScummVM http://scummvm.sourceforge.net", true);
+	new StaticTextWidget(this, 10, 67, 240, 16, "All games (c) LucasArts", true);
+	new StaticTextWidget(this, 10, 84, 240, 16, "Except", true);
+	new StaticTextWidget(this, 10, 97, 240, 16, "Simon the Sorcerer (c) Adventuresoft", true);
+}
 
 PauseDialog::PauseDialog(NewGui *gui)
 	: Dialog (gui, 50, 80, 220, 16)

Index: dialog.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/dialog.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- dialog.h	19 Jul 2002 01:41:41 -0000	1.13
+++ dialog.h	19 Jul 2002 10:09:46 -0000	1.14
@@ -92,6 +92,11 @@
 class KeysDialog;
 class MiscDialog;
 
+class AboutDialog : public Dialog {
+public:
+	AboutDialog(NewGui *gui);
+};
+
 class OptionsDialog : public Dialog {
 protected:
 	SoundDialog		*_soundDialog;

Index: widget.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/widget.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- widget.cpp	16 Jul 2002 12:01:03 -0000	1.19
+++ widget.cpp	19 Jul 2002 10:09:46 -0000	1.20
@@ -76,8 +76,8 @@
 #pragma mark -
 
 
-StaticTextWidget::StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text)
-	: Widget (boss, x, y, w, h), _label(0), _centred(false)
+StaticTextWidget::StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text, bool centred)
+	: Widget (boss, x, y, w, h), _label(0), _centred(centred)
 {
 	_type = kStaticTextWidget;
 	setLabel(text);

Index: widget.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/widget.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- widget.h	16 Jul 2002 22:34:16 -0000	1.17
+++ widget.h	19 Jul 2002 10:09:46 -0000	1.18
@@ -120,7 +120,7 @@
 	char	*_label;
 	bool	_centred;
 public:
-	StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text);
+	StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text, bool centred = false);
 	~StaticTextWidget();
 	void setLabel(const char *label);
 	const char *getLabel() const	{ return _label; }





More information about the Scummvm-git-logs mailing list