Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
changeset 123:f58f69ea2435
Re #361: Add XML export UI to GTK#
* Add dialog to menus
* Tweak dialog
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 28 Sep 2011 20:46:08 +0100 |
parents | 2479414b16f6 |
children | a647afc19fe9 |
files | FrmMainWindow.cs gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmExportXml.cs gtk-gui/gui.stetic |
diffstat | 3 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmMainWindow.cs Tue Sep 27 21:01:49 2011 +0100 +++ b/FrmMainWindow.cs Wed Sep 28 20:46:08 2011 +0100 @@ -1174,5 +1174,11 @@ return actions; } } + + protected void OnTransformedXmlActionActivated (object sender, System.EventArgs e) + { + FrmExportXml form = new FrmExportXml(); + form.ShowNow(); + } } }
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmExportXml.cs Tue Sep 27 21:01:49 2011 +0100 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmExportXml.cs Wed Sep 28 20:46:08 2011 +0100 @@ -82,7 +82,6 @@ w6.BottomAttach = ((uint)(3)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); - w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); w1.Add (this.table); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.table])); @@ -123,8 +122,8 @@ if ((this.Child != null)) { this.Child.ShowAll (); } - this.DefaultWidth = 400; - this.DefaultHeight = 300; + this.DefaultWidth = 336; + this.DefaultHeight = 171; this.Show (); this.doTransformWidget.Toggled += new global::System.EventHandler (this.OnDoTransformWidgetToggled); }
--- a/gtk-gui/gui.stetic Tue Sep 27 21:01:49 2011 +0100 +++ b/gtk-gui/gui.stetic Wed Sep 28 20:46:08 2011 +0100 @@ -2532,7 +2532,7 @@ </widget> </child> </widget> - <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmExportXml" design-size="400 300"> + <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmExportXml" design-size="336 171"> <property name="MemberName" /> <property name="WindowPosition">CenterOnParent</property> <property name="Buttons">2</property> @@ -2645,10 +2645,9 @@ <property name="BottomAttach">3</property> <property name="LeftAttach">1</property> <property name="RightAttach">2</property> - <property name="AutoSize">True</property> - <property name="XOptions">Fill</property> + <property name="AutoSize">False</property> <property name="YOptions">Fill</property> - <property name="XExpand">False</property> + <property name="XExpand">True</property> <property name="XFill">True</property> <property name="XShrink">False</property> <property name="YExpand">False</property>