comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs @ 94:26e4525b49cf

Fixes #334: Add credits to "About" page * Added Credits dialog to match Gnome/GTK style * Included WinForms testers in credits, as they tested the core API libraries
author IBBoard <dev@ibboard.co.uk>
date Fri, 31 Dec 2010 15:43:05 +0000
parents e40d892a2298
children cfd2d9f490bc
comparison
equal deleted inserted replaced
93:e40d892a2298 94:26e4525b49cf
7 private global::Gtk.Image logoImage; 7 private global::Gtk.Image logoImage;
8 private global::Gtk.Label label1; 8 private global::Gtk.Label label1;
9 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblWarFoundryDesc; 9 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblWarFoundryDesc;
10 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblWarFoundryCopyright; 10 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblWarFoundryCopyright;
11 private global::Gtk.Label lblWarFoundryLink; 11 private global::Gtk.Label lblWarFoundryLink;
12 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCredits;
12 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnClose; 13 private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnClose;
13 14
14 protected virtual void Build() 15 protected virtual void Build()
15 { 16 {
16 global::Stetic.Gui.Initialize(this); 17 global::Stetic.Gui.Initialize(this);
17 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAbout 18 // Widget IBBoard.WarFoundry.GUI.GTK.FrmAbout
18 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAbout"; 19 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAbout";
19 this.Title = global::Mono.Unix.Catalog.GetString("About WF"); 20 this.Title = global::Mono.Unix.Catalog.GetString("About WF");
21 this.Icon = global::Gdk.Pixbuf.LoadFromResource("App.ico");
20 this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); 22 this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
21 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); 23 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
22 this.Resizable = false; 24 this.Resizable = false;
23 this.AllowGrow = false; 25 this.AllowGrow = false;
26 this.SkipPagerHint = true;
27 this.SkipTaskbarHint = true;
24 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmAbout.VBox 28 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmAbout.VBox
25 global::Gtk.VBox w1 = this.VBox; 29 global::Gtk.VBox w1 = this.VBox;
26 w1.Name = "dialog1_VBox"; 30 w1.Name = "dialog1_VBox";
27 w1.BorderWidth = ((uint)(2)); 31 w1.BorderWidth = ((uint)(2));
28 // Container child dialog1_VBox.Gtk.Box+BoxChild 32 // Container child dialog1_VBox.Gtk.Box+BoxChild
79 w7.Name = "dialog1_ActionArea"; 83 w7.Name = "dialog1_ActionArea";
80 w7.Spacing = 10; 84 w7.Spacing = 10;
81 w7.BorderWidth = ((uint)(5)); 85 w7.BorderWidth = ((uint)(5));
82 w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); 86 w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
83 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild 87 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
88 this.bttnCredits = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
89 this.bttnCredits.CanFocus = true;
90 this.bttnCredits.Name = "bttnCredits";
91 this.bttnCredits.UseStock = true;
92 this.bttnCredits.UseUnderline = true;
93 this.bttnCredits.Label = "gtk-about";
94 w7.Add(this.bttnCredits);
95 global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.bttnCredits]));
96 w8.Expand = false;
97 w8.Fill = false;
98 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
84 this.bttnClose = new global::IBBoard.GtkSharp.Translatable.TranslatableButton(); 99 this.bttnClose = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
85 this.bttnClose.CanDefault = true; 100 this.bttnClose.CanDefault = true;
86 this.bttnClose.CanFocus = true; 101 this.bttnClose.CanFocus = true;
87 this.bttnClose.Name = "bttnClose"; 102 this.bttnClose.Name = "bttnClose";
88 this.bttnClose.UseStock = true; 103 this.bttnClose.UseStock = true;
89 this.bttnClose.UseUnderline = true; 104 this.bttnClose.UseUnderline = true;
90 this.bttnClose.Label = "gtk-close"; 105 this.bttnClose.Label = "gtk-close";
91 this.AddActionWidget(this.bttnClose, -7); 106 this.AddActionWidget(this.bttnClose, -7);
92 global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.bttnClose])); 107 global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.bttnClose]));
93 w8.Expand = false; 108 w9.Position = 1;
94 w8.Fill = false; 109 w9.Expand = false;
110 w9.Fill = false;
95 if ((this.Child != null)) 111 if ((this.Child != null))
96 { 112 {
97 this.Child.ShowAll(); 113 this.Child.ShowAll();
98 } 114 }
99 this.DefaultWidth = 305; 115 this.DefaultWidth = 330;
100 this.DefaultHeight = 300; 116 this.DefaultHeight = 300;
117 this.bttnClose.HasDefault = true;
101 this.Show(); 118 this.Show();
119 this.bttnCredits.Clicked += new global::System.EventHandler(this.BttnCreditsClicked);
102 } 120 }
103 } 121 }
104 } 122 }