Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GTK.FrmChangeGameSystem.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 FrmChangeGameSystem { | |
15 | |
16 private Gtk.HBox hbox1; | |
17 | |
18 private Gtk.Label lblGameSystem; | |
19 | |
20 private Gtk.ScrolledWindow GtkScrolledWindow; | |
21 | |
22 private Gtk.TreeView lstGameSystems; | |
23 | |
24 private Gtk.Button buttonCancel; | |
25 | |
26 private Gtk.Button buttonOk; | |
27 | |
28 protected virtual void Build() { | |
29 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
|
30 // Widget IBBoard.WarFoundry.GTK.FrmChangeGameSystem |
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
|
31 this.Name = "IBBoard.WarFoundry.GTK.FrmChangeGameSystem"; |
7 | 32 this.Title = Mono.Unix.Catalog.GetString("Change Game System"); |
5 | 33 this.Icon = Gdk.Pixbuf.LoadFromResource("App.ico"); |
34 this.TypeHint = ((Gdk.WindowTypeHint)(1)); | |
35 this.WindowPosition = ((Gtk.WindowPosition)(4)); | |
36 this.Modal = true; | |
37 this.Resizable = false; | |
38 this.AllowGrow = false; | |
39 this.DefaultWidth = 400; | |
40 this.DefaultHeight = 300; | |
41 this.SkipPagerHint = true; | |
42 this.SkipTaskbarHint = true; | |
43 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
|
44 // Internal child IBBoard.WarFoundry.GTK.FrmChangeGameSystem.VBox |
5 | 45 Gtk.VBox w1 = this.VBox; |
46 w1.Name = "dialog1_VBox"; | |
47 w1.Spacing = 6; | |
48 w1.BorderWidth = ((uint)(2)); | |
49 // Container child dialog1_VBox.Gtk.Box+BoxChild | |
50 this.hbox1 = new Gtk.HBox(); | |
51 this.hbox1.Name = "hbox1"; | |
52 this.hbox1.Spacing = 6; | |
53 // Container child hbox1.Gtk.Box+BoxChild | |
54 this.lblGameSystem = new Gtk.Label(); | |
55 this.lblGameSystem.Name = "lblGameSystem"; | |
7 | 56 this.lblGameSystem.LabelProp = Mono.Unix.Catalog.GetString("Game System"); |
5 | 57 this.hbox1.Add(this.lblGameSystem); |
58 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblGameSystem])); | |
59 w2.Position = 0; | |
60 w2.Expand = false; | |
61 w2.Fill = false; | |
62 // Container child hbox1.Gtk.Box+BoxChild | |
63 this.GtkScrolledWindow = new Gtk.ScrolledWindow(); | |
64 this.GtkScrolledWindow.Name = "GtkScrolledWindow"; | |
65 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); | |
66 // Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
67 this.lstGameSystems = new Gtk.TreeView(); | |
68 this.lstGameSystems.WidthRequest = 250; | |
69 this.lstGameSystems.HeightRequest = 125; | |
70 this.lstGameSystems.CanFocus = true; | |
71 this.lstGameSystems.Name = "lstGameSystems"; | |
72 this.lstGameSystems.HeadersVisible = false; | |
73 this.GtkScrolledWindow.Add(this.lstGameSystems); | |
74 this.hbox1.Add(this.GtkScrolledWindow); | |
75 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); | |
76 w4.Position = 1; | |
77 w1.Add(this.hbox1); | |
78 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.hbox1])); | |
79 w5.Position = 0; | |
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
|
80 // Internal child IBBoard.WarFoundry.GTK.FrmChangeGameSystem.ActionArea |
5 | 81 Gtk.HButtonBox w6 = this.ActionArea; |
82 w6.Name = "dialog1_ActionArea"; | |
83 w6.Spacing = 6; | |
84 w6.BorderWidth = ((uint)(5)); | |
85 w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |
86 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
87 this.buttonCancel = new Gtk.Button(); | |
88 this.buttonCancel.CanDefault = true; | |
89 this.buttonCancel.CanFocus = true; | |
90 this.buttonCancel.Name = "buttonCancel"; | |
91 this.buttonCancel.UseStock = true; | |
92 this.buttonCancel.UseUnderline = true; | |
93 this.buttonCancel.Label = "gtk-cancel"; | |
94 this.AddActionWidget(this.buttonCancel, -6); | |
95 Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); | |
96 w7.Expand = false; | |
97 w7.Fill = false; | |
98 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
99 this.buttonOk = new Gtk.Button(); | |
100 this.buttonOk.Sensitive = false; | |
101 this.buttonOk.CanDefault = true; | |
102 this.buttonOk.CanFocus = true; | |
103 this.buttonOk.Name = "buttonOk"; | |
104 this.buttonOk.UseStock = true; | |
105 this.buttonOk.UseUnderline = true; | |
106 this.buttonOk.Label = "gtk-ok"; | |
107 this.AddActionWidget(this.buttonOk, -5); | |
108 Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); | |
109 w8.Position = 1; | |
110 w8.Expand = false; | |
111 w8.Fill = false; | |
112 if ((this.Child != null)) { | |
113 this.Child.ShowAll(); | |
114 } | |
115 this.Show(); | |
116 this.lstGameSystems.RowActivated += new Gtk.RowActivatedHandler(this.lstGameSystemsRowActivated); | |
117 this.buttonCancel.Clicked += new System.EventHandler(this.OnCancel); | |
118 this.buttonOk.Clicked += new System.EventHandler(this.OnGameSystemOkayClicked); | |
119 } | |
120 } | |
121 } |