Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
view Handler/NewUnitEventHandler.cs @ 28:5ee15def17e7
Re #244: Create "New Unit" dialog in Qt# app
* Add handler to feed back event (Qt widgets and events can't contain enough data)
* Add actions to toolbar as army changes
* Add initial "new unit" dialog by stripping down "new army" dialog
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 31 Jul 2010 20:32:01 +0000 |
parents | |
children |
line wrap: on
line source
// This file (Main.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2009 IBBoard // // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. using IBBoard.WarFoundry.API.Commands; using IBBoard.WarFoundry.API.Objects; namespace IBBoard.WarFoundry.GUI.QtSharp.Handler { public class NewUnitEventHandler { private Category cat; private SingleArgMethodInvoker<Category> callback; public NewUnitEventHandler(Category category, SingleArgMethodInvoker<Category> callbackMethod) { cat = category; callback = callbackMethod; } public void CreateNewUnit() { callback(cat); } } }