0
|
1 // ------------------------------------------------------------------------------
|
|
2 // <autogenerated>
|
|
3 // This code was generated by a tool.
|
|
4 // Mono Runtime Version: 2.0.50727.42
|
|
5 //
|
|
6 // Changes to this file may cause incorrect behavior and will be lost if
|
|
7 // the code is regenerated.
|
|
8 // </autogenerated>
|
|
9 // ------------------------------------------------------------------------------
|
|
10
|
|
11 namespace IBBoard.WarFoundry {
|
|
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);
|
|
34 // Widget IBBoard.WarFoundry.FrmNewUnit
|
|
35 this.Name = "IBBoard.WarFoundry.FrmNewUnit";
|
|
36 this.Title = Mono.Unix.Catalog.GetString("Add new unit");
|
|
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;
|
|
42 this.HasSeparator = false;
|
|
43 // Internal child IBBoard.WarFoundry.FrmNewUnit.VBox
|
|
44 Gtk.VBox w1 = this.VBox;
|
|
45 w1.Name = "dialog1_VBox";
|
|
46 w1.BorderWidth = ((uint)(2));
|
|
47 // Container child dialog1_VBox.Gtk.Box+BoxChild
|
|
48 this.vbox2 = new Gtk.VBox();
|
|
49 this.vbox2.Name = "vbox2";
|
|
50 this.vbox2.Spacing = 6;
|
|
51 // Container child vbox2.Gtk.Box+BoxChild
|
|
52 this.hbox1 = new Gtk.HBox();
|
|
53 this.hbox1.Name = "hbox1";
|
|
54 this.hbox1.Spacing = 6;
|
|
55 // Container child hbox1.Gtk.Box+BoxChild
|
|
56 this.label1 = new Gtk.Label();
|
|
57 this.label1.Name = "label1";
|
|
58 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Unit Type:");
|
|
59 this.hbox1.Add(this.label1);
|
|
60 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
|
|
61 w2.Position = 0;
|
|
62 w2.Expand = false;
|
|
63 w2.Fill = false;
|
|
64 // Container child hbox1.Gtk.Box+BoxChild
|
|
65 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
|
|
66 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
|
|
67 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
|
|
68 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
|
|
69 this.lstUnitTypes = new Gtk.TreeView();
|
|
70 this.lstUnitTypes.HeightRequest = 150;
|
|
71 this.lstUnitTypes.CanFocus = true;
|
|
72 this.lstUnitTypes.Name = "lstUnitTypes";
|
|
73 this.lstUnitTypes.HeadersVisible = false;
|
|
74 this.lstUnitTypes.HeadersClickable = true;
|
|
75 this.GtkScrolledWindow.Add(this.lstUnitTypes);
|
|
76 this.hbox1.Add(this.GtkScrolledWindow);
|
|
77 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow]));
|
|
78 w4.Position = 1;
|
|
79 this.vbox2.Add(this.hbox1);
|
|
80 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
|
|
81 w5.Position = 0;
|
|
82 w5.Expand = false;
|
|
83 w5.Fill = false;
|
|
84 // Container child vbox2.Gtk.Box+BoxChild
|
|
85 this.lblNewUnitWarning = new Gtk.Label();
|
|
86 this.lblNewUnitWarning.Name = "lblNewUnitWarning";
|
|
87 this.lblNewUnitWarning.Xalign = 0F;
|
|
88 this.lblNewUnitWarning.Yalign = 0F;
|
|
89 this.lblNewUnitWarning.LabelProp = "";
|
|
90 this.vbox2.Add(this.lblNewUnitWarning);
|
|
91 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning]));
|
|
92 w6.Position = 1;
|
|
93 w6.Expand = false;
|
|
94 w6.Fill = false;
|
|
95 w1.Add(this.vbox2);
|
|
96 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
|
|
97 w7.Position = 0;
|
|
98 w7.Expand = false;
|
|
99 w7.Fill = false;
|
|
100 // Internal child IBBoard.WarFoundry.FrmNewUnit.ActionArea
|
|
101 Gtk.HButtonBox w8 = this.ActionArea;
|
|
102 w8.Name = "dialog1_ActionArea";
|
|
103 w8.Spacing = 6;
|
|
104 w8.BorderWidth = ((uint)(5));
|
|
105 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
|
|
106 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
|
|
107 this.buttonCancel = new Gtk.Button();
|
|
108 this.buttonCancel.CanDefault = true;
|
|
109 this.buttonCancel.CanFocus = true;
|
|
110 this.buttonCancel.Name = "buttonCancel";
|
|
111 this.buttonCancel.UseStock = true;
|
|
112 this.buttonCancel.UseUnderline = true;
|
|
113 this.buttonCancel.Label = "gtk-cancel";
|
|
114 this.AddActionWidget(this.buttonCancel, -6);
|
|
115 Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel]));
|
|
116 w9.Expand = false;
|
|
117 w9.Fill = false;
|
|
118 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
|
|
119 this.buttonOk = new Gtk.Button();
|
|
120 this.buttonOk.Sensitive = false;
|
|
121 this.buttonOk.CanDefault = true;
|
|
122 this.buttonOk.CanFocus = true;
|
|
123 this.buttonOk.Name = "buttonOk";
|
|
124 this.buttonOk.UseStock = true;
|
|
125 this.buttonOk.UseUnderline = true;
|
|
126 this.buttonOk.Label = "gtk-ok";
|
|
127 this.AddActionWidget(this.buttonOk, -5);
|
|
128 Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk]));
|
|
129 w10.Position = 1;
|
|
130 w10.Expand = false;
|
|
131 w10.Fill = false;
|
|
132 if ((this.Child != null)) {
|
|
133 this.Child.ShowAll();
|
|
134 }
|
|
135 this.DefaultWidth = 400;
|
|
136 this.DefaultHeight = 318;
|
|
137 this.Show();
|
|
138 this.lstUnitTypes.RowActivated += new Gtk.RowActivatedHandler(this.OnRowActivated);
|
|
139 this.buttonCancel.Activated += new System.EventHandler(this.OnButtonCancelActivated);
|
|
140 this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
|
|
141 }
|
|
142 }
|
|
143 }
|