view gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs @ 143:aca4623b7bdf

Re #344: Show unit requirement failures * Hide warning widget by default
author IBBoard <dev@ibboard.co.uk>
date Wed, 19 Oct 2011 20:35:31 +0100
parents f23e5b40ca9d
children 135491fd1830
line source
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;
9 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblUnitList;
10 private global::Gtk.ScrolledWindow GtkScrolledWindow;
11 private global::Gtk.TreeView lstUnitTypes;
12 private global::IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget validationWidget;
13 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel;
14 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate;
16 protected virtual void Build ()
17 {
18 global::Stetic.Gui.Initialize (this);
19 // Widget IBBoard.WarFoundry.GUI.GTK.FrmNewUnit
20 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmNewUnit";
21 this.Title = global::Mono.Unix.Catalog.GetString ("Add new unit");
22 this.Icon = global::Stetic.IconLoader.LoadIcon (this, "gtk-new", global::Gtk.IconSize.Menu);
23 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
24 this.Modal = true;
25 this.SkipPagerHint = true;
26 this.SkipTaskbarHint = true;
27 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.VBox
28 global::Gtk.VBox w1 = this.VBox;
29 w1.Name = "dialog1_VBox";
30 w1.BorderWidth = ((uint)(2));
31 // Container child dialog1_VBox.Gtk.Box+BoxChild
32 this.vbox2 = new global::Gtk.VBox ();
33 this.vbox2.Name = "vbox2";
34 this.vbox2.Spacing = 6;
35 // Container child vbox2.Gtk.Box+BoxChild
36 this.hbox1 = new global::Gtk.HBox ();
37 this.hbox1.Name = "hbox1";
38 this.hbox1.Spacing = 6;
39 // Container child hbox1.Gtk.Box+BoxChild
40 this.lblUnitList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
41 this.lblUnitList.Name = "lblUnitList";
42 this.lblUnitList.LabelProp = global::Mono.Unix.Catalog.GetString ("unit type");
43 this.hbox1.Add (this.lblUnitList);
44 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.lblUnitList]));
45 w2.Position = 0;
46 w2.Expand = false;
47 w2.Fill = false;
48 // Container child hbox1.Gtk.Box+BoxChild
49 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
50 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
51 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
52 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
53 this.lstUnitTypes = new global::Gtk.TreeView ();
54 this.lstUnitTypes.HeightRequest = 150;
55 this.lstUnitTypes.CanFocus = true;
56 this.lstUnitTypes.Name = "lstUnitTypes";
57 this.lstUnitTypes.HeadersVisible = false;
58 this.GtkScrolledWindow.Add (this.lstUnitTypes);
59 this.hbox1.Add (this.GtkScrolledWindow);
60 global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow]));
61 w4.Position = 1;
62 this.vbox2.Add (this.hbox1);
63 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
64 w5.Position = 0;
65 w5.Expand = false;
66 w5.Fill = false;
67 // Container child vbox2.Gtk.Box+BoxChild
68 this.validationWidget = new global::IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget ();
69 this.validationWidget.Events = ((global::Gdk.EventMask)(256));
70 this.validationWidget.Name = "validationWidget";
71 this.vbox2.Add (this.validationWidget);
72 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.validationWidget]));
73 w6.Position = 1;
74 w6.Expand = false;
75 w6.Fill = false;
76 w1.Add (this.vbox2);
77 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2]));
78 w7.Position = 0;
79 w7.Expand = false;
80 w7.Fill = false;
81 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.ActionArea
82 global::Gtk.HButtonBox w8 = this.ActionArea;
83 w8.Name = "dialog1_ActionArea";
84 w8.Spacing = 6;
85 w8.BorderWidth = ((uint)(5));
86 w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
87 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
88 this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
89 this.bttnCancel.CanFocus = true;
90 this.bttnCancel.Name = "bttnCancel";
91 this.bttnCancel.UseStock = true;
92 this.bttnCancel.UseUnderline = true;
93 this.bttnCancel.Label = "gtk-cancel";
94 this.AddActionWidget (this.bttnCancel, -6);
95 global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.bttnCancel]));
96 w9.Expand = false;
97 w9.Fill = false;
98 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
99 this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton ();
100 this.bttnCreate.CanFocus = true;
101 this.bttnCreate.Name = "bttnCreate";
102 this.bttnCreate.UseStock = true;
103 this.bttnCreate.UseUnderline = true;
104 this.bttnCreate.Label = "gtk-ok";
105 this.AddActionWidget (this.bttnCreate, -5);
106 global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.bttnCreate]));
107 w10.Position = 1;
108 w10.Expand = false;
109 w10.Fill = false;
110 if ((this.Child != null)) {
111 this.Child.ShowAll ();
112 }
113 this.DefaultWidth = 403;
114 this.DefaultHeight = 311;
115 this.validationWidget.Hide ();
116 this.Show ();
117 this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler (this.OnRowActivated);
118 this.bttnCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelActivated);
119 this.bttnCreate.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
120 }
121 }
122 }