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