diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-14 21:17:35 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-14 21:17:35 +0300 |
commit | e706d022f09952d7421d457e63b0301e793657e1 (patch) | |
tree | 29827a61be4d3a485190e1e2723685007dc2cb5b /Mono.Addins.Gui | |
parent | 030dd34f1b965f1a62f4ecc29fa5cbd50a2d68ac (diff) |
Remove unused dialog
Diffstat (limited to 'Mono.Addins.Gui')
-rw-r--r-- | Mono.Addins.Gui/Makefile.am | 2 | ||||
-rw-r--r-- | Mono.Addins.Gui/Mono.Addins.Gui.csproj | 2 | ||||
-rw-r--r-- | Mono.Addins.Gui/Mono.Addins.Gui/AddinInfoDialog.cs | 89 | ||||
-rw-r--r-- | Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs | 98 | ||||
-rw-r--r-- | Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs | 2 | ||||
-rw-r--r-- | Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs | 1 | ||||
-rw-r--r-- | Mono.Addins.Gui/gtk-gui/gui.stetic | 109 |
7 files changed, 2 insertions, 301 deletions
diff --git a/Mono.Addins.Gui/Makefile.am b/Mono.Addins.Gui/Makefile.am index 128f5a7..8b16047 100644 --- a/Mono.Addins.Gui/Makefile.am +++ b/Mono.Addins.Gui/Makefile.am @@ -21,7 +21,6 @@ endif FILES = \ AssemblyInfo.cs \ gtk-gui/generated.cs \ - gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs \ gtk-gui/Mono.Addins.Gui.AddinInfoView.cs \ gtk-gui/Mono.Addins.Gui.AddinInstallerDialog.cs \ gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs \ @@ -30,7 +29,6 @@ FILES = \ gtk-gui/Mono.Addins.Gui.ManageSitesDialog.cs \ gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs \ gtk-gui/Mono.Addins.Gui.ProgressDialog.cs \ - Mono.Addins.Gui/AddinInfoDialog.cs \ Mono.Addins.Gui/AddinInfoView.cs \ Mono.Addins.Gui/AddinInstaller.cs \ Mono.Addins.Gui/AddinInstallerDialog.cs \ diff --git a/Mono.Addins.Gui/Mono.Addins.Gui.csproj b/Mono.Addins.Gui/Mono.Addins.Gui.csproj index 7181f8c..da8e693 100644 --- a/Mono.Addins.Gui/Mono.Addins.Gui.csproj +++ b/Mono.Addins.Gui/Mono.Addins.Gui.csproj @@ -59,7 +59,6 @@ </ItemGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs" /> - <Compile Include="Mono.Addins.Gui\AddinInfoDialog.cs" /> <Compile Include="Mono.Addins.Gui\AddinManagerDialog.cs" /> <Compile Include="Mono.Addins.Gui\AddinTreeWidget.cs" /> <Compile Include="Mono.Addins.Gui\ManageSitesDialog.cs" /> @@ -67,7 +66,6 @@ <Compile Include="Mono.Addins.Gui\Services.cs" /> <Compile Include="Mono.Addins.Gui\ErrorDialog.cs" /> <Compile Include="gtk-gui\generated.cs" /> - <Compile Include="gtk-gui\Mono.Addins.Gui.AddinInfoDialog.cs" /> <Compile Include="gtk-gui\Mono.Addins.Gui.AddinManagerDialog.cs" /> <Compile Include="gtk-gui\Mono.Addins.Gui.ErrorDialog.cs" /> <Compile Include="gtk-gui\Mono.Addins.Gui.ManageSitesDialog.cs" /> diff --git a/Mono.Addins.Gui/Mono.Addins.Gui/AddinInfoDialog.cs b/Mono.Addins.Gui/Mono.Addins.Gui/AddinInfoDialog.cs deleted file mode 100644 index ace41b2..0000000 --- a/Mono.Addins.Gui/Mono.Addins.Gui/AddinInfoDialog.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// AddinInfoDialog.cs -// -// Author: -// Lluis Sanchez Gual -// -// Copyright (C) 2007 Novell, Inc (http://www.novell.com) -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -using System; -using System.Text; -using Gtk; -using Mono.Addins; -using Mono.Addins.Setup; -using Mono.Addins.Description; -using Mono.Unix; - -namespace Mono.Addins.Gui -{ - partial class AddinInfoDialog : Dialog - { - AddinHeader info; - - public AddinInfoDialog (AddinHeader info) - { - Build (); - this.info = info; - packageImage.Stock = "md-package"; - packageImage.IconSize = (int)IconSize.Dialog; - Fill (); - } - - void Fill () - { - StringBuilder sb = new StringBuilder (); - sb.Append ("<b><big>" + info.Name + "</big></b>\n\n"); - - if (info.Description != "") - sb.Append (info.Description + "\n\n"); - - sb.Append ("<small>"); - - sb.Append ("<b>").Append (Catalog.GetString ("Version:")).Append ("</b>\n").Append (info.Version).Append ("\n\n"); - - if (info.Author != "") - sb.Append ("<b>").Append (Catalog.GetString ("Author:")).Append ("</b>\n").Append (info.Author).Append ("\n\n"); - - if (info.Copyright != "") - sb.Append ("<b>").Append (Catalog.GetString ("Copyright:")).Append ("</b>\n").Append (info.Copyright).Append ("\n\n"); - - if (info.Dependencies.Count > 0) { - sb.Append ("<b>").Append (Catalog.GetString ("Add-in Dependencies:")).Append ("</b>\n"); - foreach (Dependency dep in info.Dependencies) - sb.Append (dep.Name + "\n"); - } - - sb.Append ("</small>"); - -// linkLabel.Visible = info.Url != ""; - - infoLabel.Markup = sb.ToString (); - } - - public override void Dispose () - { - base.Dispose (); - Destroy (); - } - } -} diff --git a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs deleted file mode 100644 index 273aee6..0000000 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinInfoDialog.cs +++ /dev/null @@ -1,98 +0,0 @@ - -// 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.AddinManagerDialog.cs b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs index 58d3d6e..0c402e2 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.AddinManagerDialog.cs @@ -73,7 +73,7 @@ namespace Mono.Addins.Gui this.notebook = new global::Gtk.Notebook (); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; - this.notebook.CurrentPage = 2; + this.notebook.CurrentPage = 1; this.notebook.ShowBorder = false; // Container child notebook.Gtk.Notebook+NotebookChild this.hbox2 = new global::Gtk.HBox (); 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 b901588..19d8ed1 100644 --- a/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs +++ b/Mono.Addins.Gui/gtk-gui/Mono.Addins.Gui.NewSiteDialog.cs @@ -54,7 +54,6 @@ namespace Mono.Addins.Gui 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); diff --git a/Mono.Addins.Gui/gtk-gui/gui.stetic b/Mono.Addins.Gui/gtk-gui/gui.stetic index 358fab4..460b459 100644 --- a/Mono.Addins.Gui/gtk-gui/gui.stetic +++ b/Mono.Addins.Gui/gtk-gui/gui.stetic @@ -178,7 +178,7 @@ <widget class="Gtk.Notebook" id="notebook"> <property name="MemberName" /> <property name="CanFocus">True</property> - <property name="CurrentPage">2</property> + <property name="CurrentPage">1</property> <property name="ShowBorder">False</property> <child> <widget class="Gtk.HBox" id="hbox2"> @@ -711,7 +711,6 @@ <property name="MemberName" /> <property name="CanFocus">True</property> <property name="Label" translatable="yes">Register an on-line repository</property> - <property name="Active">True</property> <property name="DrawIndicator">True</property> <property name="HasLabel">True</property> <property name="UseUnderline">True</property> @@ -918,112 +917,6 @@ </widget> </child> </widget> - <widget class="Gtk.Dialog" id="Mono.Addins.Gui.AddinInfoDialog" design-size="496 368"> - <property name="MemberName" /> - <property name="GeneratePublic">False</property> - <property name="Title" translatable="yes">Package</property> - <property name="TypeHint">Dialog</property> - <property name="BorderWidth">6</property> - <property name="DefaultWidth">550</property> - <property name="DefaultHeight">400</property> - <property name="Buttons">1</property> - <property name="HelpButton">False</property> - <child internal-child="VBox"> - <widget class="Gtk.VBox" id="dialog-vbox12"> - <property name="MemberName" /> - <property name="Spacing">6</property> - <child> - <widget class="Gtk.HBox" id="hbox81"> - <property name="MemberName" /> - <property name="Spacing">12</property> - <property name="BorderWidth">6</property> - <child> - <widget class="Gtk.VBox" id="vbox94"> - <property name="MemberName" /> - <child> - <widget class="Gtk.Image" id="packageImage"> - <property name="MemberName" /> - </widget> - <packing> - <property name="Position">0</property> - <property name="AutoSize">False</property> - <property name="Expand">False</property> - <property name="Fill">False</property> - </packing> - </child> - <child> - <placeholder /> - </child> - </widget> - <packing> - <property name="Position">0</property> - <property name="AutoSize">False</property> - <property name="Expand">False</property> - <property name="Fill">False</property> - </packing> - </child> - <child> - <widget class="Gtk.ScrolledWindow" id="scrolledwindow22"> - <property name="MemberName" /> - <property name="CanFocus">True</property> - <child> - <widget class="Gtk.Viewport" id="viewport4"> - <property name="MemberName" /> - <property name="ShadowType">None</property> - <child> - <widget class="Gtk.Label" id="infoLabel"> - <property name="MemberName" /> - <property name="WidthRequest">420</property> - <property name="Xpad">6</property> - <property name="Ypad">6</property> - <property name="Xalign">0</property> - <property name="Yalign">0</property> - <property name="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</property> - <property name="Wrap">True</property> - </widget> - </child> - </widget> - </child> - </widget> - <packing> - <property name="Position">1</property> - <property name="AutoSize">False</property> - </packing> - </child> - </widget> - <packing> - <property name="Position">0</property> - <property name="AutoSize">False</property> - </packing> - </child> - </widget> - </child> - <child internal-child="ActionArea"> - <widget class="Gtk.HButtonBox" id="dialog-action_area12"> - <property name="MemberName" /> - <property name="Spacing">10</property> - <property name="BorderWidth">6</property> - <property name="Size">1</property> - <property name="LayoutStyle">End</property> - <child> - <widget class="Gtk.Button" id="closebutton3"> - <property name="MemberName" /> - <property name="CanDefault">True</property> - <property name="CanFocus">True</property> - <property name="UseStock">True</property> - <property name="Type">StockItem</property> - <property name="StockId">gtk-close</property> - <property name="ResponseId">-7</property> - <property name="label">gtk-close</property> - </widget> - <packing> - <property name="Expand">False</property> - <property name="Fill">False</property> - </packing> - </child> - </widget> - </child> - </widget> <widget class="Gtk.Dialog" id="Mono.Addins.Gui.AddinInstallerDialog" design-size="593 433"> <property name="MemberName" /> <property name="GeneratePublic">False</property> |