changeset 16:d211d01efa44

Re #242: Create Qt# UI for WarFoundry * Fix MonoDevelop's annoying auto-formatting * Remove debugging "true" from IF condition
author IBBoard <dev@ibboard.co.uk>
date Sat, 13 Feb 2010 19:45:08 +0000
parents 03ed32fdc706
children 8f9f757f2099
files MainWindow.cs
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line diff
     1.1 --- a/MainWindow.cs	Sat Feb 13 12:02:14 2010 +0000
     1.2 +++ b/MainWindow.cs	Sat Feb 13 19:45:08 2010 +0000
     1.3 @@ -62,18 +62,18 @@
     1.4  			layout.actionAbout.icon = new QIcon("icons/ui/help-about.png");
     1.5  		}
     1.6  		
     1.7 -		private void ConnectMenuActions ()
     1.8 +		private void ConnectMenuActions()
     1.9  		{
    1.10 -			ConnectMenuAction (layout.actionCreateArmy, CreateNewArmy);
    1.11 -			ConnectMenuAction (layout.actionUndo, UndoAction);
    1.12 -			ConnectMenuAction (layout.actionRedo,RedoAction);
    1.13 -			ConnectMenuAction (layout.actionSaveArmyAs, DoSaveCurrentArmyAs);
    1.14 -			ConnectMenuAction (layout.actionSaveArmy, DoSaveCurrentArmy);
    1.15 -			ConnectMenuAction (layout.actionCloseArmy, DoCloseArmy);
    1.16 -			ConnectMenuAction (layout.actionOpenArmy, DoOpenArmy);
    1.17 +			ConnectMenuAction(layout.actionCreateArmy, CreateNewArmy);
    1.18 +			ConnectMenuAction(layout.actionUndo, UndoAction);
    1.19 +			ConnectMenuAction(layout.actionRedo,RedoAction);
    1.20 +			ConnectMenuAction(layout.actionSaveArmyAs, DoSaveCurrentArmyAs);
    1.21 +			ConnectMenuAction(layout.actionSaveArmy, DoSaveCurrentArmy);
    1.22 +			ConnectMenuAction(layout.actionCloseArmy, DoCloseArmy);
    1.23 +			ConnectMenuAction(layout.actionOpenArmy, DoOpenArmy);
    1.24  		}
    1.25  		
    1.26 -		private void ConnectMenuAction (QAction menuAction, SlotFunc method)
    1.27 +		private void ConnectMenuAction(QAction menuAction, SlotFunc method)
    1.28  		{
    1.29  			QObject.Connect(menuAction, SIGNAL("triggered()"), method);
    1.30  		}
    1.31 @@ -484,7 +484,7 @@
    1.32  				log.Debug("Closing "+CurrentArmy.Name);
    1.33  				bool canClose = false;
    1.34  
    1.35 -				if (CommandStack.IsDirty() || true)
    1.36 +				if (CommandStack.IsDirty())
    1.37  				{
    1.38  					log.Debug("Unsaved changes");
    1.39  					string saveChanges = Translation.GetTranslation("SaveChangesQuestion", "the army \"{0}\" has been modified\r\nsave changes before closing army?", CurrentArmy.Name);