changeset 29:2e5448a662b6

Re #69: Add "export army" UI * Only enable export menu when there is an army to export no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Tue, 01 Sep 2009 19:42:53 +0000
parents 9440eef124b0
children 5fafbb1b4592
files FrmMainWindow.cs gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs gtk-gui/gui.stetic
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/FrmMainWindow.cs	Tue Sep 01 19:10:13 2009 +0000
+++ b/FrmMainWindow.cs	Tue Sep 01 19:42:53 2009 +0000
@@ -488,6 +488,7 @@
 
 			miCloseArmy.Sensitive = newArmy!=null;
 			miSaveArmyAs.Sensitive = newArmy!=null;
+			miExportArmy.Sensitive = newArmy!=null;
 			//New army has no changes, so we can't save it
 			miSaveArmy.Sensitive = false;
 			saveArmyButton.Sensitive = false;
--- a/gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs	Tue Sep 01 19:10:13 2009 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs	Tue Sep 01 19:42:53 2009 +0000
@@ -153,6 +153,7 @@
             this.add = new Gtk.Action("add", null, null, "gtk-add");
             w1.Add(this.add, null);
             this.miExportArmy = new Gtk.Action("miExportArmy", Mono.Unix.Catalog.GetString("Export army as..."), null, "gtk-convert");
+            this.miExportArmy.Sensitive = false;
             this.miExportArmy.ShortLabel = Mono.Unix.Catalog.GetString("Export army");
             w1.Add(this.miExportArmy, null);
             this.miExportAsBasicHtml = new Gtk.Action("miExportAsBasicHtml", Mono.Unix.Catalog.GetString("Basic HTML"), null, null);
--- a/gtk-gui/gui.stetic	Tue Sep 01 19:10:13 2009 +0000
+++ b/gtk-gui/gui.stetic	Tue Sep 01 19:42:53 2009 +0000
@@ -156,6 +156,7 @@
       <action id="miExportArmy">
         <property name="Type">Action</property>
         <property name="Label" translatable="yes">Export army as...</property>
+        <property name="Sensitive">False</property>
         <property name="ShortLabel" translatable="yes">Export army</property>
         <property name="StockId">gtk-convert</property>
       </action>