Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
diff MainWindow.cs @ 12:4a724378d66a
Re #247: Implement menu options in Qt# app
* Hook up army close (can now create, save and close armies)
Re #242: Create Qt# UI for WarFoundry
* Fix initial window title
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 05 Feb 2010 20:57:44 +0000 |
parents | 72bcf6457227 |
children | dbe784f0802c |
line wrap: on
line diff
--- a/MainWindow.cs Fri Feb 05 20:37:30 2010 +0000 +++ b/MainWindow.cs Fri Feb 05 20:57:44 2010 +0000 @@ -29,6 +29,7 @@ layout = new Ui_MainWindowLayout(); layout.SetupUi(this); WindowIcon = new QIcon("icons/App.png"); + SetAppTitle(); saveArmyDialog = new QFileDialog(this); saveArmyDialog.acceptMode = QFileDialog.AcceptMode.AcceptSave; SetUpActionIcons(); @@ -60,6 +61,7 @@ QObject.Connect(layout.actionRedo, SIGNAL("triggered()"), RedoAction); QObject.Connect(layout.actionSaveArmyAs, SIGNAL("triggered()"), DoSaveCurrentArmyAs); QObject.Connect(layout.actionSaveArmy, SIGNAL("triggered()"), DoSaveCurrentArmy); + QObject.Connect(layout.actionCloseArmy, SIGNAL("triggered()"), CloseArmy); } private void CreateNewArmy() @@ -361,5 +363,10 @@ { //TODO enable category buttons } + + private void CloseArmy() + { + CurrentArmy = null; + } } } \ No newline at end of file