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