Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
view gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs @ 93:e40d892a2298
Fixes #308: Make GTK# UI translatable
* Move all remaining buttons to translatable buttons
* Make the About dialog translatable (where appropriate)
* Move to UTF-8 encoding in the XML to correctly handle copyright symbol
* Switch About dialog to using Close button as per other apps
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 31 Dec 2010 13:53:18 +0000 |
parents | 9c9af2ce8c43 |
children | 26e4525b49cf |
line wrap: on
line source
// This file has been generated by the GUI designer. Do not modify. namespace IBBoard.WarFoundry.GUI.GTK { public partial class FrmAbout { private global::Gtk.Image logoImage; private global::Gtk.Label label1; private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblWarFoundryDesc; private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblWarFoundryCopyright; private global::Gtk.Label lblWarFoundryLink; private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnClose; protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget IBBoard.WarFoundry.GUI.GTK.FrmAbout this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAbout"; this.Title = global::Mono.Unix.Catalog.GetString("About WF"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; // Internal child IBBoard.WarFoundry.GUI.GTK.FrmAbout.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.logoImage = new global::Gtk.Image(); this.logoImage.Name = "logoImage"; this.logoImage.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("IBBoard.WarFoundry.GUI.GTK.App-lrg.png"); w1.Add(this.logoImage); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.logoImage])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("<span font_size=\"x-large\" weight=\"bold\">WarFoundry v0.1 Beta 1</span>"); this.label1.UseMarkup = true; w1.Add(this.label1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(w1[this.label1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.lblWarFoundryDesc = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblWarFoundryDesc.Name = "lblWarFoundryDesc"; this.lblWarFoundryDesc.LabelProp = global::Mono.Unix.Catalog.GetString("WarFoundry is an open-source army creation tool that lets you create rosters for multiple game systems."); this.lblWarFoundryDesc.Wrap = true; this.lblWarFoundryDesc.Justify = ((global::Gtk.Justification)(2)); w1.Add(this.lblWarFoundryDesc); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(w1[this.lblWarFoundryDesc])); w4.Position = 2; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.lblWarFoundryCopyright = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblWarFoundryCopyright.Name = "lblWarFoundryCopyright"; this.lblWarFoundryCopyright.LabelProp = global::Mono.Unix.Catalog.GetString("© 2007-2010, IBBoard and others"); w1.Add(this.lblWarFoundryCopyright); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.lblWarFoundryCopyright])); w5.Position = 3; w5.Expand = false; w5.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.lblWarFoundryLink = new global::Gtk.Label(); this.lblWarFoundryLink.Name = "lblWarFoundryLink"; this.lblWarFoundryLink.LabelProp = global::Mono.Unix.Catalog.GetString("<a href=\"http://warfoundry.co.uk\">http://warfoundry.co.uk</a>"); this.lblWarFoundryLink.UseMarkup = true; w1.Add(this.lblWarFoundryLink); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w1[this.lblWarFoundryLink])); w6.Position = 4; w6.Expand = false; w6.Fill = false; // Internal child IBBoard.WarFoundry.GUI.GTK.FrmAbout.ActionArea global::Gtk.HButtonBox w7 = this.ActionArea; w7.Name = "dialog1_ActionArea"; w7.Spacing = 10; w7.BorderWidth = ((uint)(5)); w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.bttnClose = new global::IBBoard.GtkSharp.Translatable.TranslatableButton(); this.bttnClose.CanDefault = true; this.bttnClose.CanFocus = true; this.bttnClose.Name = "bttnClose"; this.bttnClose.UseStock = true; this.bttnClose.UseUnderline = true; this.bttnClose.Label = "gtk-close"; this.AddActionWidget(this.bttnClose, -7); global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.bttnClose])); w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 305; this.DefaultHeight = 300; this.Show(); } } }