Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.cs @ 51:dafbd432ca23
Re #60: Add UI to add/remove/edit weapons in GTK
* Start to implement Add functionality using a new abstraction concept that keeps the UI dumb and keeps the logic in a cross-toolkit controller
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Aug 2010 20:00:03 +0000 |
parents | |
children | 4bad8cb3f889 |
comparison
equal
deleted
inserted
replaced
50:d2f4fcc28254 | 51:dafbd432ca23 |
---|---|
1 | |
2 // This file has been generated by the GUI designer. Do not modify. | |
3 namespace IBBoard.WarFoundry.GUI.GTK | |
4 { | |
5 public partial class FrmAddEquipment | |
6 { | |
7 private global::Gtk.Button buttonCancel; | |
8 | |
9 private global::Gtk.Button buttonOk; | |
10 | |
11 protected virtual void Build() | |
12 { | |
13 global::Stetic.Gui.Initialize(this); | |
14 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment | |
15 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment"; | |
16 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); | |
17 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.VBox | |
18 global::Gtk.VBox w1 = this.VBox; | |
19 w1.Name = "dialog1_VBox"; | |
20 w1.BorderWidth = ((uint)(2)); | |
21 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.ActionArea | |
22 global::Gtk.HButtonBox w2 = this.ActionArea; | |
23 w2.Name = "dialog1_ActionArea"; | |
24 w2.Spacing = 10; | |
25 w2.BorderWidth = ((uint)(5)); | |
26 w2.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); | |
27 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
28 this.buttonCancel = new global::Gtk.Button(); | |
29 this.buttonCancel.CanDefault = true; | |
30 this.buttonCancel.CanFocus = true; | |
31 this.buttonCancel.Name = "buttonCancel"; | |
32 this.buttonCancel.UseStock = true; | |
33 this.buttonCancel.UseUnderline = true; | |
34 this.buttonCancel.Label = "gtk-cancel"; | |
35 this.AddActionWidget(this.buttonCancel, -6); | |
36 global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w2[this.buttonCancel])); | |
37 w3.Expand = false; | |
38 w3.Fill = false; | |
39 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
40 this.buttonOk = new global::Gtk.Button(); | |
41 this.buttonOk.CanDefault = true; | |
42 this.buttonOk.CanFocus = true; | |
43 this.buttonOk.Name = "buttonOk"; | |
44 this.buttonOk.UseStock = true; | |
45 this.buttonOk.UseUnderline = true; | |
46 this.buttonOk.Label = "gtk-ok"; | |
47 this.AddActionWidget(this.buttonOk, -5); | |
48 global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w2[this.buttonOk])); | |
49 w4.Position = 1; | |
50 w4.Expand = false; | |
51 w4.Fill = false; | |
52 if ((this.Child != null)) | |
53 { | |
54 this.Child.ShowAll(); | |
55 } | |
56 this.DefaultWidth = 400; | |
57 this.DefaultHeight = 300; | |
58 this.Show(); | |
59 } | |
60 } | |
61 } |