Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs @ 155:7b091ea86819
* Commit code that MonoDevelop insists on reformatting
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 12 May 2012 19:56:24 +0100 |
parents | f3453f3e4591 |
children | a8f847c1e305 |
rev | line source |
---|---|
77 | 1 |
2 // This file has been generated by the GUI designer. Do not modify. | |
3 namespace IBBoard.WarFoundry.GUI.GTK | |
4 { | |
5 public partial class FrmNewUnit | |
6 { | |
7 private global::Gtk.VBox vbox2; | |
8 private global::Gtk.HBox hbox1; | |
97
6d2c8ad0d8f1
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
9 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblUnitList; |
77 | 10 private global::Gtk.ScrolledWindow GtkScrolledWindow; |
11 private global::Gtk.TreeView lstUnitTypes; | |
142
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
12 private global::IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget validationWidget; |
89
31d54f67d50d
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
88
diff
changeset
|
13 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel; |
31d54f67d50d
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
88
diff
changeset
|
14 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate; |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
15 |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
16 protected virtual void Build () |
77 | 17 { |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
18 global::Stetic.Gui.Initialize (this); |
77 | 19 // Widget IBBoard.WarFoundry.GUI.GTK.FrmNewUnit |
20 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmNewUnit"; | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
21 this.Title = global::Mono.Unix.Catalog.GetString ("Add new unit"); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
146
diff
changeset
|
22 this.Icon = global::Stetic.IconLoader.LoadIcon ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
146
diff
changeset
|
23 this, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
146
diff
changeset
|
24 "gtk-new", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
146
diff
changeset
|
25 global::Gtk.IconSize.Menu |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
146
diff
changeset
|
26 ); |
77 | 27 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); |
28 this.Modal = true; | |
29 this.SkipPagerHint = true; | |
30 this.SkipTaskbarHint = true; | |
31 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.VBox | |
32 global::Gtk.VBox w1 = this.VBox; | |
33 w1.Name = "dialog1_VBox"; | |
34 w1.BorderWidth = ((uint)(2)); | |
35 // Container child dialog1_VBox.Gtk.Box+BoxChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
36 this.vbox2 = new global::Gtk.VBox (); |
77 | 37 this.vbox2.Name = "vbox2"; |
38 this.vbox2.Spacing = 6; | |
39 // Container child vbox2.Gtk.Box+BoxChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
40 this.hbox1 = new global::Gtk.HBox (); |
77 | 41 this.hbox1.Name = "hbox1"; |
42 this.hbox1.Spacing = 6; | |
43 // Container child hbox1.Gtk.Box+BoxChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
44 this.lblUnitList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel (); |
97
6d2c8ad0d8f1
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
92
diff
changeset
|
45 this.lblUnitList.Name = "lblUnitList"; |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
46 this.lblUnitList.LabelProp = global::Mono.Unix.Catalog.GetString ("unit type"); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
47 this.hbox1.Add (this.lblUnitList); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
48 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.lblUnitList])); |
77 | 49 w2.Position = 0; |
50 w2.Expand = false; | |
51 w2.Fill = false; | |
52 // Container child hbox1.Gtk.Box+BoxChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
53 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); |
77 | 54 this.GtkScrolledWindow.Name = "GtkScrolledWindow"; |
55 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); | |
56 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
57 this.lstUnitTypes = new global::Gtk.TreeView (); |
77 | 58 this.lstUnitTypes.HeightRequest = 150; |
59 this.lstUnitTypes.CanFocus = true; | |
60 this.lstUnitTypes.Name = "lstUnitTypes"; | |
61 this.lstUnitTypes.HeadersVisible = false; | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
62 this.GtkScrolledWindow.Add (this.lstUnitTypes); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
63 this.hbox1.Add (this.GtkScrolledWindow); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
64 global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); |
77 | 65 w4.Position = 1; |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
66 this.vbox2.Add (this.hbox1); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
67 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); |
77 | 68 w5.Position = 0; |
69 w5.Expand = false; | |
70 w5.Fill = false; | |
71 // Container child vbox2.Gtk.Box+BoxChild | |
142
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
72 this.validationWidget = new global::IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget (); |
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
73 this.validationWidget.Events = ((global::Gdk.EventMask)(256)); |
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
74 this.validationWidget.Name = "validationWidget"; |
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
75 this.vbox2.Add (this.validationWidget); |
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
76 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.validationWidget])); |
77 | 77 w6.Position = 1; |
142
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
78 w6.Expand = false; |
f23e5b40ca9d
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
137
diff
changeset
|
79 w6.Fill = false; |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
80 w1.Add (this.vbox2); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
81 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2])); |
77 | 82 w7.Position = 0; |
83 w7.Expand = false; | |
84 w7.Fill = false; | |
85 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.ActionArea | |
86 global::Gtk.HButtonBox w8 = this.ActionArea; | |
87 w8.Name = "dialog1_ActionArea"; | |
88 w8.Spacing = 6; | |
89 w8.BorderWidth = ((uint)(5)); | |
90 w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); | |
91 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
92 this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); |
88
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
93 this.bttnCancel.CanFocus = true; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
94 this.bttnCancel.Name = "bttnCancel"; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
95 this.bttnCancel.UseStock = true; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
96 this.bttnCancel.UseUnderline = true; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
97 this.bttnCancel.Label = "gtk-cancel"; |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
98 this.AddActionWidget (this.bttnCancel, -6); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
99 global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.bttnCancel])); |
77 | 100 w9.Expand = false; |
101 w9.Fill = false; | |
102 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
103 this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); |
146
f3453f3e4591
Fixes #369: Clicking "Create" without unit selected causes errors
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
104 this.bttnCreate.Sensitive = false; |
88
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
105 this.bttnCreate.CanFocus = true; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
106 this.bttnCreate.Name = "bttnCreate"; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
107 this.bttnCreate.UseStock = true; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
108 this.bttnCreate.UseUnderline = true; |
b0089e875754
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
109 this.bttnCreate.Label = "gtk-ok"; |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
110 this.AddActionWidget (this.bttnCreate, -5); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
111 global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.bttnCreate])); |
77 | 112 w10.Position = 1; |
113 w10.Expand = false; | |
114 w10.Fill = false; | |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
115 if ((this.Child != null)) { |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
116 this.Child.ShowAll (); |
77 | 117 } |
89
31d54f67d50d
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
88
diff
changeset
|
118 this.DefaultWidth = 403; |
146
f3453f3e4591
Fixes #369: Clicking "Create" without unit selected causes errors
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
119 this.DefaultHeight = 262; |
143
aca4623b7bdf
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
142
diff
changeset
|
120 this.validationWidget.Hide (); |
137
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
121 this.Show (); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
122 this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler (this.OnRowActivated); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
123 this.bttnCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelActivated); |
5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
IBBoard <dev@ibboard.co.uk>
parents:
97
diff
changeset
|
124 this.bttnCreate.Clicked += new global::System.EventHandler (this.OnButtonOkClicked); |
77 | 125 } |
126 } | |
127 } |