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 diff
     1.1 --- a/FrmMainWindow.cs	Tue Sep 01 19:10:13 2009 +0000
     1.2 +++ b/FrmMainWindow.cs	Tue Sep 01 19:42:53 2009 +0000
     1.3 @@ -488,6 +488,7 @@
     1.4  
     1.5  			miCloseArmy.Sensitive = newArmy!=null;
     1.6  			miSaveArmyAs.Sensitive = newArmy!=null;
     1.7 +			miExportArmy.Sensitive = newArmy!=null;
     1.8  			//New army has no changes, so we can't save it
     1.9  			miSaveArmy.Sensitive = false;
    1.10  			saveArmyButton.Sensitive = false;
     2.1 --- a/gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs	Tue Sep 01 19:10:13 2009 +0000
     2.2 +++ b/gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs	Tue Sep 01 19:42:53 2009 +0000
     2.3 @@ -153,6 +153,7 @@
     2.4              this.add = new Gtk.Action("add", null, null, "gtk-add");
     2.5              w1.Add(this.add, null);
     2.6              this.miExportArmy = new Gtk.Action("miExportArmy", Mono.Unix.Catalog.GetString("Export army as..."), null, "gtk-convert");
     2.7 +            this.miExportArmy.Sensitive = false;
     2.8              this.miExportArmy.ShortLabel = Mono.Unix.Catalog.GetString("Export army");
     2.9              w1.Add(this.miExportArmy, null);
    2.10              this.miExportAsBasicHtml = new Gtk.Action("miExportAsBasicHtml", Mono.Unix.Catalog.GetString("Basic HTML"), null, null);
     3.1 --- a/gtk-gui/gui.stetic	Tue Sep 01 19:10:13 2009 +0000
     3.2 +++ b/gtk-gui/gui.stetic	Tue Sep 01 19:42:53 2009 +0000
     3.3 @@ -156,6 +156,7 @@
     3.4        <action id="miExportArmy">
     3.5          <property name="Type">Action</property>
     3.6          <property name="Label" translatable="yes">Export army as...</property>
     3.7 +        <property name="Sensitive">False</property>
     3.8          <property name="ShortLabel" translatable="yes">Export army</property>
     3.9          <property name="StockId">gtk-convert</property>
    3.10        </action>