Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.cs @ 55:eb7db8495bb5
Re #60: Add UI to add/remove/edit weapons in GTK
* Make some manual changes to the Steic-generated file until MonoDevelop bug 634447 is resolved
* Add logging to UI
* Make control close once we're done with it
* Set values for equipment controls
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 25 Aug 2010 19:51:23 +0000 |
parents | 4bad8cb3f889 |
children | e7ad676a7344 |
comparison
equal
deleted
inserted
replaced
54:f9f6e9db5350 | 55:eb7db8495bb5 |
---|---|
22 | 22 |
23 private global::Gtk.RadioButton rbEquipNumeric; | 23 private global::Gtk.RadioButton rbEquipNumeric; |
24 | 24 |
25 private global::Gtk.RadioButton rbEquipPercent; | 25 private global::Gtk.RadioButton rbEquipPercent; |
26 | 26 |
27 private global::Gtk.SpinButton spinbutton1; | 27 private global::Gtk.SpinButton numericAmount; |
28 | 28 |
29 private global::Gtk.SpinButton spinbutton2; | 29 private global::Gtk.SpinButton percentageAmount; |
30 | 30 |
31 private global::Gtk.Label lblEquipAmount; | 31 private global::Gtk.Label lblEquipAmount; |
32 | 32 |
33 private global::Gtk.Label lblEquipment; | 33 private global::Gtk.Label lblEquipment; |
34 | 34 |
57 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); | 57 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); |
58 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild | 58 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild |
59 this.lstEquipment = new global::Gtk.TreeView(); | 59 this.lstEquipment = new global::Gtk.TreeView(); |
60 this.lstEquipment.CanFocus = true; | 60 this.lstEquipment.CanFocus = true; |
61 this.lstEquipment.Name = "lstEquipment"; | 61 this.lstEquipment.Name = "lstEquipment"; |
62 this.lstEquipment.HeadersVisible = false; | |
62 this.GtkScrolledWindow.Add(this.lstEquipment); | 63 this.GtkScrolledWindow.Add(this.lstEquipment); |
63 this.table1.Add(this.GtkScrolledWindow); | 64 this.table1.Add(this.GtkScrolledWindow); |
64 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); | 65 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); |
65 w3.LeftAttach = ((uint)(1)); | 66 w3.LeftAttach = ((uint)(1)); |
66 w3.RightAttach = ((uint)(2)); | 67 w3.RightAttach = ((uint)(2)); |
133 w8.TopAttach = ((uint)(1)); | 134 w8.TopAttach = ((uint)(1)); |
134 w8.BottomAttach = ((uint)(2)); | 135 w8.BottomAttach = ((uint)(2)); |
135 w8.XOptions = ((global::Gtk.AttachOptions)(4)); | 136 w8.XOptions = ((global::Gtk.AttachOptions)(4)); |
136 w8.YOptions = ((global::Gtk.AttachOptions)(4)); | 137 w8.YOptions = ((global::Gtk.AttachOptions)(4)); |
137 // Container child table2.Gtk.Table+TableChild | 138 // Container child table2.Gtk.Table+TableChild |
138 this.spinbutton1 = new global::Gtk.SpinButton(0, 100, 1); | 139 this.numericAmount = new global::Gtk.SpinButton(0, 100, 1); |
139 this.spinbutton1.CanFocus = true; | 140 this.numericAmount.CanFocus = true; |
140 this.spinbutton1.Name = "spinbutton1"; | 141 this.numericAmount.Name = "numericAmount"; |
141 this.spinbutton1.Adjustment.PageIncrement = 10; | 142 this.numericAmount.Adjustment.PageIncrement = 10; |
142 this.spinbutton1.ClimbRate = 1; | 143 this.numericAmount.ClimbRate = 1; |
143 this.spinbutton1.Numeric = true; | 144 this.numericAmount.Numeric = true; |
144 this.table2.Add(this.spinbutton1); | 145 this.table2.Add(this.numericAmount); |
145 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table2[this.spinbutton1])); | 146 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table2[this.numericAmount])); |
146 w9.LeftAttach = ((uint)(1)); | 147 w9.LeftAttach = ((uint)(1)); |
147 w9.RightAttach = ((uint)(2)); | 148 w9.RightAttach = ((uint)(2)); |
148 w9.XOptions = ((global::Gtk.AttachOptions)(0)); | 149 w9.XOptions = ((global::Gtk.AttachOptions)(0)); |
149 w9.YOptions = ((global::Gtk.AttachOptions)(4)); | 150 w9.YOptions = ((global::Gtk.AttachOptions)(4)); |
150 // Container child table2.Gtk.Table+TableChild | 151 // Container child table2.Gtk.Table+TableChild |
151 this.spinbutton2 = new global::Gtk.SpinButton(0, 100, 1); | 152 this.percentageAmount = new global::Gtk.SpinButton(0, 100, 1); |
152 this.spinbutton2.CanFocus = true; | 153 this.percentageAmount.CanFocus = true; |
153 this.spinbutton2.Name = "spinbutton2"; | 154 this.percentageAmount.Name = "percentageAmount"; |
154 this.spinbutton2.Adjustment.PageIncrement = 10; | 155 this.percentageAmount.Adjustment.PageIncrement = 10; |
155 this.spinbutton2.ClimbRate = 1; | 156 this.percentageAmount.ClimbRate = 1; |
156 this.spinbutton2.Digits = ((uint)(1)); | 157 this.percentageAmount.Digits = ((uint)(1)); |
157 this.spinbutton2.Numeric = true; | 158 this.percentageAmount.Numeric = true; |
158 this.table2.Add(this.spinbutton2); | 159 this.table2.Add(this.percentageAmount); |
159 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2[this.spinbutton2])); | 160 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2[this.percentageAmount])); |
160 w10.TopAttach = ((uint)(1)); | 161 w10.TopAttach = ((uint)(1)); |
161 w10.BottomAttach = ((uint)(2)); | 162 w10.BottomAttach = ((uint)(2)); |
162 w10.LeftAttach = ((uint)(1)); | 163 w10.LeftAttach = ((uint)(1)); |
163 w10.RightAttach = ((uint)(2)); | 164 w10.RightAttach = ((uint)(2)); |
164 w10.XOptions = ((global::Gtk.AttachOptions)(0)); | 165 w10.XOptions = ((global::Gtk.AttachOptions)(0)); |
210 this.buttonCancel.CanFocus = true; | 211 this.buttonCancel.CanFocus = true; |
211 this.buttonCancel.Name = "buttonCancel"; | 212 this.buttonCancel.Name = "buttonCancel"; |
212 this.buttonCancel.UseStock = true; | 213 this.buttonCancel.UseStock = true; |
213 this.buttonCancel.UseUnderline = true; | 214 this.buttonCancel.UseUnderline = true; |
214 this.buttonCancel.Label = "gtk-cancel"; | 215 this.buttonCancel.Label = "gtk-cancel"; |
216 this.buttonCancel.Clicked+= CancelButtonClicked; | |
215 this.AddActionWidget(this.buttonCancel, -6); | 217 this.AddActionWidget(this.buttonCancel, -6); |
216 global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel])); | 218 global::Gtk.ButtonBox.ButtonBoxChild w17 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel])); |
217 w17.Expand = false; | 219 w17.Expand = false; |
218 w17.Fill = false; | 220 w17.Fill = false; |
219 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | 221 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild |