Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison FrmReplaceEquipment.cs @ 76:7055b24cfc79
Re #308: Make GTK# UI translatable
* Extend new TranslatableDialog
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 23 Nov 2010 21:03:46 +0000 |
parents | 4b82515586ac |
children | b4416ca69153 |
comparison
equal
deleted
inserted
replaced
75:2ceae5d685d8 | 76:7055b24cfc79 |
---|---|
1 // This file (FrmAddEquipment.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard | 1 // This file (FrmAddEquipment.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard |
2 // | 2 // |
3 // 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. | 3 // 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. |
4 | 4 |
5 using System; | 5 using System; |
6 using Gtk; | |
7 using IBBoard.GtkSharp; | |
8 using IBBoard.GtkSharp.Translatable; | |
9 using IBBoard.WarFoundry.API.Objects; | |
6 using IBBoard.WarFoundry.GUI.GTK.UIControl.Interfaces; | 10 using IBBoard.WarFoundry.GUI.GTK.UIControl.Interfaces; |
7 using IBBoard.WarFoundry.API.Objects; | |
8 using Gtk; | |
9 using IBBoard.WarFoundry.GUI.GTK.Util; | 11 using IBBoard.WarFoundry.GUI.GTK.Util; |
10 using IBBoard.GtkSharp; | |
11 using log4net.Repository.Hierarchy; | |
12 using log4net; | 12 using log4net; |
13 | 13 |
14 namespace IBBoard.WarFoundry.GUI.GTK | 14 namespace IBBoard.WarFoundry.GUI.GTK |
15 { | 15 { |
16 public partial class FrmReplaceEquipment : Dialog, IReplaceEquipmentUI | 16 public partial class FrmReplaceEquipment : TranslatableDialog, IReplaceEquipmentUI |
17 { | 17 { |
18 private static ILog log = LogManager.GetLogger(typeof(FrmReplaceEquipment)); | 18 private static ILog log = LogManager.GetLogger(typeof(FrmReplaceEquipment)); |
19 | |
20 public event SingleArgMethodInvoker<UnitEquipmentItem> UnitEquipmentItemChoiceChanged; | 19 public event SingleArgMethodInvoker<UnitEquipmentItem> UnitEquipmentItemChoiceChanged; |
21 | |
22 public event MethodInvoker UnitEquipmentAmountTypeChanged; | 20 public event MethodInvoker UnitEquipmentAmountTypeChanged; |
23 | |
24 public event MethodInvoker UnitEquipmentAmountChanged; | 21 public event MethodInvoker UnitEquipmentAmountChanged; |
22 | |
25 private bool isRatioLimited; | 23 private bool isRatioLimited; |
26 | 24 |
27 public FrmReplaceEquipment() | 25 public FrmReplaceEquipment() |
28 { | 26 { |
29 this.Build(); | 27 this.Build(); |