Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs @ 74:52b731576845
Fixes #79: Make use of GTK# callback for exceptions
* Tests of calling method on GLib.ExceptionManager to trigger event showed dialog appropriately
Also:
* Remove unused code
* Commit changes to objects.xml
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 23 Nov 2010 20:05:37 +0000 |
parents | f0cc295e883c |
children |
rev | line source |
---|---|
40 | 1 |
2 // This file has been generated by the GUI designer. Do not modify. | |
3 namespace IBBoard.WarFoundry.GTK.Widgets | |
4 { | |
5 public partial class UnitDisplayWidget | |
6 { | |
7 private global::Gtk.VBox vbox1; | |
69
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
8 private global::Gtk.HBox hbox1; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
9 private global::Gtk.Entry unitName; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
10 private global::Gtk.SpinButton unitSize; |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
11 private global::Gtk.ScrolledWindow statsScrollPanel; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
12 private global::Gtk.VBox statsRepeatBox; |
69
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
13 private global::Gtk.HSeparator hseparator1; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
14 private global::Gtk.HBox hbox2; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
15 private global::Gtk.Table table1; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
16 private global::Gtk.Label equipmentLabel; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
17 private global::Gtk.ScrolledWindow GtkScrolledWindow2; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
18 private global::Gtk.NodeView equipmentList; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
19 private global::Gtk.ScrolledWindow GtkScrolledWindow3; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
20 private global::Gtk.TextView notesView; |
71
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
21 private global::Gtk.ScrolledWindow GtkScrolledWindow4; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
22 private global::Gtk.NodeView abilitiesList; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
23 private global::Gtk.Label lblAbilities; |
69
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
24 private global::Gtk.Label lblNotes; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
25 private global::Gtk.VBox vbox3; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
26 private global::Gtk.Button bttnAddEquipment; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
27 private global::Gtk.Button bttnEditEquipment; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
28 private global::Gtk.Button bttnReplaceEquipment; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
29 private global::Gtk.Button bttnRemoveEquipment; |
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
30 |
40 | 31 protected virtual void Build() |
32 { | |
33 global::Stetic.Gui.Initialize(this); | |
34 // Widget IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget | |
35 global::Stetic.BinContainer.Attach(this); | |
36 this.Name = "IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget"; | |
37 // Container child IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild | |
38 this.vbox1 = new global::Gtk.VBox(); | |
39 this.vbox1.Name = "vbox1"; | |
40 this.vbox1.Spacing = 6; | |
41 // Container child vbox1.Gtk.Box+BoxChild | |
42 this.hbox1 = new global::Gtk.HBox(); | |
43 this.hbox1.Name = "hbox1"; | |
44 this.hbox1.Spacing = 6; | |
45 // Container child hbox1.Gtk.Box+BoxChild | |
46 this.unitName = new global::Gtk.Entry(); | |
47 this.unitName.CanFocus = true; | |
48 this.unitName.Name = "unitName"; | |
49 this.unitName.IsEditable = true; | |
50 this.unitName.InvisibleChar = '•'; | |
51 this.hbox1.Add(this.unitName); | |
52 global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitName])); | |
53 w1.Position = 0; | |
54 // Container child hbox1.Gtk.Box+BoxChild | |
55 this.unitSize = new global::Gtk.SpinButton(0, 100, 1); | |
56 this.unitSize.CanFocus = true; | |
57 this.unitSize.Name = "unitSize"; | |
58 this.unitSize.Adjustment.PageIncrement = 10; | |
59 this.unitSize.ClimbRate = 1; | |
60 this.unitSize.Numeric = true; | |
61 this.hbox1.Add(this.unitSize); | |
62 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitSize])); | |
63 w2.Position = 1; | |
64 w2.Expand = false; | |
65 w2.Fill = false; | |
66 this.vbox1.Add(this.hbox1); | |
67 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); | |
68 w3.Position = 0; | |
69 w3.Expand = false; | |
70 w3.Fill = false; | |
71 // Container child vbox1.Gtk.Box+BoxChild | |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
72 this.statsScrollPanel = new global::Gtk.ScrolledWindow(); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
73 this.statsScrollPanel.CanFocus = true; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
74 this.statsScrollPanel.Name = "statsScrollPanel"; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
75 this.statsScrollPanel.ShadowType = ((global::Gtk.ShadowType)(1)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
76 // Container child statsScrollPanel.Gtk.Container+ContainerChild |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
77 global::Gtk.Viewport w4 = new global::Gtk.Viewport(); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
78 w4.ShadowType = ((global::Gtk.ShadowType)(0)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
79 // Container child GtkViewport.Gtk.Container+ContainerChild |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
80 this.statsRepeatBox = new global::Gtk.VBox(); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
81 this.statsRepeatBox.Name = "statsRepeatBox"; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
82 this.statsRepeatBox.Spacing = 6; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
83 w4.Add(this.statsRepeatBox); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
84 this.statsScrollPanel.Add(w4); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
85 this.vbox1.Add(this.statsScrollPanel); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
86 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statsScrollPanel])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
87 w7.Position = 1; |
40 | 88 // Container child vbox1.Gtk.Box+BoxChild |
89 this.hseparator1 = new global::Gtk.HSeparator(); | |
90 this.hseparator1.Name = "hseparator1"; | |
91 this.vbox1.Add(this.hseparator1); | |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
92 global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
93 w8.Position = 2; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
94 w8.Expand = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
95 w8.Fill = false; |
40 | 96 // Container child vbox1.Gtk.Box+BoxChild |
61
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
97 this.hbox2 = new global::Gtk.HBox(); |
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
98 this.hbox2.Name = "hbox2"; |
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
99 this.hbox2.Spacing = 6; |
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
100 // Container child hbox2.Gtk.Box+BoxChild |
71
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
101 this.table1 = new global::Gtk.Table(((uint)(3)), ((uint)(2)), false); |
50
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
102 this.table1.Name = "table1"; |
40 | 103 this.table1.RowSpacing = ((uint)(6)); |
104 this.table1.ColumnSpacing = ((uint)(6)); | |
105 // Container child table1.Gtk.Table+TableChild | |
50
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
106 this.equipmentLabel = new global::Gtk.Label(); |
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
107 this.equipmentLabel.Name = "equipmentLabel"; |
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
108 this.equipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("equipment:"); |
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
109 this.table1.Add(this.equipmentLabel); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
110 global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.equipmentLabel])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
111 w9.XOptions = ((global::Gtk.AttachOptions)(4)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
112 w9.YOptions = ((global::Gtk.AttachOptions)(4)); |
40 | 113 // Container child table1.Gtk.Table+TableChild |
114 this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow(); | |
115 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; | |
116 this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1)); | |
117 // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild | |
50
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
118 this.equipmentList = new global::Gtk.NodeView(); |
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
119 this.equipmentList.CanFocus = true; |
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
120 this.equipmentList.Name = "equipmentList"; |
60
04c0f6a7625c
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
52
diff
changeset
|
121 this.equipmentList.HeadersVisible = false; |
50
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
122 this.GtkScrolledWindow2.Add(this.equipmentList); |
40 | 123 this.table1.Add(this.GtkScrolledWindow2); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
124 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
125 w11.LeftAttach = ((uint)(1)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
126 w11.RightAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
127 w11.YOptions = ((global::Gtk.AttachOptions)(4)); |
40 | 128 // Container child table1.Gtk.Table+TableChild |
48
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
129 this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow(); |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
130 this.GtkScrolledWindow3.Name = "GtkScrolledWindow3"; |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
131 this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1)); |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
132 // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
133 this.notesView = new global::Gtk.TextView(); |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
134 this.notesView.CanFocus = true; |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
135 this.notesView.Name = "notesView"; |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
136 this.notesView.Editable = false; |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
137 this.GtkScrolledWindow3.Add(this.notesView); |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
138 this.table1.Add(this.GtkScrolledWindow3); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
139 global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow3])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
140 w13.TopAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
141 w13.BottomAttach = ((uint)(3)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
142 w13.LeftAttach = ((uint)(1)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
143 w13.RightAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
144 w13.YOptions = ((global::Gtk.AttachOptions)(4)); |
48
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
145 // Container child table1.Gtk.Table+TableChild |
71
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
146 this.GtkScrolledWindow4 = new global::Gtk.ScrolledWindow(); |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
147 this.GtkScrolledWindow4.Name = "GtkScrolledWindow4"; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
148 this.GtkScrolledWindow4.ShadowType = ((global::Gtk.ShadowType)(1)); |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
149 // Container child GtkScrolledWindow4.Gtk.Container+ContainerChild |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
150 this.abilitiesList = new global::Gtk.NodeView(); |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
151 this.abilitiesList.CanFocus = true; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
152 this.abilitiesList.Name = "abilitiesList"; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
153 this.abilitiesList.HeadersVisible = false; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
154 this.GtkScrolledWindow4.Add(this.abilitiesList); |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
155 this.table1.Add(this.GtkScrolledWindow4); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
156 global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow4])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
157 w15.TopAttach = ((uint)(1)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
158 w15.BottomAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
159 w15.LeftAttach = ((uint)(1)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
160 w15.RightAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
161 w15.YOptions = ((global::Gtk.AttachOptions)(4)); |
71
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
162 // Container child table1.Gtk.Table+TableChild |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
163 this.lblAbilities = new global::Gtk.Label(); |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
164 this.lblAbilities.Name = "lblAbilities"; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
165 this.lblAbilities.LabelProp = global::Mono.Unix.Catalog.GetString("abilities:"); |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
166 this.table1.Add(this.lblAbilities); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
167 global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1[this.lblAbilities])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
168 w16.TopAttach = ((uint)(1)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
169 w16.BottomAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
170 w16.XOptions = ((global::Gtk.AttachOptions)(4)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
171 w16.YOptions = ((global::Gtk.AttachOptions)(4)); |
71
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
172 // Container child table1.Gtk.Table+TableChild |
48
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
173 this.lblNotes = new global::Gtk.Label(); |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
174 this.lblNotes.Name = "lblNotes"; |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
175 this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString("notes:"); |
23238d998535
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
176 this.table1.Add(this.lblNotes); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
177 global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.lblNotes])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
178 w17.TopAttach = ((uint)(2)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
179 w17.BottomAttach = ((uint)(3)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
180 w17.XOptions = ((global::Gtk.AttachOptions)(4)); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
181 w17.YOptions = ((global::Gtk.AttachOptions)(4)); |
61
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
182 this.hbox2.Add(this.table1); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
183 global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.table1])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
184 w18.Position = 0; |
61
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
185 // Container child hbox2.Gtk.Box+BoxChild |
40 | 186 this.vbox3 = new global::Gtk.VBox(); |
187 this.vbox3.Name = "vbox3"; | |
188 this.vbox3.Spacing = 6; | |
189 // Container child vbox3.Gtk.Box+BoxChild | |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
190 this.bttnAddEquipment = new global::Gtk.Button(); |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
191 this.bttnAddEquipment.CanFocus = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
192 this.bttnAddEquipment.Name = "bttnAddEquipment"; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
193 this.bttnAddEquipment.UseUnderline = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
194 this.bttnAddEquipment.Label = global::Mono.Unix.Catalog.GetString("Add"); |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
195 this.vbox3.Add(this.bttnAddEquipment); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
196 global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddEquipment])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
197 w19.Position = 0; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
198 w19.Expand = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
199 w19.Fill = false; |
40 | 200 // Container child vbox3.Gtk.Box+BoxChild |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
201 this.bttnEditEquipment = new global::Gtk.Button(); |
61
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
202 this.bttnEditEquipment.Sensitive = false; |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
203 this.bttnEditEquipment.CanFocus = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
204 this.bttnEditEquipment.Name = "bttnEditEquipment"; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
205 this.bttnEditEquipment.UseUnderline = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
206 this.bttnEditEquipment.Label = global::Mono.Unix.Catalog.GetString("Edit"); |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
207 this.vbox3.Add(this.bttnEditEquipment); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
208 global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditEquipment])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
209 w20.Position = 1; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
210 w20.Expand = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
211 w20.Fill = false; |
50
d2f4fcc28254
Re #306: Combine equipment lists in GTK#
IBBoard <dev@ibboard.co.uk>
parents:
48
diff
changeset
|
212 // Container child vbox3.Gtk.Box+BoxChild |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
213 this.bttnReplaceEquipment = new global::Gtk.Button(); |
61
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
214 this.bttnReplaceEquipment.Sensitive = false; |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
215 this.bttnReplaceEquipment.CanFocus = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
216 this.bttnReplaceEquipment.Name = "bttnReplaceEquipment"; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
217 this.bttnReplaceEquipment.UseUnderline = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
218 this.bttnReplaceEquipment.Label = global::Mono.Unix.Catalog.GetString("Replace"); |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
219 this.vbox3.Add(this.bttnReplaceEquipment); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
220 global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnReplaceEquipment])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
221 w21.Position = 2; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
222 w21.Expand = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
223 w21.Fill = false; |
40 | 224 // Container child vbox3.Gtk.Box+BoxChild |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
225 this.bttnRemoveEquipment = new global::Gtk.Button(); |
61
e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
226 this.bttnRemoveEquipment.Sensitive = false; |
51
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
227 this.bttnRemoveEquipment.CanFocus = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
228 this.bttnRemoveEquipment.Name = "bttnRemoveEquipment"; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
229 this.bttnRemoveEquipment.UseUnderline = true; |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
230 this.bttnRemoveEquipment.Label = global::Mono.Unix.Catalog.GetString("Remove"); |
dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
50
diff
changeset
|
231 this.vbox3.Add(this.bttnRemoveEquipment); |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
232 global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemoveEquipment])); |
71
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
233 w22.Position = 3; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
234 w22.Expand = false; |
91354245218a
Fixes #305: Add abilities to GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
69
diff
changeset
|
235 w22.Fill = false; |
72
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
236 this.hbox2.Add(this.vbox3); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
237 global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.vbox3])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
238 w23.Position = 1; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
239 w23.Expand = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
240 w23.Fill = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
241 this.vbox1.Add(this.hbox2); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
242 global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
243 w24.Position = 3; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
244 w24.Expand = false; |
f0cc295e883c
Re #307: Add support for multiple stat lines
IBBoard <dev@ibboard.co.uk>
parents:
71
diff
changeset
|
245 w24.Fill = false; |
40 | 246 this.Add(this.vbox1); |
247 if ((this.Child != null)) | |
248 { | |
249 this.Child.ShowAll(); | |
250 } | |
251 this.Show(); | |
252 this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut); | |
253 this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress); | |
254 this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut); | |
255 this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress); | |
52
4bad8cb3f889
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
51
diff
changeset
|
256 this.bttnAddEquipment.Clicked += new global::System.EventHandler(this.OnBttnAddEquipmentClicked); |
64
e3fe48c4d794
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
61
diff
changeset
|
257 this.bttnEditEquipment.Clicked += new global::System.EventHandler(this.HandleEditButtonClicked); |
69
3b4a646b4054
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
64
diff
changeset
|
258 this.bttnReplaceEquipment.Clicked += new global::System.EventHandler(this.HandleReplaceButtonClicked); |
60
04c0f6a7625c
Re #60: Add UI to add/remove/edit weapons in GTK
IBBoard <dev@ibboard.co.uk>
parents:
52
diff
changeset
|
259 this.bttnRemoveEquipment.Clicked += new global::System.EventHandler(this.HandleRemoveButtonActivated); |
40 | 260 } |
261 } | |
5 | 262 } |