Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs @ 61:e7ad676a7344
Re #60: Add UI to add/remove/edit weapons in GTK
* Add events to track equipment amount and amount changing
* Select most appropriate equipment type by default
* Add methods an implementation for enabling/disabling Okay button
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 29 Aug 2010 15:09:34 +0000 |
parents | 0bd9c85d3c5d |
children |
rev | line source |
---|---|
40
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
1 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
2 // This file has been generated by the GUI designer. Do not modify. |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
3 namespace IBBoard.WarFoundry.GTK |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
4 { |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
5 public partial class FrmNewUnit |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
6 { |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
7 private global::Gtk.VBox vbox2; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
8 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
9 private global::Gtk.HBox hbox1; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
10 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
11 private global::Gtk.Label label1; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
12 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
13 private global::Gtk.ScrolledWindow GtkScrolledWindow; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
14 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
15 private global::Gtk.TreeView lstUnitTypes; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
16 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
17 private global::Gtk.Label lblNewUnitWarning; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
18 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
19 private global::Gtk.Button buttonCancel; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
20 |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
21 private global::Gtk.Button buttonOk; |
5 | 22 |
40
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
23 protected virtual void Build() |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
24 { |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
25 global::Stetic.Gui.Initialize(this); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
26 // Widget IBBoard.WarFoundry.GTK.FrmNewUnit |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
27 this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
28 this.Title = global::Mono.Unix.Catalog.GetString("Add new unit"); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
29 this.Icon = global::Stetic.IconLoader.LoadIcon(this, "gtk-new", global::Gtk.IconSize.Menu); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
30 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
31 this.Modal = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
32 this.SkipPagerHint = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
33 this.SkipTaskbarHint = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
34 // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
35 global::Gtk.VBox w1 = this.VBox; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
36 w1.Name = "dialog1_VBox"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
37 w1.BorderWidth = ((uint)(2)); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
38 // Container child dialog1_VBox.Gtk.Box+BoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
39 this.vbox2 = new global::Gtk.VBox(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
40 this.vbox2.Name = "vbox2"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
41 this.vbox2.Spacing = 6; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
42 // Container child vbox2.Gtk.Box+BoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
43 this.hbox1 = new global::Gtk.HBox(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
44 this.hbox1.Name = "hbox1"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
45 this.hbox1.Spacing = 6; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
46 // Container child hbox1.Gtk.Box+BoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
47 this.label1 = new global::Gtk.Label(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
48 this.label1.Name = "label1"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
49 this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Unit Type:"); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
50 this.hbox1.Add(this.label1); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
51 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label1])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
52 w2.Position = 0; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
53 w2.Expand = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
54 w2.Fill = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
55 // Container child hbox1.Gtk.Box+BoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
56 this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
57 this.GtkScrolledWindow.Name = "GtkScrolledWindow"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
58 this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
59 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
60 this.lstUnitTypes = new global::Gtk.TreeView(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
61 this.lstUnitTypes.HeightRequest = 150; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
62 this.lstUnitTypes.CanFocus = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
63 this.lstUnitTypes.Name = "lstUnitTypes"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
64 this.lstUnitTypes.HeadersVisible = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
65 this.GtkScrolledWindow.Add(this.lstUnitTypes); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
66 this.hbox1.Add(this.GtkScrolledWindow); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
67 global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
68 w4.Position = 1; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
69 this.vbox2.Add(this.hbox1); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
70 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
71 w5.Position = 0; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
72 w5.Expand = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
73 w5.Fill = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
74 // Container child vbox2.Gtk.Box+BoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
75 this.lblNewUnitWarning = new global::Gtk.Label(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
76 this.lblNewUnitWarning.Name = "lblNewUnitWarning"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
77 this.lblNewUnitWarning.Xalign = 0f; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
78 this.lblNewUnitWarning.Yalign = 0f; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
79 this.vbox2.Add(this.lblNewUnitWarning); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
80 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
81 w6.Position = 1; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
82 w6.Expand = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
83 w6.Fill = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
84 w1.Add(this.vbox2); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
85 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
86 w7.Position = 0; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
87 w7.Expand = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
88 w7.Fill = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
89 // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
90 global::Gtk.HButtonBox w8 = this.ActionArea; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
91 w8.Name = "dialog1_ActionArea"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
92 w8.Spacing = 6; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
93 w8.BorderWidth = ((uint)(5)); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
94 w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
95 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
96 this.buttonCancel = new global::Gtk.Button(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
97 this.buttonCancel.CanDefault = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
98 this.buttonCancel.CanFocus = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
99 this.buttonCancel.Name = "buttonCancel"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
100 this.buttonCancel.UseStock = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
101 this.buttonCancel.UseUnderline = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
102 this.buttonCancel.Label = "gtk-cancel"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
103 this.AddActionWidget(this.buttonCancel, -6); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
104 global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
105 w9.Expand = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
106 w9.Fill = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
107 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
108 this.buttonOk = new global::Gtk.Button(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
109 this.buttonOk.Sensitive = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
110 this.buttonOk.CanDefault = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
111 this.buttonOk.CanFocus = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
112 this.buttonOk.Name = "buttonOk"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
113 this.buttonOk.UseStock = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
114 this.buttonOk.UseUnderline = true; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
115 this.buttonOk.Label = "gtk-ok"; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
116 this.AddActionWidget(this.buttonOk, -5); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
117 global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk])); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
118 w10.Position = 1; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
119 w10.Expand = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
120 w10.Fill = false; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
121 if ((this.Child != null)) |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
122 { |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
123 this.Child.ShowAll(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
124 } |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
125 this.DefaultWidth = 400; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
126 this.DefaultHeight = 318; |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
127 this.Show(); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
128 this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler(this.OnRowActivated); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
129 this.buttonCancel.Activated += new global::System.EventHandler(this.OnButtonCancelActivated); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
130 this.buttonOk.Clicked += new global::System.EventHandler(this.OnButtonOkClicked); |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
131 } |
0bd9c85d3c5d
Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
31
diff
changeset
|
132 } |
5 | 133 } |