Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs @ 137:5b92d2be69d8
* More actual code changes in generated code (not just MD reformatting)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 11 Oct 2011 20:24:11 +0100 |
parents | 6d2c8ad0d8f1 |
children | f23e5b40ca9d |
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs Tue Oct 11 20:21:10 2011 +0100 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs Tue Oct 11 20:24:11 2011 +0100 @@ -12,14 +12,14 @@ private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblNewUnitWarning; private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel; private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate; - - protected virtual void Build() + + protected virtual void Build () { - global::Stetic.Gui.Initialize(this); + global::Stetic.Gui.Initialize (this); // Widget IBBoard.WarFoundry.GUI.GTK.FrmNewUnit this.Name = "IBBoard.WarFoundry.GUI.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.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; @@ -29,51 +29,50 @@ w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.vbox2 = new global::Gtk.VBox(); + 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 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.lblUnitList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); + this.lblUnitList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel (); this.lblUnitList.Name = "lblUnitList"; - this.lblUnitList.LabelProp = global::Mono.Unix.Catalog.GetString("unit type"); - this.hbox1.Add(this.lblUnitList); - global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.lblUnitList])); + this.lblUnitList.LabelProp = global::Mono.Unix.Catalog.GetString ("unit type"); + this.hbox1.Add (this.lblUnitList); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.lblUnitList])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); + 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 = 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])); + 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])); + 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::IBBoard.GtkSharp.Translatable.TranslatableLabel(); + this.lblNewUnitWarning = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel (); this.lblNewUnitWarning.Name = "lblNewUnitWarning"; - this.vbox2.Add(this.lblNewUnitWarning); - global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); + this.lblNewUnitWarning.Xalign = 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])); + 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; @@ -84,39 +83,38 @@ w8.BorderWidth = ((uint)(5)); w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton(); + this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); this.bttnCancel.CanFocus = true; this.bttnCancel.Name = "bttnCancel"; this.bttnCancel.UseStock = true; this.bttnCancel.UseUnderline = true; this.bttnCancel.Label = "gtk-cancel"; - this.AddActionWidget(this.bttnCancel, -6); - global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.bttnCancel])); + this.AddActionWidget (this.bttnCancel, -6); + global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.bttnCancel])); w9.Expand = false; w9.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton(); + this.bttnCreate = new global::IBBoard.GtkSharp.Translatable.TranslatableButton (); this.bttnCreate.CanFocus = true; this.bttnCreate.Name = "bttnCreate"; this.bttnCreate.UseStock = true; this.bttnCreate.UseUnderline = true; this.bttnCreate.Label = "gtk-ok"; - this.AddActionWidget(this.bttnCreate, -5); - global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.bttnCreate])); + this.AddActionWidget (this.bttnCreate, -5); + global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.bttnCreate])); w10.Position = 1; w10.Expand = false; w10.Fill = false; - if ((this.Child != null)) - { - this.Child.ShowAll(); + if ((this.Child != null)) { + this.Child.ShowAll (); } this.DefaultWidth = 403; this.DefaultHeight = 259; - this.lblNewUnitWarning.Hide(); - this.Show(); - this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler(this.OnRowActivated); - this.bttnCancel.Clicked += new global::System.EventHandler(this.OnButtonCancelActivated); - this.bttnCreate.Clicked += new global::System.EventHandler(this.OnButtonOkClicked); + this.lblNewUnitWarning.Hide (); + this.Show (); + this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler (this.OnRowActivated); + this.bttnCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelActivated); + this.bttnCreate.Clicked += new global::System.EventHandler (this.OnButtonOkClicked); } } }