Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.cs @ 68:7028e24b67ec
Re #60: Add UI to add/remove/edit weapons in GTK
* Add "Replace" dialog
Note: Dialog null refs because of a bad assumption in the base class - base constructor calls SetupUI before Replace constructor has set all of its values
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 03 Nov 2010 21:02:54 +0000 |
parents | 100626381159 |
children | 3b4a646b4054 |
comparison
equal
deleted
inserted
replaced
67:a7306b5a229e | 68:7028e24b67ec |
---|---|
3 namespace IBBoard.WarFoundry.GUI.GTK | 3 namespace IBBoard.WarFoundry.GUI.GTK |
4 { | 4 { |
5 public partial class FrmAddEquipment | 5 public partial class FrmAddEquipment |
6 { | 6 { |
7 private global::Gtk.Table table1; | 7 private global::Gtk.Table table1; |
8 | 8 private global::Gtk.ScrolledWindow GtkScrolledWindow; |
9 private global::Gtk.ScrolledWindow GtkScrolledWindow; | 9 private global::Gtk.TreeView lstEquipment; |
10 | 10 private global::Gtk.HBox hbox2; |
11 private global::Gtk.TreeView lstEquipment; | 11 private global::Gtk.Table table2; |
12 | 12 private global::Gtk.Label lblEquipAll; |
13 private global::Gtk.HBox hbox2; | 13 private global::Gtk.Label lblPercent; |
14 | 14 private global::Gtk.SpinButton numericAmount; |
15 private global::Gtk.Table table2; | 15 private global::Gtk.SpinButton percentageAmount; |
16 | 16 private global::Gtk.RadioButton rbEquipAll; |
17 private global::Gtk.Label lblEquipAll; | 17 private global::Gtk.RadioButton rbEquipNumeric; |
18 | 18 private global::Gtk.RadioButton rbEquipPercent; |
19 private global::Gtk.Label lblPercent; | 19 private global::Gtk.Label lblEquipAmount; |
20 | 20 private global::Gtk.Label lblEquipment; |
21 private global::Gtk.SpinButton numericAmount; | 21 private global::Gtk.Button buttonCancel; |
22 | 22 private global::Gtk.Button buttonOk; |
23 private global::Gtk.SpinButton percentageAmount; | 23 |
24 | |
25 private global::Gtk.RadioButton rbEquipAll; | |
26 | |
27 private global::Gtk.RadioButton rbEquipNumeric; | |
28 | |
29 private global::Gtk.RadioButton rbEquipPercent; | |
30 | |
31 private global::Gtk.Label lblEquipAmount; | |
32 | |
33 private global::Gtk.Label lblEquipment; | |
34 | |
35 private global::Gtk.Button buttonCancel; | |
36 | |
37 private global::Gtk.Button buttonOk; | |
38 | |
39 protected virtual void Build() | 24 protected virtual void Build() |
40 { | 25 { |
41 global::Stetic.Gui.Initialize(this); | 26 global::Stetic.Gui.Initialize(this); |
42 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment | 27 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment |
43 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment"; | 28 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment"; |
133 w7.YOptions = ((global::Gtk.AttachOptions)(4)); | 118 w7.YOptions = ((global::Gtk.AttachOptions)(4)); |
134 // Container child table2.Gtk.Table+TableChild | 119 // Container child table2.Gtk.Table+TableChild |
135 this.rbEquipAll = new global::Gtk.RadioButton(""); | 120 this.rbEquipAll = new global::Gtk.RadioButton(""); |
136 this.rbEquipAll.CanFocus = true; | 121 this.rbEquipAll.CanFocus = true; |
137 this.rbEquipAll.Name = "rbEquipAll"; | 122 this.rbEquipAll.Name = "rbEquipAll"; |
138 this.rbEquipAll.Active = true; | |
139 this.rbEquipAll.DrawIndicator = true; | 123 this.rbEquipAll.DrawIndicator = true; |
140 this.rbEquipAll.UseUnderline = true; | 124 this.rbEquipAll.UseUnderline = true; |
141 this.rbEquipAll.Group = new global::GLib.SList(global::System.IntPtr.Zero); | 125 this.rbEquipAll.Group = new global::GLib.SList(global::System.IntPtr.Zero); |
142 this.table2.Add(this.rbEquipAll); | 126 this.table2.Add(this.rbEquipAll); |
143 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipAll])); | 127 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipAll])); |