Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.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 |
rev | line source |
---|---|
5 | 1 // ------------------------------------------------------------------------------ |
2 // <autogenerated> | |
3 // This code was generated by a tool. | |
7 | 4 // |
5 | 5 // |
6 // Changes to this file may cause incorrect behavior and will be lost if | |
7 // the code is regenerated. | |
8 // </autogenerated> | |
9 // ------------------------------------------------------------------------------ | |
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 | 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); | |
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
|
34 // Widget IBBoard.WarFoundry.GTK.FrmNewUnit |
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
|
35 this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit"; |
7 | 36 this.Title = Mono.Unix.Catalog.GetString("Add new unit"); |
5 | 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; | |
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
|
43 // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox |
5 | 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"; | |
7 | 58 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Unit Type:"); |
5 | 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.GtkScrolledWindow.Add(this.lstUnitTypes); | |
75 this.hbox1.Add(this.GtkScrolledWindow); | |
76 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); | |
77 w4.Position = 1; | |
78 this.vbox2.Add(this.hbox1); | |
79 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); | |
80 w5.Position = 0; | |
81 w5.Expand = false; | |
82 w5.Fill = false; | |
83 // Container child vbox2.Gtk.Box+BoxChild | |
84 this.lblNewUnitWarning = new Gtk.Label(); | |
85 this.lblNewUnitWarning.Name = "lblNewUnitWarning"; | |
86 this.lblNewUnitWarning.Xalign = 0F; | |
87 this.lblNewUnitWarning.Yalign = 0F; | |
88 this.vbox2.Add(this.lblNewUnitWarning); | |
89 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); | |
90 w6.Position = 1; | |
91 w6.Expand = false; | |
92 w6.Fill = false; | |
93 w1.Add(this.vbox2); | |
94 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); | |
95 w7.Position = 0; | |
96 w7.Expand = false; | |
97 w7.Fill = 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
|
98 // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea |
5 | 99 Gtk.HButtonBox w8 = this.ActionArea; |
100 w8.Name = "dialog1_ActionArea"; | |
101 w8.Spacing = 6; | |
102 w8.BorderWidth = ((uint)(5)); | |
103 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |
104 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
105 this.buttonCancel = new Gtk.Button(); | |
106 this.buttonCancel.CanDefault = true; | |
107 this.buttonCancel.CanFocus = true; | |
108 this.buttonCancel.Name = "buttonCancel"; | |
109 this.buttonCancel.UseStock = true; | |
110 this.buttonCancel.UseUnderline = true; | |
111 this.buttonCancel.Label = "gtk-cancel"; | |
112 this.AddActionWidget(this.buttonCancel, -6); | |
113 Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); | |
114 w9.Expand = false; | |
115 w9.Fill = false; | |
116 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
117 this.buttonOk = new Gtk.Button(); | |
118 this.buttonOk.Sensitive = false; | |
119 this.buttonOk.CanDefault = true; | |
120 this.buttonOk.CanFocus = true; | |
121 this.buttonOk.Name = "buttonOk"; | |
122 this.buttonOk.UseStock = true; | |
123 this.buttonOk.UseUnderline = true; | |
124 this.buttonOk.Label = "gtk-ok"; | |
125 this.AddActionWidget(this.buttonOk, -5); | |
126 Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk])); | |
127 w10.Position = 1; | |
128 w10.Expand = false; | |
129 w10.Fill = false; | |
130 if ((this.Child != null)) { | |
131 this.Child.ShowAll(); | |
132 } | |
133 this.DefaultWidth = 400; | |
134 this.DefaultHeight = 318; | |
135 this.Show(); | |
136 this.lstUnitTypes.RowActivated += new Gtk.RowActivatedHandler(this.OnRowActivated); | |
137 this.buttonCancel.Activated += new System.EventHandler(this.OnButtonCancelActivated); | |
138 this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); | |
139 } | |
140 } | |
141 } |