Author: mhutch
Date: 2007-09-27 10:17:53 -0400 (Thu, 27 Sep 2007)
New Revision: 86498
Added:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/generated.cs
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/gui.stetic
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
Log:
* MonoDevelop.Core.Gui.mdp, Makefile.am: Updated.
* MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs, gtk-gui,
gtk-gui/generated.cs,
gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs,
gtk-gui/gui.stetic,
MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs:
New IProgressMonitor that shows a GUI for multiple tasks.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2007-09-27
14:16:44 UTC (rev 86497)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2007-09-27
14:17:53 UTC (rev 86498)
@@ -1,3 +1,13 @@
+2007-09-27 Michael Hutchinson <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Core.Gui.mdp, Makefile.am: Updated.
+ * MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs, gtk-gui,
+ gtk-gui/generated.cs,
+ gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs,
+ gtk-gui/gui.stetic,
+
MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs:
+ New IProgressMonitor that shows a GUI for multiple tasks.
+
2007-09-26 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* icons/Icons.SharpDevelopIcon, icons/Icons.SharpDevelopIcon-22.png: New
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am 2007-09-27
14:16:44 UTC (rev 86497)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Makefile.am 2007-09-27
14:17:53 UTC (rev 86498)
@@ -13,6 +13,7 @@
-r:$(top_builddir)/build/bin/MonoDevelop.Components.dll \
-r:$(top_builddir)/build/bin/MonoDevelop.Core.dll \
-r:ICSharpCode.SharpZipLib \
+ -r:Mono.Posix \
-r:System \
-r:System.Drawing \
-r:System.Xml
@@ -20,6 +21,8 @@
FILES = \
Freedesktop.RecentFiles/RecentFileStorage.cs \
Freedesktop.RecentFiles/RecentItem.cs \
+ gtk-gui/generated.cs \
+ gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs \
MonoDevelop.Core.Gui.Codons/DialogPanelCodon.cs \
MonoDevelop.Core.Gui.Codons/StockIconCodon.cs \
MonoDevelop.Core.Gui.Components/FileBrowser.cs \
@@ -35,6 +38,7 @@
MonoDevelop.Core.Gui.Dialogs/IDialogPanel.cs \
MonoDevelop.Core.Gui.Dialogs/IDialogPanelDescriptor.cs \
MonoDevelop.Core.Gui.Dialogs/IWizardPanel.cs \
+ MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs \
MonoDevelop.Core.Gui.Dialogs/ProgressDialog.cs \
MonoDevelop.Core.Gui.Dialogs/SetupApp.cs \
MonoDevelop.Core.Gui.Dialogs/StatusPanel.cs \
@@ -44,6 +48,7 @@
MonoDevelop.Core.Gui.ErrorHandlers/GenericError.cs \
MonoDevelop.Core.Gui.ProgressMonitoring/BaseProgressMonitor.cs \
MonoDevelop.Core.Gui.ProgressMonitoring/MessageDialogProgressMonitor.cs
\
+
MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs \
MonoDevelop.Core.Gui.Utils/DesktopApplication.cs \
MonoDevelop.Core.Gui.Utils/FileIconLoader.cs \
MonoDevelop.Core.Gui/AsyncDispatchAttribute.cs \
@@ -68,6 +73,7 @@
RES = \
Base.glade \
+ gtk-gui/gui.stetic \
icons/BreakPoint.png \
icons/comment.png \
icons/edit-select-all.png \
Added:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs
2007-09-27 14:16:44 UTC (rev 86497)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs
2007-09-27 14:17:53 UTC (rev 86498)
@@ -0,0 +1,243 @@
+// MultiTaskProgressDialog.cs: Dialog for displaying the progress of multiple
tasks.
+// N.B. Much of this code for this dialog is adapted from ProgressDialog.cs
+//
+// Author:
+// Michael Hutchinson <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+using System;
+using System.Collections.Generic;
+using Gtk;
+
+namespace MonoDevelop.Core.Gui.Dialogs
+{
+
+
+ public partial class MultiTaskProgressDialog : Gtk.Dialog
+ {
+ ListStore statusStore = new ListStore (typeof(string),
typeof(string), typeof (int));
+ const int STORE_TaskName = 0;
+ const int STORE_TaskLabel = 1;
+ const int STORE_TaskProgress = 2;
+ TreeIter currentTaskIter;
+
+ TextBuffer buffer;
+ TextTag tag;
+ TextTag bold;
+ int ident = 0;
+ List<TextTag> tags = new List<TextTag> ();
+ Stack<string> indents = new Stack<string> ();
+ IAsyncOperation asyncOperation;
+
+ CellRendererText textRenderer;
+ CellRendererProgress progressRenderer;
+
+ IDictionary<string, string> taskLabelAliases = null;
+
+ bool completed = false;
+
+ public MultiTaskProgressDialog (bool allowCancel, bool
showDetails, IDictionary<string, string> taskLabelAliases)
+ {
+ MonoDevelop.Core.Gui.DispatchService.AssertGuiThread ();
+ this.Build();
+
+ this.taskLabelAliases = taskLabelAliases;
+ detailsScroll.Visible = showDetails;
+
+ buttonCancel.Visible = allowCancel;
+ buttonClose.Sensitive = false;
+
+ progressTreeView.Model = statusStore;
+ progressTreeView.HeadersVisible = false;
+ textRenderer = new CellRendererText ();
+ textRenderer.WrapMode = Pango.WrapMode.WordChar;
+ TreeViewColumn textColumn = new TreeViewColumn ("Task",
textRenderer, "markup", STORE_TaskLabel);
+ textColumn.MinWidth = 292; // total width 400 with
progressColumn width
+ progressTreeView.AppendColumn (textColumn);
+
+ progressRenderer = new CellRendererProgress ();
+ progressRenderer.Xpad = 4;
+ progressRenderer.Ypad = 4;
+ TreeViewColumn progressColumn = new TreeViewColumn
("Progress", progressRenderer, "value", STORE_TaskProgress);
+ progressColumn.MinWidth = 108; // 1 pixel per step,
plus padding
+ progressTreeView.AppendColumn (progressColumn);
+
+ buffer = detailsTextView.Buffer;
+
+ bold = new TextTag ("bold");
+ bold.Weight = Pango.Weight.Bold;
+ buffer.TagTable.Add (bold);
+
+ tag = new TextTag ("0");
+ tag.Indent = 10;
+ buffer.TagTable.Add (tag);
+ tags.Add (tag);
+
+ int w,h;
+ GetSize (out w, out h);
+ Resize (w, 1);
+ }
+
+ public IAsyncOperation AsyncOperation {
+ get { return asyncOperation; }
+ set { asyncOperation = value; }
+ }
+
+ public string OperationTitle {
+ get { return title.Text; }
+ set {
+ if (string.IsNullOrEmpty (value)) {
+ if (title.Visible) {
+ title.Hide ();
+ title.Visible = false;
+ }
+ } else {
+ title.Markup = "<big><b>" + value +
"</b></big>";
+ if (!title.Visible) {
+ title.Visible = true;
+ title.Show ();
+ }
+ }
+ }
+ }
+
+ public void WriteText (string text)
+ {
+ AddText (text);
+ if (text.EndsWith ("\n"))
+ detailsTextView.ScrollMarkOnscreen
(buffer.InsertMark);
+ }
+
+ public bool SetProgress (double fraction)
+ {
+ if (statusStore.IterIsValid (currentTaskIter)) {
+ statusStore.SetValue (currentTaskIter,
STORE_TaskProgress, System.Convert.ToInt32 (fraction * 100));
+ return true;
+ }
+ return false;
+ }
+
+ public bool SetProgress (string taskName, double fraction)
+ {
+ TreeIter iter;
+ if (statusStore.GetIterFirst (out iter)) {
+ do {
+ if (((string) statusStore.GetValue
(iter, STORE_TaskName)) == taskName) {
+ statusStore.SetValue (iter,
STORE_TaskProgress, System.Convert.ToInt32 (fraction * 100));
+ return true;
+ }
+ } while (statusStore.IterNext (ref iter));
+ }
+ return false;
+ }
+
+ public void BeginTask (string name)
+ {
+ if (name != null && name.Length > 0) {
+ Indent ();
+ indents.Push (name);
+ if (taskLabelAliases != null &&
taskLabelAliases.ContainsKey (name))
+ currentTaskIter =
statusStore.AppendValues (name, taskLabelAliases [name], 0);
+ else
+ currentTaskIter =
statusStore.AppendValues (name, name, 0);
+ } else {
+ indents.Push (null);
+ currentTaskIter = TreeIter.Zero;
+ }
+ if (name != null) {
+ TextIter it = buffer.EndIter;
+ string txt = name + "\n";
+ buffer.InsertWithTags (ref it, txt, tag, bold);
+ detailsTextView.ScrollMarkOnscreen
(buffer.InsertMark);
+ }
+ }
+
+ public void EndTask ()
+ {
+ if (indents.Count > 0) {
+ string msg = (string) indents.Pop ();
+ if (msg != null) {
+ Unindent ();
+ }
+ currentTaskIter = TreeIter.Zero;
+ }
+ }
+
+ void AddText (string s)
+ {
+ TextIter it = buffer.EndIter;
+ buffer.InsertWithTags (ref it, s, tag);
+ }
+
+ void Indent ()
+ {
+ ident++;
+ if (ident >= tags.Count) {
+ tag = new TextTag (ident.ToString ());
+ tag.Indent = 10 + 15 * (ident - 1);
+ buffer.TagTable.Add (tag);
+ tags.Add (tag);
+ } else {
+ tag = (TextTag) tags [ident];
+ }
+ }
+
+ void Unindent ()
+ {
+ if (ident >= 0) {
+ ident--;
+ tag = (TextTag) tags [ident];
+ }
+ }
+
+ public void AllDone ()
+ {
+ completed = true;
+ buttonCancel.Sensitive = false;
+ buttonClose.Sensitive = true;
+ }
+
+ void OnCancel (object sender, EventArgs args)
+ {
+ if (asyncOperation != null)
+ asyncOperation.Cancel ();
+ }
+
+ bool destroyed = false;
+ void OnClose (object sender, EventArgs args)
+ {
+ if (!destroyed) {
+ destroyed = true;
+ Destroy ();
+ }
+ }
+
+ void OnCloseWindowButton (object sender, EventArgs args)
+ {
+ if (completed)
+ OnCancel (null, null);
+ else
+ OnClose (null, null);
+ }
+ }
+}
Added:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs
2007-09-27 14:16:44 UTC (rev 86497)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs
2007-09-27 14:17:53 UTC (rev 86498)
@@ -0,0 +1,193 @@
+// MultiTaskDialogProgressMonitor.cs: IProgressMonitor for displaying the
+// progress of multiple tasks in a dialog. N.B. Much of this code for this
+// dialog is adapted from MessageDialogProgressMonitor.cs
+//
+// Author:
+// Michael Hutchinson <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+
+using MonoDevelop.Core;
+using MonoDevelop.Core.Gui;
+using MonoDevelop.Core.ProgressMonitoring;
+using MonoDevelop.Core.Gui.Dialogs;
+
+namespace MonoDevelop.Core.Gui.ProgressMonitoring
+{
+
+
+ public class MultiTaskDialogProgressMonitor : BaseProgressMonitor
+ {
+ StringCollection errorsMessages = new StringCollection ();
+ StringCollection warningMessages = new StringCollection ();
+ Exception errorException;
+ MultiTaskProgressDialog dialog;
+ bool showDetails;
+
+ public MultiTaskDialogProgressMonitor (): this (true)
+ {
+ }
+
+ public MultiTaskDialogProgressMonitor (bool showProgress): this
(showProgress, true, true)
+ {
+ }
+
+ public MultiTaskDialogProgressMonitor (bool showProgress, bool
allowCancel): this (showProgress, allowCancel, true)
+ {
+ }
+
+ public MultiTaskDialogProgressMonitor (bool showProgress, bool
allowCancel, bool showDetails)
+ : this (showProgress, allowCancel, showDetails, null)
+ {
+ }
+
+ public MultiTaskDialogProgressMonitor (bool showProgress, bool
allowCancel, bool showDetails, IDictionary<string, string> taskLabelAliases)
+ {
+ if (showProgress) {
+ dialog = new MultiTaskProgressDialog
(allowCancel, showDetails, taskLabelAliases);
+ dialog.Show ();
+ dialog.AsyncOperation = AsyncOperation;
+ DispatchService.RunPendingEvents ();
+ this.showDetails = showDetails;
+ }
+ }
+
+ [AsyncDispatch]
+ public void SetDialogTitle (string title)
+ {
+ if (dialog != null && !string.IsNullOrEmpty (title))
+ dialog.Title = title;
+ }
+
+ [AsyncDispatch]
+ public void SetOperationTitle (string title)
+ {
+ if (dialog != null && !string.IsNullOrEmpty (title))
+ dialog.OperationTitle = title;
+ }
+
+ protected override void OnWriteLog (string text)
+ {
+ if (dialog != null) {
+ dialog.WriteText (text);
+ DispatchService.RunPendingEvents ();
+ }
+ }
+
+ protected override void OnProgressChanged ()
+ {
+ if (dialog != null) {
+ dialog.SetProgress (CurrentTaskWork);
+ DispatchService.RunPendingEvents ();
+ }
+ }
+
+ public override void BeginTask (string name, int totalWork)
+ {
+ if (dialog != null) {
+ dialog.BeginTask (name);
+ }
+ base.BeginTask (name, totalWork);
+ }
+
+ public override void BeginStepTask (string name, int totalWork,
int stepSize)
+ {
+ if (dialog != null) {
+ dialog.BeginTask (name);
+ }
+ base.BeginStepTask (name, totalWork, stepSize);
+ }
+
+ public override void EndTask ()
+ {
+ if (dialog != null) {
+ dialog.EndTask ();
+ }
+ base.EndTask ();
+ DispatchService.RunPendingEvents ();
+ }
+
+ public override void ReportWarning (string message)
+ {
+ if (dialog != null) {
+ dialog.WriteText (GettextCatalog.GetString
("WARNING: ") + message + "\n");
+ DispatchService.RunPendingEvents ();
+ }
+ warningMessages.Add (message);
+ }
+
+ public override void ReportError (string message, Exception ex)
+ {
+ if (message == null && ex != null)
+ message = ex.Message;
+ else if (message != null && ex != null) {
+ if (!message.EndsWith (".")) message += ".";
+ message += " " + ex.Message;
+ }
+
+ errorsMessages.Add (message);
+ if (ex != null) {
+ Runtime.LoggingService.Error (ex);
+ errorException = ex;
+ }
+
+ if (dialog != null) {
+ dialog.WriteText (GettextCatalog.GetString
("ERROR: ") + message + "\n");
+ DispatchService.RunPendingEvents ();
+ }
+ }
+
+ protected override void OnCompleted ()
+ {
+ DispatchService.GuiDispatch (new MessageHandler
(ShowDialogs));
+ base.OnCompleted ();
+ }
+
+ void ShowDialogs ()
+ {
+ if (dialog != null) {
+ dialog.AllDone ();
+ }
+
+ if (showDetails)
+ return;
+
+ if (errorsMessages.Count > 0) {
+ string s = "";
+ foreach (string m in errorsMessages)
+ s += m + "\n";
+ Services.MessageService.ShowError
(errorException, s);
+ }
+
+ if (warningMessages.Count > 0) {
+ string s = "";
+ foreach (string m in warningMessages)
+ s += m + "\n";
+ Services.MessageService.ShowWarning (s);
+ }
+ }
+ }
+}
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
2007-09-27 14:16:44 UTC (rev 86497)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
2007-09-27 14:17:53 UTC (rev 86498)
@@ -170,25 +170,32 @@
<File name="./Freedesktop.RecentFiles/RecentItem.cs" subtype="Code"
buildaction="Compile" />
<File name="./Freedesktop.RecentFiles/RecentFileStorage.cs" subtype="Code"
buildaction="Compile" />
<File name="./MonoDevelop.Core.Gui/ResourceService.cs" subtype="Code"
buildaction="Compile" />
+ <File
name="./MonoDevelop.Core.Gui.ProgressMonitoring/MultiTaskDialogProgressMonitor.cs"
subtype="Code" buildaction="Compile" />
+ <File name="./gtk-gui/gui.stetic" subtype="Code"
buildaction="EmbedAsResource" />
+ <File name="./gtk-gui/generated.cs" subtype="Code" buildaction="Compile" />
+ <File name="./MonoDevelop.Core.Gui.Dialogs/MultiTaskProgressDialog.cs"
subtype="Code" buildaction="Compile" />
+ <File
name="./gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs"
subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="False" refto="gecko-sharp,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021" />
- <ProjectReference type="Gac" localcopy="False" refto="glade-sharp,
Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="False" refto="gnome-sharp,
Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Gac" localcopy="False" refto="gnome-vfs-sharp,
Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="False" refto="System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Gac" localcopy="False" refto="System.Xml,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Gac" localcopy="False"
refto="ICSharpCode.SharpZipLib, Version=2.84.0.0, Culture=neutral,
PublicKeyToken=1b03e6acf1164f73" />
<ProjectReference type="Project" localcopy="False"
refto="MonoDevelop.Core" />
<ProjectReference type="Project" localcopy="False"
refto="MonoDevelop.Components" />
<ProjectReference type="Gac" localcopy="True" refto="System.Drawing,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <ProjectReference type="Project" localcopy="False" refto="Mono.Addins" />
+ <ProjectReference type="Project" localcopy="False" refto="Mono.Addins.Gui"
/>
+ <ProjectReference type="Project" localcopy="False"
refto="Mono.Addins.Setup" />
+ <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
+ <ProjectReference type="Gac" localcopy="True" refto="glade-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <ProjectReference type="Gac" localcopy="True" refto="gnome-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <ProjectReference type="Gac" localcopy="True" refto="gnome-vfs-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="pango-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="atk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="gdk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="gtk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
- <ProjectReference type="Project" localcopy="False" refto="Mono.Addins" />
- <ProjectReference type="Project" localcopy="False" refto="Mono.Addins.Gui"
/>
- <ProjectReference type="Project" localcopy="False"
refto="Mono.Addins.Setup" />
+ <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp,
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
</References>
<MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True"
RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName=""
SyncReferences="True" IsAutotoolsProject="True"
RelativeConfigureInPath="../../../">
<ExcludedFiles>
@@ -202,6 +209,7 @@
<AsmRefVar Sync="True" Name="REFS" Prefix="-r:" />
<ProjectRefVar Sync="True" Name="REFS" Prefix="-r:" />
</MonoDevelop.Autotools.MakefileInfo>
+ <GtkDesignInfo gtkVersion="2.8.3" />
<DeploymentInformation strategy="File">
<excludeFiles />
</DeploymentInformation>
Added:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs
2007-09-27 14:16:44 UTC (rev 86497)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.cs
2007-09-27 14:17:53 UTC (rev 86498)
@@ -0,0 +1,148 @@
+//
------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+// Mono Runtime Version: 2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+//
------------------------------------------------------------------------------
+
+namespace MonoDevelop.Core.Gui.Dialogs {
+
+
+ public partial class MultiTaskProgressDialog {
+
+ private Gtk.Label title;
+
+ private Gtk.ScrolledWindow progressScroll;
+
+ private Gtk.TreeView progressTreeView;
+
+ private Gtk.Label label1;
+
+ private Gtk.ScrolledWindow detailsScroll;
+
+ private Gtk.TextView detailsTextView;
+
+ private Gtk.Button buttonCancel;
+
+ private Gtk.Button buttonClose;
+
+ protected virtual void Build() {
+ Stetic.Gui.Initialize(this);
+ // Widget MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog
+ this.Name = "MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog";
+ this.Title = Mono.Unix.Catalog.GetString("Progress");
+ this.WindowPosition = ((Gtk.WindowPosition)(4));
+ this.Modal = true;
+ this.BorderWidth = ((uint)(6));
+ this.HasSeparator = false;
+ // Internal child
MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.VBox
+ Gtk.VBox w1 = this.VBox;
+ w1.Name = "dialog1_VBox";
+ w1.Spacing = 6;
+ w1.BorderWidth = ((uint)(2));
+ // Container child dialog1_VBox.Gtk.Box+BoxChild
+ this.title = new Gtk.Label();
+ this.title.Name = "title";
+ this.title.Xalign = 0F;
+ this.title.LabelProp = "";
+ this.title.UseMarkup = true;
+ w1.Add(this.title);
+ Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.title]));
+ w2.Position = 0;
+ w2.Expand = false;
+ w2.Fill = false;
+ // Container child dialog1_VBox.Gtk.Box+BoxChild
+ this.progressScroll = new Gtk.ScrolledWindow();
+ this.progressScroll.WidthRequest = 400;
+ this.progressScroll.HeightRequest = 150;
+ this.progressScroll.CanFocus = true;
+ this.progressScroll.Name = "progressScroll";
+ this.progressScroll.VscrollbarPolicy = ((Gtk.PolicyType)(1));
+ this.progressScroll.HscrollbarPolicy = ((Gtk.PolicyType)(2));
+ this.progressScroll.ShadowType = ((Gtk.ShadowType)(1));
+ // Container child progressScroll.Gtk.Container+ContainerChild
+ this.progressTreeView = new Gtk.TreeView();
+ this.progressTreeView.CanFocus = true;
+ this.progressTreeView.Name = "progressTreeView";
+ this.progressTreeView.HeadersClickable = true;
+ this.progressScroll.Add(this.progressTreeView);
+ w1.Add(this.progressScroll);
+ Gtk.Box.BoxChild w4 =
((Gtk.Box.BoxChild)(w1[this.progressScroll]));
+ w4.Position = 1;
+ // Container child dialog1_VBox.Gtk.Box+BoxChild
+ this.label1 = new Gtk.Label();
+ this.label1.Name = "label1";
+ this.label1.Xalign = 0F;
+ this.label1.LabelProp = Mono.Unix.Catalog.GetString("Details:");
+ w1.Add(this.label1);
+ Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.label1]));
+ w5.Position = 2;
+ w5.Expand = false;
+ w5.Fill = false;
+ w5.Padding = ((uint)(2));
+ // Container child dialog1_VBox.Gtk.Box+BoxChild
+ this.detailsScroll = new Gtk.ScrolledWindow();
+ this.detailsScroll.HeightRequest = 120;
+ this.detailsScroll.CanFocus = true;
+ this.detailsScroll.Name = "detailsScroll";
+ this.detailsScroll.VscrollbarPolicy = ((Gtk.PolicyType)(1));
+ this.detailsScroll.HscrollbarPolicy = ((Gtk.PolicyType)(2));
+ this.detailsScroll.ShadowType = ((Gtk.ShadowType)(1));
+ // Container child detailsScroll.Gtk.Container+ContainerChild
+ this.detailsTextView = new Gtk.TextView();
+ this.detailsTextView.CanFocus = true;
+ this.detailsTextView.Name = "detailsTextView";
+ this.detailsTextView.Editable = false;
+ this.detailsTextView.CursorVisible = false;
+ this.detailsTextView.WrapMode = ((Gtk.WrapMode)(3));
+ this.detailsScroll.Add(this.detailsTextView);
+ w1.Add(this.detailsScroll);
+ Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.detailsScroll]));
+ w7.Position = 3;
+ // Internal child
MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog.ActionArea
+ Gtk.HButtonBox w8 = this.ActionArea;
+ w8.Name = "dialog1_ActionArea";
+ w8.Spacing = 6;
+ w8.BorderWidth = ((uint)(5));
+ w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
+ // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+ this.buttonCancel = new Gtk.Button();
+ this.buttonCancel.CanDefault = true;
+ this.buttonCancel.CanFocus = true;
+ this.buttonCancel.Name = "buttonCancel";
+ this.buttonCancel.UseStock = true;
+ this.buttonCancel.UseUnderline = true;
+ this.buttonCancel.Label = "gtk-cancel";
+ this.AddActionWidget(this.buttonCancel, -6);
+ Gtk.ButtonBox.ButtonBoxChild w9 =
((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel]));
+ w9.Expand = false;
+ w9.Fill = false;
+ // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+ this.buttonClose = new Gtk.Button();
+ this.buttonClose.CanDefault = true;
+ this.buttonClose.CanFocus = true;
+ this.buttonClose.Name = "buttonClose";
+ this.buttonClose.UseStock = true;
+ this.buttonClose.UseUnderline = true;
+ this.buttonClose.Label = "gtk-close";
+ this.AddActionWidget(this.buttonClose, -7);
+ Gtk.ButtonBox.ButtonBoxChild w10 =
((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonClose]));
+ w10.Position = 1;
+ w10.Expand = false;
+ w10.Fill = false;
+ if ((this.Child != null)) {
+ this.Child.ShowAll();
+ }
+ this.DefaultWidth = 491;
+ this.DefaultHeight = 418;
+ this.title.Hide();
+ this.Show();
+ this.DeleteEvent += new
Gtk.DeleteEventHandler(this.OnCloseWindowButton);
+ this.buttonCancel.Released += new
System.EventHandler(this.OnCancel);
+ this.buttonClose.Released += new System.EventHandler(this.OnClose);
+ }
+ }
+}
Added: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/generated.cs
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/generated.cs
2007-09-27 14:16:44 UTC (rev 86497)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/generated.cs
2007-09-27 14:17:53 UTC (rev 86498)
@@ -0,0 +1,35 @@
+//
------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+// Mono Runtime Version: 2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+//
------------------------------------------------------------------------------
+
+namespace Stetic {
+
+
+ internal class Gui {
+
+ private static bool initialized;
+
+ internal static void Initialize(Gtk.Widget iconRenderer) {
+ if ((Stetic.Gui.initialized == false)) {
+ Stetic.Gui.initialized = true;
+ }
+ }
+ }
+
+ internal class ActionGroups {
+
+ public static Gtk.ActionGroup GetActionGroup(System.Type type) {
+ return Stetic.ActionGroups.GetActionGroup(type.FullName);
+ }
+
+ public static Gtk.ActionGroup GetActionGroup(string name) {
+ return null;
+ }
+ }
+}
Added: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/gui.stetic
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/gui.stetic
2007-09-27 14:16:44 UTC (rev 86497)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/gtk-gui/gui.stetic
2007-09-27 14:17:53 UTC (rev 86498)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="utf-8"?>
+<stetic-interface>
+ <configuration>
+ <images-root-path>../</images-root-path>
+ <target-gtk-version>2.8.3</target-gtk-version>
+ </configuration>
+ <import>
+ <widget-library name="../../../../build/bin/MonoDevelop.Components.dll" />
+ </import>
+ <widget class="Gtk.Dialog"
id="MonoDevelop.Core.Gui.Dialogs.MultiTaskProgressDialog" design-size="491 418">
+ <property name="MemberName" />
+ <property name="Title" translatable="yes">Progress</property>
+ <property name="WindowPosition">CenterOnParent</property>
+ <property name="Modal">True</property>
+ <property name="BorderWidth">6</property>
+ <property name="Buttons">2</property>
+ <property name="HelpButton">False</property>
+ <property name="HasSeparator">False</property>
+ <signal name="DeleteEvent" handler="OnCloseWindowButton" />
+ <child internal-child="VBox">
+ <widget class="Gtk.VBox" id="dialog1_VBox">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <property name="BorderWidth">2</property>
+ <child>
+ <widget class="Gtk.Label" id="title">
+ <property name="MemberName" />
+ <property name="Visible">False</property>
+ <property name="Xalign">0</property>
+ <property name="LabelProp" translatable="yes" />
+ <property name="UseMarkup">True</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.ScrolledWindow" id="progressScroll">
+ <property name="MemberName" />
+ <property name="WidthRequest">400</property>
+ <property name="HeightRequest">150</property>
+ <property name="CanFocus">True</property>
+ <property name="VscrollbarPolicy">Automatic</property>
+ <property name="HscrollbarPolicy">Never</property>
+ <property name="ShadowType">In</property>
+ <child>
+ <widget class="Gtk.TreeView" id="progressTreeView">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="HeadersClickable">True</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="label1">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ <property name="LabelProp" translatable="yes">Details:</property>
+ </widget>
+ <packing>
+ <property name="Position">2</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ <property name="Padding">2</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.ScrolledWindow" id="detailsScroll">
+ <property name="MemberName" />
+ <property name="HeightRequest">120</property>
+ <property name="CanFocus">True</property>
+ <property name="VscrollbarPolicy">Automatic</property>
+ <property name="HscrollbarPolicy">Never</property>
+ <property name="ShadowType">In</property>
+ <child>
+ <widget class="Gtk.TextView" id="detailsTextView">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Editable">False</property>
+ <property name="CursorVisible">False</property>
+ <property name="Text" translatable="yes" />
+ <property name="WrapMode">WordChar</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">3</property>
+ <property name="AutoSize">True</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ <child internal-child="ActionArea">
+ <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <property name="BorderWidth">5</property>
+ <property name="Size">2</property>
+ <property name="LayoutStyle">End</property>
+ <child>
+ <widget class="Gtk.Button" id="buttonCancel">
+ <property name="MemberName" />
+ <property name="CanDefault">True</property>
+ <property name="CanFocus">True</property>
+ <property name="UseStock">True</property>
+ <property name="Type">StockItem</property>
+ <property name="StockId">gtk-cancel</property>
+ <property name="ResponseId">-6</property>
+ <signal name="Released" handler="OnCancel" />
+ <property name="label">gtk-cancel</property>
+ </widget>
+ <packing>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Button" id="buttonClose">
+ <property name="MemberName" />
+ <property name="CanDefault">True</property>
+ <property name="CanFocus">True</property>
+ <property name="UseStock">True</property>
+ <property name="Type">StockItem</property>
+ <property name="StockId">gtk-close</property>
+ <property name="ResponseId">-7</property>
+ <signal name="Released" handler="OnClose" />
+ <property name="label">gtk-close</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</stetic-interface>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches