[Monodevelop-patches-list] r442 - in trunk/MonoDevelop: . samples/HtmlControl src/Main/Base/Gui/BrowserDisplayBinding src/Main/Base/Gui/HtmlControl

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 11 13:45:55 EST 2004


Author: jluke
Date: 2004-01-11 13:45:54 -0500 (Sun, 11 Jan 2004)
New Revision: 442

Modified:
   trunk/MonoDevelop/README
   trunk/MonoDevelop/samples/HtmlControl/Test.cs
   trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs
   trunk/MonoDevelop/src/Main/Base/Gui/HtmlControl/README
Log:
update the readmes
improve the html toolbars


Modified: trunk/MonoDevelop/README
===================================================================
--- trunk/MonoDevelop/README	2004-01-11 11:09:57 UTC (rev 441)
+++ trunk/MonoDevelop/README	2004-01-11 18:45:54 UTC (rev 442)
@@ -1,3 +1,3 @@
-This is a port of the #Develop editor widget to Gtk#/Mono.
+This is a port of SharpDevelop to Gtk# and Mono.
 To compile simply run make, or 'make run' to compile and run it.
 You need Mono and Gtk# cvs.

Modified: trunk/MonoDevelop/samples/HtmlControl/Test.cs
===================================================================
--- trunk/MonoDevelop/samples/HtmlControl/Test.cs	2004-01-11 11:09:57 UTC (rev 441)
+++ trunk/MonoDevelop/samples/HtmlControl/Test.cs	2004-01-11 18:45:54 UTC (rev 442)
@@ -28,29 +28,40 @@
 		Toolbar tbar = new Toolbar ();
 		tbar.ToolbarStyle = ToolbarStyle.Icons;
 		
-		Button back = new Button (Stock.GoBack);
+		Button back = new Button ();
+		back.Child = new Image (Stock.GoBack, IconSize.SmallToolbar);
+		back.Relief = ReliefStyle.None;
 		back.Clicked += new EventHandler (OnBackClicked);
 		tbar.AppendWidget (back, "Go Back", "");
 
-		Button forward = new Button (Stock.GoForward);
+		Button forward = new Button ();
+		forward.Child = new Image (Stock.GoForward, IconSize.SmallToolbar);
+		forward.Relief = ReliefStyle.None;
 		forward.Clicked += new EventHandler (OnForwardClicked);
 		tbar.AppendWidget (forward, "Go Forward", "");
 		
-		Button stop = new Button (Stock.Stop);
+		Button stop = new Button ();
+		stop.Child = new Image (Stock.Stop, IconSize.SmallToolbar);
+		stop.Relief = ReliefStyle.None;
 		stop.Clicked += new EventHandler (OnStopClicked);
 		tbar.AppendWidget (stop, "Stop", "");
 
-		Button refresh = new Button (Stock.Refresh);
+		Button refresh = new Button ();
+		refresh.Child = new Image (Stock.Refresh, IconSize.SmallToolbar);
+		refresh.Relief = ReliefStyle.None;
 		refresh.Clicked += new EventHandler (OnRefreshClicked);
 		tbar.AppendWidget (refresh, "Refresh", "");
 		
 		vbox.PackStart (tbar, false, true, 0);
 
 		url = new Entry ();
+		url.WidthChars = 50;
 		url.Activated += new EventHandler (OnUrlActivated);
 		tbar.AppendWidget (url, "Location", "");
 
-		go = new Button (Stock.Ok);
+		go = new Button ();
+		go.Child = new Image (Stock.Ok, IconSize.SmallToolbar);
+		go.Relief = ReliefStyle.None;
 		go.Clicked += new EventHandler (OnGoClicked);
 		tbar.AppendWidget (go, "Go", "");
 

Modified: trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs	2004-01-11 11:09:57 UTC (rev 441)
+++ trunk/MonoDevelop/src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs	2004-01-11 18:45:54 UTC (rev 442)
@@ -1,12 +1,11 @@
 // <file>
 //     <copyright see="prj:///doc/copyright.txt"/>
 //     <license see="prj:///doc/license.txt"/>
-//     <owner name="Mike Krüger" email="mike at icsharpcode.net"/>
+//     <owner name="Mike Krger" email="mike at icsharpcode.net"/>
 //     <version value="$version"/>
 // </file>
 
 using System;
-using System.Drawing;
 using Gtk;
 using GtkSharp;
 
@@ -113,28 +112,38 @@
 				
 				//toolBar.Dock = DockStyle.None;
 				
-				Button toolBarBack = new Button (Gtk.Stock.GoBack);
+				Button toolBarBack = new Button ();
+				toolBarBack.Child = new Image (Stock.GoBack, IconSize.SmallToolbar);
+				toolBarBack.Relief = ReliefStyle.None;
 				toolBarBack.Clicked += new EventHandler (OnBackClicked);
-				Button toolBarForward = new Button (Gtk.Stock.GoForward);
+				
+				Button toolBarForward = new Button ();
+				toolBarForward.Child = new Image (Stock.GoForward, IconSize.SmallToolbar);
+				toolBarForward.Relief = ReliefStyle.None;
 				toolBarForward.Clicked += new EventHandler (OnForwardClicked);
-				Button toolBarStop = new Button (Gtk.Stock.Stop);
+				
+				Button toolBarStop = new Button ();
+				toolBarStop.Child = new Image (Stock.Stop, IconSize.SmallToolbar);
+				toolBarStop.Relief = ReliefStyle.None;
 				toolBarStop.Clicked += new EventHandler (OnStopClicked);
-				Button toolBarRefresh = new Button (Gtk.Stock.Refresh);
+				
+				Button toolBarRefresh = new Button ();
+				toolBarRefresh.Child = new Image (Stock.Refresh, IconSize.SmallToolbar);
+				toolBarRefresh.Relief = ReliefStyle.None;
 				toolBarRefresh.Clicked += new EventHandler (OnRefreshClicked);
 			
+				urlTextBox.WidthChars = 50;
+				urlTextBox.Activated += new EventHandler (OnEntryActivated);
+				
 				toolBar.ToolbarStyle = ToolbarStyle.Icons;
 				toolBar.IconSize = IconSize.SmallToolbar;
 				toolBar.AppendWidget (toolBarBack, "Go Back", "");
 				toolBar.AppendWidget (toolBarForward, "Go Forward", "");
 				toolBar.AppendWidget (toolBarStop, "Stop Loading", "");
-				toolBar.AppendWidget (toolBarRefresh, "Refresh", "");
-				toolBar.AppendWidget (urlTextBox, "URL", "");
+				toolBar.AppendWidget (toolBarRefresh, "Reload page", "");
+				toolBar.AppendWidget (urlTextBox, "Location", "");
 				
 				topPanel.PackStart (toolBar);
-				
-				urlTextBox.Activated += new EventHandler (OnEntryActivated);
-				
-				//topPanel.Add (urlTextBox);
 				mainbox.PackStart (topPanel, false, false, 2);
 			} 
 			

Modified: trunk/MonoDevelop/src/Main/Base/Gui/HtmlControl/README
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/HtmlControl/README	2004-01-11 11:09:57 UTC (rev 441)
+++ trunk/MonoDevelop/src/Main/Base/Gui/HtmlControl/README	2004-01-11 18:45:54 UTC (rev 442)
@@ -3,7 +3,7 @@
 but may someday be used as part of ASP.NET ide support.
 
 To add support for a platform or Html Renderer:
-1) class must be able to be packed into a Gtk.Bin
+1) class must be able to be packed into a Gtk.Frame
 2) implement IWebBrowser interface
 
 for example:




More information about the Monodevelop-patches-list mailing list