Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
view gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs @ 18:c4d9b1ec75ed
Re #124: Remove "factory factory"
* Replace calls to factory factory with direct invocation of "get factory" methods in GTK# UI
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 15 Aug 2009 09:33:51 +0000 |
parents | 58961ff391d4 |
children | 0bd9c85d3c5d |
line wrap: on
line source
// ------------------------------------------------------------------------------ // <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 IBBoard.WarFoundry.GTK.Widgets { public partial class UnitDisplayWidget { private Gtk.VBox vbox1; private Gtk.HBox hbox1; private Gtk.Entry unitName; private Gtk.SpinButton unitSize; private Gtk.ScrolledWindow GtkScrolledWindow; private Gtk.NodeView unitStats; private Gtk.HSeparator hseparator1; private Gtk.Table table1; private Gtk.ScrolledWindow GtkScrolledWindow1; private Gtk.NodeView optionalEquipment; private Gtk.ScrolledWindow GtkScrolledWindow2; private Gtk.NodeView requiredEquipment; private Gtk.Label optionalEquipmentLabel; private Gtk.Label requiredEquipmentLabel; private Gtk.VBox vbox2; private Gtk.Button bttnReplaceRequired; private Gtk.Button bttnEditRequired; private Gtk.VBox vbox3; private Gtk.Button bttnAddOptional; private Gtk.Button bttnEditOptional; private Gtk.Button bttnRemove; private Gtk.HBox hbox2; protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget Stetic.BinContainer.Attach(this); this.Name = "IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget"; // Container child IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.unitName = new Gtk.Entry(); this.unitName.CanFocus = true; this.unitName.Name = "unitName"; this.unitName.IsEditable = true; this.unitName.InvisibleChar = '•'; this.hbox1.Add(this.unitName); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.unitName])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.unitSize = new Gtk.SpinButton(0, 100, 1); this.unitSize.CanFocus = true; this.unitSize.Name = "unitSize"; this.unitSize.Adjustment.PageIncrement = 10; this.unitSize.ClimbRate = 1; this.unitSize.Numeric = true; this.hbox1.Add(this.unitSize); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.unitSize])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.unitStats = new Gtk.NodeView(); this.unitStats.HeightRequest = 75; this.unitStats.CanFocus = true; this.unitStats.Name = "unitStats"; this.GtkScrolledWindow.Add(this.unitStats); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w5.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.vbox1.Add(this.hseparator1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); w6.Position = 2; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.optionalEquipment = new Gtk.NodeView(); this.optionalEquipment.CanFocus = true; this.optionalEquipment.Name = "optionalEquipment"; this.GtkScrolledWindow1.Add(this.optionalEquipment); this.table1.Add(this.GtkScrolledWindow1); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.requiredEquipment = new Gtk.NodeView(); this.requiredEquipment.CanFocus = true; this.requiredEquipment.Name = "requiredEquipment"; this.GtkScrolledWindow2.Add(this.requiredEquipment); this.table1.Add(this.GtkScrolledWindow2); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2])); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.optionalEquipmentLabel = new Gtk.Label(); this.optionalEquipmentLabel.Name = "optionalEquipmentLabel"; this.optionalEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Optional Equipment:"); this.table1.Add(this.optionalEquipmentLabel); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.optionalEquipmentLabel])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.requiredEquipmentLabel = new Gtk.Label(); this.requiredEquipmentLabel.Name = "requiredEquipmentLabel"; this.requiredEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Required Equipment:"); this.table1.Add(this.requiredEquipmentLabel); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.requiredEquipmentLabel])); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.bttnReplaceRequired = new Gtk.Button(); this.bttnReplaceRequired.CanFocus = true; this.bttnReplaceRequired.Name = "bttnReplaceRequired"; this.bttnReplaceRequired.UseUnderline = true; this.bttnReplaceRequired.Label = Mono.Unix.Catalog.GetString("Replace"); this.vbox2.Add(this.bttnReplaceRequired); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnReplaceRequired])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.bttnEditRequired = new Gtk.Button(); this.bttnEditRequired.CanFocus = true; this.bttnEditRequired.Name = "bttnEditRequired"; this.bttnEditRequired.UseUnderline = true; this.bttnEditRequired.Label = Mono.Unix.Catalog.GetString("Edit"); this.vbox2.Add(this.bttnEditRequired); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnEditRequired])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.table1.Add(this.vbox2); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.vbox2])); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.bttnAddOptional = new Gtk.Button(); this.bttnAddOptional.CanFocus = true; this.bttnAddOptional.Name = "bttnAddOptional"; this.bttnAddOptional.UseUnderline = true; this.bttnAddOptional.Label = Mono.Unix.Catalog.GetString("Add"); this.vbox3.Add(this.bttnAddOptional); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional])); w16.Position = 0; w16.Expand = false; w16.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.bttnEditOptional = new Gtk.Button(); this.bttnEditOptional.CanFocus = true; this.bttnEditOptional.Name = "bttnEditOptional"; this.bttnEditOptional.UseUnderline = true; this.bttnEditOptional.Label = Mono.Unix.Catalog.GetString("Edit"); this.vbox3.Add(this.bttnEditOptional); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.bttnRemove = new Gtk.Button(); this.bttnRemove.CanFocus = true; this.bttnRemove.Name = "bttnRemove"; this.bttnRemove.UseUnderline = true; this.bttnRemove.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox3.Add(this.bttnRemove); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove])); w18.Position = 2; w18.Expand = false; w18.Fill = false; this.table1.Add(this.vbox3); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.vbox3])); w19.TopAttach = ((uint)(1)); w19.BottomAttach = ((uint)(2)); w19.LeftAttach = ((uint)(2)); w19.RightAttach = ((uint)(3)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table1); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); w20.Position = 3; w20.Expand = false; w20.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w21.Position = 4; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.unitName.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut); this.unitName.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress); this.unitSize.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut); this.unitSize.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress); } } }