[Monodevelop-patches-list] r473 - trunk/MonoDevelop/src/Main/Base/Gui/Dialogs

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 12 16:30:13 EST 2004


Author: jluke
Date: 2004-01-12 16:30:13 -0500 (Mon, 12 Jan 2004)
New Revision: 473

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/CommonAboutDialog.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs
Log:
wrap the text correctly (mostly)
and display contributors names instead of a quote
Disable the Html stuff till we decide if we want it
remove the sponsorship ad for now


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/CommonAboutDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/CommonAboutDialog.cs	2004-01-12 14:55:37 UTC (rev 472)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/CommonAboutDialog.cs	2004-01-12 21:30:13 UTC (rev 473)
@@ -80,7 +80,9 @@
 			ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
 			this.Image = resourceService.GetBitmap ("Icons.AboutImage");
 			
-			text = "\"The most successful method of programming is to begin a program as simply as possible, test it, and then add to the program until it performs the required job.\"\n    -- PDP8 handbook, Pg 9-64\n\n\n";
+			text = "Ported and developed by:\nTodd Berman\nPedro Abelleira Seco\nJohn Luke\nDaniel Kornhauser\norph\nnricciar\njba\nBen Maurer";
+			
+			//text = "\"The most successful method of programming is to begin a program as simply as possible, test it, and then add to the program until it performs the required job.\"\n    -- PDP8 handbook, Pg 9-64\n\n\n";
 			//text = "\"The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every\n appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.\"\n    -- FORTRAN manual for Xerox computers\n\n\n";
 			//text = "\"No proper program contains an indication which as an operator-applied occurrence identifies an operator-defining occurrence which as an indication-applied occurrence identifies an indication-defining occurrence different from the one identified by the given indication as an indication- applied occurrence.\"\n   -- ALGOL 68 Report\n\n\n";
 			//text = "\"The '#pragma' command is specified in the ANSI standard to have an arbitrary implementation-defined effect. In the GNU C preprocessor, `#pragma' first attempts to run the game rogue; if that fails, it tries to run the game hack; if that fails, it tries to run GNU Emacs displaying the Tower of Hanoi; if that fails, it reports a fatal error. In any case, preprocessing does not continue.\"\n   --From an old GNU C Preprocessor document";
@@ -110,14 +112,17 @@
 		private void DrawText ()
 		{
 			Pango.Layout layout = new Pango.Layout (this.PangoContext);
-			// FIXME: not wrapping right
-			layout.Width = 200;
+			// FIXME: this seems wrong but works
+			layout.Width = 253952;
 			layout.Wrap = Pango.WrapMode.Word;
-			layout.SingleParagraphMode = true;
 			FontDescription fd = FontDescription.FromString ("Tahoma 10");
 			layout.FontDescription = fd;
 			layout.SetText (text);
 			dr.DrawLayout (gc, 200, 0 - scroll, layout);
+
+			//Console.WriteLine (layout.Size);
+			//Console.WriteLine (layout.Width);
+			//Console.WriteLine (layout.LineCount);
 				
 			if (scroll > 220 ) {
 				scroll = -scroll;
@@ -145,7 +150,7 @@
 		static FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
 		
 		AuthorAboutTabPage aatp;
-		ChangeLogTabPage changelog;
+		//ChangeLogTabPage changelog;
 		ScrollBox aboutPictureScrollBox;
 		
 		public ScrollBox ScrollBox {
@@ -173,14 +178,14 @@
 		
 			Notebook nb = new Notebook ();
 			nb.RequestSize = new System.Drawing.Size (400, 280);
-			nb.SwitchPage += new SwitchPageHandler (OnPageChanged);
-			aatp = new AuthorAboutTabPage ();
-			changelog = new ChangeLogTabPage ();
+			//nb.SwitchPage += new SwitchPageHandler (OnPageChanged);
+			//aatp = new AuthorAboutTabPage ();
+			//changelog = new ChangeLogTabPage ();
 			VersionInformationTabPage vinfo = new VersionInformationTabPage ();
 			
-			nb.AppendPage (new AboutSharpDevelopTabPage (), new Label ("About SharpDevelop"));
-			nb.AppendPage (aatp, new Label ("Authors"));
-			nb.AppendPage (changelog, new Label ("ChangeLog"));
+			nb.AppendPage (new AboutMonoDevelopTabPage (), new Label ("About MonoDevelop"));
+			//nb.AppendPage (aatp, new Label ("Authors"));
+			//nb.AppendPage (changelog, new Label ("ChangeLog"));
 			nb.AppendPage (vinfo, new Label ("Version Info"));
 			this.VBox.PackStart (nb);
 			this.AddButton (Stock.Close, (int) ResponseType.Close);
@@ -194,16 +199,16 @@
 			return tmp;
 		}
 		
-		private void OnPageChanged (object o, SwitchPageArgs args)
-		{
-			if (args.PageNum == 1)
-			{
-				aatp.DelayedInitialize ();
-			}
-			else if (args.PageNum == 2)
-			{
-				changelog.DelayedInitialize ();
-			}
-		}
+		//private void OnPageChanged (object o, SwitchPageArgs args)
+		//{
+			//if (args.PageNum == 1)
+			//{
+			//	aatp.DelayedInitialize ();
+			//}
+			//else if (args.PageNum == 2)
+			//{
+			//	changelog.DelayedInitialize ();
+			//}
+		//}
 	}
 }

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs	2004-01-12 14:55:37 UTC (rev 472)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs	2004-01-12 21:30:13 UTC (rev 473)
@@ -26,7 +26,7 @@
 
 namespace ICSharpCode.SharpDevelop.Gui.Dialogs
 {
-	public class AboutSharpDevelopTabPage : VBox
+	public class AboutMonoDevelopTabPage : VBox
 	{
 		static GLib.GType type;
 		Label      buildLabel   = new Label ();
@@ -35,12 +35,12 @@
 		Label    versionTextBox = new Label ();
 		Label      sponsorLabel   = new Label ();
 		
-		static AboutSharpDevelopTabPage ()
+		static AboutMonoDevelopTabPage ()
 		{
-			type = RegisterGType (typeof (AboutSharpDevelopTabPage));
+			type = RegisterGType (typeof (AboutMonoDevelopTabPage));
 		}
 		
-		public AboutSharpDevelopTabPage() : base (type)
+		public AboutMonoDevelopTabPage() : base (type)
 		{
 			HBox hbox = new HBox (false, 0);
 			Version v = Assembly.GetEntryAssembly().GetName().Version;
@@ -64,9 +64,9 @@
 			hbox.PackStart (buildTextBox, false, false, 10);
 			this.PackStart (hbox, false, false, 5);
 			
-			sponsorLabel.Text = "Released under the GNU General Public license.\n\n" + 
-				                "Sponsored by AlphaSierraPapa\n" +
-			                    "                   http://www.AlphaSierraPapa.com";
+			sponsorLabel.Text = "Released under the GNU General Public license.";
+				               // "Sponsored by AlphaSierraPapa\n" +
+			                   // "                   http://www.AlphaSierraPapa.com";
 			//sponsorLabel.TabIndex = 8;
 			this.PackStart (sponsorLabel, false, false, 5);
 			this.ShowAll ();




More information about the Monodevelop-patches-list mailing list