diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-03-26 13:52:19 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-03-26 13:52:19 +0300 |
commit | 3f228350d81c69eba39585882854f68e7464c96e (patch) | |
tree | a6dcf8f63b6457cb2eb9ca4911b69bae5daaeb15 | |
parent | ead24e8a6dd59649e1ec4315ef1dbc193e6e9efa (diff) |
* Test/UnitTests/IWriter.cs:
* Test/UnitTests/Makefile.am:
* Test/UnitTests/TestBase.cs:
* Test/UnitTests/TestSetup.cs:
* Test/UnitTests/TestEvents.cs:
* Test/FileExtender/Makefile.am:
* Test/UnitTests/UnitTests.csproj:
* Test/UnitTests/TestConditions.cs:
* Test/UnitTests/TestLoadUnload.cs:
* Test/UnitTests/TestExtensions.cs:
* Test/UnitTests/SimpleApp.addin.xml:
* Test/UnitTests/NodeWithAttribute.cs:
* Test/HelloWorldExtension/Makefile.am:
* Test/SystemInfoExtension/Makefile.am:
* Test/UnitTests/IWriterWithMetadata.cs:
* Test/FileExtender/FileExtender.csproj:
* Test/FileExtender/FileExtender.addin.xml:
* Test/FileExtender/FileExtender.Bis.addin.xml:
* Test/HelloWorldExtension/HelloWorldWriter.cs:
* Test/SystemInfoExtension/SystemInfoWriter.cs:
* Test/HelloWorldExtension/AttributeExtensions.cs:
* Test/HelloWorldExtension/HelloWriterWithMetadata.cs:
* Test/HelloWorldExtension/HelloWorldExtension.csproj:
* Test/SystemInfoExtension/SystemInfoExtension.csproj: Updated and
created new tests for testing extension definition using the new
features.
* Test/CommandExtension/CommandExtension.csproj:
* Test/FileContentExtension/FileContentExtension.csproj:
* Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj:
* Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj:
Disable makefile integration since we are not using makefiles
anymore.
* mautil/mautil.csproj:
* Mono.Addins.Gui/gtk-gui/generated.cs:
* Mono.Addins.Gui/Mono.Addins.Gui.csproj:
* docs/Mono.Addins.Setup/SetupService.xml:
* Mono.Addins.Setup/Mono.Addins.Setup.csproj:
* Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ErrorDialog.cs:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ProgressDialog.cs:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs:
* Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs:
* Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs:
* Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs:
* Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj:
Flush.
svn path=/trunk/mono-addins/; revision=154255
59 files changed, 2377 insertions, 1830 deletions
diff --git a/Mono.Addins.CecilReflector/ChangeLog b/Mono.Addins.CecilReflector/ChangeLog index acf3175..da29137 100644 --- a/Mono.Addins.CecilReflector/ChangeLog +++ b/Mono.Addins.CecilReflector/ChangeLog @@ -1,5 +1,9 @@ 2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + * Mono.Addins.CecilReflector.csproj: Flush. + +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + * Mono.Addins.CecilReflector/Reflector.cs: Implement GetRawCustomAttributes. diff --git a/Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj b/Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj index b99372a..46056a8 100644 --- a/Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj +++ b/Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj @@ -8,6 +8,9 @@ <OutputType>Library</OutputType> <AssemblyName>Mono.Addins.CecilReflector</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>Mono.Addins.CecilReflector</RootNamespace> + <SignAssembly>true</SignAssembly> + <AssemblyOriginatorKeyFile>..\mono-addins.snk</AssemblyOriginatorKeyFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -17,10 +20,7 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - <AssemblyOriginatorKeyFile>..\mono-addins.snk</AssemblyOriginatorKeyFile> - <SignAssembly>true</SignAssembly> <ConsolePause>false</ConsolePause> - <AssemblyKeyFile>..\mono-addins.snk</AssemblyKeyFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> diff --git a/Mono.Addins.Gui/ChangeLog b/Mono.Addins.Gui/ChangeLog index ff44c25..65b5681 100644 --- a/Mono.Addins.Gui/ChangeLog +++ b/Mono.Addins.Gui/ChangeLog @@ -1,3 +1,16 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * gtk-gui/generated.cs: + * Mono.Addins.Gui.csproj: + * gtk-gui/Mono.Addins.Gui.ErrorDialog.cs: + * gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs: + * gtk-gui/Mono.Addins.Gui.ProgressDialog.cs: + * gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs: + * gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs: + * gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs: + * gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs: + * gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs: Flush. + 2009-09-01 Lluis Sanchez Gual <lluis@novell.com> * AssemblyInfo.cs: Bump Mono.Addins version. diff --git a/Mono.Addins.Gui/Mono.Addins.Gui.csproj b/Mono.Addins.Gui/Mono.Addins.Gui.csproj index 8c43f20..15cdaf9 100644 --- a/Mono.Addins.Gui/Mono.Addins.Gui.csproj +++ b/Mono.Addins.Gui/Mono.Addins.Gui.csproj @@ -8,6 +8,9 @@ <OutputType>Library</OutputType> <AssemblyName>Mono.Addins.Gui</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>Mono.Addins.Gui</RootNamespace> + <SignAssembly>true</SignAssembly> + <AssemblyOriginatorKeyFile>..\mono-addins.snk</AssemblyOriginatorKeyFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Default|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -17,10 +20,7 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - <AssemblyOriginatorKeyFile>..\mono-addins.snk</AssemblyOriginatorKeyFile> - <SignAssembly>true</SignAssembly> <ConsolePause>false</ConsolePause> - <AssemblyKeyFile>..\mono-addins.snk</AssemblyKeyFile> </PropertyGroup> <ItemGroup> <Reference Include="glib-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs index c66b01c..1f01c15 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs @@ -1,108 +1,103 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ -namespace Mono.Addins.Gui { - - - internal partial class AddinInfoDialog { - - private Gtk.HBox hbox81; - - private Gtk.VBox vbox94; - - private Gtk.Image packageImage; - - private Gtk.ScrolledWindow scrolledwindow22; - - private Gtk.Label infoLabel; - - private Gtk.Button closebutton3; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.AddinInfoDialog - this.Name = "Mono.Addins.Gui.AddinInfoDialog"; - this.Title = Mono.Unix.Catalog.GetString("Package"); - this.TypeHint = ((Gdk.WindowTypeHint)(1)); - this.BorderWidth = ((uint)(6)); - this.DefaultWidth = 550; - this.DefaultHeight = 400; - // Internal child Mono.Addins.Gui.AddinInfoDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog-vbox12"; - w1.Spacing = 6; - // Container child dialog-vbox12.Gtk.Box+BoxChild - this.hbox81 = new Gtk.HBox(); - this.hbox81.Name = "hbox81"; - this.hbox81.Spacing = 12; - this.hbox81.BorderWidth = ((uint)(6)); - // Container child hbox81.Gtk.Box+BoxChild - this.vbox94 = new Gtk.VBox(); - this.vbox94.Name = "vbox94"; - // Container child vbox94.Gtk.Box+BoxChild - this.packageImage = new Gtk.Image(); - this.packageImage.Name = "packageImage"; - this.vbox94.Add(this.packageImage); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox94[this.packageImage])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - this.hbox81.Add(this.vbox94); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox81[this.vbox94])); - w3.Position = 0; - w3.Expand = false; - w3.Fill = false; - // Container child hbox81.Gtk.Box+BoxChild - this.scrolledwindow22 = new Gtk.ScrolledWindow(); - this.scrolledwindow22.CanFocus = true; - this.scrolledwindow22.Name = "scrolledwindow22"; - // Container child scrolledwindow22.Gtk.Container+ContainerChild - Gtk.Viewport w4 = new Gtk.Viewport(); - w4.ShadowType = ((Gtk.ShadowType)(0)); - // Container child viewport4.Gtk.Container+ContainerChild - this.infoLabel = new Gtk.Label(); - this.infoLabel.WidthRequest = 420; - this.infoLabel.Name = "infoLabel"; - this.infoLabel.Xpad = 6; - this.infoLabel.Ypad = 6; - this.infoLabel.Xalign = 0F; - this.infoLabel.Yalign = 0F; - this.infoLabel.LabelProp = "aa a a a a a a a a aa a a a a aaa a a a a a a a a aa a a a a aaa a a a a a a a a aa a a a a a"; - this.infoLabel.Wrap = true; - w4.Add(this.infoLabel); - this.scrolledwindow22.Add(w4); - this.hbox81.Add(this.scrolledwindow22); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox81[this.scrolledwindow22])); - w7.Position = 1; - w1.Add(this.hbox81); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox81])); - w8.Position = 0; - // Internal child Mono.Addins.Gui.AddinInfoDialog.ActionArea - Gtk.HButtonBox w9 = this.ActionArea; - w9.Name = "dialog-action_area12"; - w9.Spacing = 10; - w9.BorderWidth = ((uint)(6)); - w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog-action_area12.Gtk.ButtonBox+ButtonBoxChild - this.closebutton3 = new Gtk.Button(); - this.closebutton3.CanDefault = true; - this.closebutton3.CanFocus = true; - this.closebutton3.Name = "closebutton3"; - this.closebutton3.UseStock = true; - this.closebutton3.UseUnderline = true; - this.closebutton3.Label = "gtk-close"; - this.AddActionWidget(this.closebutton3, -7); - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.Show(); - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class AddinInfoDialog + { + private global::Gtk.HBox hbox81; + + private global::Gtk.VBox vbox94; + + private global::Gtk.Image packageImage; + + private global::Gtk.ScrolledWindow scrolledwindow22; + + private global::Gtk.Label infoLabel; + + private global::Gtk.Button closebutton3; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.AddinInfoDialog + this.Name = "Mono.Addins.Gui.AddinInfoDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Package"); + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); + this.BorderWidth = ((uint)(6)); + this.DefaultWidth = 550; + this.DefaultHeight = 400; + // Internal child Mono.Addins.Gui.AddinInfoDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog-vbox12"; + w1.Spacing = 6; + // Container child dialog-vbox12.Gtk.Box+BoxChild + this.hbox81 = new global::Gtk.HBox (); + this.hbox81.Name = "hbox81"; + this.hbox81.Spacing = 12; + this.hbox81.BorderWidth = ((uint)(6)); + // Container child hbox81.Gtk.Box+BoxChild + this.vbox94 = new global::Gtk.VBox (); + this.vbox94.Name = "vbox94"; + // Container child vbox94.Gtk.Box+BoxChild + this.packageImage = new global::Gtk.Image (); + this.packageImage.Name = "packageImage"; + this.vbox94.Add (this.packageImage); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox94[this.packageImage])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + this.hbox81.Add (this.vbox94); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox81[this.vbox94])); + w3.Position = 0; + w3.Expand = false; + w3.Fill = false; + // Container child hbox81.Gtk.Box+BoxChild + this.scrolledwindow22 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow22.CanFocus = true; + this.scrolledwindow22.Name = "scrolledwindow22"; + // Container child scrolledwindow22.Gtk.Container+ContainerChild + global::Gtk.Viewport w4 = new global::Gtk.Viewport (); + w4.ShadowType = ((global::Gtk.ShadowType)(0)); + // Container child viewport4.Gtk.Container+ContainerChild + this.infoLabel = new global::Gtk.Label (); + this.infoLabel.WidthRequest = 420; + this.infoLabel.Name = "infoLabel"; + this.infoLabel.Xpad = 6; + this.infoLabel.Ypad = 6; + this.infoLabel.Xalign = 0f; + this.infoLabel.Yalign = 0f; + this.infoLabel.LabelProp = "aa a a a a a a a a aa a a a a aaa a a a a a a a a aa a a a a aaa a a a a a a a a aa a a a a a"; + this.infoLabel.Wrap = true; + w4.Add (this.infoLabel); + this.scrolledwindow22.Add (w4); + this.hbox81.Add (this.scrolledwindow22); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox81[this.scrolledwindow22])); + w7.Position = 1; + w1.Add (this.hbox81); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1[this.hbox81])); + w8.Position = 0; + // Internal child Mono.Addins.Gui.AddinInfoDialog.ActionArea + global::Gtk.HButtonBox w9 = this.ActionArea; + w9.Name = "dialog-action_area12"; + w9.Spacing = 10; + w9.BorderWidth = ((uint)(6)); + w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog-action_area12.Gtk.ButtonBox+ButtonBoxChild + this.closebutton3 = new global::Gtk.Button (); + this.closebutton3.CanDefault = true; + this.closebutton3.CanFocus = true; + this.closebutton3.Name = "closebutton3"; + this.closebutton3.UseStock = true; + this.closebutton3.UseUnderline = true; + this.closebutton3.Label = "gtk-close"; + this.AddActionWidget (this.closebutton3, -7); + global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.closebutton3])); + w10.Expand = false; + w10.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.Show (); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs index fd667d0..f7f8f1c 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallDialog.cs @@ -1,540 +1,541 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ - -namespace Mono.Addins.Gui { - - - internal partial class AddinInstallDialog { - - private Gtk.Notebook wizardNotebook; - - private Gtk.VBox vbox82; - - private Gtk.Label label113; - - private Gtk.HBox hbox66; - - private Gtk.Label label112; - - private Gtk.ComboBox repoCombo; - - private Gtk.Button button1; - - private Gtk.Button btnManageSites; - - private Gtk.HBox hbox70; - - private Gtk.VBox vbox92; - - private Gtk.ScrolledWindow scrolledwindow18; - - private Gtk.TreeView addinTree; - - private Gtk.HBox hbox83; - - private Gtk.ComboBox filterComboBox; - - private Gtk.Button btnInfo; - - private Gtk.Button btnUnselectAll; - - private Gtk.Button btnSelectAll; - - private Gtk.Label label108; - - private Gtk.ScrolledWindow scrolledwindow19; - - private Gtk.HBox hbox82; - - private Gtk.Image imageInstall; - - private Gtk.Label labelSummary; - - private Gtk.Label label124; - - private Gtk.VBox vbox86; - - private Gtk.Label label1; - - private Gtk.Label globalProgressLabel; - - private Gtk.ProgressBar mainProgressBar; - - private Gtk.Label label2; - - private Gtk.Label label110; - - private Gtk.ScrolledWindow scrolledwindow20; - - private Gtk.VBox vbox91; - - private Gtk.Label label130; - - private Gtk.Image imageError; - - private Gtk.Image imageWarn; - - private Gtk.Image imageInfo; - - private Gtk.HBox hbox71; - - private Gtk.Label labelResult; - - private Gtk.Label label131; - - private Gtk.Label label111; - - private Gtk.HButtonBox dialog_action_area9; - - private Gtk.Button btnCancel; - - private Gtk.Button btnPrev; - - private Gtk.Button btnNext; - - private Gtk.Button btnOk; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.AddinInstallDialog - this.Name = "Mono.Addins.Gui.AddinInstallDialog"; - this.Title = Mono.Unix.Catalog.GetString("Add-in Installation"); - this.TypeHint = ((Gdk.WindowTypeHint)(1)); - this.Modal = true; - this.BorderWidth = ((uint)(6)); - this.DefaultWidth = 725; - this.DefaultHeight = 550; - // Internal child Mono.Addins.Gui.AddinInstallDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog-vbox9"; - w1.Spacing = 6; - w1.BorderWidth = ((uint)(2)); - // Container child dialog-vbox9.Gtk.Box+BoxChild - this.wizardNotebook = new Gtk.Notebook(); - this.wizardNotebook.CanFocus = true; - this.wizardNotebook.Name = "wizardNotebook"; - this.wizardNotebook.CurrentPage = 0; - this.wizardNotebook.ShowBorder = false; - this.wizardNotebook.BorderWidth = ((uint)(6)); - // Container child wizardNotebook.Gtk.Notebook+NotebookChild - this.vbox82 = new Gtk.VBox(); - this.vbox82.Name = "vbox82"; - this.vbox82.Spacing = 12; - // Container child vbox82.Gtk.Box+BoxChild - this.label113 = new Gtk.Label(); - this.label113.Name = "label113"; - this.label113.Xalign = 0F; - this.label113.LabelProp = Mono.Unix.Catalog.GetString("<b>Select the add-ins to install and click on Next</b>"); - this.label113.UseMarkup = true; - this.vbox82.Add(this.label113); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox82[this.label113])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox82.Gtk.Box+BoxChild - this.hbox66 = new Gtk.HBox(); - this.hbox66.Name = "hbox66"; - this.hbox66.Spacing = 6; - // Container child hbox66.Gtk.Box+BoxChild - this.label112 = new Gtk.Label(); - this.label112.Name = "label112"; - this.label112.LabelProp = Mono.Unix.Catalog.GetString("Install from:"); - this.hbox66.Add(this.label112); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox66[this.label112])); - w3.Position = 0; - w3.Expand = false; - w3.Fill = false; - // Container child hbox66.Gtk.Box+BoxChild - this.repoCombo = new Gtk.ComboBox(); - this.repoCombo.Name = "repoCombo"; - this.hbox66.Add(this.repoCombo); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox66[this.repoCombo])); - w4.Position = 1; - // Container child hbox66.Gtk.Box+BoxChild - this.button1 = new Gtk.Button(); - this.button1.CanFocus = true; - this.button1.Name = "button1"; - this.button1.UseStock = true; - this.button1.UseUnderline = true; - this.button1.Label = "gtk-refresh"; - this.hbox66.Add(this.button1); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox66[this.button1])); - w5.Position = 2; - w5.Expand = false; - w5.Fill = false; - // Container child hbox66.Gtk.Box+BoxChild - this.btnManageSites = new Gtk.Button(); - this.btnManageSites.CanFocus = true; - this.btnManageSites.Name = "btnManageSites"; - this.btnManageSites.UseUnderline = true; - this.btnManageSites.Label = Mono.Unix.Catalog.GetString("_Repositories..."); - this.hbox66.Add(this.btnManageSites); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox66[this.btnManageSites])); - w6.Position = 3; - w6.Expand = false; - w6.Fill = false; - this.vbox82.Add(this.hbox66); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox66])); - w7.Position = 1; - w7.Expand = false; - w7.Fill = false; - // Container child vbox82.Gtk.Box+BoxChild - this.hbox70 = new Gtk.HBox(); - this.hbox70.Name = "hbox70"; - this.hbox70.Spacing = 12; - // Container child hbox70.Gtk.Box+BoxChild - this.vbox92 = new Gtk.VBox(); - this.vbox92.Name = "vbox92"; - this.vbox92.Spacing = 6; - // Container child vbox92.Gtk.Box+BoxChild - this.scrolledwindow18 = new Gtk.ScrolledWindow(); - this.scrolledwindow18.CanFocus = true; - this.scrolledwindow18.Name = "scrolledwindow18"; - this.scrolledwindow18.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow18.Gtk.Container+ContainerChild - this.addinTree = new Gtk.TreeView(); - this.addinTree.CanFocus = true; - this.addinTree.Name = "addinTree"; - this.scrolledwindow18.Add(this.addinTree); - this.vbox92.Add(this.scrolledwindow18); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox92[this.scrolledwindow18])); - w9.Position = 0; - // Container child vbox92.Gtk.Box+BoxChild - this.hbox83 = new Gtk.HBox(); - this.hbox83.Name = "hbox83"; - this.hbox83.Spacing = 6; - // Container child hbox83.Gtk.Box+BoxChild - this.filterComboBox = Gtk.ComboBox.NewText(); - this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show all packages")); - this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show new versions only")); - this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show updates only")); - this.filterComboBox.Name = "filterComboBox"; - this.hbox83.Add(this.filterComboBox); - Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox83[this.filterComboBox])); - w10.Position = 0; - w10.Expand = false; - w10.Fill = false; - // Container child hbox83.Gtk.Box+BoxChild - this.btnInfo = new Gtk.Button(); - this.btnInfo.CanFocus = true; - this.btnInfo.Name = "btnInfo"; - this.btnInfo.UseStock = true; - this.btnInfo.UseUnderline = true; - this.btnInfo.Label = "gtk-dialog-info"; - this.hbox83.Add(this.btnInfo); - Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnInfo])); - w11.PackType = ((Gtk.PackType)(1)); - w11.Position = 1; - w11.Expand = false; - w11.Fill = false; - // Container child hbox83.Gtk.Box+BoxChild - this.btnUnselectAll = new Gtk.Button(); - this.btnUnselectAll.CanFocus = true; - this.btnUnselectAll.Name = "btnUnselectAll"; - this.btnUnselectAll.UseUnderline = true; - this.btnUnselectAll.Label = Mono.Unix.Catalog.GetString("_Unselect All"); - this.hbox83.Add(this.btnUnselectAll); - Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnUnselectAll])); - w12.PackType = ((Gtk.PackType)(1)); - w12.Position = 2; - w12.Expand = false; - w12.Fill = false; - // Container child hbox83.Gtk.Box+BoxChild - this.btnSelectAll = new Gtk.Button(); - this.btnSelectAll.CanFocus = true; - this.btnSelectAll.Name = "btnSelectAll"; - this.btnSelectAll.UseUnderline = true; - this.btnSelectAll.Label = Mono.Unix.Catalog.GetString("Select _All"); - this.hbox83.Add(this.btnSelectAll); - Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnSelectAll])); - w13.PackType = ((Gtk.PackType)(1)); - w13.Position = 3; - w13.Expand = false; - w13.Fill = false; - this.vbox92.Add(this.hbox83); - Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox92[this.hbox83])); - w14.Position = 1; - w14.Expand = false; - w14.Fill = false; - this.hbox70.Add(this.vbox92); - Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox70[this.vbox92])); - w15.Position = 0; - this.vbox82.Add(this.hbox70); - Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox70])); - w16.Position = 2; - this.wizardNotebook.Add(this.vbox82); - // Notebook tab - this.label108 = new Gtk.Label(); - this.label108.Name = "label108"; - this.label108.LabelProp = "label108"; - this.wizardNotebook.SetTabLabel(this.vbox82, this.label108); - this.label108.ShowAll(); - // Container child wizardNotebook.Gtk.Notebook+NotebookChild - this.scrolledwindow19 = new Gtk.ScrolledWindow(); - this.scrolledwindow19.CanFocus = true; - this.scrolledwindow19.Name = "scrolledwindow19"; - // Container child scrolledwindow19.Gtk.Container+ContainerChild - Gtk.Viewport w18 = new Gtk.Viewport(); - // Container child viewport1.Gtk.Container+ContainerChild - this.hbox82 = new Gtk.HBox(); - this.hbox82.Name = "hbox82"; - this.hbox82.Spacing = 12; - this.hbox82.BorderWidth = ((uint)(12)); - // Container child hbox82.Gtk.Box+BoxChild - this.imageInstall = new Gtk.Image(); - this.imageInstall.Name = "imageInstall"; - this.imageInstall.Xalign = 0F; - this.imageInstall.Yalign = 0F; - this.imageInstall.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48); - this.hbox82.Add(this.imageInstall); - Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox82[this.imageInstall])); - w19.Position = 0; - w19.Expand = false; - w19.Fill = false; - // Container child hbox82.Gtk.Box+BoxChild - this.labelSummary = new Gtk.Label(); - this.labelSummary.Name = "labelSummary"; - this.labelSummary.Xpad = 6; - this.labelSummary.Ypad = 6; - this.labelSummary.Xalign = 0F; - this.labelSummary.Yalign = 0F; - this.labelSummary.LabelProp = "<b>The following add-ins will be installed:</b>\n\nC# language binding\nC# language IDE extension\n\n<b>The following add-ins are required by the selected add-ins</b>\n\nNUnit add-in\nNAnt add-in\n\nasd\nasd\na\nsd\nasd\nasd\na\nsda\nsd\nas\nda\nsd\nasd\n"; - this.labelSummary.UseMarkup = true; - this.labelSummary.Wrap = true; - this.hbox82.Add(this.labelSummary); - Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox82[this.labelSummary])); - w20.Position = 1; - w20.Expand = false; - w20.Fill = false; - w18.Add(this.hbox82); - this.scrolledwindow19.Add(w18); - this.wizardNotebook.Add(this.scrolledwindow19); - Gtk.Notebook.NotebookChild w23 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow19])); - w23.Position = 1; - // Notebook tab - this.label124 = new Gtk.Label(); - this.label124.Name = "label124"; - this.label124.LabelProp = Mono.Unix.Catalog.GetString("label124"); - this.wizardNotebook.SetTabLabel(this.scrolledwindow19, this.label124); - this.label124.ShowAll(); - // Container child wizardNotebook.Gtk.Notebook+NotebookChild - this.vbox86 = new Gtk.VBox(); - this.vbox86.Name = "vbox86"; - this.vbox86.Spacing = 6; - this.vbox86.BorderWidth = ((uint)(61)); - // Container child vbox86.Gtk.Box+BoxChild - this.label1 = new Gtk.Label(); - this.label1.Name = "label1"; - this.vbox86.Add(this.label1); - Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox86[this.label1])); - w24.Position = 0; - // Container child vbox86.Gtk.Box+BoxChild - this.globalProgressLabel = new Gtk.Label(); - this.globalProgressLabel.Name = "globalProgressLabel"; - this.globalProgressLabel.Xalign = 0F; - this.globalProgressLabel.LabelProp = Mono.Unix.Catalog.GetString("Overall Progress:"); - this.globalProgressLabel.Ellipsize = ((Pango.EllipsizeMode)(3)); - this.vbox86.Add(this.globalProgressLabel); - Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox86[this.globalProgressLabel])); - w25.Position = 1; - w25.Expand = false; - w25.Fill = false; - // Container child vbox86.Gtk.Box+BoxChild - this.mainProgressBar = new Gtk.ProgressBar(); - this.mainProgressBar.Name = "mainProgressBar"; - this.mainProgressBar.PulseStep = 10000000149; - this.vbox86.Add(this.mainProgressBar); - Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox86[this.mainProgressBar])); - w26.Position = 2; - w26.Expand = false; - w26.Fill = false; - // Container child vbox86.Gtk.Box+BoxChild - this.label2 = new Gtk.Label(); - this.label2.Name = "label2"; - this.vbox86.Add(this.label2); - Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox86[this.label2])); - w27.Position = 3; - this.wizardNotebook.Add(this.vbox86); - Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox86])); - w28.Position = 2; - // Notebook tab - this.label110 = new Gtk.Label(); - this.label110.Name = "label110"; - this.label110.LabelProp = "label110"; - this.wizardNotebook.SetTabLabel(this.vbox86, this.label110); - this.label110.ShowAll(); - // Container child wizardNotebook.Gtk.Notebook+NotebookChild - this.scrolledwindow20 = new Gtk.ScrolledWindow(); - this.scrolledwindow20.CanFocus = true; - this.scrolledwindow20.Name = "scrolledwindow20"; - // Container child scrolledwindow20.Gtk.Container+ContainerChild - Gtk.Viewport w29 = new Gtk.Viewport(); - // Container child viewport3.Gtk.Container+ContainerChild - this.vbox91 = new Gtk.VBox(); - this.vbox91.Name = "vbox91"; - // Container child vbox91.Gtk.Box+BoxChild - this.label130 = new Gtk.Label(); - this.label130.Name = "label130"; - this.vbox91.Add(this.label130); - Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox91[this.label130])); - w30.Position = 0; - // Container child vbox91.Gtk.Box+BoxChild - this.imageError = new Gtk.Image(); - this.imageError.Name = "imageError"; - this.imageError.Yalign = 1F; - this.imageError.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Dialog, 48); - this.vbox91.Add(this.imageError); - Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageError])); - w31.Position = 1; - w31.Expand = false; - w31.Fill = false; - w31.Padding = ((uint)(5)); - // Container child vbox91.Gtk.Box+BoxChild - this.imageWarn = new Gtk.Image(); - this.imageWarn.Name = "imageWarn"; - this.imageWarn.Yalign = 1F; - this.imageWarn.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48); - this.vbox91.Add(this.imageWarn); - Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageWarn])); - w32.Position = 2; - w32.Expand = false; - w32.Fill = false; - // Container child vbox91.Gtk.Box+BoxChild - this.imageInfo = new Gtk.Image(); - this.imageInfo.Name = "imageInfo"; - this.imageInfo.Yalign = 1F; - this.imageInfo.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Dialog, 48); - this.vbox91.Add(this.imageInfo); - Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageInfo])); - w33.Position = 3; - w33.Expand = false; - w33.Fill = false; - // Container child vbox91.Gtk.Box+BoxChild - this.hbox71 = new Gtk.HBox(); - this.hbox71.Name = "hbox71"; - // Container child hbox71.Gtk.Box+BoxChild - this.labelResult = new Gtk.Label(); - this.labelResult.WidthRequest = 450; - this.labelResult.Name = "labelResult"; - this.labelResult.Ypad = 9; - this.labelResult.Yalign = 0F; - this.labelResult.LabelProp = "Done"; - this.labelResult.UseMarkup = true; - this.labelResult.Wrap = true; - this.labelResult.Justify = ((Gtk.Justification)(2)); - this.hbox71.Add(this.labelResult); - Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox71[this.labelResult])); - w34.PackType = ((Gtk.PackType)(1)); - w34.Position = 0; - this.vbox91.Add(this.hbox71); - Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox91[this.hbox71])); - w35.Position = 4; - w35.Expand = false; - w35.Fill = false; - // Container child vbox91.Gtk.Box+BoxChild - this.label131 = new Gtk.Label(); - this.label131.Name = "label131"; - this.vbox91.Add(this.label131); - Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox91[this.label131])); - w36.Position = 5; - w29.Add(this.vbox91); - this.scrolledwindow20.Add(w29); - this.wizardNotebook.Add(this.scrolledwindow20); - Gtk.Notebook.NotebookChild w39 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20])); - w39.Position = 3; - // Notebook tab - this.label111 = new Gtk.Label(); - this.label111.Name = "label111"; - this.label111.LabelProp = "label111"; - this.wizardNotebook.SetTabLabel(this.scrolledwindow20, this.label111); - this.label111.ShowAll(); - w1.Add(this.wizardNotebook); - Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(w1[this.wizardNotebook])); - w40.Position = 0; - // Container child dialog-vbox9.Gtk.Box+BoxChild - this.dialog_action_area9 = new Gtk.HButtonBox(); - this.dialog_action_area9.Name = "dialog_action_area9"; - this.dialog_action_area9.Spacing = 9; - this.dialog_action_area9.BorderWidth = ((uint)(6)); - this.dialog_action_area9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild - this.btnCancel = new Gtk.Button(); - this.btnCancel.CanDefault = true; - this.btnCancel.CanFocus = true; - this.btnCancel.Name = "btnCancel"; - this.btnCancel.UseStock = true; - this.btnCancel.UseUnderline = true; - this.btnCancel.Label = "gtk-cancel"; - this.dialog_action_area9.Add(this.btnCancel); - // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild - this.btnPrev = new Gtk.Button(); - this.btnPrev.CanDefault = true; - this.btnPrev.CanFocus = true; - this.btnPrev.Name = "btnPrev"; - this.btnPrev.UseStock = true; - this.btnPrev.UseUnderline = true; - this.btnPrev.Label = "gtk-go-back"; - this.dialog_action_area9.Add(this.btnPrev); - Gtk.ButtonBox.ButtonBoxChild w42 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev])); - w42.Position = 1; - // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild - this.btnNext = new Gtk.Button(); - this.btnNext.CanDefault = true; - this.btnNext.CanFocus = true; - this.btnNext.Name = "btnNext"; - this.btnNext.UseStock = true; - this.btnNext.UseUnderline = true; - this.btnNext.Label = "gtk-go-forward"; - this.dialog_action_area9.Add(this.btnNext); - Gtk.ButtonBox.ButtonBoxChild w43 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext])); - w43.Position = 2; - // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild - this.btnOk = new Gtk.Button(); - this.btnOk.CanDefault = true; - this.btnOk.CanFocus = true; - this.btnOk.Name = "btnOk"; - this.btnOk.UseStock = true; - this.btnOk.UseUnderline = true; - this.btnOk.Label = "gtk-ok"; - this.dialog_action_area9.Add(this.btnOk); - Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk])); - w44.Position = 3; - w1.Add(this.dialog_action_area9); - Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(w1[this.dialog_action_area9])); - w45.PackType = ((Gtk.PackType)(1)); - w45.Position = 2; - w45.Expand = false; - w45.Fill = false; - // Internal child Mono.Addins.Gui.AddinInstallDialog.ActionArea - Gtk.HButtonBox w46 = this.ActionArea; - w46.Spacing = 6; - w46.BorderWidth = ((uint)(5)); - w46.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.btnOk.Hide(); - w46.Hide(); - this.Show(); - this.repoCombo.Changed += new System.EventHandler(this.OnRepoChanged); - this.button1.Clicked += new System.EventHandler(this.OnUpdateRepo); - this.btnManageSites.Clicked += new System.EventHandler(this.OnManageSites); - this.addinTree.CursorChanged += new System.EventHandler(this.OnActiveAddinChanged); - this.filterComboBox.Changed += new System.EventHandler(this.OnFilterChanged); - this.btnSelectAll.Clicked += new System.EventHandler(this.OnSelectAll); - this.btnUnselectAll.Clicked += new System.EventHandler(this.OnUnselectAll); - this.btnInfo.Clicked += new System.EventHandler(this.OnShowInfo); - this.btnCancel.Clicked += new System.EventHandler(this.OnCancel); - this.btnPrev.Clicked += new System.EventHandler(this.OnPrevPage); - this.btnNext.Clicked += new System.EventHandler(this.OnNextPage); - this.btnOk.Clicked += new System.EventHandler(this.OnOk); - } - } + +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class AddinInstallDialog + { + private global::Gtk.Notebook wizardNotebook; + + private global::Gtk.VBox vbox82; + + private global::Gtk.Label label113; + + private global::Gtk.HBox hbox66; + + private global::Gtk.Label label112; + + private global::Gtk.ComboBox repoCombo; + + private global::Gtk.Button button1; + + private global::Gtk.Button btnManageSites; + + private global::Gtk.HBox hbox70; + + private global::Gtk.VBox vbox92; + + private global::Gtk.ScrolledWindow scrolledwindow18; + + private global::Gtk.TreeView addinTree; + + private global::Gtk.HBox hbox83; + + private global::Gtk.ComboBox filterComboBox; + + private global::Gtk.Button btnInfo; + + private global::Gtk.Button btnUnselectAll; + + private global::Gtk.Button btnSelectAll; + + private global::Gtk.Label label108; + + private global::Gtk.ScrolledWindow scrolledwindow19; + + private global::Gtk.HBox hbox82; + + private global::Gtk.Image imageInstall; + + private global::Gtk.Label labelSummary; + + private global::Gtk.Label label124; + + private global::Gtk.VBox vbox86; + + private global::Gtk.Label label1; + + private global::Gtk.Label globalProgressLabel; + + private global::Gtk.ProgressBar mainProgressBar; + + private global::Gtk.Label label2; + + private global::Gtk.Label label110; + + private global::Gtk.ScrolledWindow scrolledwindow20; + + private global::Gtk.VBox vbox91; + + private global::Gtk.Label label130; + + private global::Gtk.Image imageError; + + private global::Gtk.Image imageWarn; + + private global::Gtk.Image imageInfo; + + private global::Gtk.HBox hbox71; + + private global::Gtk.Label labelResult; + + private global::Gtk.Label label131; + + private global::Gtk.Label label111; + + private global::Gtk.HButtonBox dialog_action_area9; + + private global::Gtk.Button btnCancel; + + private global::Gtk.Button btnPrev; + + private global::Gtk.Button btnNext; + + private global::Gtk.Button btnOk; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.AddinInstallDialog + this.Name = "Mono.Addins.Gui.AddinInstallDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Add-in Installation"); + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); + this.Modal = true; + this.BorderWidth = ((uint)(6)); + this.DefaultWidth = 725; + this.DefaultHeight = 550; + // Internal child Mono.Addins.Gui.AddinInstallDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog-vbox9"; + w1.Spacing = 6; + w1.BorderWidth = ((uint)(2)); + // Container child dialog-vbox9.Gtk.Box+BoxChild + this.wizardNotebook = new global::Gtk.Notebook (); + this.wizardNotebook.CanFocus = true; + this.wizardNotebook.Name = "wizardNotebook"; + this.wizardNotebook.CurrentPage = 0; + this.wizardNotebook.ShowBorder = false; + this.wizardNotebook.BorderWidth = ((uint)(6)); + // Container child wizardNotebook.Gtk.Notebook+NotebookChild + this.vbox82 = new global::Gtk.VBox (); + this.vbox82.Name = "vbox82"; + this.vbox82.Spacing = 12; + // Container child vbox82.Gtk.Box+BoxChild + this.label113 = new global::Gtk.Label (); + this.label113.Name = "label113"; + this.label113.Xalign = 0f; + this.label113.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Select the add-ins to install and click on Next</b>"); + this.label113.UseMarkup = true; + this.vbox82.Add (this.label113); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox82[this.label113])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child vbox82.Gtk.Box+BoxChild + this.hbox66 = new global::Gtk.HBox (); + this.hbox66.Name = "hbox66"; + this.hbox66.Spacing = 6; + // Container child hbox66.Gtk.Box+BoxChild + this.label112 = new global::Gtk.Label (); + this.label112.Name = "label112"; + this.label112.LabelProp = global::Mono.Unix.Catalog.GetString ("Install from:"); + this.hbox66.Add (this.label112); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox66[this.label112])); + w3.Position = 0; + w3.Expand = false; + w3.Fill = false; + // Container child hbox66.Gtk.Box+BoxChild + this.repoCombo = new global::Gtk.ComboBox (); + this.repoCombo.Name = "repoCombo"; + this.hbox66.Add (this.repoCombo); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox66[this.repoCombo])); + w4.Position = 1; + // Container child hbox66.Gtk.Box+BoxChild + this.button1 = new global::Gtk.Button (); + this.button1.CanFocus = true; + this.button1.Name = "button1"; + this.button1.UseStock = true; + this.button1.UseUnderline = true; + this.button1.Label = "gtk-refresh"; + this.hbox66.Add (this.button1); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox66[this.button1])); + w5.Position = 2; + w5.Expand = false; + w5.Fill = false; + // Container child hbox66.Gtk.Box+BoxChild + this.btnManageSites = new global::Gtk.Button (); + this.btnManageSites.CanFocus = true; + this.btnManageSites.Name = "btnManageSites"; + this.btnManageSites.UseUnderline = true; + this.btnManageSites.Label = global::Mono.Unix.Catalog.GetString ("_Repositories..."); + this.hbox66.Add (this.btnManageSites); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox66[this.btnManageSites])); + w6.Position = 3; + w6.Expand = false; + w6.Fill = false; + this.vbox82.Add (this.hbox66); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox82[this.hbox66])); + w7.Position = 1; + w7.Expand = false; + w7.Fill = false; + // Container child vbox82.Gtk.Box+BoxChild + this.hbox70 = new global::Gtk.HBox (); + this.hbox70.Name = "hbox70"; + this.hbox70.Spacing = 12; + // Container child hbox70.Gtk.Box+BoxChild + this.vbox92 = new global::Gtk.VBox (); + this.vbox92.Name = "vbox92"; + this.vbox92.Spacing = 6; + // Container child vbox92.Gtk.Box+BoxChild + this.scrolledwindow18 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow18.CanFocus = true; + this.scrolledwindow18.Name = "scrolledwindow18"; + this.scrolledwindow18.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow18.Gtk.Container+ContainerChild + this.addinTree = new global::Gtk.TreeView (); + this.addinTree.CanFocus = true; + this.addinTree.Name = "addinTree"; + this.scrolledwindow18.Add (this.addinTree); + this.vbox92.Add (this.scrolledwindow18); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox92[this.scrolledwindow18])); + w9.Position = 0; + // Container child vbox92.Gtk.Box+BoxChild + this.hbox83 = new global::Gtk.HBox (); + this.hbox83.Name = "hbox83"; + this.hbox83.Spacing = 6; + // Container child hbox83.Gtk.Box+BoxChild + this.filterComboBox = global::Gtk.ComboBox.NewText (); + this.filterComboBox.AppendText (global::Mono.Unix.Catalog.GetString ("Show all packages")); + this.filterComboBox.AppendText (global::Mono.Unix.Catalog.GetString ("Show new versions only")); + this.filterComboBox.AppendText (global::Mono.Unix.Catalog.GetString ("Show updates only")); + this.filterComboBox.Name = "filterComboBox"; + this.hbox83.Add (this.filterComboBox); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox83[this.filterComboBox])); + w10.Position = 0; + w10.Expand = false; + w10.Fill = false; + // Container child hbox83.Gtk.Box+BoxChild + this.btnInfo = new global::Gtk.Button (); + this.btnInfo.CanFocus = true; + this.btnInfo.Name = "btnInfo"; + this.btnInfo.UseStock = true; + this.btnInfo.UseUnderline = true; + this.btnInfo.Label = "gtk-dialog-info"; + this.hbox83.Add (this.btnInfo); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox83[this.btnInfo])); + w11.PackType = ((global::Gtk.PackType)(1)); + w11.Position = 1; + w11.Expand = false; + w11.Fill = false; + // Container child hbox83.Gtk.Box+BoxChild + this.btnUnselectAll = new global::Gtk.Button (); + this.btnUnselectAll.CanFocus = true; + this.btnUnselectAll.Name = "btnUnselectAll"; + this.btnUnselectAll.UseUnderline = true; + this.btnUnselectAll.Label = global::Mono.Unix.Catalog.GetString ("_Unselect All"); + this.hbox83.Add (this.btnUnselectAll); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox83[this.btnUnselectAll])); + w12.PackType = ((global::Gtk.PackType)(1)); + w12.Position = 2; + w12.Expand = false; + w12.Fill = false; + // Container child hbox83.Gtk.Box+BoxChild + this.btnSelectAll = new global::Gtk.Button (); + this.btnSelectAll.CanFocus = true; + this.btnSelectAll.Name = "btnSelectAll"; + this.btnSelectAll.UseUnderline = true; + this.btnSelectAll.Label = global::Mono.Unix.Catalog.GetString ("Select _All"); + this.hbox83.Add (this.btnSelectAll); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox83[this.btnSelectAll])); + w13.PackType = ((global::Gtk.PackType)(1)); + w13.Position = 3; + w13.Expand = false; + w13.Fill = false; + this.vbox92.Add (this.hbox83); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox92[this.hbox83])); + w14.Position = 1; + w14.Expand = false; + w14.Fill = false; + this.hbox70.Add (this.vbox92); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox70[this.vbox92])); + w15.Position = 0; + this.vbox82.Add (this.hbox70); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox82[this.hbox70])); + w16.Position = 2; + this.wizardNotebook.Add (this.vbox82); + // Notebook tab + this.label108 = new global::Gtk.Label (); + this.label108.Name = "label108"; + this.label108.LabelProp = "label108"; + this.wizardNotebook.SetTabLabel (this.vbox82, this.label108); + this.label108.ShowAll (); + // Container child wizardNotebook.Gtk.Notebook+NotebookChild + this.scrolledwindow19 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow19.CanFocus = true; + this.scrolledwindow19.Name = "scrolledwindow19"; + // Container child scrolledwindow19.Gtk.Container+ContainerChild + global::Gtk.Viewport w18 = new global::Gtk.Viewport (); + // Container child viewport1.Gtk.Container+ContainerChild + this.hbox82 = new global::Gtk.HBox (); + this.hbox82.Name = "hbox82"; + this.hbox82.Spacing = 12; + this.hbox82.BorderWidth = ((uint)(12)); + // Container child hbox82.Gtk.Box+BoxChild + this.imageInstall = new global::Gtk.Image (); + this.imageInstall.Name = "imageInstall"; + this.imageInstall.Xalign = 0f; + this.imageInstall.Yalign = 0f; + this.imageInstall.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-warning", global::Gtk.IconSize.Dialog); + this.hbox82.Add (this.imageInstall); + global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox82[this.imageInstall])); + w19.Position = 0; + w19.Expand = false; + w19.Fill = false; + // Container child hbox82.Gtk.Box+BoxChild + this.labelSummary = new global::Gtk.Label (); + this.labelSummary.Name = "labelSummary"; + this.labelSummary.Xpad = 6; + this.labelSummary.Ypad = 6; + this.labelSummary.Xalign = 0f; + this.labelSummary.Yalign = 0f; + this.labelSummary.LabelProp = "<b>The following add-ins will be installed:</b>\n\nC# language binding\nC# language IDE extension\n\n<b>The following add-ins are required by the selected add-ins</b>\n\nNUnit add-in\nNAnt add-in\n\nasd\nasd\na\nsd\nasd\nasd\na\nsda\nsd\nas\nda\nsd\nasd\n"; + this.labelSummary.UseMarkup = true; + this.labelSummary.Wrap = true; + this.hbox82.Add (this.labelSummary); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox82[this.labelSummary])); + w20.Position = 1; + w20.Expand = false; + w20.Fill = false; + w18.Add (this.hbox82); + this.scrolledwindow19.Add (w18); + this.wizardNotebook.Add (this.scrolledwindow19); + global::Gtk.Notebook.NotebookChild w23 = ((global::Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow19])); + w23.Position = 1; + // Notebook tab + this.label124 = new global::Gtk.Label (); + this.label124.Name = "label124"; + this.label124.LabelProp = global::Mono.Unix.Catalog.GetString ("label124"); + this.wizardNotebook.SetTabLabel (this.scrolledwindow19, this.label124); + this.label124.ShowAll (); + // Container child wizardNotebook.Gtk.Notebook+NotebookChild + this.vbox86 = new global::Gtk.VBox (); + this.vbox86.Name = "vbox86"; + this.vbox86.Spacing = 6; + this.vbox86.BorderWidth = ((uint)(61)); + // Container child vbox86.Gtk.Box+BoxChild + this.label1 = new global::Gtk.Label (); + this.label1.Name = "label1"; + this.vbox86.Add (this.label1); + global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox86[this.label1])); + w24.Position = 0; + // Container child vbox86.Gtk.Box+BoxChild + this.globalProgressLabel = new global::Gtk.Label (); + this.globalProgressLabel.Name = "globalProgressLabel"; + this.globalProgressLabel.Xalign = 0f; + this.globalProgressLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("Overall Progress:"); + this.globalProgressLabel.Ellipsize = ((global::Pango.EllipsizeMode)(3)); + this.vbox86.Add (this.globalProgressLabel); + global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.vbox86[this.globalProgressLabel])); + w25.Position = 1; + w25.Expand = false; + w25.Fill = false; + // Container child vbox86.Gtk.Box+BoxChild + this.mainProgressBar = new global::Gtk.ProgressBar (); + this.mainProgressBar.Name = "mainProgressBar"; + this.mainProgressBar.PulseStep = 10000000149; + this.vbox86.Add (this.mainProgressBar); + global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox86[this.mainProgressBar])); + w26.Position = 2; + w26.Expand = false; + w26.Fill = false; + // Container child vbox86.Gtk.Box+BoxChild + this.label2 = new global::Gtk.Label (); + this.label2.Name = "label2"; + this.vbox86.Add (this.label2); + global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.vbox86[this.label2])); + w27.Position = 3; + this.wizardNotebook.Add (this.vbox86); + global::Gtk.Notebook.NotebookChild w28 = ((global::Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox86])); + w28.Position = 2; + // Notebook tab + this.label110 = new global::Gtk.Label (); + this.label110.Name = "label110"; + this.label110.LabelProp = "label110"; + this.wizardNotebook.SetTabLabel (this.vbox86, this.label110); + this.label110.ShowAll (); + // Container child wizardNotebook.Gtk.Notebook+NotebookChild + this.scrolledwindow20 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow20.CanFocus = true; + this.scrolledwindow20.Name = "scrolledwindow20"; + // Container child scrolledwindow20.Gtk.Container+ContainerChild + global::Gtk.Viewport w29 = new global::Gtk.Viewport (); + // Container child viewport3.Gtk.Container+ContainerChild + this.vbox91 = new global::Gtk.VBox (); + this.vbox91.Name = "vbox91"; + // Container child vbox91.Gtk.Box+BoxChild + this.label130 = new global::Gtk.Label (); + this.label130.Name = "label130"; + this.vbox91.Add (this.label130); + global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox91[this.label130])); + w30.Position = 0; + // Container child vbox91.Gtk.Box+BoxChild + this.imageError = new global::Gtk.Image (); + this.imageError.Name = "imageError"; + this.imageError.Yalign = 1f; + this.imageError.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-error", global::Gtk.IconSize.Dialog); + this.vbox91.Add (this.imageError); + global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.vbox91[this.imageError])); + w31.Position = 1; + w31.Expand = false; + w31.Fill = false; + w31.Padding = ((uint)(5)); + // Container child vbox91.Gtk.Box+BoxChild + this.imageWarn = new global::Gtk.Image (); + this.imageWarn.Name = "imageWarn"; + this.imageWarn.Yalign = 1f; + this.imageWarn.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-warning", global::Gtk.IconSize.Dialog); + this.vbox91.Add (this.imageWarn); + global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox91[this.imageWarn])); + w32.Position = 2; + w32.Expand = false; + w32.Fill = false; + // Container child vbox91.Gtk.Box+BoxChild + this.imageInfo = new global::Gtk.Image (); + this.imageInfo.Name = "imageInfo"; + this.imageInfo.Yalign = 1f; + this.imageInfo.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-info", global::Gtk.IconSize.Dialog); + this.vbox91.Add (this.imageInfo); + global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(this.vbox91[this.imageInfo])); + w33.Position = 3; + w33.Expand = false; + w33.Fill = false; + // Container child vbox91.Gtk.Box+BoxChild + this.hbox71 = new global::Gtk.HBox (); + this.hbox71.Name = "hbox71"; + // Container child hbox71.Gtk.Box+BoxChild + this.labelResult = new global::Gtk.Label (); + this.labelResult.WidthRequest = 450; + this.labelResult.Name = "labelResult"; + this.labelResult.Ypad = 9; + this.labelResult.Yalign = 0f; + this.labelResult.LabelProp = "Done"; + this.labelResult.UseMarkup = true; + this.labelResult.Wrap = true; + this.labelResult.Justify = ((global::Gtk.Justification)(2)); + this.hbox71.Add (this.labelResult); + global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(this.hbox71[this.labelResult])); + w34.PackType = ((global::Gtk.PackType)(1)); + w34.Position = 0; + this.vbox91.Add (this.hbox71); + global::Gtk.Box.BoxChild w35 = ((global::Gtk.Box.BoxChild)(this.vbox91[this.hbox71])); + w35.Position = 4; + w35.Expand = false; + w35.Fill = false; + // Container child vbox91.Gtk.Box+BoxChild + this.label131 = new global::Gtk.Label (); + this.label131.Name = "label131"; + this.vbox91.Add (this.label131); + global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.vbox91[this.label131])); + w36.Position = 5; + w29.Add (this.vbox91); + this.scrolledwindow20.Add (w29); + this.wizardNotebook.Add (this.scrolledwindow20); + global::Gtk.Notebook.NotebookChild w39 = ((global::Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20])); + w39.Position = 3; + // Notebook tab + this.label111 = new global::Gtk.Label (); + this.label111.Name = "label111"; + this.label111.LabelProp = "label111"; + this.wizardNotebook.SetTabLabel (this.scrolledwindow20, this.label111); + this.label111.ShowAll (); + w1.Add (this.wizardNotebook); + global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(w1[this.wizardNotebook])); + w40.Position = 0; + // Container child dialog-vbox9.Gtk.Box+BoxChild + this.dialog_action_area9 = new global::Gtk.HButtonBox (); + this.dialog_action_area9.Name = "dialog_action_area9"; + this.dialog_action_area9.Spacing = 9; + this.dialog_action_area9.BorderWidth = ((uint)(6)); + this.dialog_action_area9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild + this.btnCancel = new global::Gtk.Button (); + this.btnCancel.CanDefault = true; + this.btnCancel.CanFocus = true; + this.btnCancel.Name = "btnCancel"; + this.btnCancel.UseStock = true; + this.btnCancel.UseUnderline = true; + this.btnCancel.Label = "gtk-cancel"; + this.dialog_action_area9.Add (this.btnCancel); + global::Gtk.ButtonBox.ButtonBoxChild w41 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnCancel])); + w41.Expand = false; + w41.Fill = false; + // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild + this.btnPrev = new global::Gtk.Button (); + this.btnPrev.CanDefault = true; + this.btnPrev.CanFocus = true; + this.btnPrev.Name = "btnPrev"; + this.btnPrev.UseStock = true; + this.btnPrev.UseUnderline = true; + this.btnPrev.Label = "gtk-go-back"; + this.dialog_action_area9.Add (this.btnPrev); + global::Gtk.ButtonBox.ButtonBoxChild w42 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev])); + w42.Position = 1; + w42.Expand = false; + w42.Fill = false; + // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild + this.btnNext = new global::Gtk.Button (); + this.btnNext.CanDefault = true; + this.btnNext.CanFocus = true; + this.btnNext.Name = "btnNext"; + this.btnNext.UseStock = true; + this.btnNext.UseUnderline = true; + this.btnNext.Label = "gtk-go-forward"; + this.dialog_action_area9.Add (this.btnNext); + global::Gtk.ButtonBox.ButtonBoxChild w43 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext])); + w43.Position = 2; + w43.Expand = false; + w43.Fill = false; + // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild + this.btnOk = new global::Gtk.Button (); + this.btnOk.CanDefault = true; + this.btnOk.CanFocus = true; + this.btnOk.Name = "btnOk"; + this.btnOk.UseStock = true; + this.btnOk.UseUnderline = true; + this.btnOk.Label = "gtk-ok"; + this.dialog_action_area9.Add (this.btnOk); + global::Gtk.ButtonBox.ButtonBoxChild w44 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk])); + w44.Position = 3; + w44.Expand = false; + w44.Fill = false; + w1.Add (this.dialog_action_area9); + global::Gtk.Box.BoxChild w45 = ((global::Gtk.Box.BoxChild)(w1[this.dialog_action_area9])); + w45.PackType = ((global::Gtk.PackType)(1)); + w45.Position = 2; + w45.Expand = false; + w45.Fill = false; + // Internal child Mono.Addins.Gui.AddinInstallDialog.ActionArea + global::Gtk.HButtonBox w46 = this.ActionArea; + w46.Spacing = 6; + w46.BorderWidth = ((uint)(5)); + w46.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.btnOk.Hide (); + w46.Hide (); + this.Show (); + this.repoCombo.Changed += new global::System.EventHandler (this.OnRepoChanged); + this.button1.Clicked += new global::System.EventHandler (this.OnUpdateRepo); + this.btnManageSites.Clicked += new global::System.EventHandler (this.OnManageSites); + this.addinTree.CursorChanged += new global::System.EventHandler (this.OnActiveAddinChanged); + this.filterComboBox.Changed += new global::System.EventHandler (this.OnFilterChanged); + this.btnSelectAll.Clicked += new global::System.EventHandler (this.OnSelectAll); + this.btnUnselectAll.Clicked += new global::System.EventHandler (this.OnUnselectAll); + this.btnInfo.Clicked += new global::System.EventHandler (this.OnShowInfo); + this.btnCancel.Clicked += new global::System.EventHandler (this.OnCancel); + this.btnPrev.Clicked += new global::System.EventHandler (this.OnPrevPage); + this.btnNext.Clicked += new global::System.EventHandler (this.OnNextPage); + this.btnOk.Clicked += new global::System.EventHandler (this.OnOk); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs index ebacc34..df65687 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs @@ -1,143 +1,135 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ -namespace Mono.Addins.Gui { - - - internal partial class AddinInstallerDialog { - - private Gtk.VBox vbox2; - - private Gtk.Label label1; - - private Gtk.Label label2; - - private Gtk.ScrolledWindow scrolledwindow1; - - private Gtk.Label addinList; - - private Gtk.ProgressBar progressBar; - - private Gtk.Button buttonCancel; - - private Gtk.Button buttonOk; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.AddinInstallerDialog - this.Name = "Mono.Addins.Gui.AddinInstallerDialog"; - this.Title = Mono.Unix.Catalog.GetString("Add-in Manager"); - this.WindowPosition = ((Gtk.WindowPosition)(4)); - this.BorderWidth = ((uint)(6)); - // Internal child Mono.Addins.Gui.AddinInstallerDialog.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.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - this.vbox2.Spacing = 6; - this.vbox2.BorderWidth = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new Gtk.Label(); - this.label1.Name = "label1"; - this.label1.Xalign = 0F; - this.label1.LabelProp = Mono.Unix.Catalog.GetString("Additional extensions are required to perform this operation."); - this.vbox2.Add(this.label1); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.label2 = new Gtk.Label(); - this.label2.Name = "label2"; - this.label2.Xalign = 0F; - this.label2.LabelProp = Mono.Unix.Catalog.GetString("The following add-ins will be installed:"); - this.vbox2.Add(this.label2); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.scrolledwindow1 = new Gtk.ScrolledWindow(); - this.scrolledwindow1.CanFocus = true; - this.scrolledwindow1.Name = "scrolledwindow1"; - this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow1.Gtk.Container+ContainerChild - Gtk.Viewport w4 = new Gtk.Viewport(); - w4.ShadowType = ((Gtk.ShadowType)(0)); - // Container child GtkViewport.Gtk.Container+ContainerChild - this.addinList = new Gtk.Label(); - this.addinList.Name = "addinList"; - this.addinList.Xpad = 6; - this.addinList.Ypad = 6; - this.addinList.Xalign = 0F; - this.addinList.Yalign = 0F; - this.addinList.LabelProp = "label3"; - w4.Add(this.addinList); - this.scrolledwindow1.Add(w4); - this.vbox2.Add(this.scrolledwindow1); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); - w7.Position = 2; - // Container child vbox2.Gtk.Box+BoxChild - this.progressBar = new Gtk.ProgressBar(); - this.progressBar.Name = "progressBar"; - this.progressBar.Text = ""; - this.vbox2.Add(this.progressBar); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressBar])); - w8.Position = 3; - w8.Expand = false; - w8.Fill = false; - w1.Add(this.vbox2); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); - w9.Position = 0; - // Internal child Mono.Addins.Gui.AddinInstallerDialog.ActionArea - Gtk.HButtonBox w10 = this.ActionArea; - w10.Name = "dialog1_ActionArea"; - w10.Spacing = 10; - w10.BorderWidth = ((uint)(6)); - w10.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 w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel])); - w11.Expand = false; - w11.Fill = false; - // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonOk = new Gtk.Button(); - this.buttonOk.CanDefault = true; - this.buttonOk.CanFocus = true; - this.buttonOk.Name = "buttonOk"; - this.buttonOk.UseStock = true; - this.buttonOk.UseUnderline = true; - this.buttonOk.Label = "gtk-ok"; - w10.Add(this.buttonOk); - Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); - w12.Position = 1; - w12.Expand = false; - w12.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 593; - this.DefaultHeight = 433; - this.progressBar.Hide(); - this.Show(); - this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class AddinInstallerDialog + { + private global::Gtk.VBox vbox2; + + private global::Gtk.Label label1; + + private global::Gtk.Label label2; + + private global::Gtk.ScrolledWindow scrolledwindow1; + + private global::Gtk.Label addinList; + + private global::Gtk.ProgressBar progressBar; + + private global::Gtk.Button buttonCancel; + + private global::Gtk.Button buttonOk; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.AddinInstallerDialog + this.Name = "Mono.Addins.Gui.AddinInstallerDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Add-in Manager"); + this.WindowPosition = ((global::Gtk.WindowPosition)(4)); + this.BorderWidth = ((uint)(6)); + // Internal child Mono.Addins.Gui.AddinInstallerDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog1_VBox"; + w1.Spacing = 6; + w1.BorderWidth = ((uint)(2)); + // Container child dialog1_VBox.Gtk.Box+BoxChild + this.vbox2 = new global::Gtk.VBox (); + this.vbox2.Name = "vbox2"; + this.vbox2.Spacing = 6; + this.vbox2.BorderWidth = ((uint)(6)); + // Container child vbox2.Gtk.Box+BoxChild + this.label1 = new global::Gtk.Label (); + this.label1.Name = "label1"; + this.label1.Xalign = 0f; + this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Additional extensions are required to perform this operation."); + this.vbox2.Add (this.label1); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.label1])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.label2 = new global::Gtk.Label (); + this.label2.Name = "label2"; + this.label2.Xalign = 0f; + this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("The following add-ins will be installed:"); + this.vbox2.Add (this.label2); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.label2])); + w3.Position = 1; + w3.Expand = false; + w3.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.scrolledwindow1 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow1.CanFocus = true; + this.scrolledwindow1.Name = "scrolledwindow1"; + this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow1.Gtk.Container+ContainerChild + global::Gtk.Viewport w4 = new global::Gtk.Viewport (); + w4.ShadowType = ((global::Gtk.ShadowType)(0)); + // Container child GtkViewport.Gtk.Container+ContainerChild + this.addinList = new global::Gtk.Label (); + this.addinList.Name = "addinList"; + this.addinList.Xpad = 6; + this.addinList.Ypad = 6; + this.addinList.Xalign = 0f; + this.addinList.Yalign = 0f; + this.addinList.LabelProp = "label3"; + w4.Add (this.addinList); + this.scrolledwindow1.Add (w4); + this.vbox2.Add (this.scrolledwindow1); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); + w7.Position = 2; + // Container child vbox2.Gtk.Box+BoxChild + this.progressBar = new global::Gtk.ProgressBar (); + this.progressBar.Name = "progressBar"; + this.progressBar.Text = ""; + this.vbox2.Add (this.progressBar); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.progressBar])); + w8.Position = 3; + w8.Expand = false; + w8.Fill = false; + w1.Add (this.vbox2); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2])); + w9.Position = 0; + // Internal child Mono.Addins.Gui.AddinInstallerDialog.ActionArea + global::Gtk.HButtonBox w10 = this.ActionArea; + w10.Name = "dialog1_ActionArea"; + w10.Spacing = 10; + w10.BorderWidth = ((uint)(6)); + w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonCancel = new global::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); + global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel])); + w11.Expand = false; + w11.Fill = false; + // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonOk = new global::Gtk.Button (); + this.buttonOk.CanDefault = true; + this.buttonOk.CanFocus = true; + this.buttonOk.Name = "buttonOk"; + this.buttonOk.UseStock = true; + this.buttonOk.UseUnderline = true; + this.buttonOk.Label = "gtk-ok"; + w10.Add (this.buttonOk); + global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); + w12.Position = 1; + w12.Expand = false; + w12.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.DefaultWidth = 593; + this.DefaultHeight = 433; + this.progressBar.Hide (); + this.Show (); + this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs index cc86622..c046b19 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs @@ -1,323 +1,318 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ -namespace Mono.Addins.Gui { - - - internal partial class AddinManagerDialog { - - private Gtk.VBox vbox93; - - private Gtk.HBox hbox85; - - private Gtk.Image imageInstall; - - private Gtk.Label label144; - - private Gtk.HBox hbox73; - - private Gtk.Label label134; - - private Gtk.HBox hbox65; - - private Gtk.HBox hbox72; - - private Gtk.ScrolledWindow scrolledwindow13; - - private Gtk.TreeView addinTree; - - private Gtk.VBox vbox933; - - private Gtk.Button btnInstall; - - private Gtk.Button btnRepositories; - - private Gtk.HSeparator hseparator4; - - private Gtk.Button btnUninstall; - - private Gtk.Button btnEnable; - - private Gtk.Button btnDisable; - - private Gtk.Button btnInfo; - - private Gtk.Button btnClose; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.AddinManagerDialog - this.Name = "Mono.Addins.Gui.AddinManagerDialog"; - this.Title = Mono.Unix.Catalog.GetString("Add-in Manager"); - this.TypeHint = ((Gdk.WindowTypeHint)(1)); - this.BorderWidth = ((uint)(6)); - this.DefaultWidth = 700; - this.DefaultHeight = 550; - // Internal child Mono.Addins.Gui.AddinManagerDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog-vbox8"; - w1.Spacing = 3; - w1.BorderWidth = ((uint)(2)); - // Container child dialog-vbox8.Gtk.Box+BoxChild - this.vbox93 = new Gtk.VBox(); - this.vbox93.Name = "vbox93"; - this.vbox93.Spacing = 6; - this.vbox93.BorderWidth = ((uint)(6)); - // Container child vbox93.Gtk.Box+BoxChild - this.hbox85 = new Gtk.HBox(); - this.hbox85.Name = "hbox85"; - this.hbox85.Spacing = 12; - // Container child hbox85.Gtk.Box+BoxChild - this.imageInstall = new Gtk.Image(); - this.imageInstall.Name = "imageInstall"; - this.imageInstall.Yalign = 0F; - this.imageInstall.Pixbuf = Gdk.Pixbuf.LoadFromResource("system-software-update.png"); - this.hbox85.Add(this.imageInstall); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox85[this.imageInstall])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child hbox85.Gtk.Box+BoxChild - this.label144 = new Gtk.Label(); - this.label144.Name = "label144"; - this.label144.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Add-in Manager</b></big>"); - this.label144.UseMarkup = true; - this.hbox85.Add(this.label144); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox85[this.label144])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - this.vbox93.Add(this.hbox85); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox93[this.hbox85])); - w4.Position = 0; - w4.Expand = false; - w4.Fill = false; - // Container child vbox93.Gtk.Box+BoxChild - this.hbox73 = new Gtk.HBox(); - this.hbox73.Name = "hbox73"; - this.hbox73.Spacing = 12; - // Container child hbox73.Gtk.Box+BoxChild - this.label134 = new Gtk.Label(); - this.label134.Name = "label134"; - this.label134.Xalign = 0F; - this.label134.LabelProp = Mono.Unix.Catalog.GetString("The following add-ins are currently installed:"); - this.hbox73.Add(this.label134); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox73[this.label134])); - w5.Position = 0; - w5.Expand = false; - w5.Fill = false; - this.vbox93.Add(this.hbox73); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox93[this.hbox73])); - w6.Position = 1; - w6.Expand = false; - w6.Fill = false; - // Container child vbox93.Gtk.Box+BoxChild - this.hbox65 = new Gtk.HBox(); - this.hbox65.Name = "hbox65"; - this.hbox65.Spacing = 12; - // Container child hbox65.Gtk.Box+BoxChild - this.hbox72 = new Gtk.HBox(); - this.hbox72.Name = "hbox72"; - this.hbox72.Spacing = 12; - // Container child hbox72.Gtk.Box+BoxChild - this.scrolledwindow13 = new Gtk.ScrolledWindow(); - this.scrolledwindow13.CanFocus = true; - this.scrolledwindow13.Name = "scrolledwindow13"; - this.scrolledwindow13.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow13.Gtk.Container+ContainerChild - this.addinTree = new Gtk.TreeView(); - this.addinTree.CanFocus = true; - this.addinTree.Name = "addinTree"; - this.scrolledwindow13.Add(this.addinTree); - this.hbox72.Add(this.scrolledwindow13); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox72[this.scrolledwindow13])); - w8.Position = 0; - // Container child hbox72.Gtk.Box+BoxChild - this.vbox933 = new Gtk.VBox(); - this.vbox933.Name = "vbox933"; - this.vbox933.Spacing = 5; - // Container child vbox933.Gtk.Box+BoxChild - this.btnInstall = new Gtk.Button(); - this.btnInstall.CanFocus = true; - this.btnInstall.Name = "btnInstall"; - this.btnInstall.UseUnderline = true; - // Container child btnInstall.Gtk.Container+ContainerChild - Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - Gtk.HBox w10 = new Gtk.HBox(); - w10.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - Gtk.Image w11 = new Gtk.Image(); - w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Button, 20); - w10.Add(w11); - // Container child GtkHBox.Gtk.Container+ContainerChild - Gtk.Label w13 = new Gtk.Label(); - w13.LabelProp = Mono.Unix.Catalog.GetString("_Install Add-ins..."); - w13.UseUnderline = true; - w10.Add(w13); - w9.Add(w10); - this.btnInstall.Add(w9); - this.vbox933.Add(this.btnInstall); - Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox933[this.btnInstall])); - w17.Position = 0; - w17.Expand = false; - w17.Fill = false; - // Container child vbox933.Gtk.Box+BoxChild - this.btnRepositories = new Gtk.Button(); - this.btnRepositories.CanFocus = true; - this.btnRepositories.Name = "btnRepositories"; - this.btnRepositories.UseUnderline = true; - this.btnRepositories.Label = Mono.Unix.Catalog.GetString("_Repositories..."); - this.vbox933.Add(this.btnRepositories); - Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox933[this.btnRepositories])); - w18.Position = 1; - w18.Expand = false; - w18.Fill = false; - // Container child vbox933.Gtk.Box+BoxChild - this.hseparator4 = new Gtk.HSeparator(); - this.hseparator4.Name = "hseparator4"; - this.vbox933.Add(this.hseparator4); - Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox933[this.hseparator4])); - w19.Position = 2; - w19.Expand = false; - w19.Fill = false; - // Container child vbox933.Gtk.Box+BoxChild - this.btnUninstall = new Gtk.Button(); - this.btnUninstall.CanFocus = true; - this.btnUninstall.Name = "btnUninstall"; - this.btnUninstall.UseUnderline = true; - // Container child btnUninstall.Gtk.Container+ContainerChild - Gtk.Alignment w20 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment1.Gtk.Container+ContainerChild - Gtk.HBox w21 = new Gtk.HBox(); - w21.Spacing = 2; - // Container child GtkHBox1.Gtk.Container+ContainerChild - Gtk.Image w22 = new Gtk.Image(); - w22.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Button, 20); - w21.Add(w22); - // Container child GtkHBox1.Gtk.Container+ContainerChild - Gtk.Label w24 = new Gtk.Label(); - w24.LabelProp = Mono.Unix.Catalog.GetString("_Uninstall..."); - w24.UseUnderline = true; - w21.Add(w24); - w20.Add(w21); - this.btnUninstall.Add(w20); - this.vbox933.Add(this.btnUninstall); - Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox933[this.btnUninstall])); - w28.Position = 3; - w28.Expand = false; - w28.Fill = false; - // Container child vbox933.Gtk.Box+BoxChild - this.btnEnable = new Gtk.Button(); - this.btnEnable.CanFocus = true; - this.btnEnable.Name = "btnEnable"; - this.btnEnable.UseUnderline = true; - // Container child btnEnable.Gtk.Container+ContainerChild - Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment2.Gtk.Container+ContainerChild - Gtk.HBox w30 = new Gtk.HBox(); - w30.Spacing = 2; - // Container child GtkHBox2.Gtk.Container+ContainerChild - Gtk.Image w31 = new Gtk.Image(); - w31.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-yes", Gtk.IconSize.Button, 20); - w30.Add(w31); - // Container child GtkHBox2.Gtk.Container+ContainerChild - Gtk.Label w33 = new Gtk.Label(); - w33.LabelProp = Mono.Unix.Catalog.GetString("Enable"); - w33.UseUnderline = true; - w30.Add(w33); - w29.Add(w30); - this.btnEnable.Add(w29); - this.vbox933.Add(this.btnEnable); - Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox933[this.btnEnable])); - w37.Position = 4; - w37.Expand = false; - w37.Fill = false; - // Container child vbox933.Gtk.Box+BoxChild - this.btnDisable = new Gtk.Button(); - this.btnDisable.CanFocus = true; - this.btnDisable.Name = "btnDisable"; - this.btnDisable.UseUnderline = true; - // Container child btnDisable.Gtk.Container+ContainerChild - Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment3.Gtk.Container+ContainerChild - Gtk.HBox w39 = new Gtk.HBox(); - w39.Spacing = 2; - // Container child GtkHBox3.Gtk.Container+ContainerChild - Gtk.Image w40 = new Gtk.Image(); - w40.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-no", Gtk.IconSize.Button, 20); - w39.Add(w40); - // Container child GtkHBox3.Gtk.Container+ContainerChild - Gtk.Label w42 = new Gtk.Label(); - w42.LabelProp = Mono.Unix.Catalog.GetString("Disable"); - w42.UseUnderline = true; - w39.Add(w42); - w38.Add(w39); - this.btnDisable.Add(w38); - this.vbox933.Add(this.btnDisable); - Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.vbox933[this.btnDisable])); - w46.Position = 5; - w46.Expand = false; - w46.Fill = false; - // Container child vbox933.Gtk.Box+BoxChild - this.btnInfo = new Gtk.Button(); - this.btnInfo.CanFocus = true; - this.btnInfo.Name = "btnInfo"; - this.btnInfo.UseStock = true; - this.btnInfo.UseUnderline = true; - this.btnInfo.Label = "gtk-dialog-info"; - this.vbox933.Add(this.btnInfo); - Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox933[this.btnInfo])); - w47.Position = 6; - w47.Expand = false; - w47.Fill = false; - this.hbox72.Add(this.vbox933); - Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.hbox72[this.vbox933])); - w48.Position = 1; - w48.Expand = false; - w48.Fill = false; - this.hbox65.Add(this.hbox72); - Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.hbox65[this.hbox72])); - w49.Position = 0; - this.vbox93.Add(this.hbox65); - Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox93[this.hbox65])); - w50.Position = 2; - w1.Add(this.vbox93); - Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(w1[this.vbox93])); - w51.Position = 0; - // Internal child Mono.Addins.Gui.AddinManagerDialog.ActionArea - Gtk.HButtonBox w52 = this.ActionArea; - w52.Name = "dialog-action_area8"; - w52.Spacing = 6; - w52.BorderWidth = ((uint)(5)); - w52.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog-action_area8.Gtk.ButtonBox+ButtonBoxChild - this.btnClose = new Gtk.Button(); - this.btnClose.CanDefault = true; - this.btnClose.CanFocus = true; - this.btnClose.Name = "btnClose"; - this.btnClose.UseStock = true; - this.btnClose.UseUnderline = true; - this.btnClose.Label = "gtk-close"; - this.AddActionWidget(this.btnClose, -7); - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.Show(); - this.addinTree.CursorChanged += new System.EventHandler(this.OnSelectionChanged); - this.btnInstall.Clicked += new System.EventHandler(this.OnInstall); - this.btnRepositories.Clicked += new System.EventHandler(this.OnManageRepos); - this.btnUninstall.Clicked += new System.EventHandler(this.OnUninstall); - this.btnEnable.Clicked += new System.EventHandler(this.OnEnable); - this.btnDisable.Clicked += new System.EventHandler(this.OnDisable); - this.btnInfo.Clicked += new System.EventHandler(this.OnShowInfo); - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class AddinManagerDialog + { + private global::Gtk.VBox vbox93; + + private global::Gtk.HBox hbox85; + + private global::Gtk.Image imageInstall; + + private global::Gtk.Label label144; + + private global::Gtk.HBox hbox73; + + private global::Gtk.Label label134; + + private global::Gtk.HBox hbox65; + + private global::Gtk.HBox hbox72; + + private global::Gtk.ScrolledWindow scrolledwindow13; + + private global::Gtk.TreeView addinTree; + + private global::Gtk.VBox vbox933; + + private global::Gtk.Button btnInstall; + + private global::Gtk.Button btnRepositories; + + private global::Gtk.HSeparator hseparator4; + + private global::Gtk.Button btnUninstall; + + private global::Gtk.Button btnEnable; + + private global::Gtk.Button btnDisable; + + private global::Gtk.Button btnInfo; + + private global::Gtk.Button btnClose; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.AddinManagerDialog + this.Name = "Mono.Addins.Gui.AddinManagerDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Add-in Manager"); + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); + this.BorderWidth = ((uint)(6)); + this.DefaultWidth = 700; + this.DefaultHeight = 550; + // Internal child Mono.Addins.Gui.AddinManagerDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog-vbox8"; + w1.Spacing = 3; + w1.BorderWidth = ((uint)(2)); + // Container child dialog-vbox8.Gtk.Box+BoxChild + this.vbox93 = new global::Gtk.VBox (); + this.vbox93.Name = "vbox93"; + this.vbox93.Spacing = 6; + this.vbox93.BorderWidth = ((uint)(6)); + // Container child vbox93.Gtk.Box+BoxChild + this.hbox85 = new global::Gtk.HBox (); + this.hbox85.Name = "hbox85"; + this.hbox85.Spacing = 12; + // Container child hbox85.Gtk.Box+BoxChild + this.imageInstall = new global::Gtk.Image (); + this.imageInstall.Name = "imageInstall"; + this.imageInstall.Yalign = 0f; + this.imageInstall.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("system-software-update.png"); + this.hbox85.Add (this.imageInstall); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox85[this.imageInstall])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child hbox85.Gtk.Box+BoxChild + this.label144 = new global::Gtk.Label (); + this.label144.Name = "label144"; + this.label144.LabelProp = global::Mono.Unix.Catalog.GetString ("<big><b>Add-in Manager</b></big>"); + this.label144.UseMarkup = true; + this.hbox85.Add (this.label144); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox85[this.label144])); + w3.Position = 1; + w3.Expand = false; + w3.Fill = false; + this.vbox93.Add (this.hbox85); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox93[this.hbox85])); + w4.Position = 0; + w4.Expand = false; + w4.Fill = false; + // Container child vbox93.Gtk.Box+BoxChild + this.hbox73 = new global::Gtk.HBox (); + this.hbox73.Name = "hbox73"; + this.hbox73.Spacing = 12; + // Container child hbox73.Gtk.Box+BoxChild + this.label134 = new global::Gtk.Label (); + this.label134.Name = "label134"; + this.label134.Xalign = 0f; + this.label134.LabelProp = global::Mono.Unix.Catalog.GetString ("The following add-ins are currently installed:"); + this.hbox73.Add (this.label134); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox73[this.label134])); + w5.Position = 0; + w5.Expand = false; + w5.Fill = false; + this.vbox93.Add (this.hbox73); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox93[this.hbox73])); + w6.Position = 1; + w6.Expand = false; + w6.Fill = false; + // Container child vbox93.Gtk.Box+BoxChild + this.hbox65 = new global::Gtk.HBox (); + this.hbox65.Name = "hbox65"; + this.hbox65.Spacing = 12; + // Container child hbox65.Gtk.Box+BoxChild + this.hbox72 = new global::Gtk.HBox (); + this.hbox72.Name = "hbox72"; + this.hbox72.Spacing = 12; + // Container child hbox72.Gtk.Box+BoxChild + this.scrolledwindow13 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow13.CanFocus = true; + this.scrolledwindow13.Name = "scrolledwindow13"; + this.scrolledwindow13.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow13.Gtk.Container+ContainerChild + this.addinTree = new global::Gtk.TreeView (); + this.addinTree.CanFocus = true; + this.addinTree.Name = "addinTree"; + this.scrolledwindow13.Add (this.addinTree); + this.hbox72.Add (this.scrolledwindow13); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox72[this.scrolledwindow13])); + w8.Position = 0; + // Container child hbox72.Gtk.Box+BoxChild + this.vbox933 = new global::Gtk.VBox (); + this.vbox933.Name = "vbox933"; + this.vbox933.Spacing = 5; + // Container child vbox933.Gtk.Box+BoxChild + this.btnInstall = new global::Gtk.Button (); + this.btnInstall.CanFocus = true; + this.btnInstall.Name = "btnInstall"; + this.btnInstall.UseUnderline = true; + // Container child btnInstall.Gtk.Container+ContainerChild + global::Gtk.Alignment w9 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + // Container child GtkAlignment.Gtk.Container+ContainerChild + global::Gtk.HBox w10 = new global::Gtk.HBox (); + w10.Spacing = 2; + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Image w11 = new global::Gtk.Image (); + w11.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add", global::Gtk.IconSize.Button); + w10.Add (w11); + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Label w13 = new global::Gtk.Label (); + w13.LabelProp = global::Mono.Unix.Catalog.GetString ("_Install Add-ins..."); + w13.UseUnderline = true; + w10.Add (w13); + w9.Add (w10); + this.btnInstall.Add (w9); + this.vbox933.Add (this.btnInstall); + global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.btnInstall])); + w17.Position = 0; + w17.Expand = false; + w17.Fill = false; + // Container child vbox933.Gtk.Box+BoxChild + this.btnRepositories = new global::Gtk.Button (); + this.btnRepositories.CanFocus = true; + this.btnRepositories.Name = "btnRepositories"; + this.btnRepositories.UseUnderline = true; + this.btnRepositories.Label = global::Mono.Unix.Catalog.GetString ("_Repositories..."); + this.vbox933.Add (this.btnRepositories); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.btnRepositories])); + w18.Position = 1; + w18.Expand = false; + w18.Fill = false; + // Container child vbox933.Gtk.Box+BoxChild + this.hseparator4 = new global::Gtk.HSeparator (); + this.hseparator4.Name = "hseparator4"; + this.vbox933.Add (this.hseparator4); + global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.hseparator4])); + w19.Position = 2; + w19.Expand = false; + w19.Fill = false; + // Container child vbox933.Gtk.Box+BoxChild + this.btnUninstall = new global::Gtk.Button (); + this.btnUninstall.CanFocus = true; + this.btnUninstall.Name = "btnUninstall"; + this.btnUninstall.UseUnderline = true; + // Container child btnUninstall.Gtk.Container+ContainerChild + global::Gtk.Alignment w20 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + // Container child GtkAlignment.Gtk.Container+ContainerChild + global::Gtk.HBox w21 = new global::Gtk.HBox (); + w21.Spacing = 2; + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Image w22 = new global::Gtk.Image (); + w22.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-remove", global::Gtk.IconSize.Button); + w21.Add (w22); + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Label w24 = new global::Gtk.Label (); + w24.LabelProp = global::Mono.Unix.Catalog.GetString ("_Uninstall..."); + w24.UseUnderline = true; + w21.Add (w24); + w20.Add (w21); + this.btnUninstall.Add (w20); + this.vbox933.Add (this.btnUninstall); + global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.btnUninstall])); + w28.Position = 3; + w28.Expand = false; + w28.Fill = false; + // Container child vbox933.Gtk.Box+BoxChild + this.btnEnable = new global::Gtk.Button (); + this.btnEnable.CanFocus = true; + this.btnEnable.Name = "btnEnable"; + this.btnEnable.UseUnderline = true; + // Container child btnEnable.Gtk.Container+ContainerChild + global::Gtk.Alignment w29 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + // Container child GtkAlignment.Gtk.Container+ContainerChild + global::Gtk.HBox w30 = new global::Gtk.HBox (); + w30.Spacing = 2; + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Image w31 = new global::Gtk.Image (); + w31.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-yes", global::Gtk.IconSize.Button); + w30.Add (w31); + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Label w33 = new global::Gtk.Label (); + w33.LabelProp = global::Mono.Unix.Catalog.GetString ("Enable"); + w33.UseUnderline = true; + w30.Add (w33); + w29.Add (w30); + this.btnEnable.Add (w29); + this.vbox933.Add (this.btnEnable); + global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.btnEnable])); + w37.Position = 4; + w37.Expand = false; + w37.Fill = false; + // Container child vbox933.Gtk.Box+BoxChild + this.btnDisable = new global::Gtk.Button (); + this.btnDisable.CanFocus = true; + this.btnDisable.Name = "btnDisable"; + this.btnDisable.UseUnderline = true; + // Container child btnDisable.Gtk.Container+ContainerChild + global::Gtk.Alignment w38 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + // Container child GtkAlignment.Gtk.Container+ContainerChild + global::Gtk.HBox w39 = new global::Gtk.HBox (); + w39.Spacing = 2; + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Image w40 = new global::Gtk.Image (); + w40.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-no", global::Gtk.IconSize.Button); + w39.Add (w40); + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Label w42 = new global::Gtk.Label (); + w42.LabelProp = global::Mono.Unix.Catalog.GetString ("Disable"); + w42.UseUnderline = true; + w39.Add (w42); + w38.Add (w39); + this.btnDisable.Add (w38); + this.vbox933.Add (this.btnDisable); + global::Gtk.Box.BoxChild w46 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.btnDisable])); + w46.Position = 5; + w46.Expand = false; + w46.Fill = false; + // Container child vbox933.Gtk.Box+BoxChild + this.btnInfo = new global::Gtk.Button (); + this.btnInfo.CanFocus = true; + this.btnInfo.Name = "btnInfo"; + this.btnInfo.UseStock = true; + this.btnInfo.UseUnderline = true; + this.btnInfo.Label = "gtk-dialog-info"; + this.vbox933.Add (this.btnInfo); + global::Gtk.Box.BoxChild w47 = ((global::Gtk.Box.BoxChild)(this.vbox933[this.btnInfo])); + w47.Position = 6; + w47.Expand = false; + w47.Fill = false; + this.hbox72.Add (this.vbox933); + global::Gtk.Box.BoxChild w48 = ((global::Gtk.Box.BoxChild)(this.hbox72[this.vbox933])); + w48.Position = 1; + w48.Expand = false; + w48.Fill = false; + this.hbox65.Add (this.hbox72); + global::Gtk.Box.BoxChild w49 = ((global::Gtk.Box.BoxChild)(this.hbox65[this.hbox72])); + w49.Position = 0; + this.vbox93.Add (this.hbox65); + global::Gtk.Box.BoxChild w50 = ((global::Gtk.Box.BoxChild)(this.vbox93[this.hbox65])); + w50.Position = 2; + w1.Add (this.vbox93); + global::Gtk.Box.BoxChild w51 = ((global::Gtk.Box.BoxChild)(w1[this.vbox93])); + w51.Position = 0; + // Internal child Mono.Addins.Gui.AddinManagerDialog.ActionArea + global::Gtk.HButtonBox w52 = this.ActionArea; + w52.Name = "dialog-action_area8"; + w52.Spacing = 6; + w52.BorderWidth = ((uint)(5)); + w52.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog-action_area8.Gtk.ButtonBox+ButtonBoxChild + this.btnClose = new global::Gtk.Button (); + this.btnClose.CanDefault = true; + this.btnClose.CanFocus = true; + this.btnClose.Name = "btnClose"; + this.btnClose.UseStock = true; + this.btnClose.UseUnderline = true; + this.btnClose.Label = "gtk-close"; + this.AddActionWidget (this.btnClose, -7); + global::Gtk.ButtonBox.ButtonBoxChild w53 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w52[this.btnClose])); + w53.Expand = false; + w53.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.Show (); + this.addinTree.CursorChanged += new global::System.EventHandler (this.OnSelectionChanged); + this.btnInstall.Clicked += new global::System.EventHandler (this.OnInstall); + this.btnRepositories.Clicked += new global::System.EventHandler (this.OnManageRepos); + this.btnUninstall.Clicked += new global::System.EventHandler (this.OnUninstall); + this.btnEnable.Clicked += new global::System.EventHandler (this.OnEnable); + this.btnDisable.Clicked += new global::System.EventHandler (this.OnDisable); + this.btnInfo.Clicked += new global::System.EventHandler (this.OnShowInfo); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ErrorDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ErrorDialog.cs index ac860ef..cedb5c3 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ErrorDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ErrorDialog.cs @@ -1,143 +1,138 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ -namespace Mono.Addins.Gui { - - - internal partial class ErrorDialog { - - private Gtk.HBox hbox59; - - private Gtk.VBox vbox72; - - private Gtk.Image icon; - - private Gtk.VBox vbox73; - - private Gtk.Label descriptionLabel; - - private Gtk.Expander expander; - - private Gtk.ScrolledWindow scrolledwindow10; - - private Gtk.TextView detailsTextView; - - private Gtk.Label label102; - - private Gtk.Button okButton; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.ErrorDialog - this.Name = "Mono.Addins.Gui.ErrorDialog"; - this.Title = Mono.Unix.Catalog.GetString("Error"); - this.TypeHint = ((Gdk.WindowTypeHint)(1)); - this.BorderWidth = ((uint)(6)); - // Internal child Mono.Addins.Gui.ErrorDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog-vbox5"; - w1.Spacing = 6; - // Container child dialog-vbox5.Gtk.Box+BoxChild - this.hbox59 = new Gtk.HBox(); - this.hbox59.Name = "hbox59"; - this.hbox59.Spacing = 6; - this.hbox59.BorderWidth = ((uint)(6)); - // Container child hbox59.Gtk.Box+BoxChild - this.vbox72 = new Gtk.VBox(); - this.vbox72.Name = "vbox72"; - // Container child vbox72.Gtk.Box+BoxChild - this.icon = new Gtk.Image(); - this.icon.Name = "icon"; - this.icon.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Dialog, 48); - this.vbox72.Add(this.icon); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox72[this.icon])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - this.hbox59.Add(this.vbox72); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox59[this.vbox72])); - w3.Position = 0; - w3.Expand = false; - w3.Fill = false; - // Container child hbox59.Gtk.Box+BoxChild - this.vbox73 = new Gtk.VBox(); - this.vbox73.Name = "vbox73"; - this.vbox73.Spacing = 12; - // Container child vbox73.Gtk.Box+BoxChild - this.descriptionLabel = new Gtk.Label(); - this.descriptionLabel.WidthRequest = 540; - this.descriptionLabel.CanFocus = true; - this.descriptionLabel.Name = "descriptionLabel"; - this.descriptionLabel.Xalign = 0F; - this.descriptionLabel.LabelProp = "An exception has been thrown 1 2 3 4 5 6 7 8 9 10 11 12 13 14"; - this.descriptionLabel.Wrap = true; - this.descriptionLabel.Selectable = true; - this.vbox73.Add(this.descriptionLabel); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox73[this.descriptionLabel])); - w4.Position = 0; - w4.Expand = false; - w4.Fill = false; - // Container child vbox73.Gtk.Box+BoxChild - this.expander = new Gtk.Expander(null); - this.expander.CanFocus = true; - this.expander.Name = "expander"; - // Container child expander.Gtk.Container+ContainerChild - this.scrolledwindow10 = new Gtk.ScrolledWindow(); - this.scrolledwindow10.CanFocus = true; - this.scrolledwindow10.Name = "scrolledwindow10"; - this.scrolledwindow10.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow10.Gtk.Container+ContainerChild - this.detailsTextView = new Gtk.TextView(); - this.detailsTextView.HeightRequest = 250; - this.detailsTextView.CanFocus = true; - this.detailsTextView.Name = "detailsTextView"; - this.detailsTextView.PixelsAboveLines = 2; - this.detailsTextView.PixelsBelowLines = 2; - this.detailsTextView.LeftMargin = 6; - this.detailsTextView.RightMargin = 6; - this.scrolledwindow10.Add(this.detailsTextView); - this.expander.Add(this.scrolledwindow10); - this.label102 = new Gtk.Label(); - this.label102.Name = "label102"; - this.label102.LabelProp = Mono.Unix.Catalog.GetString("Details"); - this.expander.LabelWidget = this.label102; - this.vbox73.Add(this.expander); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox73[this.expander])); - w7.Position = 1; - this.hbox59.Add(this.vbox73); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox59[this.vbox73])); - w8.Position = 1; - w1.Add(this.hbox59); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.hbox59])); - w9.Position = 0; - // Internal child Mono.Addins.Gui.ErrorDialog.ActionArea - Gtk.HButtonBox w10 = this.ActionArea; - w10.Name = "dialog-action_area5"; - w10.Spacing = 10; - w10.BorderWidth = ((uint)(5)); - w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog-action_area5.Gtk.ButtonBox+ButtonBoxChild - this.okButton = new Gtk.Button(); - this.okButton.CanDefault = true; - this.okButton.CanFocus = true; - this.okButton.Name = "okButton"; - this.okButton.UseStock = true; - this.okButton.UseUnderline = true; - this.okButton.Label = "gtk-ok"; - this.AddActionWidget(this.okButton, -5); - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 632; - this.DefaultHeight = 155; - this.Show(); - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class ErrorDialog + { + private global::Gtk.HBox hbox59; + + private global::Gtk.VBox vbox72; + + private global::Gtk.Image icon; + + private global::Gtk.VBox vbox73; + + private global::Gtk.Label descriptionLabel; + + private global::Gtk.Expander expander; + + private global::Gtk.ScrolledWindow scrolledwindow10; + + private global::Gtk.TextView detailsTextView; + + private global::Gtk.Label label102; + + private global::Gtk.Button okButton; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.ErrorDialog + this.Name = "Mono.Addins.Gui.ErrorDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Error"); + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); + this.BorderWidth = ((uint)(6)); + // Internal child Mono.Addins.Gui.ErrorDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog-vbox5"; + w1.Spacing = 6; + // Container child dialog-vbox5.Gtk.Box+BoxChild + this.hbox59 = new global::Gtk.HBox (); + this.hbox59.Name = "hbox59"; + this.hbox59.Spacing = 6; + this.hbox59.BorderWidth = ((uint)(6)); + // Container child hbox59.Gtk.Box+BoxChild + this.vbox72 = new global::Gtk.VBox (); + this.vbox72.Name = "vbox72"; + // Container child vbox72.Gtk.Box+BoxChild + this.icon = new global::Gtk.Image (); + this.icon.Name = "icon"; + this.icon.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-error", global::Gtk.IconSize.Dialog); + this.vbox72.Add (this.icon); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox72[this.icon])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + this.hbox59.Add (this.vbox72); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox59[this.vbox72])); + w3.Position = 0; + w3.Expand = false; + w3.Fill = false; + // Container child hbox59.Gtk.Box+BoxChild + this.vbox73 = new global::Gtk.VBox (); + this.vbox73.Name = "vbox73"; + this.vbox73.Spacing = 12; + // Container child vbox73.Gtk.Box+BoxChild + this.descriptionLabel = new global::Gtk.Label (); + this.descriptionLabel.WidthRequest = 540; + this.descriptionLabel.CanFocus = true; + this.descriptionLabel.Name = "descriptionLabel"; + this.descriptionLabel.Xalign = 0f; + this.descriptionLabel.LabelProp = "An exception has been thrown 1 2 3 4 5 6 7 8 9 10 11 12 13 14"; + this.descriptionLabel.Wrap = true; + this.descriptionLabel.Selectable = true; + this.vbox73.Add (this.descriptionLabel); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox73[this.descriptionLabel])); + w4.Position = 0; + w4.Expand = false; + w4.Fill = false; + // Container child vbox73.Gtk.Box+BoxChild + this.expander = new global::Gtk.Expander (null); + this.expander.CanFocus = true; + this.expander.Name = "expander"; + // Container child expander.Gtk.Container+ContainerChild + this.scrolledwindow10 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow10.CanFocus = true; + this.scrolledwindow10.Name = "scrolledwindow10"; + this.scrolledwindow10.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow10.Gtk.Container+ContainerChild + this.detailsTextView = new global::Gtk.TextView (); + this.detailsTextView.HeightRequest = 250; + this.detailsTextView.CanFocus = true; + this.detailsTextView.Name = "detailsTextView"; + this.detailsTextView.PixelsAboveLines = 2; + this.detailsTextView.PixelsBelowLines = 2; + this.detailsTextView.LeftMargin = 6; + this.detailsTextView.RightMargin = 6; + this.scrolledwindow10.Add (this.detailsTextView); + this.expander.Add (this.scrolledwindow10); + this.label102 = new global::Gtk.Label (); + this.label102.Name = "label102"; + this.label102.LabelProp = global::Mono.Unix.Catalog.GetString ("Details"); + this.expander.LabelWidget = this.label102; + this.vbox73.Add (this.expander); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox73[this.expander])); + w7.Position = 1; + this.hbox59.Add (this.vbox73); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox59[this.vbox73])); + w8.Position = 1; + w1.Add (this.hbox59); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.hbox59])); + w9.Position = 0; + // Internal child Mono.Addins.Gui.ErrorDialog.ActionArea + global::Gtk.HButtonBox w10 = this.ActionArea; + w10.Name = "dialog-action_area5"; + w10.Spacing = 10; + w10.BorderWidth = ((uint)(5)); + w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog-action_area5.Gtk.ButtonBox+ButtonBoxChild + this.okButton = new global::Gtk.Button (); + this.okButton.CanDefault = true; + this.okButton.CanFocus = true; + this.okButton.Name = "okButton"; + this.okButton.UseStock = true; + this.okButton.UseUnderline = true; + this.okButton.Label = "gtk-ok"; + this.AddActionWidget (this.okButton, -5); + global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.okButton])); + w11.Expand = false; + w11.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.DefaultWidth = 632; + this.DefaultHeight = 155; + this.Show (); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs index 975f1bd..d9537fa 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs @@ -1,121 +1,116 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ -namespace Mono.Addins.Gui { - - - internal partial class ManageSitesDialog { - - private Gtk.HBox hbox67; - - private Gtk.ScrolledWindow scrolledwindow17; - - private Gtk.TreeView repoTree; - - private Gtk.VBox vbox88; - - private Gtk.Button btnAdd; - - private Gtk.Button btnRemove; - - private Gtk.Button closebutton2; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.ManageSitesDialog - this.Name = "Mono.Addins.Gui.ManageSitesDialog"; - this.Title = Mono.Unix.Catalog.GetString("Add-in Repository Management"); - this.TypeHint = ((Gdk.WindowTypeHint)(1)); - this.BorderWidth = ((uint)(6)); - this.DefaultWidth = 600; - this.DefaultHeight = 300; - // Internal child Mono.Addins.Gui.ManageSitesDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog-vbox10"; - w1.Spacing = 6; - // Container child dialog-vbox10.Gtk.Box+BoxChild - this.hbox67 = new Gtk.HBox(); - this.hbox67.Name = "hbox67"; - this.hbox67.Spacing = 12; - this.hbox67.BorderWidth = ((uint)(6)); - // Container child hbox67.Gtk.Box+BoxChild - this.scrolledwindow17 = new Gtk.ScrolledWindow(); - this.scrolledwindow17.CanFocus = true; - this.scrolledwindow17.Name = "scrolledwindow17"; - this.scrolledwindow17.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow17.Gtk.Container+ContainerChild - this.repoTree = new Gtk.TreeView(); - this.repoTree.CanFocus = true; - this.repoTree.Name = "repoTree"; - this.repoTree.HeadersVisible = false; - this.scrolledwindow17.Add(this.repoTree); - this.hbox67.Add(this.scrolledwindow17); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox67[this.scrolledwindow17])); - w3.Position = 0; - // Container child hbox67.Gtk.Box+BoxChild - this.vbox88 = new Gtk.VBox(); - this.vbox88.Name = "vbox88"; - this.vbox88.Spacing = 6; - // Container child vbox88.Gtk.Box+BoxChild - this.btnAdd = new Gtk.Button(); - this.btnAdd.CanFocus = true; - this.btnAdd.Name = "btnAdd"; - this.btnAdd.UseStock = true; - this.btnAdd.UseUnderline = true; - this.btnAdd.Label = "gtk-add"; - this.vbox88.Add(this.btnAdd); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox88[this.btnAdd])); - w4.Position = 0; - w4.Expand = false; - w4.Fill = false; - // Container child vbox88.Gtk.Box+BoxChild - this.btnRemove = new Gtk.Button(); - this.btnRemove.CanFocus = true; - this.btnRemove.Name = "btnRemove"; - this.btnRemove.UseStock = true; - this.btnRemove.UseUnderline = true; - this.btnRemove.Label = "gtk-delete"; - this.vbox88.Add(this.btnRemove); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox88[this.btnRemove])); - w5.Position = 1; - w5.Expand = false; - w5.Fill = false; - this.hbox67.Add(this.vbox88); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox67[this.vbox88])); - w6.Position = 1; - w6.Expand = false; - w6.Fill = false; - w1.Add(this.hbox67); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.hbox67])); - w7.Position = 0; - // Internal child Mono.Addins.Gui.ManageSitesDialog.ActionArea - Gtk.HButtonBox w8 = this.ActionArea; - w8.Name = "dialog-action_area10"; - w8.Spacing = 10; - w8.BorderWidth = ((uint)(6)); - w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog-action_area10.Gtk.ButtonBox+ButtonBoxChild - this.closebutton2 = new Gtk.Button(); - this.closebutton2.CanDefault = true; - this.closebutton2.CanFocus = true; - this.closebutton2.Name = "closebutton2"; - this.closebutton2.UseStock = true; - this.closebutton2.UseUnderline = true; - this.closebutton2.Label = "gtk-close"; - this.AddActionWidget(this.closebutton2, -7); - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.Show(); - this.btnAdd.Clicked += new System.EventHandler(this.OnAdd); - this.btnRemove.Clicked += new System.EventHandler(this.OnRemove); - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class ManageSitesDialog + { + private global::Gtk.HBox hbox67; + + private global::Gtk.ScrolledWindow scrolledwindow17; + + private global::Gtk.TreeView repoTree; + + private global::Gtk.VBox vbox88; + + private global::Gtk.Button btnAdd; + + private global::Gtk.Button btnRemove; + + private global::Gtk.Button closebutton2; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.ManageSitesDialog + this.Name = "Mono.Addins.Gui.ManageSitesDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Add-in Repository Management"); + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); + this.BorderWidth = ((uint)(6)); + this.DefaultWidth = 600; + this.DefaultHeight = 300; + // Internal child Mono.Addins.Gui.ManageSitesDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog-vbox10"; + w1.Spacing = 6; + // Container child dialog-vbox10.Gtk.Box+BoxChild + this.hbox67 = new global::Gtk.HBox (); + this.hbox67.Name = "hbox67"; + this.hbox67.Spacing = 12; + this.hbox67.BorderWidth = ((uint)(6)); + // Container child hbox67.Gtk.Box+BoxChild + this.scrolledwindow17 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow17.CanFocus = true; + this.scrolledwindow17.Name = "scrolledwindow17"; + this.scrolledwindow17.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow17.Gtk.Container+ContainerChild + this.repoTree = new global::Gtk.TreeView (); + this.repoTree.CanFocus = true; + this.repoTree.Name = "repoTree"; + this.repoTree.HeadersVisible = false; + this.scrolledwindow17.Add (this.repoTree); + this.hbox67.Add (this.scrolledwindow17); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox67[this.scrolledwindow17])); + w3.Position = 0; + // Container child hbox67.Gtk.Box+BoxChild + this.vbox88 = new global::Gtk.VBox (); + this.vbox88.Name = "vbox88"; + this.vbox88.Spacing = 6; + // Container child vbox88.Gtk.Box+BoxChild + this.btnAdd = new global::Gtk.Button (); + this.btnAdd.CanFocus = true; + this.btnAdd.Name = "btnAdd"; + this.btnAdd.UseStock = true; + this.btnAdd.UseUnderline = true; + this.btnAdd.Label = "gtk-add"; + this.vbox88.Add (this.btnAdd); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox88[this.btnAdd])); + w4.Position = 0; + w4.Expand = false; + w4.Fill = false; + // Container child vbox88.Gtk.Box+BoxChild + this.btnRemove = new global::Gtk.Button (); + this.btnRemove.CanFocus = true; + this.btnRemove.Name = "btnRemove"; + this.btnRemove.UseStock = true; + this.btnRemove.UseUnderline = true; + this.btnRemove.Label = "gtk-delete"; + this.vbox88.Add (this.btnRemove); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox88[this.btnRemove])); + w5.Position = 1; + w5.Expand = false; + w5.Fill = false; + this.hbox67.Add (this.vbox88); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox67[this.vbox88])); + w6.Position = 1; + w6.Expand = false; + w6.Fill = false; + w1.Add (this.hbox67); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1[this.hbox67])); + w7.Position = 0; + // Internal child Mono.Addins.Gui.ManageSitesDialog.ActionArea + global::Gtk.HButtonBox w8 = this.ActionArea; + w8.Name = "dialog-action_area10"; + w8.Spacing = 10; + w8.BorderWidth = ((uint)(6)); + w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog-action_area10.Gtk.ButtonBox+ButtonBoxChild + this.closebutton2 = new global::Gtk.Button (); + this.closebutton2.CanDefault = true; + this.closebutton2.CanFocus = true; + this.closebutton2.Name = "closebutton2"; + this.closebutton2.UseStock = true; + this.closebutton2.UseUnderline = true; + this.closebutton2.Label = "gtk-close"; + this.AddActionWidget (this.closebutton2, -7); + global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.closebutton2])); + w9.Expand = false; + w9.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.Show (); + this.btnAdd.Clicked += new global::System.EventHandler (this.OnAdd); + this.btnRemove.Clicked += new global::System.EventHandler (this.OnRemove); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs index 059b64b..49d34f6 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs @@ -1,232 +1,229 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ - -namespace Mono.Addins.Gui { - - - internal partial class NewSiteDialog { - - private Gtk.VBox vbox89; - - private Gtk.Label label121; - - private Gtk.RadioButton btnOnlineRep; - - private Gtk.HBox hbox68; - - private Gtk.Label label122; - - private Gtk.Label label119; - - private Gtk.Entry urlText; - - private Gtk.RadioButton btnLocalRep; - - private Gtk.HBox hbox69; - - private Gtk.Label label123; - - private Gtk.Label label120; - - private Gtk.HBox hbox1; - - private Gtk.Entry pathEntry; - - private Gtk.Button buttonBrowse; - - private Gtk.Button cancelbutton1; - - private Gtk.Button btnOk; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.NewSiteDialog - this.Name = "Mono.Addins.Gui.NewSiteDialog"; - this.Title = Mono.Unix.Catalog.GetString("Add New Repository"); - this.TypeHint = ((Gdk.WindowTypeHint)(1)); - this.BorderWidth = ((uint)(6)); - this.DefaultWidth = 550; - // Internal child Mono.Addins.Gui.NewSiteDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog-vbox11"; - w1.Spacing = 6; - w1.BorderWidth = ((uint)(2)); - // Container child dialog-vbox11.Gtk.Box+BoxChild - this.vbox89 = new Gtk.VBox(); - this.vbox89.Name = "vbox89"; - this.vbox89.Spacing = 6; - this.vbox89.BorderWidth = ((uint)(6)); - // Container child vbox89.Gtk.Box+BoxChild - this.label121 = new Gtk.Label(); - this.label121.Name = "label121"; - this.label121.Xalign = 0F; - this.label121.LabelProp = Mono.Unix.Catalog.GetString("Select the location of the repository you want to register:"); - this.vbox89.Add(this.label121); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox89[this.label121])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox89.Gtk.Box+BoxChild - this.btnOnlineRep = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Register an on-line repository")); - this.btnOnlineRep.CanFocus = true; - this.btnOnlineRep.Name = "btnOnlineRep"; - this.btnOnlineRep.Active = true; - this.btnOnlineRep.DrawIndicator = true; - this.btnOnlineRep.UseUnderline = true; - this.btnOnlineRep.Group = new GLib.SList(System.IntPtr.Zero); - this.vbox89.Add(this.btnOnlineRep); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox89[this.btnOnlineRep])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox89.Gtk.Box+BoxChild - this.hbox68 = new Gtk.HBox(); - this.hbox68.Name = "hbox68"; - this.hbox68.Spacing = 6; - // Container child hbox68.Gtk.Box+BoxChild - this.label122 = new Gtk.Label(); - this.label122.WidthRequest = 32; - this.label122.Name = "label122"; - this.hbox68.Add(this.label122); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox68[this.label122])); - w4.Position = 0; - w4.Expand = false; - w4.Fill = false; - // Container child hbox68.Gtk.Box+BoxChild - this.label119 = new Gtk.Label(); - this.label119.Name = "label119"; - this.label119.LabelProp = Mono.Unix.Catalog.GetString("Url:"); - this.hbox68.Add(this.label119); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox68[this.label119])); - w5.Position = 1; - w5.Expand = false; - w5.Fill = false; - // Container child hbox68.Gtk.Box+BoxChild - this.urlText = new Gtk.Entry(); - this.urlText.CanFocus = true; - this.urlText.Name = "urlText"; - this.urlText.IsEditable = true; - this.urlText.InvisibleChar = '●'; - this.hbox68.Add(this.urlText); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox68[this.urlText])); - w6.Position = 2; - this.vbox89.Add(this.hbox68); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox89[this.hbox68])); - w7.Position = 2; - w7.Expand = false; - w7.Fill = false; - // Container child vbox89.Gtk.Box+BoxChild - this.btnLocalRep = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Register a local repository")); - this.btnLocalRep.CanFocus = true; - this.btnLocalRep.Name = "btnLocalRep"; - this.btnLocalRep.DrawIndicator = true; - this.btnLocalRep.UseUnderline = true; - this.btnLocalRep.Group = this.btnOnlineRep.Group; - this.vbox89.Add(this.btnLocalRep); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox89[this.btnLocalRep])); - w8.Position = 3; - w8.Expand = false; - w8.Fill = false; - // Container child vbox89.Gtk.Box+BoxChild - this.hbox69 = new Gtk.HBox(); - this.hbox69.Name = "hbox69"; - this.hbox69.Spacing = 6; - // Container child hbox69.Gtk.Box+BoxChild - this.label123 = new Gtk.Label(); - this.label123.WidthRequest = 32; - this.label123.Name = "label123"; - this.hbox69.Add(this.label123); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox69[this.label123])); - w9.Position = 0; - w9.Expand = false; - w9.Fill = false; - // Container child hbox69.Gtk.Box+BoxChild - this.label120 = new Gtk.Label(); - this.label120.Name = "label120"; - this.label120.LabelProp = Mono.Unix.Catalog.GetString("Path:"); - this.hbox69.Add(this.label120); - Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox69[this.label120])); - w10.Position = 1; - w10.Expand = false; - w10.Fill = false; - // Container child hbox69.Gtk.Box+BoxChild - this.hbox1 = new Gtk.HBox(); - this.hbox1.Name = "hbox1"; - this.hbox1.Spacing = 6; - // Container child hbox1.Gtk.Box+BoxChild - this.pathEntry = new Gtk.Entry(); - this.pathEntry.CanFocus = true; - this.pathEntry.Name = "pathEntry"; - this.pathEntry.IsEditable = true; - this.pathEntry.InvisibleChar = '●'; - this.hbox1.Add(this.pathEntry); - Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.pathEntry])); - w11.Position = 0; - // Container child hbox1.Gtk.Box+BoxChild - this.buttonBrowse = new Gtk.Button(); - this.buttonBrowse.CanFocus = true; - this.buttonBrowse.Name = "buttonBrowse"; - this.buttonBrowse.UseUnderline = true; - this.buttonBrowse.Label = Mono.Unix.Catalog.GetString("Browse..."); - this.hbox1.Add(this.buttonBrowse); - Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.buttonBrowse])); - w12.Position = 1; - w12.Expand = false; - w12.Fill = false; - this.hbox69.Add(this.hbox1); - Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox69[this.hbox1])); - w13.Position = 2; - this.vbox89.Add(this.hbox69); - Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox89[this.hbox69])); - w14.Position = 4; - w14.Expand = false; - w14.Fill = false; - w1.Add(this.vbox89); - Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[this.vbox89])); - w15.Position = 0; - // Internal child Mono.Addins.Gui.NewSiteDialog.ActionArea - Gtk.HButtonBox w16 = this.ActionArea; - w16.Name = "dialog-action_area11"; - w16.Spacing = 10; - w16.BorderWidth = ((uint)(5)); - w16.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog-action_area11.Gtk.ButtonBox+ButtonBoxChild - this.cancelbutton1 = new Gtk.Button(); - this.cancelbutton1.CanDefault = true; - this.cancelbutton1.CanFocus = true; - this.cancelbutton1.Name = "cancelbutton1"; - this.cancelbutton1.UseStock = true; - this.cancelbutton1.UseUnderline = true; - this.cancelbutton1.Label = "gtk-cancel"; - this.AddActionWidget(this.cancelbutton1, -6); - // Container child dialog-action_area11.Gtk.ButtonBox+ButtonBoxChild - this.btnOk = new Gtk.Button(); - this.btnOk.CanDefault = true; - this.btnOk.CanFocus = true; - this.btnOk.Name = "btnOk"; - this.btnOk.UseStock = true; - this.btnOk.UseUnderline = true; - this.btnOk.Label = "gtk-ok"; - this.AddActionWidget(this.btnOk, -5); - Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[this.btnOk])); - w18.Position = 1; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultHeight = 249; - this.Show(); - this.btnOnlineRep.Clicked += new System.EventHandler(this.OnOptionClicked); - this.urlText.Changed += new System.EventHandler(this.OnUrlTextChanged); - this.btnLocalRep.Clicked += new System.EventHandler(this.OnOptionClicked); - this.pathEntry.Changed += new System.EventHandler(this.OnPathEntryChanged); - this.buttonBrowse.Clicked += new System.EventHandler(this.OnButtonBrowseClicked); - } - } + +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class NewSiteDialog + { + private global::Gtk.VBox vbox89; + + private global::Gtk.Label label121; + + private global::Gtk.RadioButton btnOnlineRep; + + private global::Gtk.HBox hbox68; + + private global::Gtk.Label label122; + + private global::Gtk.Label label119; + + private global::Gtk.Entry urlText; + + private global::Gtk.RadioButton btnLocalRep; + + private global::Gtk.HBox hbox69; + + private global::Gtk.Label label123; + + private global::Gtk.Label label120; + + private global::Gtk.HBox hbox1; + + private global::Gtk.Entry pathEntry; + + private global::Gtk.Button buttonBrowse; + + private global::Gtk.Button cancelbutton1; + + private global::Gtk.Button btnOk; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.NewSiteDialog + this.Name = "Mono.Addins.Gui.NewSiteDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Add New Repository"); + this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); + this.BorderWidth = ((uint)(6)); + this.DefaultWidth = 550; + // Internal child Mono.Addins.Gui.NewSiteDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog-vbox11"; + w1.Spacing = 6; + w1.BorderWidth = ((uint)(2)); + // Container child dialog-vbox11.Gtk.Box+BoxChild + this.vbox89 = new global::Gtk.VBox (); + this.vbox89.Name = "vbox89"; + this.vbox89.Spacing = 6; + this.vbox89.BorderWidth = ((uint)(6)); + // Container child vbox89.Gtk.Box+BoxChild + this.label121 = new global::Gtk.Label (); + this.label121.Name = "label121"; + this.label121.Xalign = 0f; + this.label121.LabelProp = global::Mono.Unix.Catalog.GetString ("Select the location of the repository you want to register:"); + this.vbox89.Add (this.label121); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox89[this.label121])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child vbox89.Gtk.Box+BoxChild + this.btnOnlineRep = new global::Gtk.RadioButton (global::Mono.Unix.Catalog.GetString ("Register an on-line repository")); + this.btnOnlineRep.CanFocus = true; + this.btnOnlineRep.Name = "btnOnlineRep"; + this.btnOnlineRep.Active = true; + this.btnOnlineRep.DrawIndicator = true; + this.btnOnlineRep.UseUnderline = true; + this.btnOnlineRep.Group = new global::GLib.SList (global::System.IntPtr.Zero); + this.vbox89.Add (this.btnOnlineRep); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox89[this.btnOnlineRep])); + w3.Position = 1; + w3.Expand = false; + w3.Fill = false; + // Container child vbox89.Gtk.Box+BoxChild + this.hbox68 = new global::Gtk.HBox (); + this.hbox68.Name = "hbox68"; + this.hbox68.Spacing = 6; + // Container child hbox68.Gtk.Box+BoxChild + this.label122 = new global::Gtk.Label (); + this.label122.WidthRequest = 32; + this.label122.Name = "label122"; + this.hbox68.Add (this.label122); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox68[this.label122])); + w4.Position = 0; + w4.Expand = false; + w4.Fill = false; + // Container child hbox68.Gtk.Box+BoxChild + this.label119 = new global::Gtk.Label (); + this.label119.Name = "label119"; + this.label119.LabelProp = global::Mono.Unix.Catalog.GetString ("Url:"); + this.hbox68.Add (this.label119); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox68[this.label119])); + w5.Position = 1; + w5.Expand = false; + w5.Fill = false; + // Container child hbox68.Gtk.Box+BoxChild + this.urlText = new global::Gtk.Entry (); + this.urlText.CanFocus = true; + this.urlText.Name = "urlText"; + this.urlText.IsEditable = true; + this.urlText.InvisibleChar = '●'; + this.hbox68.Add (this.urlText); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox68[this.urlText])); + w6.Position = 2; + this.vbox89.Add (this.hbox68); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox89[this.hbox68])); + w7.Position = 2; + w7.Expand = false; + w7.Fill = false; + // Container child vbox89.Gtk.Box+BoxChild + this.btnLocalRep = new global::Gtk.RadioButton (global::Mono.Unix.Catalog.GetString ("Register a local repository")); + this.btnLocalRep.CanFocus = true; + this.btnLocalRep.Name = "btnLocalRep"; + this.btnLocalRep.DrawIndicator = true; + this.btnLocalRep.UseUnderline = true; + this.btnLocalRep.Group = this.btnOnlineRep.Group; + this.vbox89.Add (this.btnLocalRep); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox89[this.btnLocalRep])); + w8.Position = 3; + w8.Expand = false; + w8.Fill = false; + // Container child vbox89.Gtk.Box+BoxChild + this.hbox69 = new global::Gtk.HBox (); + this.hbox69.Name = "hbox69"; + this.hbox69.Spacing = 6; + // Container child hbox69.Gtk.Box+BoxChild + this.label123 = new global::Gtk.Label (); + this.label123.WidthRequest = 32; + this.label123.Name = "label123"; + this.hbox69.Add (this.label123); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox69[this.label123])); + w9.Position = 0; + w9.Expand = false; + w9.Fill = false; + // Container child hbox69.Gtk.Box+BoxChild + this.label120 = new global::Gtk.Label (); + this.label120.Name = "label120"; + this.label120.LabelProp = global::Mono.Unix.Catalog.GetString ("Path:"); + this.hbox69.Add (this.label120); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox69[this.label120])); + w10.Position = 1; + w10.Expand = false; + w10.Fill = false; + // Container child hbox69.Gtk.Box+BoxChild + this.hbox1 = new global::Gtk.HBox (); + this.hbox1.Name = "hbox1"; + this.hbox1.Spacing = 6; + // Container child hbox1.Gtk.Box+BoxChild + this.pathEntry = new global::Gtk.Entry (); + this.pathEntry.CanFocus = true; + this.pathEntry.Name = "pathEntry"; + this.pathEntry.IsEditable = true; + this.pathEntry.InvisibleChar = '●'; + this.hbox1.Add (this.pathEntry); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.pathEntry])); + w11.Position = 0; + // Container child hbox1.Gtk.Box+BoxChild + this.buttonBrowse = new global::Gtk.Button (); + this.buttonBrowse.CanFocus = true; + this.buttonBrowse.Name = "buttonBrowse"; + this.buttonBrowse.UseUnderline = true; + this.buttonBrowse.Label = global::Mono.Unix.Catalog.GetString ("Browse..."); + this.hbox1.Add (this.buttonBrowse); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.buttonBrowse])); + w12.Position = 1; + w12.Expand = false; + w12.Fill = false; + this.hbox69.Add (this.hbox1); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox69[this.hbox1])); + w13.Position = 2; + this.vbox89.Add (this.hbox69); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox89[this.hbox69])); + w14.Position = 4; + w14.Expand = false; + w14.Fill = false; + w1.Add (this.vbox89); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(w1[this.vbox89])); + w15.Position = 0; + // Internal child Mono.Addins.Gui.NewSiteDialog.ActionArea + global::Gtk.HButtonBox w16 = this.ActionArea; + w16.Name = "dialog-action_area11"; + w16.Spacing = 10; + w16.BorderWidth = ((uint)(5)); + w16.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog-action_area11.Gtk.ButtonBox+ButtonBoxChild + this.cancelbutton1 = new global::Gtk.Button (); + this.cancelbutton1.CanDefault = true; + this.cancelbutton1.CanFocus = true; + this.cancelbutton1.Name = "cancelbutton1"; + this.cancelbutton1.UseStock = true; + this.cancelbutton1.UseUnderline = true; + this.cancelbutton1.Label = "gtk-cancel"; + this.AddActionWidget (this.cancelbutton1, -6); + global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.cancelbutton1])); + w17.Expand = false; + w17.Fill = false; + // Container child dialog-action_area11.Gtk.ButtonBox+ButtonBoxChild + this.btnOk = new global::Gtk.Button (); + this.btnOk.CanDefault = true; + this.btnOk.CanFocus = true; + this.btnOk.Name = "btnOk"; + this.btnOk.UseStock = true; + this.btnOk.UseUnderline = true; + this.btnOk.Label = "gtk-ok"; + this.AddActionWidget (this.btnOk, -5); + global::Gtk.ButtonBox.ButtonBoxChild w18 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.btnOk])); + w18.Position = 1; + w18.Expand = false; + w18.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.DefaultHeight = 249; + this.Show (); + this.btnOnlineRep.Clicked += new global::System.EventHandler (this.OnOptionClicked); + this.urlText.Changed += new global::System.EventHandler (this.OnUrlTextChanged); + this.btnLocalRep.Clicked += new global::System.EventHandler (this.OnOptionClicked); + this.pathEntry.Changed += new global::System.EventHandler (this.OnPathEntryChanged); + this.buttonBrowse.Clicked += new global::System.EventHandler (this.OnButtonBrowseClicked); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ProgressDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ProgressDialog.cs index 70d71f1..c9b4237 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ProgressDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.ProgressDialog.cs @@ -1,117 +1,109 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ -namespace Mono.Addins.Gui { - - - internal partial class ProgressDialog { - - private Gtk.VBox vbox2; - - private Gtk.Label labelMessage; - - private Gtk.ProgressBar progressbar; - - private Gtk.Expander expander1; - - private Gtk.ScrolledWindow GtkScrolledWindow; - - private Gtk.TextView textview; - - private Gtk.Label GtkLabel1; - - private Gtk.Button buttonCancel; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget Mono.Addins.Gui.ProgressDialog - this.Name = "Mono.Addins.Gui.ProgressDialog"; - this.Title = Mono.Unix.Catalog.GetString("Progress"); - this.WindowPosition = ((Gtk.WindowPosition)(4)); - this.Modal = true; - // Internal child Mono.Addins.Gui.ProgressDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog1_VBox"; - w1.BorderWidth = ((uint)(2)); - // Container child dialog1_VBox.Gtk.Box+BoxChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - this.vbox2.Spacing = 6; - this.vbox2.BorderWidth = ((uint)(9)); - // Container child vbox2.Gtk.Box+BoxChild - this.labelMessage = new Gtk.Label(); - this.labelMessage.Name = "labelMessage"; - this.labelMessage.Xalign = 0F; - this.vbox2.Add(this.labelMessage); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.labelMessage])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.progressbar = new Gtk.ProgressBar(); - this.progressbar.Name = "progressbar"; - this.vbox2.Add(this.progressbar); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressbar])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.expander1 = new Gtk.Expander(null); - this.expander1.CanFocus = true; - this.expander1.Name = "expander1"; - // Container child expander1.Gtk.Container+ContainerChild - this.GtkScrolledWindow = new Gtk.ScrolledWindow(); - this.GtkScrolledWindow.Name = "GtkScrolledWindow"; - this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); - // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.textview = new Gtk.TextView(); - this.textview.CanFocus = true; - this.textview.Name = "textview"; - this.GtkScrolledWindow.Add(this.textview); - this.expander1.Add(this.GtkScrolledWindow); - this.GtkLabel1 = new Gtk.Label(); - this.GtkLabel1.Name = "GtkLabel1"; - this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("Details"); - this.GtkLabel1.UseUnderline = true; - this.expander1.LabelWidget = this.GtkLabel1; - this.vbox2.Add(this.expander1); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1])); - w6.Position = 2; - w1.Add(this.vbox2); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); - w7.Position = 0; - // Internal child Mono.Addins.Gui.ProgressDialog.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; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 513; - this.DefaultHeight = 165; - this.Show(); - this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked); - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Mono.Addins.Gui +{ + internal partial class ProgressDialog + { + private global::Gtk.VBox vbox2; + + private global::Gtk.Label labelMessage; + + private global::Gtk.ProgressBar progressbar; + + private global::Gtk.Expander expander1; + + private global::Gtk.ScrolledWindow GtkScrolledWindow; + + private global::Gtk.TextView textview; + + private global::Gtk.Label GtkLabel1; + + private global::Gtk.Button buttonCancel; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget Mono.Addins.Gui.ProgressDialog + this.Name = "Mono.Addins.Gui.ProgressDialog"; + this.Title = global::Mono.Unix.Catalog.GetString ("Progress"); + this.WindowPosition = ((global::Gtk.WindowPosition)(4)); + this.Modal = true; + // Internal child Mono.Addins.Gui.ProgressDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog1_VBox"; + w1.BorderWidth = ((uint)(2)); + // Container child dialog1_VBox.Gtk.Box+BoxChild + this.vbox2 = new global::Gtk.VBox (); + this.vbox2.Name = "vbox2"; + this.vbox2.Spacing = 6; + this.vbox2.BorderWidth = ((uint)(9)); + // Container child vbox2.Gtk.Box+BoxChild + this.labelMessage = new global::Gtk.Label (); + this.labelMessage.Name = "labelMessage"; + this.labelMessage.Xalign = 0f; + this.vbox2.Add (this.labelMessage); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.labelMessage])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.progressbar = new global::Gtk.ProgressBar (); + this.progressbar.Name = "progressbar"; + this.vbox2.Add (this.progressbar); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.progressbar])); + w3.Position = 1; + w3.Expand = false; + w3.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.expander1 = new global::Gtk.Expander (null); + this.expander1.CanFocus = true; + this.expander1.Name = "expander1"; + // Container child expander1.Gtk.Container+ContainerChild + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow.Name = "GtkScrolledWindow"; + this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child GtkScrolledWindow.Gtk.Container+ContainerChild + this.textview = new global::Gtk.TextView (); + this.textview.CanFocus = true; + this.textview.Name = "textview"; + this.GtkScrolledWindow.Add (this.textview); + this.expander1.Add (this.GtkScrolledWindow); + this.GtkLabel1 = new global::Gtk.Label (); + this.GtkLabel1.Name = "GtkLabel1"; + this.GtkLabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("Details"); + this.GtkLabel1.UseUnderline = true; + this.expander1.LabelWidget = this.GtkLabel1; + this.vbox2.Add (this.expander1); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.expander1])); + w6.Position = 2; + w1.Add (this.vbox2); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2])); + w7.Position = 0; + // Internal child Mono.Addins.Gui.ProgressDialog.ActionArea + global::Gtk.HButtonBox w8 = this.ActionArea; + w8.Name = "dialog1_ActionArea"; + w8.Spacing = 6; + w8.BorderWidth = ((uint)(5)); + w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonCancel = new global::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); + global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); + w9.Expand = false; + w9.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.DefaultWidth = 513; + this.DefaultHeight = 165; + this.Show (); + this.buttonCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelClicked); + } + } } diff --git a/Mono.Addins.Gui/gtk-gui/generated.cs b/Mono.Addins.Gui/gtk-gui/generated.cs index 4c84fb1..8ff3153 100644 --- a/Mono.Addins.Gui/gtk-gui/generated.cs +++ b/Mono.Addins.Gui/gtk-gui/generated.cs @@ -1,68 +1,63 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// 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 IconLoader { - - public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) { - Gdk.Pixbuf res = widget.RenderIcon(name, size, null); - if ((res != null)) { - return res; - } - else { - try { - return Gtk.IconTheme.Default.LoadIcon(name, sz, 0); - } - catch (System.Exception ) { - if ((name != "gtk-missing-image")) { - return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz); - } - else { - Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz); - Gdk.GC gc = new Gdk.GC(pmap); - gc.RgbFgColor = new Gdk.Color(255, 255, 255); - pmap.DrawRectangle(gc, true, 0, 0, sz, sz); - gc.RgbFgColor = new Gdk.Color(0, 0, 0); - pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1)); - gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); - gc.RgbFgColor = new Gdk.Color(255, 0, 0); - pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4))); - pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4))); - return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); - } - } - } - } - } - - 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; - } - } +// This file has been generated by the GUI designer. Do not modify. +namespace Stetic +{ + internal class Gui + { + private static bool initialized; + + static internal void Initialize (Gtk.Widget iconRenderer) + { + if ((Stetic.Gui.initialized == false)) { + Stetic.Gui.initialized = true; + } + } + } + + internal class IconLoader + { + public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size) + { + Gdk.Pixbuf res = widget.RenderIcon (name, size, null); + if ((res != null)) { + return res; + } else { + int sz; + int sy; + global::Gtk.Icon.SizeLookup (size, out sz, out sy); + try { + return Gtk.IconTheme.Default.LoadIcon (name, sz, 0); + } catch (System.Exception) { + if ((name != "gtk-missing-image")) { + return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size); + } else { + Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz); + Gdk.GC gc = new Gdk.GC (pmap); + gc.RgbFgColor = new Gdk.Color (255, 255, 255); + pmap.DrawRectangle (gc, true, 0, 0, sz, sz); + gc.RgbFgColor = new Gdk.Color (0, 0, 0); + pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1)); + gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); + gc.RgbFgColor = new Gdk.Color (255, 0, 0); + pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4))); + pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4))); + return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); + } + } + } + } + } + + 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; + } + } } diff --git a/Mono.Addins.MSBuild/ChangeLog b/Mono.Addins.MSBuild/ChangeLog index b230ab1..4ef2190 100644 --- a/Mono.Addins.MSBuild/ChangeLog +++ b/Mono.Addins.MSBuild/ChangeLog @@ -1,3 +1,7 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * Mono.Addins.MSBuild.csproj: Flush. + 2010-03-01 Lluis Sanchez Gual <lluis@novell.com> * Mono.Addins.targets: diff --git a/Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj b/Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj index 06f7ac9..0e70fbc 100644 --- a/Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj +++ b/Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj @@ -8,6 +8,7 @@ <ProjectGuid>{B4B44F14-32C3-4D50-8C6A-06AA30E56CA3}</ProjectGuid> <OutputType>Library</OutputType> <AssemblyName>Mono.Addins.MSBuild</AssemblyName> + <RootNamespace>Mono.Addins.MSBuild</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> diff --git a/Mono.Addins.Setup/ChangeLog b/Mono.Addins.Setup/ChangeLog index 8ec599c..fa8b4b9 100644 --- a/Mono.Addins.Setup/ChangeLog +++ b/Mono.Addins.Setup/ChangeLog @@ -1,3 +1,7 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * Mono.Addins.Setup.csproj: Flush. + 2009-11-13 Lluis Sanchez Gual <lluis@novell.com> * Mono.Addins.Setup/SetupTool.cs: Allow specifying multiple diff --git a/Mono.Addins.Setup/Mono.Addins.Setup.csproj b/Mono.Addins.Setup/Mono.Addins.Setup.csproj index c267f0f..0fe7df9 100644 --- a/Mono.Addins.Setup/Mono.Addins.Setup.csproj +++ b/Mono.Addins.Setup/Mono.Addins.Setup.csproj @@ -8,6 +8,9 @@ <OutputType>Library</OutputType> <AssemblyName>Mono.Addins.Setup</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>Mono.Addins.Setup</RootNamespace> + <SignAssembly>true</SignAssembly> + <AssemblyOriginatorKeyFile>..\mono-addins.snk</AssemblyOriginatorKeyFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -17,10 +20,7 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - <SignAssembly>true</SignAssembly> <ConsolePause>false</ConsolePause> - <AssemblyOriginatorKeyFile>..\mono-addins.snk</AssemblyOriginatorKeyFile> - <AssemblyKeyFile>..\mono-addins.snk</AssemblyKeyFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> diff --git a/Samples/HelloWorldWithManifest/ChangeLog b/Samples/HelloWorldWithManifest/ChangeLog index e5d3cbc..95e9050 100644 --- a/Samples/HelloWorldWithManifest/ChangeLog +++ b/Samples/HelloWorldWithManifest/ChangeLog @@ -1,3 +1,8 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * HelloWorld/HelloWorld.csproj: + * HelloWorldAddin/HelloWorldAddin.csproj: Flush. + 2010-03-24 Lluis Sanchez Gual <lluis@novell.com> * Makefile: diff --git a/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj b/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj index df864d0..3754e46 100644 --- a/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj +++ b/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj @@ -1 +1,49 @@ -<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5F813963-DE40-433A-ABE3-71EACDF19412}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>HelloWorld</RootNamespace>
<AssemblyName>HelloWorld</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\bin\Mono.Addins.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="ICommand.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="HelloWorld.addin.xml">
<LogicalName>HelloWorld.addin.xml</LogicalName>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">x86</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{5F813963-DE40-433A-ABE3-71EACDF19412}</ProjectGuid> + <OutputType>Exe</OutputType> + <RootNamespace>HelloWorld</RootNamespace> + <AssemblyName>HelloWorld</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <DebugType>none</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="Main.cs" /> + <Compile Include="ICommand.cs" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="HelloWorld.addin.xml"> + <LogicalName>HelloWorld.addin.xml</LogicalName> + </EmbeddedResource> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file diff --git a/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj index c5fe307..b467293 100644 --- a/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj +++ b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj @@ -1 +1,50 @@ -<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{26C85FBC-0A97-4650-807F-E889C6D1F32F}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>HelloWorldAddin</RootNamespace>
<AssemblyName>HelloWorldAddin</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="HelloWorldAddin.addin.xml">
<LogicalName>HelloWorldAddin.addin.xml</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Compile Include="HelloCommand.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HelloWorld\HelloWorld.csproj">
<Project>{5F813963-DE40-433A-ABE3-71EACDF19412}</Project>
<Name>HelloWorld</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{26C85FBC-0A97-4650-807F-E889C6D1F32F}</ProjectGuid> + <OutputType>Library</OutputType> + <RootNamespace>HelloWorldAddin</RootNamespace> + <AssemblyName>HelloWorldAddin</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>false</ConsolePause> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>none</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>false</ConsolePause> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="HelloWorldAddin.addin.xml"> + <LogicalName>HelloWorldAddin.addin.xml</LogicalName> + </EmbeddedResource> + </ItemGroup> + <ItemGroup> + <Compile Include="HelloCommand.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\HelloWorld\HelloWorld.csproj"> + <Project>{5F813963-DE40-433A-ABE3-71EACDF19412}</Project> + <Name>HelloWorld</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file diff --git a/Samples/WriterService/ChangeLog b/Samples/WriterService/ChangeLog index 66be24d..0cd6d32 100644 --- a/Samples/WriterService/ChangeLog +++ b/Samples/WriterService/ChangeLog @@ -1,3 +1,10 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * WriterServiceHost/WriterServiceHost.csproj: + * WriterService.SampleExtender/WriterService.SampleExtender.csproj: + Disable makefile integration since we are not using + makefiles anymore. + 2010-03-24 Lluis Sanchez Gual <lluis@novell.com> * WriterService.sln: More missing files. diff --git a/Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj b/Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj index fff27e1..8c1d2df 100644 --- a/Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj +++ b/Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj @@ -57,7 +57,7 @@ <MonoDevelop> <Properties> <Deployment.LinuxDeployData scriptName="writerservice.sampleextender" generatePcFile="false" /> - <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> + <MonoDevelop.Autotools.MakefileInfo RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> <BuildFilesVar Sync="true" Name="FILES" /> <DeployFilesVar Sync="true" Name="DATA_FILES" /> <ResourcesVar Sync="true" Name="RESOURCES" /> diff --git a/Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj b/Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj index 666e1de..6691caa 100644 --- a/Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj +++ b/Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj @@ -51,7 +51,7 @@ <MonoDevelop> <Properties> <Deployment.LinuxDeployData generateScript="false" scriptName="writerservicehost" /> - <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> + <MonoDevelop.Autotools.MakefileInfo RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> <BuildFilesVar Sync="true" Name="FILES" /> <DeployFilesVar Sync="true" Name="DATA_FILES" /> <ResourcesVar Sync="true" Name="RESOURCES" /> diff --git a/Test/CommandExtension/ChangeLog b/Test/CommandExtension/ChangeLog index 76a9d64..89a79f2 100644 --- a/Test/CommandExtension/ChangeLog +++ b/Test/CommandExtension/ChangeLog @@ -1,3 +1,8 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * CommandExtension.csproj: Disable makefile integration since + we are not using makefiles anymore. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * CommandExtension.csproj: Update target framework to 2.0. diff --git a/Test/CommandExtension/CommandExtension.csproj b/Test/CommandExtension/CommandExtension.csproj index 3fb6fa7..1412f2f 100644 --- a/Test/CommandExtension/CommandExtension.csproj +++ b/Test/CommandExtension/CommandExtension.csproj @@ -8,6 +8,7 @@ <OutputType>Library</OutputType> <AssemblyName>CommandExtension</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>CommandExtension</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -26,6 +27,7 @@ <ProjectReference Include="..\UnitTests\UnitTests.csproj"> <Project>{1CD51E61-1985-4D22-9BFA-D14C8FC61B46}</Project> <Name>UnitTests</Name> + <Private>False</Private> </ProjectReference> <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> diff --git a/Test/FileContentExtension/ChangeLog b/Test/FileContentExtension/ChangeLog index f8ebc74..e599c30 100644 --- a/Test/FileContentExtension/ChangeLog +++ b/Test/FileContentExtension/ChangeLog @@ -1,3 +1,8 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * FileContentExtension.csproj: Disable makefile integration + since we are not using makefiles anymore. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * FileContentExtension.csproj: Update target framework to 2.0. diff --git a/Test/FileContentExtension/FileContentExtension.csproj b/Test/FileContentExtension/FileContentExtension.csproj index 995a149..e73063a 100644 --- a/Test/FileContentExtension/FileContentExtension.csproj +++ b/Test/FileContentExtension/FileContentExtension.csproj @@ -8,6 +8,7 @@ <OutputType>Library</OutputType> <AssemblyName>FileContentExtension</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>FileContentExtension</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -26,6 +27,7 @@ <ProjectReference Include="..\UnitTests\UnitTests.csproj"> <Project>{1CD51E61-1985-4D22-9BFA-D14C8FC61B46}</Project> <Name>UnitTests</Name> + <Private>False</Private> </ProjectReference> <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> diff --git a/Test/FileExtender/ChangeLog b/Test/FileExtender/ChangeLog index eb3ed54..9b1035c 100644 --- a/Test/FileExtender/ChangeLog +++ b/Test/FileExtender/ChangeLog @@ -1,3 +1,11 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * Makefile.am: + * FileExtender.csproj: + * FileExtender.addin.xml: + * FileExtender.Bis.addin.xml: Updated and created new tests + for testing extension definition using the new features. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * FileExtender.csproj: Update target framework to 2.0. diff --git a/Test/FileExtender/FileExtender.Bis.addin.xml b/Test/FileExtender/FileExtender.Bis.addin.xml new file mode 100644 index 0000000..28ad9c8 --- /dev/null +++ b/Test/FileExtender/FileExtender.Bis.addin.xml @@ -0,0 +1,13 @@ +<ExtensionModel> + + <Extension path = "/SimpleApp/Writers/SomeFile"> + <Content xpath="some/path2" /> + </Extension> + + <Extension path = "/SimpleApp/ExtraWriters/SomeParentFile"> + <Condition id="InputParameter" value="tc2"> + <Content xpath="child3" /> + </Condition> + </Extension> + +</ExtensionModel> diff --git a/Test/FileExtender/FileExtender.addin.xml b/Test/FileExtender/FileExtender.addin.xml index ee263c2..76e1c7f 100644 --- a/Test/FileExtender/FileExtender.addin.xml +++ b/Test/FileExtender/FileExtender.addin.xml @@ -1,6 +1,4 @@ -<Addin - namespace = "SimpleApp" - > +<Addin namespace = "SimpleApp"> <Runtime> <Import assembly="FileExtender.dll"/> @@ -16,13 +14,6 @@ <Extension path = "/SimpleApp/Writers/SomeFile"> <Content xpath="some/path1" /> - <Content xpath="some/path2" /> - </Extension> - - <Extension path = "/SimpleApp/ExtraWriters/SomeParentFile"> - <Condition id="InputParameter" value="tc2"> - <Content xpath="child3" /> - </Condition> </Extension> </Addin> diff --git a/Test/FileExtender/FileExtender.csproj b/Test/FileExtender/FileExtender.csproj index e4e1c85..8ee1f46 100644 --- a/Test/FileExtender/FileExtender.csproj +++ b/Test/FileExtender/FileExtender.csproj @@ -8,6 +8,7 @@ <OutputType>Library</OutputType> <AssemblyName>FileExtender</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>FileExtender</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -38,12 +39,22 @@ <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> <Name>Mono.Addins</Name> </ProjectReference> + <ProjectReference Include="..\UnitTests\UnitTests.csproj"> + <Project>{1CD51E61-1985-4D22-9BFA-D14C8FC61B46}</Project> + <Name>UnitTests</Name> + <Private>False</Private> + </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="FileExtender.cs" /> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="FileExtender.addin.xml" /> + <EmbeddedResource Include="FileExtender.addin.xml"> + <LogicalName>FileExtender.addin.xml</LogicalName> + </EmbeddedResource> + <EmbeddedResource Include="FileExtender.Bis.addin.xml"> + <LogicalName>FileExtender.Bis.addin.xml</LogicalName> + </EmbeddedResource> </ItemGroup> <ItemGroup> <Content Include="ExtraExtender.addin.xml"> @@ -54,6 +65,7 @@ <None Include="Makefile.am" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <Import Project="$(MSBuildExtensionsPath)\Mono.Addins.targets" /> <ProjectExtensions> <MonoDevelop> <Properties> diff --git a/Test/FileExtender/Makefile.am b/Test/FileExtender/Makefile.am index c7fba55..7222007 100644 --- a/Test/FileExtender/Makefile.am +++ b/Test/FileExtender/Makefile.am @@ -4,7 +4,8 @@ ASSEMBLY = ../lib/extras/FileExtender.dll COMPILE_TARGET = library PROJECT_REFERENCES = \ ../../bin/Mono.Addins.dll \ - ../lib/FileContentExtension.dll + ../lib/FileContentExtension.dll \ + ../UnitTests/bin/Debug/UnitTests.dll BUILD_DIR = ../lib/extras @@ -16,7 +17,9 @@ FILES = FileExtender.cs DATA_FILES = ExtraExtender.addin.xml -RESOURCES = FileExtender.addin.xml +RESOURCES = \ + FileExtender.addin.xml \ + FileExtender.Bis.addin.xml EXTRAS = diff --git a/Test/HelloWorldExtension/AttributeExtensions.cs b/Test/HelloWorldExtension/AttributeExtensions.cs new file mode 100644 index 0000000..2a32691 --- /dev/null +++ b/Test/HelloWorldExtension/AttributeExtensions.cs @@ -0,0 +1,32 @@ +// +// AttrubuteExtensions.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 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 UnitTests; + +[assembly:TestNode ("test1", true, Id="t1")] +[assembly:TestNode (Name="test2", Value=true, InsertAfter="t1")] + diff --git a/Test/HelloWorldExtension/ChangeLog b/Test/HelloWorldExtension/ChangeLog index 46b6239..a045655 100644 --- a/Test/HelloWorldExtension/ChangeLog +++ b/Test/HelloWorldExtension/ChangeLog @@ -1,3 +1,12 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * Makefile.am: + * HelloWorldWriter.cs: + * AttributeExtensions.cs: + * HelloWriterWithMetadata.cs: + * HelloWorldExtension.csproj: Updated and created new tests + for testing extension definition using the new features. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * HelloWorldExtension.csproj: Update target framework to 2.0. diff --git a/Test/HelloWorldExtension/HelloWorldExtension.csproj b/Test/HelloWorldExtension/HelloWorldExtension.csproj index 376cd09..6e628b8 100644 --- a/Test/HelloWorldExtension/HelloWorldExtension.csproj +++ b/Test/HelloWorldExtension/HelloWorldExtension.csproj @@ -8,6 +8,7 @@ <OutputType>Library</OutputType> <AssemblyName>HelloWorldExtension</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>HelloWorldExtension</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -26,6 +27,7 @@ <ProjectReference Include="..\UnitTests\UnitTests.csproj"> <Project>{1CD51E61-1985-4D22-9BFA-D14C8FC61B46}</Project> <Name>UnitTests</Name> + <Private>False</Private> </ProjectReference> <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> @@ -35,6 +37,8 @@ <ItemGroup> <Compile Include="HelloWorldWriter.cs" /> <Compile Include="HelloSampleExtender.cs" /> + <Compile Include="AttributeExtensions.cs" /> + <Compile Include="HelloWriterWithMetadata.cs" /> </ItemGroup> <ItemGroup> <None Include="Makefile.am" /> diff --git a/Test/HelloWorldExtension/HelloWorldWriter.cs b/Test/HelloWorldExtension/HelloWorldWriter.cs index 8b7b211..cc6c72f 100644 --- a/Test/HelloWorldExtension/HelloWorldWriter.cs +++ b/Test/HelloWorldExtension/HelloWorldWriter.cs @@ -11,6 +11,13 @@ namespace HelloWorldExtension [Extension ("/SimpleApp/Writers")] public class HelloWorldWriter: IWriter { + public HelloWorldWriter () + { + Id = Guid.NewGuid ().ToString (); + } + + public string Id { get; set; } + public string Title { get { return "Hello world message"; } } diff --git a/Test/HelloWorldExtension/HelloWriterWithMetadata.cs b/Test/HelloWorldExtension/HelloWriterWithMetadata.cs new file mode 100644 index 0000000..127808b --- /dev/null +++ b/Test/HelloWorldExtension/HelloWriterWithMetadata.cs @@ -0,0 +1,50 @@ +// +// HelloWriterWithMetadata.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 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 SimpleApp; + +namespace HelloWorldExtension +{ + [WriterWithMetadata ("meta1", 1)] + public class HelloWriterWithMetadata: IWriterWithMetadata + { + public string Write () + { + return "mt1"; + } + } + + [WriterWithMetadata ("meta2", 2)] + public class HelloWriterWithMetadata2: IWriterWithMetadata + { + public string Write () + { + return "mt2"; + } + } +} + diff --git a/Test/HelloWorldExtension/Makefile.am b/Test/HelloWorldExtension/Makefile.am index 59fa5ba..ca7f4f7 100644 --- a/Test/HelloWorldExtension/Makefile.am +++ b/Test/HelloWorldExtension/Makefile.am @@ -13,8 +13,10 @@ all: $(ASSEMBLY) endif FILES = \ + AttributeExtensions.cs \ HelloSampleExtender.cs \ - HelloWorldWriter.cs + HelloWorldWriter.cs \ + HelloWriterWithMetadata.cs DATA_FILES = diff --git a/Test/SystemInfoExtension/ChangeLog b/Test/SystemInfoExtension/ChangeLog index 3c8fc26..4795bb6 100644 --- a/Test/SystemInfoExtension/ChangeLog +++ b/Test/SystemInfoExtension/ChangeLog @@ -1,3 +1,10 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * Makefile.am: + * SystemInfoWriter.cs: + * SystemInfoExtension.csproj: Updated and created new tests + for testing extension definition using the new features. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * SystemInfoExtension.csproj: Update target framework to 2.0. diff --git a/Test/SystemInfoExtension/Makefile.am b/Test/SystemInfoExtension/Makefile.am index 828e35e..41aa6a7 100644 --- a/Test/SystemInfoExtension/Makefile.am +++ b/Test/SystemInfoExtension/Makefile.am @@ -1,9 +1,10 @@ -ASSEMBLY_COMPILER_COMMAND = mcs +ASSEMBLY_COMPILER_COMMAND = gmcs ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG ASSEMBLY = ../lib/SystemInfoExtension.dll COMPILE_TARGET = library PROJECT_REFERENCES = \ ../../bin/Mono.Addins.dll \ + ../lib/CommandExtension.dll \ ../UnitTests/bin/Debug/UnitTests.dll BUILD_DIR = ../lib diff --git a/Test/SystemInfoExtension/SystemInfoExtension.csproj b/Test/SystemInfoExtension/SystemInfoExtension.csproj index 76f1eaa..4418a66 100644 --- a/Test/SystemInfoExtension/SystemInfoExtension.csproj +++ b/Test/SystemInfoExtension/SystemInfoExtension.csproj @@ -8,6 +8,7 @@ <OutputType>Library</OutputType> <AssemblyName>SystemInfoExtension</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>SystemInfoExtension</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -26,11 +27,16 @@ <ProjectReference Include="..\UnitTests\UnitTests.csproj"> <Project>{1CD51E61-1985-4D22-9BFA-D14C8FC61B46}</Project> <Name>UnitTests</Name> + <Private>False</Private> </ProjectReference> <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> <Name>Mono.Addins</Name> </ProjectReference> + <ProjectReference Include="..\CommandExtension\CommandExtension.csproj"> + <Project>{F109148D-849E-4044-8700-5E8EA0AB2476}</Project> + <Name>CommandExtension</Name> + </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="MyClass.cs" /> @@ -50,10 +56,10 @@ <MonoDevelop> <Properties> <Deployment.LinuxDeployData scriptName="systeminfoextension" generatePcFile="false" /> - <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> + <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> <BuildFilesVar Sync="true" Name="FILES" /> <DeployFilesVar Sync="true" Name="DATA_FILES" /> - <ResourcesVar Sync="true" Name="RESOURCES" /> + <ResourcesVar Name="RESOURCES" /> <OthersVar /> <GacRefVar Sync="true" Name="REFERENCES" Prefix="-r:" /> <AsmRefVar Sync="true" Name="DLL_REFERENCES" /> @@ -62,4 +68,12 @@ </Properties> </MonoDevelop> </ProjectExtensions> + <ItemGroup> + <EmbeddedResource Include="Resources.resx"> + <LogicalName>Resources.resources</LogicalName> + </EmbeddedResource> + <EmbeddedResource Include="Resources.ca.resx"> + <LogicalName>Resources.ca.resources</LogicalName> + </EmbeddedResource> + </ItemGroup> </Project>
\ No newline at end of file diff --git a/Test/SystemInfoExtension/SystemInfoWriter.cs b/Test/SystemInfoExtension/SystemInfoWriter.cs index 3bc9c45..a78e59f 100644 --- a/Test/SystemInfoExtension/SystemInfoWriter.cs +++ b/Test/SystemInfoExtension/SystemInfoWriter.cs @@ -7,6 +7,13 @@ namespace SystemInfoExtension { public class SystemInfoWriter: IWriter { + public SystemInfoWriter () + { + Id = Guid.NewGuid ().ToString (); + } + + public string Id { get; set; } + public string Title { get { return AddinManager.CurrentLocalizer.GetString ("Modules"); } } diff --git a/Test/UnitTests/ChangeLog b/Test/UnitTests/ChangeLog index d3310ea..4de227f 100644 --- a/Test/UnitTests/ChangeLog +++ b/Test/UnitTests/ChangeLog @@ -1,3 +1,19 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * IWriter.cs: + * Makefile.am: + * TestBase.cs: + * TestSetup.cs: + * TestEvents.cs: + * UnitTests.csproj: + * TestLoadUnload.cs: + * TestConditions.cs: + * TestExtensions.cs: + * SimpleApp.addin.xml: + * NodeWithAttribute.cs: + * IWriterWithMetadata.cs: Updated and created new tests for + testing extension definition using the new features. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * UnitTests.csproj: Update target framework to 2.0. diff --git a/Test/UnitTests/IWriter.cs b/Test/UnitTests/IWriter.cs index ecfd7ca..22544cb 100644 --- a/Test/UnitTests/IWriter.cs +++ b/Test/UnitTests/IWriter.cs @@ -8,6 +8,7 @@ namespace SimpleApp { public interface IWriter { + string Id { get; } string Title { get; } string Write (); string Test (string test); diff --git a/Test/UnitTests/IWriterWithMetadata.cs b/Test/UnitTests/IWriterWithMetadata.cs new file mode 100644 index 0000000..786dc39 --- /dev/null +++ b/Test/UnitTests/IWriterWithMetadata.cs @@ -0,0 +1,57 @@ +// +// TestTypeNodeAttribute.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 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 Mono.Addins; + +namespace SimpleApp +{ + [TypeExtensionPoint (CustomAttributeType=typeof(WriterWithMetadataAttribute))] + public interface IWriterWithMetadata + { + string Write (); + } + + public class WriterWithMetadataAttribute: CustomExtensionAttribute + { + public WriterWithMetadataAttribute () + { + } + + public WriterWithMetadataAttribute ([NodeAttribute ("Name")] string name, [NodeAttribute ("Version")] int version) + { + Name = name; + Version = version; + } + + [NodeAttribute] + public string Name { get; set; } + + [NodeAttribute] + public int Version { get; set; } + } +} + diff --git a/Test/UnitTests/Makefile.am b/Test/UnitTests/Makefile.am index 31a6c1b..0bf650d 100644 --- a/Test/UnitTests/Makefile.am +++ b/Test/UnitTests/Makefile.am @@ -2,7 +2,9 @@ ASSEMBLY_COMPILER_COMMAND = mcs ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG ASSEMBLY = ./bin/Debug/UnitTests.dll COMPILE_TARGET = library -PROJECT_REFERENCES = ../../bin/Mono.Addins.dll +PROJECT_REFERENCES = \ + ../../bin/Mono.Addins.CecilReflector.dll \ + ../../bin/Mono.Addins.dll BUILD_DIR = ./bin/Debug NOINSTALL=yes @@ -18,6 +20,8 @@ FILES = \ GlobalInfoCondition.cs \ ISampleExtender.cs \ IWriter.cs \ + IWriterWithMetadata.cs \ + NodeWithAttribute.cs \ ParameterInfoCondition.cs \ TestBase.cs \ TestConditions.cs \ @@ -37,6 +41,7 @@ EXTRAS = REFERENCES = \ -pkg:mono-nunit \ + -pkg:nunit \ -r:System \ -r:System.Xml diff --git a/Test/UnitTests/NodeWithAttribute.cs b/Test/UnitTests/NodeWithAttribute.cs new file mode 100644 index 0000000..716e3db --- /dev/null +++ b/Test/UnitTests/NodeWithAttribute.cs @@ -0,0 +1,74 @@ +// +// NodeWithAttribute.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 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 Mono.Addins; + +namespace UnitTests +{ + [ExtensionNode (CustomAttributeType=typeof(TestNodeAttribute))] + public class NodeWithAttribute: ExtensionNode + { + [NodeAttribute] + protected string name; + + [NodeAttribute] + protected bool value; + + public string Name { + get { return this.name; } + } + + public bool Value { + get { return this.value; } + } + + public NodeWithAttribute () + { + } + } + + [AttributeUsage (AttributeTargets.Assembly, AllowMultiple=true)] + public class TestNodeAttribute: CustomExtensionAttribute + { + public TestNodeAttribute () + { + } + + public TestNodeAttribute (string name, [NodeAttribute("value")] bool val) + { + Name = name; + Value = val; + } + + [NodeAttribute ("name")] + public string Name { get; set; } + + [NodeAttribute ("value")] + public bool Value; + } +} + diff --git a/Test/UnitTests/SimpleApp.addin.xml b/Test/UnitTests/SimpleApp.addin.xml index 1adf1cb..dd31304 100644 --- a/Test/UnitTests/SimpleApp.addin.xml +++ b/Test/UnitTests/SimpleApp.addin.xml @@ -44,6 +44,10 @@ </ExtensionNode> </ExtensionPoint> + <ExtensionPoint path = "/SimpleApp/NodesWithAttribute"> + <ExtensionNode name="WithAtt" type="UnitTests.NodeWithAttribute" /> + </ExtensionPoint> + <!-- Extensions --> <Extension path="/SimpleApp/NodeWithChildren"> diff --git a/Test/UnitTests/TestBase.cs b/Test/UnitTests/TestBase.cs index 425ac6c..f2ec73b 100644 --- a/Test/UnitTests/TestBase.cs +++ b/Test/UnitTests/TestBase.cs @@ -9,6 +9,15 @@ namespace UnitTests { public class TestBase { + static bool firstRun = true; + + public static string TempDir { + get { + string dir = new Uri (typeof(TestBase).Assembly.CodeBase).LocalPath; + return Path.Combine (Path.GetDirectoryName (dir), "temp"); + } + } + [TestFixtureSetUp] public virtual void Setup () { @@ -17,9 +26,22 @@ namespace UnitTests AddinManager.AddinUnloaded += OnUnload; string dir = new Uri (GetType().Assembly.CodeBase).LocalPath; - AddinManager.Initialize (Path.GetDirectoryName (dir)); - AddinManager.Registry.ResetConfiguration (); - AddinManager.Registry.Update (new ConsoleProgressStatus (true)); + dir = Path.Combine (Path.GetDirectoryName (dir), "registry"); + + if (firstRun) { + if (Directory.Exists (TempDir)) + Directory.Delete (TempDir, true); + Directory.CreateDirectory (TempDir); + } + + AddinManager.Initialize (TempDir); + + if (firstRun) + AddinManager.Registry.Update (new ConsoleProgressStatus (true)); + else + AddinManager.Registry.ResetConfiguration (); + + firstRun = false; } [TestFixtureTearDown] diff --git a/Test/UnitTests/TestConditions.cs b/Test/UnitTests/TestConditions.cs index 7281af7..2ed4a05 100644 --- a/Test/UnitTests/TestConditions.cs +++ b/Test/UnitTests/TestConditions.cs @@ -48,14 +48,14 @@ namespace UnitTests Hashtable newwriters = new Hashtable (); for (int n=0; n<writers.Length; n++) { - string nwrit = writers[n].Write (); + string nwrit = writers[n].Id; // Check added events if (oldwriters.Contains (nwrit)) { - Assert.IsFalse (added.Contains (nwrit), tid + ": incorrect Add event for node: " + nwrit); - Assert.IsFalse (removed.Contains (nwrit), tid + ": incorrect Remove event for node: " + nwrit); + Assert.IsFalse (added.Contains (nwrit), tid + ": incorrect Add event for node: " + writers[n].Write ()); + Assert.IsFalse (removed.Contains (nwrit), tid + ": incorrect Remove event for node: " + writers[n].Write ()); } else { - Assert.IsTrue (added.Contains (nwrit), tid + ": Add event not sent for node: " + nwrit); + Assert.IsTrue (added.Contains (nwrit), tid + ": Add event not sent for node: " + writers[n].Write ()); } newwriters [nwrit] = nwrit; } @@ -96,9 +96,9 @@ namespace UnitTests { IWriter w = (IWriter) ((TypeExtensionNode)args.ExtensionNode).CreateInstance (); if (args.Change == ExtensionChange.Add) - added [w.Write ()] = w; + added [w.Id] = w; else - removed [w.Write ()] = w; + removed [w.Id] = w; } [Test()] diff --git a/Test/UnitTests/TestEvents.cs b/Test/UnitTests/TestEvents.cs index d816615..e7ec8db 100644 --- a/Test/UnitTests/TestEvents.cs +++ b/Test/UnitTests/TestEvents.cs @@ -71,8 +71,14 @@ namespace UnitTests Assert.AreEqual (2, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 2"); - InitChangedExtensionEvent ("/SimpleApp/Writers", - "/SimpleApp.Core/TypeExtensions/SimpleApp.ISampleExtender"); + string[] addinExtensions = new string[] { + "/SimpleApp/Writers", + "/SimpleApp.Core/TypeExtensions/SimpleApp.ISampleExtender", + "/SimpleApp.Core/TypeExtensions/SimpleApp.IWriterWithMetadata", + "/SimpleApp/NodesWithAttribute" + }; + + InitChangedExtensionEvent (addinExtensions); AddinManager.ExtensionChanged += OnExtensionChangedHandler; AddinManager.AddExtensionNodeHandler ("/SimpleApp/Writers", OnExtensionChange); @@ -93,7 +99,7 @@ namespace UnitTests Assert.AreEqual (1, notifyCount, "notifyCount 2"); Assert.AreEqual (1, addCount, "addCount 2"); Assert.AreEqual (0, removeCount, "removeCount 2"); - Assert.AreEqual (2, eventCount, "eventCount 2"); // 1 for each extension of HelloWorldExtension, not only /SimpleApp/Writers + Assert.AreEqual (addinExtensions.Length, eventCount, "eventCount 2"); // 1 for each extension of HelloWorldExtension, not only /SimpleApp/Writers // Now unregister @@ -164,8 +170,14 @@ namespace UnitTests Assert.AreEqual (4, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 1"); - InitChangedExtensionEvent ("/SimpleApp/Writers", - "/SimpleApp.Core/TypeExtensions/SimpleApp.ISampleExtender"); + string[] addinExtensions = new string[] { + "/SimpleApp/Writers", + "/SimpleApp.Core/TypeExtensions/SimpleApp.ISampleExtender", + "/SimpleApp.Core/TypeExtensions/SimpleApp.IWriterWithMetadata", + "/SimpleApp/NodesWithAttribute" + }; + + InitChangedExtensionEvent (addinExtensions); AddinManager.ExtensionChanged += OnExtensionChangedHandler; AddinManager.AddExtensionNodeHandler ("/SimpleApp/Writers", OnExtensionChange); @@ -186,7 +198,7 @@ namespace UnitTests Assert.AreEqual (1, notifyCount, "notifyCount 2"); Assert.AreEqual (0, addCount, "addCount 2"); Assert.AreEqual (1, removeCount, "removeCount 2"); - Assert.AreEqual (2, eventCount, "eventCount 2"); // 1 for each extension of HelloWorldExtension, not only /SimpleApp/Writers + Assert.AreEqual (addinExtensions.Length, eventCount, "eventCount 2"); // 1 for each extension of HelloWorldExtension, not only /SimpleApp/Writers InitChangedExtensionEvent ("/SimpleApp/Writers", "/SimpleApp.Core/TypeExtensions/SimpleApp.ISampleExtender", diff --git a/Test/UnitTests/TestExtensions.cs b/Test/UnitTests/TestExtensions.cs index b454059..da8fba5 100644 --- a/Test/UnitTests/TestExtensions.cs +++ b/Test/UnitTests/TestExtensions.cs @@ -135,5 +135,35 @@ namespace UnitTests Assert.AreEqual ("node2", n2.Id, "t2"); } + + [Test()] + public void TestExtensionWithAttribute () + { + ExtensionNodeList nodes = AddinManager.GetExtensionNodes ("/SimpleApp/NodesWithAttribute"); + Assert.AreEqual (2, nodes.Count, "Node count"); + NodeWithAttribute n1 = nodes [0] as NodeWithAttribute; + NodeWithAttribute n2 = nodes [1] as NodeWithAttribute; + Assert.IsNotNull (n1); + Assert.IsNotNull (n2); + Assert.AreEqual ("test1", n1.Name, "t1"); + Assert.AreEqual (true, n1.Value, "t2"); + Assert.AreEqual ("test2", n2.Name, "t1"); + Assert.AreEqual (true, n2.Value, "t2"); + } + + [Test()] + public void TestTypeExtensionWithAttribute () + { + ExtensionNodeList nodes = AddinManager.GetExtensionNodes (typeof(IWriterWithMetadata)); + Assert.AreEqual (2, nodes.Count, "Node count"); + TypeExtensionNode<WriterWithMetadataAttribute> n1 = nodes [0] as TypeExtensionNode<WriterWithMetadataAttribute>; + TypeExtensionNode<WriterWithMetadataAttribute> n2 = nodes [1] as TypeExtensionNode<WriterWithMetadataAttribute>; + Assert.IsNotNull (n1); + Assert.IsNotNull (n2); + Assert.AreEqual ("meta1", n1.Data.Name, "t1"); + Assert.AreEqual (1, n1.Data.Version, "t2"); + Assert.AreEqual ("meta2", n2.Data.Name, "t3"); + Assert.AreEqual (2, n2.Data.Version, "t4"); + } } } diff --git a/Test/UnitTests/TestLoadUnload.cs b/Test/UnitTests/TestLoadUnload.cs index c9eff91..d529903 100644 --- a/Test/UnitTests/TestLoadUnload.cs +++ b/Test/UnitTests/TestLoadUnload.cs @@ -10,6 +10,19 @@ namespace UnitTests [TestFixture()] public class TestLoadUnload: TestBase { + void ResetStatus (bool enable) + { + Addin ainfo; + ainfo = AddinManager.Registry.GetAddin ("SimpleApp.HelloWorldExtension"); + ainfo.Enabled = enable; + ainfo = AddinManager.Registry.GetAddin ("SimpleApp.FileContentExtension"); + ainfo.Enabled = enable; + ainfo = AddinManager.Registry.GetAddin ("SimpleApp.SystemInfoExtension"); + ainfo.Enabled = enable; + ainfo = AddinManager.Registry.GetAddin ("SimpleApp.CommandExtension"); + ainfo.Enabled = enable; + } + [Test()] public void TestDisable () { @@ -48,11 +61,15 @@ namespace UnitTests Assert.IsFalse (ainfo.Enabled, "t2.2"); Assert.AreEqual (0, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 5"); + + ResetStatus (true); } [Test()] public void TestEnable () { + ResetStatus (false); + Assert.AreEqual (0, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 1"); Assert.IsFalse (AddinManager.Registry.IsAddinEnabled ("SimpleApp.HelloWorldExtension"), "t1"); @@ -78,6 +95,8 @@ namespace UnitTests Assert.IsTrue (AddinManager.Registry.IsAddinEnabled ("SimpleApp.FileContentExtension"), "t4.1"); Assert.AreEqual (4, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 5"); + + ResetStatus (true); } [Test()] @@ -118,11 +137,15 @@ namespace UnitTests Assert.IsFalse (ainfo.Enabled, "t5.2"); Assert.AreEqual (0, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 4"); + + ResetStatus (true); } [Test()] public void TestEnableWithDeps () { + ResetStatus (false); + Addin ainfo; Assert.AreEqual (0, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 1"); @@ -154,6 +177,8 @@ namespace UnitTests ainfo = AddinManager.Registry.GetAddin ("SimpleApp.CommandExtension"); Assert.IsNotNull (ainfo, "t2"); Assert.IsTrue (ainfo.Enabled, "t2.1"); + + ResetStatus (true); } [Test()] diff --git a/Test/UnitTests/TestSetup.cs b/Test/UnitTests/TestSetup.cs index 9f73434..e548cc0 100644 --- a/Test/UnitTests/TestSetup.cs +++ b/Test/UnitTests/TestSetup.cs @@ -13,8 +13,8 @@ namespace UnitTests [Test] public void TestInitialize () { - string dir = new Uri (GetType().Assembly.CodeBase).LocalPath; - AddinManager.Initialize (Path.GetDirectoryName (dir)); + string dir = Path.Combine (TestBase.TempDir, "setup-test"); + AddinManager.Initialize (dir); AddinManager.Registry.ResetConfiguration (); AddinManager.Registry.Update (new ConsoleProgressStatus (true)); } diff --git a/Test/UnitTests/UnitTests.csproj b/Test/UnitTests/UnitTests.csproj index 7f3d6eb..8601380 100644 --- a/Test/UnitTests/UnitTests.csproj +++ b/Test/UnitTests/UnitTests.csproj @@ -8,6 +8,7 @@ <OutputType>Library</OutputType> <AssemblyName>UnitTests</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>UnitTests</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -19,10 +20,7 @@ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> </PropertyGroup> <ItemGroup> - <Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> - <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="nunit.util, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> - <Reference Include="nunit.core.interfaces, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="nunit.core.extensions, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="nunit.framework.extensions, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="nunit.mocks, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> @@ -32,12 +30,19 @@ <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="System" /> <Reference Include="System.Xml" /> + <Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> + <Reference Include="nunit.core.interfaces, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> + <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> <Name>Mono.Addins</Name> </ProjectReference> + <ProjectReference Include="..\..\Mono.Addins.CecilReflector\Mono.Addins.CecilReflector.csproj"> + <Project>{42D1CE65-A14B-4218-B787-58AD7AA68513}</Project> + <Name>Mono.Addins.CecilReflector</Name> + </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="TestExtensions.cs" /> @@ -53,6 +58,8 @@ <Compile Include="IWriter.cs" /> <Compile Include="TestLocalization.cs" /> <Compile Include="AddinInformationTests.cs" /> + <Compile Include="NodeWithAttribute.cs" /> + <Compile Include="IWriterWithMetadata.cs" /> </ItemGroup> <ItemGroup> <Content Include="SimpleApp.addin.xml"> diff --git a/docs/ChangeLog b/docs/ChangeLog index 05ebfa0..fdf5d47 100644 --- a/docs/ChangeLog +++ b/docs/ChangeLog @@ -1,3 +1,7 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * Mono.Addins.Setup/SetupService.xml: Flush. + 2009-03-30 Lluis Sanchez Gual <lluis@novell.com> * Mono.Addins/Addin.xml: diff --git a/docs/Mono.Addins.Setup/SetupService.xml b/docs/Mono.Addins.Setup/SetupService.xml index e42afff..b7a5f91 100644 --- a/docs/Mono.Addins.Setup/SetupService.xml +++ b/docs/Mono.Addins.Setup/SetupService.xml @@ -144,6 +144,25 @@ <AssemblyVersion>0.4.0.0</AssemblyVersion> </AssemblyInfo> </Member> + <Member MemberName="GetRegistryForPackage"> + <MemberSignature Language="C#" Value="public static Mono.Addins.AddinRegistry GetRegistryForPackage (string name);" /> + <MemberType>Method</MemberType> + <AssemblyInfo> + <AssemblyVersion>0.4.0.0</AssemblyVersion> + </AssemblyInfo> + <ReturnValue> + <ReturnType>Mono.Addins.AddinRegistry</ReturnType> + </ReturnValue> + <Parameters> + <Parameter Name="name" Type="System.String" /> + </Parameters> + <Docs> + <param name="name">To be added.</param> + <summary>To be added.</summary> + <returns>To be added.</returns> + <remarks>To be added.</remarks> + </Docs> + </Member> <Member MemberName="Install"> <MemberSignature Language="C#" Value="public bool Install (Mono.Addins.IProgressStatus statusMonitor, Mono.Addins.Setup.AddinRepositoryEntry[] addins);" /> <MemberType>Method</MemberType> diff --git a/mautil/ChangeLog b/mautil/ChangeLog index f28f984..6340b06 100644 --- a/mautil/ChangeLog +++ b/mautil/ChangeLog @@ -1,3 +1,7 @@ +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + + * mautil.csproj: Flush. + 2009-11-13 Lluis Sanchez Gual <lluis@novell.com> * Main.cs: Allow specifying multiple levels of verbosity. diff --git a/mautil/mautil.csproj b/mautil/mautil.csproj index 81aa46b..d7f2ba4 100644 --- a/mautil/mautil.csproj +++ b/mautil/mautil.csproj @@ -8,6 +8,7 @@ <OutputType>Exe</OutputType> <AssemblyName>mautil</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>mautil</RootNamespace> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Default|AnyCPU' "> <DebugSymbols>true</DebugSymbols> |