[Monodevelop-patches-list] r1422 - in trunk/MonoDevelop/src: AddIns/BackendBindings/CSharpBinding Main/Base Main/Base/Gui/Components/StatusBar

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Apr 9 13:24:56 EDT 2004


Author: tberman
Date: 2004-04-09 13:24:56 -0400 (Fri, 09 Apr 2004)
New Revision: 1422

Modified:
   trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
   trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
   trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Makefile.am
   trunk/MonoDevelop/src/Main/Base/ChangeLog
   trunk/MonoDevelop/src/Main/Base/Gui/Components/StatusBar/SdStatusBar.cs
Log:
add reporting of 'yes we are compiling' so people dont get worried..

its speed might need some playin with.


Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs	2004-04-09 17:17:47 UTC (rev 1421)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs	2004-04-09 17:24:56 UTC (rev 1422)
@@ -17,6 +17,7 @@
 
 using MonoDevelop.Internal.Project;
 using MonoDevelop.Gui;
+using MonoDevelop.Gui.Components;
 using MonoDevelop.Services;
 
 namespace CSharpBinding
@@ -335,8 +336,38 @@
 			Process p = new Process();
 			p.StartInfo = si;
 			p.Start();
-			p.WaitForExit();
+			//FIXME: The glib.idle stuff is here because this *SHOULD* be
+			//a background thread calling back to the main thread.
+			//GLib.Idle.Add (new GLib.IdleHandler (setmsg));
+			setmsg ();
+			while (!p.HasExited) {
+				//GLib.Idle.Add (new GLib.IdleHandler (pulse));
+				pulse ();
+				System.Threading.Thread.Sleep (100);
+			}
+			//GLib.Idle.Add (new GLib.IdleHandler (done));
+			done ();
 		}
+
+		bool setmsg ()
+		{
+			((IStatusBarService)ServiceManager.Services.GetService (typeof (IStatusBarService))).SetMessage ("Compiling...");
+			return false;
+		}
+
+		bool done ()
+		{
+			((SdStatusBar)((IStatusBarService)ServiceManager.Services.GetService (typeof (IStatusBarService))).ProgressMonitor).Done ();
+			return false;
+		}
+
+		bool pulse () 
+		{
+			((SdStatusBar)((IStatusBarService)ServiceManager.Services.GetService (typeof (IStatusBarService))).ProgressMonitor).Pulse ();
+			while (Gtk.Application.EventsPending ())
+				Gtk.Application.RunIteration ();
+			return false;
+		}
 		
 		// Snatched from our codedom code :-).
 		static Regex regexError = new Regex (@"^(\s*(?<file>.*)\((?<line>\d*)(,(?<column>\d*))?\)\s+)*(?<level>\w+)\s*(?<number>.*):\s(?<message>.*)",

Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog	2004-04-09 17:17:47 UTC (rev 1421)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog	2004-04-09 17:24:56 UTC (rev 1422)
@@ -1,3 +1,9 @@
+2004-04-09  Todd Berman  <tberman at sevenl.net>
+
+	* CSharpBindingCompilerManager.cs: Show that something is going
+	on so people dont get too worried. (Speed might need some work)
+	* Makefile.am: add glib
+
 2004-04-04  John Luke  <jluke at cfl.rr.com>
 
 	* CSharpBindingExecutionManager.cs: improve error message

Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Makefile.am
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Makefile.am	2004-04-09 17:17:47 UTC (rev 1421)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Makefile.am	2004-04-09 17:24:56 UTC (rev 1422)
@@ -9,6 +9,7 @@
 	/r:../../../../build/bin/MonoDevelop.Gui.Widgets.dll  \
 	/r:gtk-sharp \
 	/r:glade-sharp \
+	/r:glib-sharp \
 	$(GTKSOURCEVIEW_SHARP) 
 
 FILES = \

Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog	2004-04-09 17:17:47 UTC (rev 1421)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog	2004-04-09 17:24:56 UTC (rev 1422)
@@ -1,16 +1,23 @@
+2004-04-09  Todd Berman  <tberman at sevenl.net>
+
+	* Gui/Components/SdStatusBar.cs: Add pulsing.
+
 2004-04-09  Pawel Rozanski  <tokugawa at afn.no-ip.org>
 
-	* Services/Tasks/Task.cs: don't show "()" when error.ErrorNumber is empty
+	* Services/Tasks/Task.cs: don't show "()" when error.ErrorNumber is 
+	empty
 
 2004-04-07  John Luke  <jluke at cfl.rr.com>
 
 	* Gui/Dialogs/CommonAboutDialog.cs:
-	* Gui/Dialogs/SharpDevelopAboutPanels.cs: rearrange the copyright, license,
-	sponsorship, and version information.  Add back info about SharpDevelop and
-	AlphaSierraPapa
-	* Gui/Dialogs/TipOfTheDay.cs: remove IDisposable and call Hide and Dispose
-	instead of Destroy on the window, remove some unneccesary public things
-	* Commands/HelpCommand.cs: revert addition of using () {} to tipoftheday
+	* Gui/Dialogs/SharpDevelopAboutPanels.cs: rearrange the copyright, 
+	license, sponsorship, and version information.  Add back info about    
+	SharpDevelop and AlphaSierraPapa
+	* Gui/Dialogs/TipOfTheDay.cs: remove IDisposable and call Hide and 
+	Dispose instead of Destroy on the window, remove some unneccesary 
+	public things
+	* Commands/HelpCommand.cs: revert addition of using () {} to 
+	tipoftheday
 	* Gui/Workbench/DefaultWorkbench.cs: uncomment memento restoring code
 
 2004-04-07  Todd Berman  <tberman at sevenl.net>

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Components/StatusBar/SdStatusBar.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Components/StatusBar/SdStatusBar.cs	2004-04-09 17:17:47 UTC (rev 1421)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Components/StatusBar/SdStatusBar.cs	2004-04-09 17:24:56 UTC (rev 1422)
@@ -65,6 +65,9 @@
 			modeStatusBarPanel.HasResizeGrip = false;
 			this.PackStart (modeStatusBarPanel, true, true, 0);
 
+			Progress.Visible = false;
+			Progress.PulseStep = 0.3;
+			
 			this.ShowAll ();
 		}
 		
@@ -111,7 +114,14 @@
 			txtStatusBarPanel.Pop (ctx);
 			this.Progress.Visible = false;
 		}
+
+		public void Pulse ()
+		{
+			this.Progress.Visible = true;
+			this.Progress.Pulse ();
+		}
 		
+		
 		public bool Canceled
 		{
 			get {




More information about the Monodevelop-patches-list mailing list