Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
view gtk-gui/IBBoard.WarFoundry.GTK.FrmNewArmy.cs @ 28:9440eef124b0
Closes #69: Add "export" UI
* Add base menu for exports (will be populated automatically once exports are plugins)
* Add menu item for "Basic HTML"
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 01 Sep 2009 19:10:13 +0000 |
parents | 58961ff391d4 |
children | ca863c693550 |
line wrap: on
line source
// ------------------------------------------------------------------------------ // <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> // ------------------------------------------------------------------------------ namespace IBBoard.WarFoundry.GTK { public partial class FrmNewArmy { private Gtk.Table table1; private Gtk.ScrolledWindow GtkScrolledWindow; private Gtk.TreeView lstRaces; private Gtk.HBox hbox2; private Gtk.SpinButton sbPointsValue; private Gtk.Label label1; private Gtk.Label label2; private Gtk.Label label3; private Gtk.Entry txtArmyName; private Gtk.Button bttnCancel; private Gtk.Button bttnCreate; protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget IBBoard.WarFoundry.GTK.FrmNewArmy this.Events = ((Gdk.EventMask)(256)); this.Name = "IBBoard.WarFoundry.GTK.FrmNewArmy"; this.Title = Mono.Unix.Catalog.GetString("Create new army"); this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.SkipPagerHint = true; this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.VBox Gtk.VBox w1 = this.VBox; w1.CanFocus = true; w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog_VBox.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.lstRaces = new Gtk.TreeView(); this.lstRaces.HeightRequest = 150; this.lstRaces.CanFocus = true; this.lstRaces.Name = "lstRaces"; this.lstRaces.HeadersVisible = false; this.lstRaces.RulesHint = true; this.GtkScrolledWindow.Add(this.lstRaces); this.table1.Add(this.GtkScrolledWindow); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; // Container child hbox2.Gtk.Box+BoxChild this.sbPointsValue = new Gtk.SpinButton(0, 2000000000, 100); this.sbPointsValue.WidthRequest = 150; this.sbPointsValue.CanFocus = true; this.sbPointsValue.Name = "sbPointsValue"; this.sbPointsValue.Adjustment.PageIncrement = 1000; this.sbPointsValue.ClimbRate = 100; this.sbPointsValue.Numeric = true; this.sbPointsValue.Value = 1000; this.hbox2.Add(this.sbPointsValue); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.sbPointsValue])); w4.Position = 0; w4.Expand = false; w4.Fill = false; this.table1.Add(this.hbox2); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hbox2])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Race"); this.table1.Add(this.label1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Army name"); this.table1.Add(this.label2); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Points value"); this.table1.Add(this.label3); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtArmyName = new Gtk.Entry(); this.txtArmyName.CanFocus = true; this.txtArmyName.Name = "txtArmyName"; this.txtArmyName.IsEditable = true; this.txtArmyName.InvisibleChar = '•'; this.table1.Add(this.txtArmyName); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.txtArmyName])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table1])); w10.Position = 0; w10.Expand = false; w10.Fill = false; w10.Padding = ((uint)(6)); // Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.ActionArea Gtk.HButtonBox w11 = this.ActionArea; w11.CanFocus = true; w11.Events = ((Gdk.EventMask)(256)); w11.Name = "WarFoundrySharp.FrmNewArmy_ActionArea"; w11.Spacing = 6; w11.BorderWidth = ((uint)(5)); w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.bttnCancel = new Gtk.Button(); 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); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.bttnCancel])); w12.Expand = false; w12.Fill = false; // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.bttnCreate = new Gtk.Button(); this.bttnCreate.Sensitive = false; this.bttnCreate.CanDefault = true; this.bttnCreate.CanFocus = true; this.bttnCreate.Name = "bttnCreate"; this.bttnCreate.UseUnderline = true; // Container child bttnCreate.Gtk.Container+ContainerChild Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w14 = new Gtk.HBox(); w14.Spacing = 2; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w15 = new Gtk.Image(); w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Menu, 16); w14.Add(w15); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w17 = new Gtk.Label(); w17.LabelProp = Mono.Unix.Catalog.GetString("C_reate"); w17.UseUnderline = true; w14.Add(w17); w13.Add(w14); this.bttnCreate.Add(w13); this.AddActionWidget(this.bttnCreate, -5); Gtk.ButtonBox.ButtonBoxChild w21 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.bttnCreate])); w21.Position = 1; w21.Expand = false; w21.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 322; this.Show(); this.txtArmyName.Changed += new System.EventHandler(this.OnTextChanged); this.sbPointsValue.ChangeValue += new Gtk.ChangeValueHandler(this.OnSpinChangeValue); this.sbPointsValue.ValueChanged += new System.EventHandler(this.OnSpinValueChanged); this.sbPointsValue.Changed += new System.EventHandler(this.OnSpinValueChanged); this.bttnCancel.Clicked += new System.EventHandler(this.OnCancelClicked); this.bttnCreate.Clicked += new System.EventHandler(this.OnCreateClicked); } } }