comparison 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
comparison
equal deleted inserted replaced
59:c3415c6df551 60:04c0f6a7625c
122 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1)); 122 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
123 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild 123 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
124 this.equipmentList = new global::Gtk.NodeView(); 124 this.equipmentList = new global::Gtk.NodeView();
125 this.equipmentList.CanFocus = true; 125 this.equipmentList.CanFocus = true;
126 this.equipmentList.Name = "equipmentList"; 126 this.equipmentList.Name = "equipmentList";
127 this.equipmentList.HeadersVisible = false;
127 this.GtkScrolledWindow2.Add(this.equipmentList); 128 this.GtkScrolledWindow2.Add(this.equipmentList);
128 this.table1.Add(this.GtkScrolledWindow2); 129 this.table1.Add(this.GtkScrolledWindow2);
129 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2])); 130 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
130 w9.LeftAttach = ((uint)(1)); 131 w9.LeftAttach = ((uint)(1));
131 w9.RightAttach = ((uint)(2)); 132 w9.RightAttach = ((uint)(2));
225 this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut); 226 this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut);
226 this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress); 227 this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress);
227 this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut); 228 this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut);
228 this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress); 229 this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress);
229 this.bttnAddEquipment.Clicked += new global::System.EventHandler(this.OnBttnAddEquipmentClicked); 230 this.bttnAddEquipment.Clicked += new global::System.EventHandler(this.OnBttnAddEquipmentClicked);
231 this.bttnRemoveEquipment.Clicked += new global::System.EventHandler(this.HandleRemoveButtonActivated);
230 } 232 }
231 } 233 }
232 } 234 }