Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
diff gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs @ 40:0bd9c85d3c5d
Re #86: Complete initial GTK# UI
* Add sln to make solution loading easier
* Commit rebuild UI files
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 07 Aug 2010 19:56:05 +0000 |
parents | ca863c693550 |
children |
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs Sun Jan 31 20:46:06 2010 +0000 +++ b/gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs Sat Aug 07 19:56:05 2010 +0000 @@ -1,140 +1,133 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ + +// This file has been generated by the GUI designer. Do not modify. +namespace IBBoard.WarFoundry.GTK +{ + public partial class FrmNewUnit + { + private global::Gtk.VBox vbox2; + + private global::Gtk.HBox hbox1; + + private global::Gtk.Label label1; + + private global::Gtk.ScrolledWindow GtkScrolledWindow; + + private global::Gtk.TreeView lstUnitTypes; + + private global::Gtk.Label lblNewUnitWarning; + + private global::Gtk.Button buttonCancel; + + private global::Gtk.Button buttonOk; -namespace IBBoard.WarFoundry.GTK { - - - public partial class FrmNewUnit { - - private Gtk.VBox vbox2; - - private Gtk.HBox hbox1; - - private Gtk.Label label1; - - private Gtk.ScrolledWindow GtkScrolledWindow; - - private Gtk.TreeView lstUnitTypes; - - private Gtk.Label lblNewUnitWarning; - - private Gtk.Button buttonCancel; - - private Gtk.Button buttonOk; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget IBBoard.WarFoundry.GTK.FrmNewUnit - this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit"; - this.Title = Mono.Unix.Catalog.GetString("Add new unit"); - this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16); - this.WindowPosition = ((Gtk.WindowPosition)(4)); - this.Modal = true; - this.SkipPagerHint = true; - this.SkipTaskbarHint = true; - // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox - Gtk.VBox w1 = this.VBox; - w1.Name = "dialog1_VBox"; - w1.BorderWidth = ((uint)(2)); - // Container child dialog1_VBox.Gtk.Box+BoxChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - this.vbox2.Spacing = 6; - // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new Gtk.HBox(); - this.hbox1.Name = "hbox1"; - this.hbox1.Spacing = 6; - // Container child hbox1.Gtk.Box+BoxChild - this.label1 = new Gtk.Label(); - this.label1.Name = "label1"; - this.label1.LabelProp = Mono.Unix.Catalog.GetString("Unit Type:"); - this.hbox1.Add(this.label1); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child hbox1.Gtk.Box+BoxChild - this.GtkScrolledWindow = new Gtk.ScrolledWindow(); - this.GtkScrolledWindow.Name = "GtkScrolledWindow"; - this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); - // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.lstUnitTypes = new Gtk.TreeView(); - this.lstUnitTypes.HeightRequest = 150; - this.lstUnitTypes.CanFocus = true; - this.lstUnitTypes.Name = "lstUnitTypes"; - this.lstUnitTypes.HeadersVisible = false; - this.GtkScrolledWindow.Add(this.lstUnitTypes); - this.hbox1.Add(this.GtkScrolledWindow); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); - w4.Position = 1; - this.vbox2.Add(this.hbox1); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); - w5.Position = 0; - w5.Expand = false; - w5.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.lblNewUnitWarning = new Gtk.Label(); - this.lblNewUnitWarning.Name = "lblNewUnitWarning"; - this.lblNewUnitWarning.Xalign = 0F; - this.lblNewUnitWarning.Yalign = 0F; - this.vbox2.Add(this.lblNewUnitWarning); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); - w6.Position = 1; - w6.Expand = false; - w6.Fill = false; - w1.Add(this.vbox2); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); - w7.Position = 0; - w7.Expand = false; - w7.Fill = false; - // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea - Gtk.HButtonBox w8 = this.ActionArea; - w8.Name = "dialog1_ActionArea"; - w8.Spacing = 6; - w8.BorderWidth = ((uint)(5)); - w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonCancel = new Gtk.Button(); - this.buttonCancel.CanDefault = true; - this.buttonCancel.CanFocus = true; - this.buttonCancel.Name = "buttonCancel"; - this.buttonCancel.UseStock = true; - this.buttonCancel.UseUnderline = true; - this.buttonCancel.Label = "gtk-cancel"; - this.AddActionWidget(this.buttonCancel, -6); - Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); - w9.Expand = false; - w9.Fill = false; - // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonOk = new Gtk.Button(); - this.buttonOk.Sensitive = false; - this.buttonOk.CanDefault = true; - this.buttonOk.CanFocus = true; - this.buttonOk.Name = "buttonOk"; - this.buttonOk.UseStock = true; - this.buttonOk.UseUnderline = true; - this.buttonOk.Label = "gtk-ok"; - this.AddActionWidget(this.buttonOk, -5); - Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk])); - w10.Position = 1; - w10.Expand = false; - w10.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 400; - this.DefaultHeight = 318; - this.Show(); - this.lstUnitTypes.RowActivated += new Gtk.RowActivatedHandler(this.OnRowActivated); - this.buttonCancel.Activated += new System.EventHandler(this.OnButtonCancelActivated); - this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); - } - } + protected virtual void Build() + { + global::Stetic.Gui.Initialize(this); + // Widget IBBoard.WarFoundry.GTK.FrmNewUnit + this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit"; + this.Title = global::Mono.Unix.Catalog.GetString("Add new unit"); + this.Icon = global::Stetic.IconLoader.LoadIcon(this, "gtk-new", global::Gtk.IconSize.Menu); + this.WindowPosition = ((global::Gtk.WindowPosition)(4)); + this.Modal = true; + this.SkipPagerHint = true; + this.SkipTaskbarHint = true; + // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog1_VBox"; + w1.BorderWidth = ((uint)(2)); + // Container child dialog1_VBox.Gtk.Box+BoxChild + this.vbox2 = new global::Gtk.VBox(); + this.vbox2.Name = "vbox2"; + this.vbox2.Spacing = 6; + // Container child vbox2.Gtk.Box+BoxChild + this.hbox1 = new global::Gtk.HBox(); + this.hbox1.Name = "hbox1"; + this.hbox1.Spacing = 6; + // Container child hbox1.Gtk.Box+BoxChild + this.label1 = new global::Gtk.Label(); + this.label1.Name = "label1"; + this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Unit Type:"); + this.hbox1.Add(this.label1); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label1])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child hbox1.Gtk.Box+BoxChild + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); + this.GtkScrolledWindow.Name = "GtkScrolledWindow"; + this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child GtkScrolledWindow.Gtk.Container+ContainerChild + this.lstUnitTypes = new global::Gtk.TreeView(); + this.lstUnitTypes.HeightRequest = 150; + this.lstUnitTypes.CanFocus = true; + this.lstUnitTypes.Name = "lstUnitTypes"; + this.lstUnitTypes.HeadersVisible = false; + this.GtkScrolledWindow.Add(this.lstUnitTypes); + this.hbox1.Add(this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); + w4.Position = 1; + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); + w5.Position = 0; + w5.Expand = false; + w5.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.lblNewUnitWarning = new global::Gtk.Label(); + this.lblNewUnitWarning.Name = "lblNewUnitWarning"; + this.lblNewUnitWarning.Xalign = 0f; + this.lblNewUnitWarning.Yalign = 0f; + this.vbox2.Add(this.lblNewUnitWarning); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); + w6.Position = 1; + w6.Expand = false; + w6.Fill = false; + w1.Add(this.vbox2); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2])); + w7.Position = 0; + w7.Expand = false; + w7.Fill = false; + // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea + global::Gtk.HButtonBox w8 = this.ActionArea; + w8.Name = "dialog1_ActionArea"; + w8.Spacing = 6; + w8.BorderWidth = ((uint)(5)); + w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonCancel = new global::Gtk.Button(); + this.buttonCancel.CanDefault = true; + this.buttonCancel.CanFocus = true; + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.UseStock = true; + this.buttonCancel.UseUnderline = true; + this.buttonCancel.Label = "gtk-cancel"; + this.AddActionWidget(this.buttonCancel, -6); + global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); + w9.Expand = false; + w9.Fill = false; + // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonOk = new global::Gtk.Button(); + this.buttonOk.Sensitive = false; + this.buttonOk.CanDefault = true; + this.buttonOk.CanFocus = true; + this.buttonOk.Name = "buttonOk"; + this.buttonOk.UseStock = true; + this.buttonOk.UseUnderline = true; + this.buttonOk.Label = "gtk-ok"; + this.AddActionWidget(this.buttonOk, -5); + global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk])); + w10.Position = 1; + w10.Expand = false; + w10.Fill = false; + if ((this.Child != null)) + { + this.Child.ShowAll(); + } + this.DefaultWidth = 400; + this.DefaultHeight = 318; + this.Show(); + this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler(this.OnRowActivated); + this.buttonCancel.Activated += new global::System.EventHandler(this.OnButtonCancelActivated); + this.buttonOk.Clicked += new global::System.EventHandler(this.OnButtonOkClicked); + } + } }