Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmExportXml.cs @ 124:a647afc19fe9
Re #361: Add XML export UI to GTK#
* Add sensitivity changing on OK button
* Need to make buttons do things, and allow creating new files with file chooser
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 28 Sep 2011 21:01:54 +0100 |
parents | f58f69ea2435 |
children | 42d2aa87dfa7 |
rev | line source |
---|---|
122 | 1 |
2 // This file has been generated by the GUI designer. Do not modify. | |
3 namespace IBBoard.WarFoundry.GUI.GTK | |
4 { | |
5 public partial class FrmExportXml | |
6 { | |
7 private global::Gtk.Table table; | |
8 private global::Gtk.CheckButton doTransformWidget; | |
9 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblOutputFile; | |
10 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblTransform; | |
11 private global::Gtk.FileChooserButton saveAsPath; | |
12 private global::Gtk.ComboBox transformList; | |
13 private global::Gtk.Button buttonCancel; | |
14 private global::Gtk.Button buttonOk; | |
15 | |
16 protected virtual void Build () | |
17 { | |
18 global::Stetic.Gui.Initialize (this); | |
19 // Widget IBBoard.WarFoundry.GUI.GTK.FrmExportXml | |
20 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmExportXml"; | |
21 this.WindowPosition = ((global::Gtk.WindowPosition)(4)); | |
22 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmExportXml.VBox | |
23 global::Gtk.VBox w1 = this.VBox; | |
24 w1.Name = "dialog1_VBox"; | |
25 w1.BorderWidth = ((uint)(2)); | |
26 // Container child dialog1_VBox.Gtk.Box+BoxChild | |
27 this.table = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false); | |
28 this.table.Name = "table"; | |
29 this.table.RowSpacing = ((uint)(6)); | |
30 this.table.ColumnSpacing = ((uint)(6)); | |
31 // Container child table.Gtk.Table+TableChild | |
32 this.doTransformWidget = new global::Gtk.CheckButton (); | |
33 this.doTransformWidget.CanFocus = true; | |
34 this.doTransformWidget.Name = "doTransformWidget"; | |
35 this.doTransformWidget.Label = global::Mono.Unix.Catalog.GetString ("Transform output?"); | |
36 this.doTransformWidget.DrawIndicator = true; | |
37 this.doTransformWidget.UseUnderline = true; | |
38 this.table.Add (this.doTransformWidget); | |
39 global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table [this.doTransformWidget])); | |
40 w2.TopAttach = ((uint)(1)); | |
41 w2.BottomAttach = ((uint)(2)); | |
42 w2.LeftAttach = ((uint)(1)); | |
43 w2.RightAttach = ((uint)(2)); | |
44 w2.XOptions = ((global::Gtk.AttachOptions)(4)); | |
45 w2.YOptions = ((global::Gtk.AttachOptions)(4)); | |
46 // Container child table.Gtk.Table+TableChild | |
47 this.lblOutputFile = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel (); | |
48 this.lblOutputFile.Name = "lblOutputFile"; | |
49 this.lblOutputFile.Xalign = 1F; | |
50 this.lblOutputFile.LabelProp = global::Mono.Unix.Catalog.GetString ("Save as:"); | |
51 this.table.Add (this.lblOutputFile); | |
52 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table [this.lblOutputFile])); | |
53 w3.XOptions = ((global::Gtk.AttachOptions)(4)); | |
54 w3.YOptions = ((global::Gtk.AttachOptions)(4)); | |
55 // Container child table.Gtk.Table+TableChild | |
56 this.lblTransform = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel (); | |
57 this.lblTransform.Sensitive = false; | |
58 this.lblTransform.Name = "lblTransform"; | |
59 this.lblTransform.LabelProp = global::Mono.Unix.Catalog.GetString ("Transform:"); | |
60 this.table.Add (this.lblTransform); | |
61 global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table [this.lblTransform])); | |
62 w4.TopAttach = ((uint)(2)); | |
63 w4.BottomAttach = ((uint)(3)); | |
64 w4.XOptions = ((global::Gtk.AttachOptions)(4)); | |
65 w4.YOptions = ((global::Gtk.AttachOptions)(4)); | |
66 // Container child table.Gtk.Table+TableChild | |
67 this.saveAsPath = new global::Gtk.FileChooserButton (global::Mono.Unix.Catalog.GetString ("Select A File"), ((global::Gtk.FileChooserAction)(0))); | |
68 this.saveAsPath.Name = "saveAsPath"; | |
69 this.table.Add (this.saveAsPath); | |
70 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table [this.saveAsPath])); | |
71 w5.LeftAttach = ((uint)(1)); | |
72 w5.RightAttach = ((uint)(2)); | |
73 w5.XOptions = ((global::Gtk.AttachOptions)(4)); | |
74 w5.YOptions = ((global::Gtk.AttachOptions)(4)); | |
75 // Container child table.Gtk.Table+TableChild | |
76 this.transformList = global::Gtk.ComboBox.NewText (); | |
77 this.transformList.Sensitive = false; | |
78 this.transformList.Name = "transformList"; | |
79 this.table.Add (this.transformList); | |
80 global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table [this.transformList])); | |
81 w6.TopAttach = ((uint)(2)); | |
82 w6.BottomAttach = ((uint)(3)); | |
83 w6.LeftAttach = ((uint)(1)); | |
84 w6.RightAttach = ((uint)(2)); | |
85 w6.YOptions = ((global::Gtk.AttachOptions)(4)); | |
86 w1.Add (this.table); | |
87 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.table])); | |
88 w7.Position = 0; | |
89 w7.Expand = false; | |
90 w7.Fill = false; | |
91 // Internal child IBBoard.WarFoundry.GUI.GTK.FrmExportXml.ActionArea | |
92 global::Gtk.HButtonBox w8 = this.ActionArea; | |
93 w8.Name = "dialog1_ActionArea"; | |
94 w8.Spacing = 10; | |
95 w8.BorderWidth = ((uint)(5)); | |
96 w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); | |
97 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
98 this.buttonCancel = new global::Gtk.Button (); | |
99 this.buttonCancel.CanDefault = true; | |
100 this.buttonCancel.CanFocus = true; | |
101 this.buttonCancel.Name = "buttonCancel"; | |
102 this.buttonCancel.UseStock = true; | |
103 this.buttonCancel.UseUnderline = true; | |
104 this.buttonCancel.Label = "gtk-cancel"; | |
105 this.AddActionWidget (this.buttonCancel, -6); | |
106 global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonCancel])); | |
107 w9.Expand = false; | |
108 w9.Fill = false; | |
109 // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |
110 this.buttonOk = new global::Gtk.Button (); | |
111 this.buttonOk.CanDefault = true; | |
112 this.buttonOk.CanFocus = true; | |
113 this.buttonOk.Name = "buttonOk"; | |
114 this.buttonOk.UseStock = true; | |
115 this.buttonOk.UseUnderline = true; | |
116 this.buttonOk.Label = "gtk-ok"; | |
117 this.AddActionWidget (this.buttonOk, -5); | |
118 global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonOk])); | |
119 w10.Position = 1; | |
120 w10.Expand = false; | |
121 w10.Fill = false; | |
122 if ((this.Child != null)) { | |
123 this.Child.ShowAll (); | |
124 } | |
123
f58f69ea2435
Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents:
122
diff
changeset
|
125 this.DefaultWidth = 336; |
f58f69ea2435
Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents:
122
diff
changeset
|
126 this.DefaultHeight = 171; |
122 | 127 this.Show (); |
124
a647afc19fe9
Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents:
123
diff
changeset
|
128 this.transformList.Changed += new global::System.EventHandler (this.OnTransformListChanged); |
a647afc19fe9
Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents:
123
diff
changeset
|
129 this.saveAsPath.SelectionChanged += new global::System.EventHandler (this.OnSaveAsPathSelectionChanged); |
122 | 130 this.doTransformWidget.Toggled += new global::System.EventHandler (this.OnDoTransformWidgetToggled); |
131 } | |
132 } | |
133 } |