diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs @ 77:68804784bf6f

Re #86: Complete initial GTK# UI * Add About dialog * Make sure app builds as "WarFoundry-GTK.exe" * Move all UI components to IBBoard.WarFoundry.GUI.GTK namespace
author IBBoard <dev@ibboard.co.uk>
date Sat, 18 Dec 2010 16:42:51 +0000
parents
children 9c9af2ce8c43
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs	Sat Dec 18 16:42:51 2010 +0000
     1.3 @@ -0,0 +1,105 @@
     1.4 +
     1.5 +// This file has been generated by the GUI designer. Do not modify.
     1.6 +namespace IBBoard.WarFoundry.GUI.GTK
     1.7 +{
     1.8 +	public partial class FrmAbout
     1.9 +	{
    1.10 +		private global::Gtk.Image image1;
    1.11 +		private global::Gtk.Label label1;
    1.12 +		private global::Gtk.Label label4;
    1.13 +		private global::Gtk.Label label2;
    1.14 +		private global::Gtk.Label label3;
    1.15 +		private global::Gtk.Button buttonOk;
    1.16 +
    1.17 +		protected virtual void Build()
    1.18 +		{
    1.19 +			global::Stetic.Gui.Initialize(this);
    1.20 +			// Widget IBBoard.WarFoundry.GUI.GTK.FrmAbout
    1.21 +			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAbout";
    1.22 +			this.Title = global::Mono.Unix.Catalog.GetString("About WarFoundry");
    1.23 +			this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
    1.24 +			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
    1.25 +			this.Resizable = false;
    1.26 +			this.AllowGrow = false;
    1.27 +			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmAbout.VBox
    1.28 +			global::Gtk.VBox w1 = this.VBox;
    1.29 +			w1.Name = "dialog1_VBox";
    1.30 +			w1.BorderWidth = ((uint)(2));
    1.31 +			// Container child dialog1_VBox.Gtk.Box+BoxChild
    1.32 +			this.image1 = new global::Gtk.Image();
    1.33 +			this.image1.Name = "image1";
    1.34 +			this.image1.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("IBBoard.WarFoundry.GUI.GTK.App-lrg.png");
    1.35 +			w1.Add(this.image1);
    1.36 +			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.image1]));
    1.37 +			w2.Position = 0;
    1.38 +			w2.Expand = false;
    1.39 +			w2.Fill = false;
    1.40 +			// Container child dialog1_VBox.Gtk.Box+BoxChild
    1.41 +			this.label1 = new global::Gtk.Label();
    1.42 +			this.label1.Name = "label1";
    1.43 +			this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("<span font_size=\"x-large\" weight=\"bold\">WarFoundry v0.1 Beta 1</span>");
    1.44 +			this.label1.UseMarkup = true;
    1.45 +			w1.Add(this.label1);
    1.46 +			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(w1[this.label1]));
    1.47 +			w3.Position = 1;
    1.48 +			w3.Expand = false;
    1.49 +			w3.Fill = false;
    1.50 +			// Container child dialog1_VBox.Gtk.Box+BoxChild
    1.51 +			this.label4 = new global::Gtk.Label();
    1.52 +			this.label4.Name = "label4";
    1.53 +			this.label4.LabelProp = global::Mono.Unix.Catalog.GetString("WarFoundry is an open-source army creation tool that lets you create rosters for multiple game systems.");
    1.54 +			this.label4.Wrap = true;
    1.55 +			this.label4.Justify = ((global::Gtk.Justification)(2));
    1.56 +			w1.Add(this.label4);
    1.57 +			global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(w1[this.label4]));
    1.58 +			w4.Position = 2;
    1.59 +			w4.Expand = false;
    1.60 +			w4.Fill = false;
    1.61 +			// Container child dialog1_VBox.Gtk.Box+BoxChild
    1.62 +			this.label2 = new global::Gtk.Label();
    1.63 +			this.label2.Name = "label2";
    1.64 +			this.label2.LabelProp = global::Mono.Unix.Catalog.GetString("© 2007-2010, IBBoard and others");
    1.65 +			w1.Add(this.label2);
    1.66 +			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.label2]));
    1.67 +			w5.Position = 3;
    1.68 +			w5.Expand = false;
    1.69 +			w5.Fill = false;
    1.70 +			// Container child dialog1_VBox.Gtk.Box+BoxChild
    1.71 +			this.label3 = new global::Gtk.Label();
    1.72 +			this.label3.Name = "label3";
    1.73 +			this.label3.LabelProp = global::Mono.Unix.Catalog.GetString("<a href=\"http://warfoundry.co.uk\">http://warfoundry.co.uk</a>");
    1.74 +			this.label3.UseMarkup = true;
    1.75 +			w1.Add(this.label3);
    1.76 +			global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w1[this.label3]));
    1.77 +			w6.Position = 4;
    1.78 +			w6.Expand = false;
    1.79 +			w6.Fill = false;
    1.80 +			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmAbout.ActionArea
    1.81 +			global::Gtk.HButtonBox w7 = this.ActionArea;
    1.82 +			w7.Name = "dialog1_ActionArea";
    1.83 +			w7.Spacing = 10;
    1.84 +			w7.BorderWidth = ((uint)(5));
    1.85 +			w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
    1.86 +			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
    1.87 +			this.buttonOk = new global::Gtk.Button();
    1.88 +			this.buttonOk.CanDefault = true;
    1.89 +			this.buttonOk.CanFocus = true;
    1.90 +			this.buttonOk.Name = "buttonOk";
    1.91 +			this.buttonOk.UseStock = true;
    1.92 +			this.buttonOk.UseUnderline = true;
    1.93 +			this.buttonOk.Label = "gtk-ok";
    1.94 +			this.AddActionWidget(this.buttonOk, -5);
    1.95 +			global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonOk]));
    1.96 +			w8.Expand = false;
    1.97 +			w8.Fill = false;
    1.98 +			if ((this.Child != null))
    1.99 +			{
   1.100 +				this.Child.ShowAll();
   1.101 +			}
   1.102 +			this.DefaultWidth = 305;
   1.103 +			this.DefaultHeight = 300;
   1.104 +			this.Show();
   1.105 +			this.buttonOk.Activated += new global::System.EventHandler(this.OkayClicked);
   1.106 +		}
   1.107 +	}
   1.108 +}