diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment.cs @ 97:6d2c8ad0d8f1

Re #308: Make GTK# UI translatable * More standardisation of widget names with WinForms
author IBBoard <dev@ibboard.co.uk>
date Sun, 02 Jan 2011 15:50:29 +0000
parents e40d892a2298
children 135491fd1830
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment.cs	Sun Jan 02 15:12:31 2011 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment.cs	Sun Jan 02 15:50:29 2011 +0000
@@ -14,9 +14,9 @@
 		private global::Gtk.RadioButton rbEquipAll;
 		private global::Gtk.RadioButton rbEquipNumeric;
 		private global::Gtk.RadioButton rbEquipPercent;
-		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount;
-		private global::IBBoard.GtkSharp.Translatable.TranslatableButton buttonCancel;
-		private global::IBBoard.GtkSharp.Translatable.TranslatableButton buttonOk;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblAmount;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnOkay;
 
 		protected virtual void Build()
 		{
@@ -146,12 +146,12 @@
 			w10.RightAttach = ((uint)(2));
 			w10.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
-			this.lblEquipAmount = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
-			this.lblEquipAmount.Name = "lblEquipAmount";
-			this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:");
-			this.lblEquipAmount.Justify = ((global::Gtk.Justification)(1));
-			this.table1.Add(this.lblEquipAmount);
-			global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipAmount]));
+			this.lblAmount = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
+			this.lblAmount.Name = "lblAmount";
+			this.lblAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:");
+			this.lblAmount.Justify = ((global::Gtk.Justification)(1));
+			this.table1.Add(this.lblAmount);
+			global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.lblAmount]));
 			w11.YOptions = ((global::Gtk.AttachOptions)(4));
 			w1.Add(this.table1);
 			global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(w1[this.table1]));
@@ -165,27 +165,27 @@
 			w13.BorderWidth = ((uint)(5));
 			w13.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
 			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
-			this.buttonCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
-			this.buttonCancel.CanDefault = true;
-			this.buttonCancel.CanFocus = true;
-			this.buttonCancel.Name = "buttonCancel";
-			this.buttonCancel.UseStock = true;
-			this.buttonCancel.UseUnderline = true;
-			this.buttonCancel.Label = "gtk-cancel";
-			this.AddActionWidget(this.buttonCancel, -6);
-			global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonCancel]));
+			this.bttnCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
+			this.bttnCancel.CanDefault = true;
+			this.bttnCancel.CanFocus = true;
+			this.bttnCancel.Name = "bttnCancel";
+			this.bttnCancel.UseStock = true;
+			this.bttnCancel.UseUnderline = true;
+			this.bttnCancel.Label = "gtk-cancel";
+			this.AddActionWidget(this.bttnCancel, -6);
+			global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCancel]));
 			w14.Expand = false;
 			w14.Fill = false;
 			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
-			this.buttonOk = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
-			this.buttonOk.CanDefault = true;
-			this.buttonOk.CanFocus = true;
-			this.buttonOk.Name = "buttonOk";
-			this.buttonOk.UseStock = true;
-			this.buttonOk.UseUnderline = true;
-			this.buttonOk.Label = "gtk-ok";
-			this.AddActionWidget(this.buttonOk, -5);
-			global::Gtk.ButtonBox.ButtonBoxChild w15 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonOk]));
+			this.bttnOkay = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
+			this.bttnOkay.CanDefault = true;
+			this.bttnOkay.CanFocus = true;
+			this.bttnOkay.Name = "bttnOkay";
+			this.bttnOkay.UseStock = true;
+			this.bttnOkay.UseUnderline = true;
+			this.bttnOkay.Label = "gtk-ok";
+			this.AddActionWidget(this.bttnOkay, -5);
+			global::Gtk.ButtonBox.ButtonBoxChild w15 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnOkay]));
 			w15.Position = 1;
 			w15.Expand = false;
 			w15.Fill = false;
@@ -201,8 +201,8 @@
 			this.rbEquipAll.Clicked += new global::System.EventHandler(this.RadioButtonClicked);
 			this.percentageAmount.ValueChanged += new global::System.EventHandler(this.SpinButtonValueChanged);
 			this.numericAmount.ValueChanged += new global::System.EventHandler(this.SpinButtonValueChanged);
-			this.buttonCancel.Clicked += new global::System.EventHandler(this.CancelButtonClicked);
-			this.buttonOk.Clicked += new global::System.EventHandler(this.OkayButtonClicked);
+			this.bttnCancel.Clicked += new global::System.EventHandler(this.CancelButtonClicked);
+			this.bttnOkay.Clicked += new global::System.EventHandler(this.OkayButtonClicked);
 		}
 	}
 }