annotate gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs @ 60:04c0f6a7625c

Re #60: Add UI to add/remove/edit weapons in GTK * Implement Remove button * Hack "code-behind" file again to make things work, until MD bug is fixed
author IBBoard <dev@ibboard.co.uk>
date Fri, 27 Aug 2010 14:44:48 +0000
parents 4bad8cb3f889
children e7ad676a7344
rev   line source
dev@5 1
dev@40 2 // This file has been generated by the GUI designer. Do not modify.
dev@40 3 namespace IBBoard.WarFoundry.GTK.Widgets
dev@40 4 {
dev@40 5 public partial class UnitDisplayWidget
dev@40 6 {
dev@40 7 private global::Gtk.VBox vbox1;
dev@40 8
dev@40 9 private global::Gtk.HBox hbox1;
dev@40 10
dev@40 11 private global::Gtk.Entry unitName;
dev@40 12
dev@40 13 private global::Gtk.SpinButton unitSize;
dev@40 14
dev@40 15 private global::Gtk.ScrolledWindow GtkScrolledWindow;
dev@40 16
dev@40 17 private global::Gtk.NodeView unitStats;
dev@40 18
dev@40 19 private global::Gtk.HSeparator hseparator1;
dev@40 20
dev@40 21 private global::Gtk.Table table1;
dev@40 22
dev@50 23 private global::Gtk.Label equipmentLabel;
dev@40 24
dev@40 25 private global::Gtk.ScrolledWindow GtkScrolledWindow2;
dev@40 26
dev@50 27 private global::Gtk.NodeView equipmentList;
dev@40 28
dev@48 29 private global::Gtk.ScrolledWindow GtkScrolledWindow3;
dev@48 30
dev@48 31 private global::Gtk.TextView notesView;
dev@48 32
dev@48 33 private global::Gtk.Label lblNotes;
dev@48 34
dev@40 35 private global::Gtk.VBox vbox3;
dev@40 36
dev@51 37 private global::Gtk.Button bttnAddEquipment;
dev@40 38
dev@51 39 private global::Gtk.Button bttnEditEquipment;
dev@40 40
dev@51 41 private global::Gtk.Button bttnReplaceEquipment;
dev@50 42
dev@51 43 private global::Gtk.Button bttnRemoveEquipment;
dev@40 44
dev@40 45 protected virtual void Build()
dev@40 46 {
dev@40 47 global::Stetic.Gui.Initialize(this);
dev@40 48 // Widget IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget
dev@40 49 global::Stetic.BinContainer.Attach(this);
dev@40 50 this.Name = "IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget";
dev@40 51 // Container child IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild
dev@40 52 this.vbox1 = new global::Gtk.VBox();
dev@40 53 this.vbox1.Name = "vbox1";
dev@40 54 this.vbox1.Spacing = 6;
dev@40 55 // Container child vbox1.Gtk.Box+BoxChild
dev@40 56 this.hbox1 = new global::Gtk.HBox();
dev@40 57 this.hbox1.Name = "hbox1";
dev@40 58 this.hbox1.Spacing = 6;
dev@40 59 // Container child hbox1.Gtk.Box+BoxChild
dev@40 60 this.unitName = new global::Gtk.Entry();
dev@40 61 this.unitName.CanFocus = true;
dev@40 62 this.unitName.Name = "unitName";
dev@40 63 this.unitName.IsEditable = true;
dev@40 64 this.unitName.InvisibleChar = '•';
dev@40 65 this.hbox1.Add(this.unitName);
dev@40 66 global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitName]));
dev@40 67 w1.Position = 0;
dev@40 68 // Container child hbox1.Gtk.Box+BoxChild
dev@40 69 this.unitSize = new global::Gtk.SpinButton(0, 100, 1);
dev@40 70 this.unitSize.CanFocus = true;
dev@40 71 this.unitSize.Name = "unitSize";
dev@40 72 this.unitSize.Adjustment.PageIncrement = 10;
dev@40 73 this.unitSize.ClimbRate = 1;
dev@40 74 this.unitSize.Numeric = true;
dev@40 75 this.hbox1.Add(this.unitSize);
dev@40 76 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitSize]));
dev@40 77 w2.Position = 1;
dev@40 78 w2.Expand = false;
dev@40 79 w2.Fill = false;
dev@40 80 this.vbox1.Add(this.hbox1);
dev@40 81 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
dev@40 82 w3.Position = 0;
dev@40 83 w3.Expand = false;
dev@40 84 w3.Fill = false;
dev@40 85 // Container child vbox1.Gtk.Box+BoxChild
dev@40 86 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
dev@40 87 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
dev@40 88 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
dev@40 89 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
dev@40 90 this.unitStats = new global::Gtk.NodeView();
dev@40 91 this.unitStats.HeightRequest = 75;
dev@40 92 this.unitStats.CanFocus = true;
dev@40 93 this.unitStats.Name = "unitStats";
dev@40 94 this.GtkScrolledWindow.Add(this.unitStats);
dev@40 95 this.vbox1.Add(this.GtkScrolledWindow);
dev@40 96 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
dev@40 97 w5.Position = 1;
dev@40 98 // Container child vbox1.Gtk.Box+BoxChild
dev@40 99 this.hseparator1 = new global::Gtk.HSeparator();
dev@40 100 this.hseparator1.Name = "hseparator1";
dev@40 101 this.vbox1.Add(this.hseparator1);
dev@40 102 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
dev@40 103 w6.Position = 2;
dev@40 104 w6.Expand = false;
dev@40 105 w6.Fill = false;
dev@40 106 // Container child vbox1.Gtk.Box+BoxChild
dev@50 107 this.table1 = new global::Gtk.Table(((uint)(2)), ((uint)(3)), false);
dev@50 108 this.table1.Name = "table1";
dev@40 109 this.table1.RowSpacing = ((uint)(6));
dev@40 110 this.table1.ColumnSpacing = ((uint)(6));
dev@40 111 // Container child table1.Gtk.Table+TableChild
dev@50 112 this.equipmentLabel = new global::Gtk.Label();
dev@50 113 this.equipmentLabel.Name = "equipmentLabel";
dev@50 114 this.equipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("equipment:");
dev@50 115 this.table1.Add(this.equipmentLabel);
dev@50 116 global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.equipmentLabel]));
dev@50 117 w7.XOptions = ((global::Gtk.AttachOptions)(4));
dev@50 118 w7.YOptions = ((global::Gtk.AttachOptions)(4));
dev@40 119 // Container child table1.Gtk.Table+TableChild
dev@40 120 this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow();
dev@40 121 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
dev@40 122 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
dev@40 123 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
dev@50 124 this.equipmentList = new global::Gtk.NodeView();
dev@50 125 this.equipmentList.CanFocus = true;
dev@50 126 this.equipmentList.Name = "equipmentList";
dev@60 127 this.equipmentList.HeadersVisible = false;
dev@50 128 this.GtkScrolledWindow2.Add(this.equipmentList);
dev@40 129 this.table1.Add(this.GtkScrolledWindow2);
dev@50 130 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
dev@50 131 w9.LeftAttach = ((uint)(1));
dev@50 132 w9.RightAttach = ((uint)(2));
dev@50 133 w9.YOptions = ((global::Gtk.AttachOptions)(4));
dev@40 134 // Container child table1.Gtk.Table+TableChild
dev@48 135 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow();
dev@48 136 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
dev@48 137 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
dev@48 138 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
dev@48 139 this.notesView = new global::Gtk.TextView();
dev@48 140 this.notesView.CanFocus = true;
dev@48 141 this.notesView.Name = "notesView";
dev@48 142 this.notesView.Editable = false;
dev@48 143 this.GtkScrolledWindow3.Add(this.notesView);
dev@48 144 this.table1.Add(this.GtkScrolledWindow3);
dev@50 145 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow3]));
dev@50 146 w11.TopAttach = ((uint)(1));
dev@50 147 w11.BottomAttach = ((uint)(2));
dev@50 148 w11.LeftAttach = ((uint)(1));
dev@50 149 w11.RightAttach = ((uint)(2));
dev@50 150 w11.YOptions = ((global::Gtk.AttachOptions)(4));
dev@48 151 // Container child table1.Gtk.Table+TableChild
dev@48 152 this.lblNotes = new global::Gtk.Label();
dev@48 153 this.lblNotes.Name = "lblNotes";
dev@48 154 this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString("notes:");
dev@48 155 this.table1.Add(this.lblNotes);
dev@50 156 global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.lblNotes]));
dev@50 157 w12.TopAttach = ((uint)(1));
dev@50 158 w12.BottomAttach = ((uint)(2));
dev@50 159 w12.XOptions = ((global::Gtk.AttachOptions)(4));
dev@50 160 w12.YOptions = ((global::Gtk.AttachOptions)(4));
dev@40 161 // Container child table1.Gtk.Table+TableChild
dev@40 162 this.vbox3 = new global::Gtk.VBox();
dev@40 163 this.vbox3.Name = "vbox3";
dev@40 164 this.vbox3.Spacing = 6;
dev@40 165 // Container child vbox3.Gtk.Box+BoxChild
dev@51 166 this.bttnAddEquipment = new global::Gtk.Button();
dev@51 167 this.bttnAddEquipment.CanFocus = true;
dev@51 168 this.bttnAddEquipment.Name = "bttnAddEquipment";
dev@51 169 this.bttnAddEquipment.UseUnderline = true;
dev@51 170 this.bttnAddEquipment.Label = global::Mono.Unix.Catalog.GetString("Add");
dev@51 171 this.vbox3.Add(this.bttnAddEquipment);
dev@51 172 global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddEquipment]));
dev@50 173 w13.Position = 0;
dev@50 174 w13.Expand = false;
dev@50 175 w13.Fill = false;
dev@40 176 // Container child vbox3.Gtk.Box+BoxChild
dev@51 177 this.bttnEditEquipment = new global::Gtk.Button();
dev@51 178 this.bttnEditEquipment.CanFocus = true;
dev@51 179 this.bttnEditEquipment.Name = "bttnEditEquipment";
dev@51 180 this.bttnEditEquipment.UseUnderline = true;
dev@51 181 this.bttnEditEquipment.Label = global::Mono.Unix.Catalog.GetString("Edit");
dev@51 182 this.vbox3.Add(this.bttnEditEquipment);
dev@51 183 global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditEquipment]));
dev@50 184 w14.Position = 1;
dev@50 185 w14.Expand = false;
dev@50 186 w14.Fill = false;
dev@50 187 // Container child vbox3.Gtk.Box+BoxChild
dev@51 188 this.bttnReplaceEquipment = new global::Gtk.Button();
dev@51 189 this.bttnReplaceEquipment.CanFocus = true;
dev@51 190 this.bttnReplaceEquipment.Name = "bttnReplaceEquipment";
dev@51 191 this.bttnReplaceEquipment.UseUnderline = true;
dev@51 192 this.bttnReplaceEquipment.Label = global::Mono.Unix.Catalog.GetString("Replace");
dev@51 193 this.vbox3.Add(this.bttnReplaceEquipment);
dev@51 194 global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnReplaceEquipment]));
dev@50 195 w15.Position = 2;
dev@50 196 w15.Expand = false;
dev@50 197 w15.Fill = false;
dev@40 198 // Container child vbox3.Gtk.Box+BoxChild
dev@51 199 this.bttnRemoveEquipment = new global::Gtk.Button();
dev@51 200 this.bttnRemoveEquipment.CanFocus = true;
dev@51 201 this.bttnRemoveEquipment.Name = "bttnRemoveEquipment";
dev@51 202 this.bttnRemoveEquipment.UseUnderline = true;
dev@51 203 this.bttnRemoveEquipment.Label = global::Mono.Unix.Catalog.GetString("Remove");
dev@51 204 this.vbox3.Add(this.bttnRemoveEquipment);
dev@51 205 global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemoveEquipment]));
dev@50 206 w16.Position = 3;
dev@50 207 w16.Expand = false;
dev@50 208 w16.Fill = false;
dev@40 209 this.table1.Add(this.vbox3);
dev@50 210 global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox3]));
dev@50 211 w17.LeftAttach = ((uint)(2));
dev@50 212 w17.RightAttach = ((uint)(3));
dev@50 213 w17.XOptions = ((global::Gtk.AttachOptions)(4));
dev@50 214 w17.YOptions = ((global::Gtk.AttachOptions)(4));
dev@40 215 this.vbox1.Add(this.table1);
dev@50 216 global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.table1]));
dev@50 217 w18.Position = 3;
dev@50 218 w18.Expand = false;
dev@50 219 w18.Fill = false;
dev@40 220 this.Add(this.vbox1);
dev@40 221 if ((this.Child != null))
dev@40 222 {
dev@40 223 this.Child.ShowAll();
dev@40 224 }
dev@40 225 this.Show();
dev@40 226 this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut);
dev@40 227 this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress);
dev@40 228 this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut);
dev@40 229 this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress);
dev@52 230 this.bttnAddEquipment.Clicked += new global::System.EventHandler(this.OnBttnAddEquipmentClicked);
dev@60 231 this.bttnRemoveEquipment.Clicked += new global::System.EventHandler(this.HandleRemoveButtonActivated);
dev@40 232 }
dev@40 233 }
dev@5 234 }