comparison FrmMain.cs @ 106:3fae39208d06

Fixes #179: Make sure that translations are used throughout UI * Translate tooltip for "total points" panel * Add translation for tooltip to English file * Change some default messages to default capitalisation and sensible values Also: * Bump version to v0.1b6pre (looks like v0.1b5 is still showing itself as v0.1b4!)
author IBBoard <dev@ibboard.co.uk>
date Sat, 28 Nov 2009 16:29:03 +0000
parents 4c5c8f91937a
children 39b93ca5fb9c
comparison
equal deleted inserted replaced
105:e598c0d2584d 106:3fae39208d06
34 /// Summary description for Form1. 34 /// Summary description for Form1.
35 /// </summary> 35 /// </summary>
36 public class FrmMain : System.Windows.Forms.Form 36 public class FrmMain : System.Windows.Forms.Form
37 { 37 {
38 private static readonly string AppTitle = "WarFoundry"; 38 private static readonly string AppTitle = "WarFoundry";
39 internal static readonly string VERSION = "0.1b4"; 39 internal static readonly string VERSION = "0.1b6pre";
40 const string DefaultDataDir = "data"; 40 const string DefaultDataDir = "data";
41 41
42 private Preferences preferences; 42 private Preferences preferences;
43 private readonly ILog log = LogManager.GetLogger(typeof(FrmMain)); 43 private readonly ILog log = LogManager.GetLogger(typeof(FrmMain));
44 44
146 UnitRemovedMethod = new ObjectRemoveDelegate(FrmMain_UnitRemovedMethod); 146 UnitRemovedMethod = new ObjectRemoveDelegate(FrmMain_UnitRemovedMethod);
147 PointsValueChangedMethod = new DoubleValChangedDelegate(FrmMain_PointsValueChangedMethod); 147 PointsValueChangedMethod = new DoubleValChangedDelegate(FrmMain_PointsValueChangedMethod);
148 //FailedUnitRequirementMethod = new FailedUnitRequirementDelegate(FrmMain_FailedUnitRequirement); 148 //FailedUnitRequirementMethod = new FailedUnitRequirementDelegate(FrmMain_FailedUnitRequirement);
149 149
150 sbErrorPanel.Color = Color.Red; 150 sbErrorPanel.Color = Color.Red;
151 sbPointsPanel.ToolTipText = Translation.GetTranslation("statusPanelPointsToolTip", "total points value");
151 152
152 armyTree = new FrmArmyTree(CommandStack); 153 armyTree = new FrmArmyTree(CommandStack);
153 armyTree.MdiParent = this; 154 armyTree.MdiParent = this;
154 armyTree.StartPosition = FormStartPosition.Manual; 155 armyTree.StartPosition = FormStartPosition.Manual;
155 armyTree.Location = new Point(this.DisplayRectangle.Width - armyTree.Width - 10, 10); 156 armyTree.Location = new Point(this.DisplayRectangle.Width - armyTree.Width - 10, 10);
288 // sbPointsPanel 289 // sbPointsPanel
289 // 290 //
290 this.sbPointsPanel.Color = System.Drawing.SystemColors.WindowText; 291 this.sbPointsPanel.Color = System.Drawing.SystemColors.WindowText;
291 this.sbPointsPanel.Name = "sbPointsPanel"; 292 this.sbPointsPanel.Name = "sbPointsPanel";
292 this.sbPointsPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw; 293 this.sbPointsPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
293 this.sbPointsPanel.ToolTipText = "Current Points Total"; 294 this.sbPointsPanel.ToolTipText = "current points total";
294 this.sbPointsPanel.Width = 150; 295 this.sbPointsPanel.Width = 150;
295 // 296 //
296 // toolBar 297 // toolBar
297 // 298 //
298 this.toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; 299 this.toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;