Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GTK.FrmNewArmy.cs @ 25:01ddadfa9653
Re #86: Complete initial GTK# UI
* Enable "open" buttons
* Fill out "open" method
* Fix showing of "save failed" dialog
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 22 Aug 2009 19:48:03 +0000 |
parents | 58961ff391d4 |
children | ca863c693550 |
rev | line source |
---|---|
5 | 1 // ------------------------------------------------------------------------------ |
2 // <autogenerated> | |
3 // This code was generated by a tool. | |
7 | 4 // |
5 | 5 // |
6 // Changes to this file may cause incorrect behavior and will be lost if | |
7 // the code is regenerated. | |
8 // </autogenerated> | |
9 // ------------------------------------------------------------------------------ | |
10 | |
6
cfc7683e73f9
Fix breakage from r33 by completing update of move to IBBoard.WarFoundry.GTK sub-packages
IBBoard <dev@ibboard.co.uk>
parents:
5
diff
changeset
|
11 namespace IBBoard.WarFoundry.GTK { |
5 | 12 |
13 | |
14 public partial class FrmNewArmy { | |
15 | |
16 private Gtk.Table table1; | |
17 | |
18 private Gtk.ScrolledWindow GtkScrolledWindow; | |
19 | |
20 private Gtk.TreeView lstRaces; | |
21 | |
22 private Gtk.HBox hbox2; | |
23 | |
24 private Gtk.SpinButton sbPointsValue; | |
25 | |
26 private Gtk.Label label1; | |
27 | |
28 private Gtk.Label label2; | |
29 | |
30 private Gtk.Label label3; | |
31 | |
32 private Gtk.Entry txtArmyName; | |
33 | |
34 private Gtk.Button bttnCancel; | |
35 | |
36 private Gtk.Button bttnCreate; | |
37 | |
38 protected virtual void Build() { | |
39 Stetic.Gui.Initialize(this); | |
6
cfc7683e73f9
Fix breakage from r33 by completing update of move to IBBoard.WarFoundry.GTK sub-packages
IBBoard <dev@ibboard.co.uk>
parents:
5
diff
changeset
|
40 // Widget IBBoard.WarFoundry.GTK.FrmNewArmy |
5 | 41 this.Events = ((Gdk.EventMask)(256)); |
6
cfc7683e73f9
Fix breakage from r33 by completing update of move to IBBoard.WarFoundry.GTK sub-packages
IBBoard <dev@ibboard.co.uk>
parents:
5
diff
changeset
|
42 this.Name = "IBBoard.WarFoundry.GTK.FrmNewArmy"; |
7 | 43 this.Title = Mono.Unix.Catalog.GetString("Create new army"); |
5 | 44 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16); |
45 this.WindowPosition = ((Gtk.WindowPosition)(4)); | |
46 this.SkipPagerHint = true; | |
47 this.SkipTaskbarHint = true; | |
48 this.HasSeparator = false; | |
6
cfc7683e73f9
Fix breakage from r33 by completing update of move to IBBoard.WarFoundry.GTK sub-packages
IBBoard <dev@ibboard.co.uk>
parents:
5
diff
changeset
|
49 // Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.VBox |
5 | 50 Gtk.VBox w1 = this.VBox; |
51 w1.CanFocus = true; | |
52 w1.Events = ((Gdk.EventMask)(256)); | |
53 w1.Name = "dialog_VBox"; | |
54 w1.BorderWidth = ((uint)(2)); | |
55 // Container child dialog_VBox.Gtk.Box+BoxChild | |
56 this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); | |
57 this.table1.Name = "table1"; | |
58 this.table1.RowSpacing = ((uint)(6)); | |
59 this.table1.ColumnSpacing = ((uint)(6)); | |
60 // Container child table1.Gtk.Table+TableChild | |
61 this.GtkScrolledWindow = new Gtk.ScrolledWindow(); | |
62 this.GtkScrolledWindow.Name = "GtkScrolledWindow"; | |
63 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); | |
64 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
65 this.lstRaces = new Gtk.TreeView(); | |
66 this.lstRaces.HeightRequest = 150; | |
67 this.lstRaces.CanFocus = true; | |
68 this.lstRaces.Name = "lstRaces"; | |
69 this.lstRaces.HeadersVisible = false; | |
70 this.lstRaces.RulesHint = true; | |
71 this.GtkScrolledWindow.Add(this.lstRaces); | |
72 this.table1.Add(this.GtkScrolledWindow); | |
73 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); | |
74 w3.LeftAttach = ((uint)(1)); | |
75 w3.RightAttach = ((uint)(2)); | |
76 w3.YOptions = ((Gtk.AttachOptions)(4)); | |
77 // Container child table1.Gtk.Table+TableChild | |
78 this.hbox2 = new Gtk.HBox(); | |
79 this.hbox2.Name = "hbox2"; | |
80 // Container child hbox2.Gtk.Box+BoxChild | |
81 this.sbPointsValue = new Gtk.SpinButton(0, 2000000000, 100); | |
82 this.sbPointsValue.WidthRequest = 150; | |
83 this.sbPointsValue.CanFocus = true; | |
84 this.sbPointsValue.Name = "sbPointsValue"; | |
85 this.sbPointsValue.Adjustment.PageIncrement = 1000; | |
86 this.sbPointsValue.ClimbRate = 100; | |
87 this.sbPointsValue.Numeric = true; | |
88 this.sbPointsValue.Value = 1000; | |
89 this.hbox2.Add(this.sbPointsValue); | |
90 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.sbPointsValue])); | |
91 w4.Position = 0; | |
92 w4.Expand = false; | |
93 w4.Fill = false; | |
94 this.table1.Add(this.hbox2); | |
95 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hbox2])); | |
96 w5.TopAttach = ((uint)(2)); | |
97 w5.BottomAttach = ((uint)(3)); | |
98 w5.LeftAttach = ((uint)(1)); | |
99 w5.RightAttach = ((uint)(2)); | |
100 w5.YOptions = ((Gtk.AttachOptions)(4)); | |
101 // Container child table1.Gtk.Table+TableChild | |
102 this.label1 = new Gtk.Label(); | |
103 this.label1.Name = "label1"; | |
7 | 104 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Race"); |
5 | 105 this.table1.Add(this.label1); |
106 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label1])); | |
107 w6.XOptions = ((Gtk.AttachOptions)(4)); | |
108 w6.YOptions = ((Gtk.AttachOptions)(4)); | |
109 // Container child table1.Gtk.Table+TableChild | |
110 this.label2 = new Gtk.Label(); | |
111 this.label2.Name = "label2"; | |
7 | 112 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Army name"); |
5 | 113 this.table1.Add(this.label2); |
114 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label2])); | |
115 w7.TopAttach = ((uint)(1)); | |
116 w7.BottomAttach = ((uint)(2)); | |
117 w7.XOptions = ((Gtk.AttachOptions)(4)); | |
118 w7.YOptions = ((Gtk.AttachOptions)(4)); | |
119 // Container child table1.Gtk.Table+TableChild | |
120 this.label3 = new Gtk.Label(); | |
121 this.label3.Name = "label3"; | |
7 | 122 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Points value"); |
5 | 123 this.table1.Add(this.label3); |
124 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label3])); | |
125 w8.TopAttach = ((uint)(2)); | |
126 w8.BottomAttach = ((uint)(3)); | |
127 w8.XOptions = ((Gtk.AttachOptions)(4)); | |
128 w8.YOptions = ((Gtk.AttachOptions)(4)); | |
129 // Container child table1.Gtk.Table+TableChild | |
130 this.txtArmyName = new Gtk.Entry(); | |
131 this.txtArmyName.CanFocus = true; | |
132 this.txtArmyName.Name = "txtArmyName"; | |
133 this.txtArmyName.IsEditable = true; | |
134 this.txtArmyName.InvisibleChar = '•'; | |
135 this.table1.Add(this.txtArmyName); | |
136 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.txtArmyName])); | |
137 w9.TopAttach = ((uint)(1)); | |
138 w9.BottomAttach = ((uint)(2)); | |
139 w9.LeftAttach = ((uint)(1)); | |
140 w9.RightAttach = ((uint)(2)); | |
141 w9.YOptions = ((Gtk.AttachOptions)(4)); | |
142 w1.Add(this.table1); | |
143 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table1])); | |
144 w10.Position = 0; | |
145 w10.Expand = false; | |
146 w10.Fill = false; | |
147 w10.Padding = ((uint)(6)); | |
6
cfc7683e73f9
Fix breakage from r33 by completing update of move to IBBoard.WarFoundry.GTK sub-packages
IBBoard <dev@ibboard.co.uk>
parents:
5
diff
changeset
|
148 // Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.ActionArea |
5 | 149 Gtk.HButtonBox w11 = this.ActionArea; |
150 w11.CanFocus = true; | |
151 w11.Events = ((Gdk.EventMask)(256)); | |
152 w11.Name = "WarFoundrySharp.FrmNewArmy_ActionArea"; | |
153 w11.Spacing = 6; | |
154 w11.BorderWidth = ((uint)(5)); | |
155 w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |
156 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
157 this.bttnCancel = new Gtk.Button(); | |
158 this.bttnCancel.CanFocus = true; | |
159 this.bttnCancel.Name = "bttnCancel"; | |
160 this.bttnCancel.UseStock = true; | |
161 this.bttnCancel.UseUnderline = true; | |
162 this.bttnCancel.Label = "gtk-cancel"; | |
163 this.AddActionWidget(this.bttnCancel, -6); | |
164 Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.bttnCancel])); | |
165 w12.Expand = false; | |
166 w12.Fill = false; | |
167 // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
168 this.bttnCreate = new Gtk.Button(); | |
169 this.bttnCreate.Sensitive = false; | |
170 this.bttnCreate.CanDefault = true; | |
171 this.bttnCreate.CanFocus = true; | |
172 this.bttnCreate.Name = "bttnCreate"; | |
173 this.bttnCreate.UseUnderline = true; | |
174 // Container child bttnCreate.Gtk.Container+ContainerChild | |
175 Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); | |
176 // Container child GtkAlignment1.Gtk.Container+ContainerChild | |
177 Gtk.HBox w14 = new Gtk.HBox(); | |
178 w14.Spacing = 2; | |
179 // Container child GtkHBox1.Gtk.Container+ContainerChild | |
180 Gtk.Image w15 = new Gtk.Image(); | |
181 w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Menu, 16); | |
182 w14.Add(w15); | |
183 // Container child GtkHBox1.Gtk.Container+ContainerChild | |
184 Gtk.Label w17 = new Gtk.Label(); | |
7 | 185 w17.LabelProp = Mono.Unix.Catalog.GetString("C_reate"); |
5 | 186 w17.UseUnderline = true; |
187 w14.Add(w17); | |
188 w13.Add(w14); | |
189 this.bttnCreate.Add(w13); | |
190 this.AddActionWidget(this.bttnCreate, -5); | |
191 Gtk.ButtonBox.ButtonBoxChild w21 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.bttnCreate])); | |
192 w21.Position = 1; | |
193 w21.Expand = false; | |
194 w21.Fill = false; | |
195 if ((this.Child != null)) { | |
196 this.Child.ShowAll(); | |
197 } | |
198 this.DefaultWidth = 400; | |
199 this.DefaultHeight = 322; | |
200 this.Show(); | |
201 this.txtArmyName.Changed += new System.EventHandler(this.OnTextChanged); | |
202 this.sbPointsValue.ChangeValue += new Gtk.ChangeValueHandler(this.OnSpinChangeValue); | |
203 this.sbPointsValue.ValueChanged += new System.EventHandler(this.OnSpinValueChanged); | |
204 this.sbPointsValue.Changed += new System.EventHandler(this.OnSpinValueChanged); | |
205 this.bttnCancel.Clicked += new System.EventHandler(this.OnCancelClicked); | |
206 this.bttnCreate.Clicked += new System.EventHandler(this.OnCreateClicked); | |
207 } | |
208 } | |
209 } |