view gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmExportXml.cs @ 125:42d2aa87dfa7

Re #361: Add XML export UI to GTK# * Add basic UI that works (needs improvement) * Open the dialog using Run() so that we can close it properly
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Oct 2011 14:52:39 +0100
parents a647afc19fe9
children d4e6bfeb1c61
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 FrmExportXml
	{
		private global::Gtk.Table table;
		private global::Gtk.CheckButton doTransformWidget;
		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblOutputFile;
		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblSaveIn;
		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblTransform;
		private global::Gtk.Entry saveAsName;
		private global::Gtk.FileChooserButton saveAsPath;
		private global::Gtk.ComboBox transformList;
		private global::Gtk.Button buttonCancel;
		private global::Gtk.Button buttonOk;
		
		protected virtual void Build ()
		{
			global::Stetic.Gui.Initialize (this);
			// Widget IBBoard.WarFoundry.GUI.GTK.FrmExportXml
			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmExportXml";
			this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmExportXml.VBox
			global::Gtk.VBox w1 = this.VBox;
			w1.Name = "dialog1_VBox";
			w1.BorderWidth = ((uint)(2));
			// Container child dialog1_VBox.Gtk.Box+BoxChild
			this.table = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false);
			this.table.Name = "table";
			this.table.RowSpacing = ((uint)(6));
			this.table.ColumnSpacing = ((uint)(6));
			// Container child table.Gtk.Table+TableChild
			this.doTransformWidget = new global::Gtk.CheckButton ();
			this.doTransformWidget.CanFocus = true;
			this.doTransformWidget.Name = "doTransformWidget";
			this.doTransformWidget.Label = global::Mono.Unix.Catalog.GetString ("Transform output?");
			this.doTransformWidget.DrawIndicator = true;
			this.doTransformWidget.UseUnderline = true;
			this.table.Add (this.doTransformWidget);
			global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table [this.doTransformWidget]));
			w2.TopAttach = ((uint)(2));
			w2.BottomAttach = ((uint)(3));
			w2.LeftAttach = ((uint)(1));
			w2.RightAttach = ((uint)(2));
			w2.XOptions = ((global::Gtk.AttachOptions)(4));
			w2.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table.Gtk.Table+TableChild
			this.lblOutputFile = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
			this.lblOutputFile.Name = "lblOutputFile";
			this.lblOutputFile.Xalign = 1F;
			this.lblOutputFile.LabelProp = global::Mono.Unix.Catalog.GetString ("save as:");
			this.table.Add (this.lblOutputFile);
			global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table [this.lblOutputFile]));
			w3.XOptions = ((global::Gtk.AttachOptions)(4));
			w3.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table.Gtk.Table+TableChild
			this.lblSaveIn = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
			this.lblSaveIn.Name = "lblSaveIn";
			this.lblSaveIn.Xalign = 1F;
			this.lblSaveIn.LabelProp = global::Mono.Unix.Catalog.GetString ("in folder");
			this.table.Add (this.lblSaveIn);
			global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table [this.lblSaveIn]));
			w4.TopAttach = ((uint)(1));
			w4.BottomAttach = ((uint)(2));
			w4.XOptions = ((global::Gtk.AttachOptions)(4));
			w4.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table.Gtk.Table+TableChild
			this.lblTransform = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel ();
			this.lblTransform.Sensitive = false;
			this.lblTransform.Name = "lblTransform";
			this.lblTransform.LabelProp = global::Mono.Unix.Catalog.GetString ("transform:");
			this.table.Add (this.lblTransform);
			global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table [this.lblTransform]));
			w5.TopAttach = ((uint)(3));
			w5.BottomAttach = ((uint)(4));
			w5.XOptions = ((global::Gtk.AttachOptions)(4));
			w5.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table.Gtk.Table+TableChild
			this.saveAsName = new global::Gtk.Entry ();
			this.saveAsName.CanFocus = true;
			this.saveAsName.Name = "saveAsName";
			this.saveAsName.IsEditable = true;
			this.saveAsName.InvisibleChar = '●';
			this.table.Add (this.saveAsName);
			global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table [this.saveAsName]));
			w6.LeftAttach = ((uint)(1));
			w6.RightAttach = ((uint)(2));
			w6.XOptions = ((global::Gtk.AttachOptions)(4));
			w6.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table.Gtk.Table+TableChild
			this.saveAsPath = new global::Gtk.FileChooserButton (global::Mono.Unix.Catalog.GetString ("Select A File"), ((global::Gtk.FileChooserAction)(2)));
			this.saveAsPath.Name = "saveAsPath";
			this.saveAsPath.WidthChars = 20;
			this.saveAsPath.DoOverwriteConfirmation = true;
			this.table.Add (this.saveAsPath);
			global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table [this.saveAsPath]));
			w7.TopAttach = ((uint)(1));
			w7.BottomAttach = ((uint)(2));
			w7.LeftAttach = ((uint)(1));
			w7.RightAttach = ((uint)(2));
			w7.XOptions = ((global::Gtk.AttachOptions)(4));
			w7.YOptions = ((global::Gtk.AttachOptions)(4));
			// Container child table.Gtk.Table+TableChild
			this.transformList = global::Gtk.ComboBox.NewText ();
			this.transformList.Sensitive = false;
			this.transformList.Name = "transformList";
			this.table.Add (this.transformList);
			global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table [this.transformList]));
			w8.TopAttach = ((uint)(3));
			w8.BottomAttach = ((uint)(4));
			w8.LeftAttach = ((uint)(1));
			w8.RightAttach = ((uint)(2));
			w8.YOptions = ((global::Gtk.AttachOptions)(4));
			w1.Add (this.table);
			global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1 [this.table]));
			w9.Position = 0;
			w9.Expand = false;
			w9.Fill = false;
			// Internal child IBBoard.WarFoundry.GUI.GTK.FrmExportXml.ActionArea
			global::Gtk.HButtonBox w10 = this.ActionArea;
			w10.Name = "dialog1_ActionArea";
			w10.Spacing = 10;
			w10.BorderWidth = ((uint)(5));
			w10.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 w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10 [this.buttonCancel]));
			w11.Expand = false;
			w11.Fill = false;
			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
			this.buttonOk = new global::Gtk.Button ();
			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 w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10 [this.buttonOk]));
			w12.Position = 1;
			w12.Expand = false;
			w12.Fill = false;
			if ((this.Child != null)) {
				this.Child.ShowAll ();
			}
			this.DefaultWidth = 397;
			this.DefaultHeight = 300;
			this.Show ();
			this.transformList.Changed += new global::System.EventHandler (this.OnTransformListChanged);
			this.saveAsPath.SelectionChanged += new global::System.EventHandler (this.OnSaveAsPathSelectionChanged);
			this.saveAsName.Changed += new global::System.EventHandler (this.OnSaveAsNameChanged);
			this.doTransformWidget.Toggled += new global::System.EventHandler (this.OnDoTransformWidgetToggled);
			this.buttonCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelClicked);
			this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked);
		}
	}
}