Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs @ 31:ca863c693550
* Fix missing reference to glib-sharp
* Automated code cleanups
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 15 Sep 2009 19:34:17 +0000 |
parents | 58961ff391d4 |
children | 0bd9c85d3c5d |
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 FrmNewUnit { | |
15 | |
16 private Gtk.VBox vbox2; | |
17 | |
18 private Gtk.HBox hbox1; | |
19 | |
20 private Gtk.Label label1; | |
21 | |
22 private Gtk.ScrolledWindow GtkScrolledWindow; | |
23 | |
24 private Gtk.TreeView lstUnitTypes; | |
25 | |
26 private Gtk.Label lblNewUnitWarning; | |
27 | |
28 private Gtk.Button buttonCancel; | |
29 | |
30 private Gtk.Button buttonOk; | |
31 | |
32 protected virtual void Build() { | |
33 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
|
34 // Widget IBBoard.WarFoundry.GTK.FrmNewUnit |
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
|
35 this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit"; |
7 | 36 this.Title = Mono.Unix.Catalog.GetString("Add new unit"); |
5 | 37 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16); |
38 this.WindowPosition = ((Gtk.WindowPosition)(4)); | |
39 this.Modal = true; | |
40 this.SkipPagerHint = true; | |
41 this.SkipTaskbarHint = true; | |
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 // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox |
5 | 43 Gtk.VBox w1 = this.VBox; |
44 w1.Name = "dialog1_VBox"; | |
45 w1.BorderWidth = ((uint)(2)); | |
46 // Container child dialog1_VBox.Gtk.Box+BoxChild | |
47 this.vbox2 = new Gtk.VBox(); | |
48 this.vbox2.Name = "vbox2"; | |
49 this.vbox2.Spacing = 6; | |
50 // Container child vbox2.Gtk.Box+BoxChild | |
51 this.hbox1 = new Gtk.HBox(); | |
52 this.hbox1.Name = "hbox1"; | |
53 this.hbox1.Spacing = 6; | |
54 // Container child hbox1.Gtk.Box+BoxChild | |
55 this.label1 = new Gtk.Label(); | |
56 this.label1.Name = "label1"; | |
7 | 57 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Unit Type:"); |
5 | 58 this.hbox1.Add(this.label1); |
59 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); | |
60 w2.Position = 0; | |
61 w2.Expand = false; | |
62 w2.Fill = false; | |
63 // Container child hbox1.Gtk.Box+BoxChild | |
64 this.GtkScrolledWindow = new Gtk.ScrolledWindow(); | |
65 this.GtkScrolledWindow.Name = "GtkScrolledWindow"; | |
66 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); | |
67 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
68 this.lstUnitTypes = new Gtk.TreeView(); | |
69 this.lstUnitTypes.HeightRequest = 150; | |
70 this.lstUnitTypes.CanFocus = true; | |
71 this.lstUnitTypes.Name = "lstUnitTypes"; | |
72 this.lstUnitTypes.HeadersVisible = false; | |
73 this.GtkScrolledWindow.Add(this.lstUnitTypes); | |
74 this.hbox1.Add(this.GtkScrolledWindow); | |
75 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); | |
76 w4.Position = 1; | |
77 this.vbox2.Add(this.hbox1); | |
78 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); | |
79 w5.Position = 0; | |
80 w5.Expand = false; | |
81 w5.Fill = false; | |
82 // Container child vbox2.Gtk.Box+BoxChild | |
83 this.lblNewUnitWarning = new Gtk.Label(); | |
84 this.lblNewUnitWarning.Name = "lblNewUnitWarning"; | |
85 this.lblNewUnitWarning.Xalign = 0F; | |
86 this.lblNewUnitWarning.Yalign = 0F; | |
87 this.vbox2.Add(this.lblNewUnitWarning); | |
88 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); | |
89 w6.Position = 1; | |
90 w6.Expand = false; | |
91 w6.Fill = false; | |
92 w1.Add(this.vbox2); | |
93 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); | |
94 w7.Position = 0; | |
95 w7.Expand = false; | |
96 w7.Fill = 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
|
97 // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea |
5 | 98 Gtk.HButtonBox w8 = this.ActionArea; |
99 w8.Name = "dialog1_ActionArea"; | |
100 w8.Spacing = 6; | |
101 w8.BorderWidth = ((uint)(5)); | |
102 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |
103 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
104 this.buttonCancel = new Gtk.Button(); | |
105 this.buttonCancel.CanDefault = true; | |
106 this.buttonCancel.CanFocus = true; | |
107 this.buttonCancel.Name = "buttonCancel"; | |
108 this.buttonCancel.UseStock = true; | |
109 this.buttonCancel.UseUnderline = true; | |
110 this.buttonCancel.Label = "gtk-cancel"; | |
111 this.AddActionWidget(this.buttonCancel, -6); | |
112 Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); | |
113 w9.Expand = false; | |
114 w9.Fill = false; | |
115 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
116 this.buttonOk = new Gtk.Button(); | |
117 this.buttonOk.Sensitive = false; | |
118 this.buttonOk.CanDefault = true; | |
119 this.buttonOk.CanFocus = true; | |
120 this.buttonOk.Name = "buttonOk"; | |
121 this.buttonOk.UseStock = true; | |
122 this.buttonOk.UseUnderline = true; | |
123 this.buttonOk.Label = "gtk-ok"; | |
124 this.AddActionWidget(this.buttonOk, -5); | |
125 Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk])); | |
126 w10.Position = 1; | |
127 w10.Expand = false; | |
128 w10.Fill = false; | |
129 if ((this.Child != null)) { | |
130 this.Child.ShowAll(); | |
131 } | |
132 this.DefaultWidth = 400; | |
133 this.DefaultHeight = 318; | |
134 this.Show(); | |
135 this.lstUnitTypes.RowActivated += new Gtk.RowActivatedHandler(this.OnRowActivated); | |
136 this.buttonCancel.Activated += new System.EventHandler(this.OnButtonCancelActivated); | |
137 this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); | |
138 } | |
139 } | |
140 } |