[longomatch/newui: 70/104] Various fixes to the player editor widget. Make sure we support float numbers for the height, that w



commit 1012e98289edb192016beeecd6ba5fda3c568c32
Author: Julien Moutte <julien fluendo com>
Date:   Fri Aug 22 17:09:46 2014 +0200

    Various fixes to the player editor widget. Make sure we support float numbers for the height, that we 
clear the labels when null pointer is provided for a string and that we connect to the proper signal for 
SpinButtons.

 LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs |   32 +-
 .../LongoMatch.Gui.Component.TeamTemplateEditor.cs |  436 ++++++++++----------
 2 files changed, 230 insertions(+), 238 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs 
b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
index 8b89056..7a33e3d 100644
--- a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
@@ -127,21 +127,21 @@ namespace LongoMatch.Gui.Component
                        
                        shieldeventbox.ButtonPressEvent += HandleShieldButtonPressEvent;
                        playereventbox.ButtonPressEvent += HandlePlayerButtonPressEvent;
-                       
+
+
                        teamnameentry.Changed += HandleEntryChanged;
                        nameentry.Changed += HandleEntryChanged;
                        positionentry.Changed += HandleEntryChanged;
-                       numberspinbutton.Changed += HandleEntryChanged;
-                       heightspinbutton.Changed += HandleEntryChanged;
-                       weightspinbutton.Changed += HandleEntryChanged;
+                       numberspinbutton.ValueChanged += HandleEntryChanged;
+                       heightspinbutton.ValueChanged += HandleEntryChanged;
+                       weightspinbutton.ValueChanged += HandleEntryChanged;
                        nationalityentry.Changed += HandleEntryChanged;
                        mailentry.Changed += HandleEntryChanged;
+                       bdaydatepicker.ValueChanged += HandleEntryChanged;
                        
                        applybutton.Clicked += (s,e) => {ParseTactics();}; 
                        tacticsentry.Activated += (s, e) => {ParseTactics();};
-                       
-                       datebutton.Clicked += HandleCalendarbuttonClicked; 
-                       
+
                        Edited = false;
                }
 
@@ -159,14 +159,17 @@ namespace LongoMatch.Gui.Component
                        } else if (sender == numberspinbutton) {
                                loadedPlayer.Number = (sender as SpinButton).ValueAsInt;
                        } else if (sender == heightspinbutton) {
-                               loadedPlayer.Height = (sender as SpinButton).ValueAsInt;
+                               loadedPlayer.Height = (float)(sender as SpinButton).Value;
                        } else if (sender == weightspinbutton) {
                                loadedPlayer.Weight = (sender as SpinButton).ValueAsInt;
                        } else if (sender == nationalityentry) {
                                loadedPlayer.Nationality = (sender as Entry).Text;
                        } else if (sender == mailentry) {
                                loadedPlayer.Mail = (sender as Entry).Text;
+                       } else if (sender == bdaydatepicker) {
+                               loadedPlayer.Birthday = (sender as DatePicker).Date;
                        }
+
                        Edited = true;
                        drawingarea.QueueDraw ();
                }
@@ -178,13 +181,14 @@ namespace LongoMatch.Gui.Component
                
                void LoadPlayer (Player p) {
                        loadedPlayer = p;
-                       nameentry.Text = p.Name;
-                       positionentry.Text = p.Position;
+                       nameentry.Text = p.Name != null ? p.Name : "";
+                       positionentry.Text = p.Position != null ? p.Position : "";
                        numberspinbutton.Value = p.Number;
                        heightspinbutton.Value = p.Height;
                        weightspinbutton.Value = p.Weight;
                        nationalityentry.Text = p.Number.ToString();
-                       bdaylabel.Text = p.Birthday.ToShortDateString();
+                       bdaydatepicker.Date = p.Birthday;
+                       mailentry.Text = p.Mail != null ? p.Mail : "";
                        playerimage.Pixbuf = PlayerPhoto (p);
                }
                
@@ -297,12 +301,6 @@ namespace LongoMatch.Gui.Component
                                Edited = true;
                        }
                }
-
-               void HandleCalendarbuttonClicked(object sender, System.EventArgs e)
-               {
-                       loadedPlayer.Birthday = Config.GUIToolkit.SelectDate (loadedPlayer.Birthday, this);
-                       bdaylabel.Text = loadedPlayer.Birthday.ToShortDateString ();
-               }
        }
 }
 
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
index 094cf8d..50d1c04 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
@@ -13,7 +13,7 @@ namespace LongoMatch.Gui.Component
                private global::Gtk.Frame shieldframe;
                private global::Gtk.Alignment shieldalignment;
                private global::Gtk.EventBox shieldeventbox;
-               private global::Gtk.VBox vbox4;
+               private global::Gtk.VBox shieldvbox;
                private global::Gtk.Image shieldimage;
                private global::Gtk.Label teamshieldlabel1;
                private global::Gtk.Label teamshieldlabel2;
@@ -35,14 +35,12 @@ namespace LongoMatch.Gui.Component
                private global::Gtk.Frame playerimageframe;
                private global::Gtk.Alignment playerimagealignment;
                private global::Gtk.EventBox playereventbox;
-               private global::Gtk.VBox vbox2;
+               private global::Gtk.VBox playervbox;
                private global::Gtk.Image playerimage;
                private global::Gtk.Label playerimagelabel1;
                private global::Gtk.Label playerimagelabel2;
                private global::Gtk.Table table1;
-               private global::Gtk.HBox hbox3;
-               private global::Gtk.Label bdaylabel;
-               private global::Gtk.Button datebutton;
+               private global::LongoMatch.Gui.Component.DatePicker bdaydatepicker;
                private global::Gtk.SpinButton heightspinbutton;
                private global::Gtk.Label label11;
                private global::Gtk.Label label12;
@@ -111,36 +109,38 @@ namespace LongoMatch.Gui.Component
                        this.shieldeventbox = new global::Gtk.EventBox ();
                        this.shieldeventbox.Name = "shieldeventbox";
                        // Container child shieldeventbox.Gtk.Container+ContainerChild
-                       this.vbox4 = new global::Gtk.VBox ();
-                       this.vbox4.Name = "vbox4";
-                       this.vbox4.Spacing = 6;
-                       // Container child vbox4.Gtk.Box+BoxChild
+                       this.shieldvbox = new global::Gtk.VBox ();
+                       this.shieldvbox.Name = "shieldvbox";
+                       this.shieldvbox.Spacing = 2;
+                       // Container child shieldvbox.Gtk.Box+BoxChild
                        this.shieldimage = new global::Gtk.Image ();
                        this.shieldimage.Name = "shieldimage";
-                       this.vbox4.Add (this.shieldimage);
-                       global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox4 
[this.shieldimage]));
+                       this.shieldvbox.Add (this.shieldimage);
+                       global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.shieldvbox 
[this.shieldimage]));
                        w1.Position = 0;
                        w1.Expand = false;
                        w1.Fill = false;
-                       // Container child vbox4.Gtk.Box+BoxChild
+                       // Container child shieldvbox.Gtk.Box+BoxChild
                        this.teamshieldlabel1 = new global::Gtk.Label ();
                        this.teamshieldlabel1.Name = "teamshieldlabel1";
-                       this.teamshieldlabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("Team shield");
-                       this.vbox4.Add (this.teamshieldlabel1);
-                       global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox4 
[this.teamshieldlabel1]));
+                       this.teamshieldlabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Team shield</span>");
+                       this.teamshieldlabel1.UseMarkup = true;
+                       this.shieldvbox.Add (this.teamshieldlabel1);
+                       global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.shieldvbox 
[this.teamshieldlabel1]));
                        w2.Position = 1;
                        w2.Expand = false;
                        w2.Fill = false;
-                       // Container child vbox4.Gtk.Box+BoxChild
+                       // Container child shieldvbox.Gtk.Box+BoxChild
                        this.teamshieldlabel2 = new global::Gtk.Label ();
                        this.teamshieldlabel2.Name = "teamshieldlabel2";
-                       this.teamshieldlabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("click to 
change...");
-                       this.vbox4.Add (this.teamshieldlabel2);
-                       global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox4 
[this.teamshieldlabel2]));
+                       this.teamshieldlabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">click to change...</span>");
+                       this.teamshieldlabel2.UseMarkup = true;
+                       this.shieldvbox.Add (this.teamshieldlabel2);
+                       global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.shieldvbox 
[this.teamshieldlabel2]));
                        w3.Position = 2;
                        w3.Expand = false;
                        w3.Fill = false;
-                       this.shieldeventbox.Add (this.vbox4);
+                       this.shieldeventbox.Add (this.shieldvbox);
                        this.shieldalignment.Add (this.shieldeventbox);
                        this.shieldframe.Add (this.shieldalignment);
                        this.hbox2.Add (this.shieldframe);
@@ -157,7 +157,7 @@ namespace LongoMatch.Gui.Component
                        this.GtkLabel4 = new global::Gtk.Label ();
                        this.GtkLabel4.Name = "GtkLabel4";
                        this.GtkLabel4.Xalign = 1F;
-                       this.GtkLabel4.LabelProp = global::Mono.Unix.Catalog.GetString ("Team name");
+                       this.GtkLabel4.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Team name</span>");
                        this.GtkLabel4.UseMarkup = true;
                        this.teamtable.Add (this.GtkLabel4);
                        global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.teamtable 
[this.GtkLabel4]));
@@ -213,18 +213,18 @@ namespace LongoMatch.Gui.Component
                        this.label1 = new global::Gtk.Label ();
                        this.label1.Name = "label1";
                        this.label1.Xalign = 1F;
-                       this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Number of players");
+                       this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Number of players</span>");
+                       this.label1.UseMarkup = true;
                        this.teamtable.Add (this.label1);
                        global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.teamtable 
[this.label1]));
                        w20.TopAttach = ((uint)(1));
                        w20.BottomAttach = ((uint)(2));
-                       w20.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w20.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child teamtable.Gtk.Table+TableChild
                        this.label2 = new global::Gtk.Label ();
                        this.label2.Name = "label2";
                        this.label2.Xalign = 1F;
-                       this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Tactics");
+                       this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Tactics</span>");
+                       this.label2.UseMarkup = true;
                        this.teamtable.Add (this.label2);
                        global::Gtk.Table.TableChild w21 = ((global::Gtk.Table.TableChild)(this.teamtable 
[this.label2]));
                        w21.TopAttach = ((uint)(2));
@@ -313,36 +313,38 @@ namespace LongoMatch.Gui.Component
                        this.playereventbox = new global::Gtk.EventBox ();
                        this.playereventbox.Name = "playereventbox";
                        // Container child playereventbox.Gtk.Container+ContainerChild
-                       this.vbox2 = new global::Gtk.VBox ();
-                       this.vbox2.Name = "vbox2";
-                       this.vbox2.Spacing = 6;
-                       // Container child vbox2.Gtk.Box+BoxChild
+                       this.playervbox = new global::Gtk.VBox ();
+                       this.playervbox.Name = "playervbox";
+                       this.playervbox.Spacing = 2;
+                       // Container child playervbox.Gtk.Box+BoxChild
                        this.playerimage = new global::Gtk.Image ();
                        this.playerimage.Name = "playerimage";
-                       this.vbox2.Add (this.playerimage);
-                       global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.playerimage]));
+                       this.playervbox.Add (this.playerimage);
+                       global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.playervbox 
[this.playerimage]));
                        w30.Position = 0;
                        w30.Expand = false;
                        w30.Fill = false;
-                       // Container child vbox2.Gtk.Box+BoxChild
+                       // Container child playervbox.Gtk.Box+BoxChild
                        this.playerimagelabel1 = new global::Gtk.Label ();
                        this.playerimagelabel1.Name = "playerimagelabel1";
-                       this.playerimagelabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("Player 
picture");
-                       this.vbox2.Add (this.playerimagelabel1);
-                       global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.playerimagelabel1]));
+                       this.playerimagelabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Player picture</span>");
+                       this.playerimagelabel1.UseMarkup = true;
+                       this.playervbox.Add (this.playerimagelabel1);
+                       global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.playervbox 
[this.playerimagelabel1]));
                        w31.Position = 1;
                        w31.Expand = false;
                        w31.Fill = false;
-                       // Container child vbox2.Gtk.Box+BoxChild
+                       // Container child playervbox.Gtk.Box+BoxChild
                        this.playerimagelabel2 = new global::Gtk.Label ();
                        this.playerimagelabel2.Name = "playerimagelabel2";
-                       this.playerimagelabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("click to 
change...");
-                       this.vbox2.Add (this.playerimagelabel2);
-                       global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.playerimagelabel2]));
+                       this.playerimagelabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">click to change...</span>");
+                       this.playerimagelabel2.UseMarkup = true;
+                       this.playervbox.Add (this.playerimagelabel2);
+                       global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.playervbox 
[this.playerimagelabel2]));
                        w32.Position = 2;
                        w32.Expand = false;
                        w32.Fill = false;
-                       this.playereventbox.Add (this.vbox2);
+                       this.playereventbox.Add (this.playervbox);
                        this.playerimagealignment.Add (this.playereventbox);
                        this.playerimageframe.Add (this.playerimagealignment);
                        this.alignment1.Add (this.playerimageframe);
@@ -357,34 +359,18 @@ namespace LongoMatch.Gui.Component
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
-                       this.hbox3 = new global::Gtk.HBox ();
-                       this.hbox3.Name = "hbox3";
-                       this.hbox3.Spacing = 6;
-                       // Container child hbox3.Gtk.Box+BoxChild
-                       this.bdaylabel = new global::Gtk.Label ();
-                       this.bdaylabel.Name = "bdaylabel";
-                       this.hbox3.Add (this.bdaylabel);
-                       global::Gtk.Box.BoxChild w38 = ((global::Gtk.Box.BoxChild)(this.hbox3 
[this.bdaylabel]));
-                       w38.Position = 0;
-                       // Container child hbox3.Gtk.Box+BoxChild
-                       this.datebutton = new global::Gtk.Button ();
-                       this.datebutton.CanFocus = true;
-                       this.datebutton.Name = "datebutton";
-                       this.datebutton.UseUnderline = true;
-                       this.datebutton.Label = global::Mono.Unix.Catalog.GetString ("_Calendar");
-                       this.hbox3.Add (this.datebutton);
-                       global::Gtk.Box.BoxChild w39 = ((global::Gtk.Box.BoxChild)(this.hbox3 
[this.datebutton]));
-                       w39.Position = 1;
-                       w39.Expand = false;
-                       w39.Fill = false;
-                       this.table1.Add (this.hbox3);
-                       global::Gtk.Table.TableChild w40 = ((global::Gtk.Table.TableChild)(this.table1 
[this.hbox3]));
-                       w40.TopAttach = ((uint)(6));
-                       w40.BottomAttach = ((uint)(7));
-                       w40.LeftAttach = ((uint)(1));
-                       w40.RightAttach = ((uint)(2));
-                       w40.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w40.YOptions = ((global::Gtk.AttachOptions)(4));
+                       this.bdaydatepicker = new global::LongoMatch.Gui.Component.DatePicker ();
+                       this.bdaydatepicker.Events = ((global::Gdk.EventMask)(256));
+                       this.bdaydatepicker.Name = "bdaydatepicker";
+                       this.bdaydatepicker.Date = new global::System.DateTime (0);
+                       this.table1.Add (this.bdaydatepicker);
+                       global::Gtk.Table.TableChild w38 = ((global::Gtk.Table.TableChild)(this.table1 
[this.bdaydatepicker]));
+                       w38.TopAttach = ((uint)(6));
+                       w38.BottomAttach = ((uint)(7));
+                       w38.LeftAttach = ((uint)(1));
+                       w38.RightAttach = ((uint)(2));
+                       w38.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w38.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.heightspinbutton = new global::Gtk.SpinButton (0, 100, 1);
                        this.heightspinbutton.CanFocus = true;
@@ -395,87 +381,94 @@ namespace LongoMatch.Gui.Component
                        this.heightspinbutton.Numeric = true;
                        this.heightspinbutton.Value = 18;
                        this.table1.Add (this.heightspinbutton);
-                       global::Gtk.Table.TableChild w41 = ((global::Gtk.Table.TableChild)(this.table1 
[this.heightspinbutton]));
-                       w41.TopAttach = ((uint)(4));
-                       w41.BottomAttach = ((uint)(5));
-                       w41.LeftAttach = ((uint)(1));
-                       w41.RightAttach = ((uint)(2));
-                       w41.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w41.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w39 = ((global::Gtk.Table.TableChild)(this.table1 
[this.heightspinbutton]));
+                       w39.TopAttach = ((uint)(4));
+                       w39.BottomAttach = ((uint)(5));
+                       w39.LeftAttach = ((uint)(1));
+                       w39.RightAttach = ((uint)(2));
+                       w39.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w39.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label11 = new global::Gtk.Label ();
                        this.label11.Name = "label11";
                        this.label11.Xalign = 1F;
-                       this.label11.LabelProp = global::Mono.Unix.Catalog.GetString ("Position");
+                       this.label11.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Position</span>");
+                       this.label11.UseMarkup = true;
                        this.table1.Add (this.label11);
-                       global::Gtk.Table.TableChild w42 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label11]));
-                       w42.TopAttach = ((uint)(2));
-                       w42.BottomAttach = ((uint)(3));
-                       w42.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w42.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w40 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label11]));
+                       w40.TopAttach = ((uint)(2));
+                       w40.BottomAttach = ((uint)(3));
+                       w40.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w40.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label12 = new global::Gtk.Label ();
                        this.label12.Name = "label12";
                        this.label12.Xalign = 1F;
-                       this.label12.LabelProp = global::Mono.Unix.Catalog.GetString ("Name");
+                       this.label12.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Name</span>");
+                       this.label12.UseMarkup = true;
                        this.table1.Add (this.label12);
-                       global::Gtk.Table.TableChild w43 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label12]));
-                       w43.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w41 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label12]));
+                       w41.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label3 = new global::Gtk.Label ();
                        this.label3.Name = "label3";
                        this.label3.Xalign = 1F;
-                       this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Number");
+                       this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Number</span>");
+                       this.label3.UseMarkup = true;
                        this.table1.Add (this.label3);
-                       global::Gtk.Table.TableChild w44 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label3]));
-                       w44.TopAttach = ((uint)(3));
-                       w44.BottomAttach = ((uint)(4));
-                       w44.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w44.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w42 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label3]));
+                       w42.TopAttach = ((uint)(3));
+                       w42.BottomAttach = ((uint)(4));
+                       w42.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w42.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label5 = new global::Gtk.Label ();
                        this.label5.Name = "label5";
                        this.label5.Xalign = 1F;
-                       this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Height");
+                       this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Height</span>");
+                       this.label5.UseMarkup = true;
                        this.table1.Add (this.label5);
-                       global::Gtk.Table.TableChild w45 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label5]));
-                       w45.TopAttach = ((uint)(4));
-                       w45.BottomAttach = ((uint)(5));
-                       w45.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w45.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w43 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label5]));
+                       w43.TopAttach = ((uint)(4));
+                       w43.BottomAttach = ((uint)(5));
+                       w43.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w43.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label6 = new global::Gtk.Label ();
                        this.label6.Name = "label6";
                        this.label6.Xalign = 1F;
-                       this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Weight");
+                       this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Weight</span>");
+                       this.label6.UseMarkup = true;
                        this.table1.Add (this.label6);
-                       global::Gtk.Table.TableChild w46 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label6]));
-                       w46.TopAttach = ((uint)(5));
-                       w46.BottomAttach = ((uint)(6));
-                       w46.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w46.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w44 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label6]));
+                       w44.TopAttach = ((uint)(5));
+                       w44.BottomAttach = ((uint)(6));
+                       w44.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w44.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label7 = new global::Gtk.Label ();
                        this.label7.Name = "label7";
                        this.label7.Xalign = 1F;
-                       this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Birth Date");
+                       this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Birth Date</span>");
+                       this.label7.UseMarkup = true;
                        this.table1.Add (this.label7);
-                       global::Gtk.Table.TableChild w47 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label7]));
-                       w47.TopAttach = ((uint)(6));
-                       w47.BottomAttach = ((uint)(7));
-                       w47.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w47.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w45 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label7]));
+                       w45.TopAttach = ((uint)(6));
+                       w45.BottomAttach = ((uint)(7));
+                       w45.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w45.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.label8 = new global::Gtk.Label ();
                        this.label8.Name = "label8";
                        this.label8.Xalign = 1F;
-                       this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("Nationality");
+                       this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">Nationality</span>");
+                       this.label8.UseMarkup = true;
                        this.table1.Add (this.label8);
-                       global::Gtk.Table.TableChild w48 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label8]));
-                       w48.TopAttach = ((uint)(1));
-                       w48.BottomAttach = ((uint)(2));
-                       w48.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w48.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w46 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label8]));
+                       w46.TopAttach = ((uint)(1));
+                       w46.BottomAttach = ((uint)(2));
+                       w46.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w46.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.mailentry = new global::Gtk.Entry ();
                        this.mailentry.CanFocus = true;
@@ -483,24 +476,25 @@ namespace LongoMatch.Gui.Component
                        this.mailentry.IsEditable = true;
                        this.mailentry.InvisibleChar = '•';
                        this.table1.Add (this.mailentry);
-                       global::Gtk.Table.TableChild w49 = ((global::Gtk.Table.TableChild)(this.table1 
[this.mailentry]));
-                       w49.TopAttach = ((uint)(7));
-                       w49.BottomAttach = ((uint)(8));
-                       w49.LeftAttach = ((uint)(1));
-                       w49.RightAttach = ((uint)(2));
-                       w49.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w49.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w47 = ((global::Gtk.Table.TableChild)(this.table1 
[this.mailentry]));
+                       w47.TopAttach = ((uint)(7));
+                       w47.BottomAttach = ((uint)(8));
+                       w47.LeftAttach = ((uint)(1));
+                       w47.RightAttach = ((uint)(2));
+                       w47.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w47.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.maillabel = new global::Gtk.Label ();
                        this.maillabel.Name = "maillabel";
                        this.maillabel.Xalign = 1F;
-                       this.maillabel.LabelProp = global::Mono.Unix.Catalog.GetString ("E-mail");
+                       this.maillabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<span 
font_desc=\"10\">E-mail</span>");
+                       this.maillabel.UseMarkup = true;
                        this.table1.Add (this.maillabel);
-                       global::Gtk.Table.TableChild w50 = ((global::Gtk.Table.TableChild)(this.table1 
[this.maillabel]));
-                       w50.TopAttach = ((uint)(7));
-                       w50.BottomAttach = ((uint)(8));
-                       w50.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w50.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w48 = ((global::Gtk.Table.TableChild)(this.table1 
[this.maillabel]));
+                       w48.TopAttach = ((uint)(7));
+                       w48.BottomAttach = ((uint)(8));
+                       w48.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w48.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.nameentry = new global::Gtk.Entry ();
                        this.nameentry.CanFocus = true;
@@ -508,11 +502,11 @@ namespace LongoMatch.Gui.Component
                        this.nameentry.IsEditable = true;
                        this.nameentry.InvisibleChar = '●';
                        this.table1.Add (this.nameentry);
-                       global::Gtk.Table.TableChild w51 = ((global::Gtk.Table.TableChild)(this.table1 
[this.nameentry]));
-                       w51.LeftAttach = ((uint)(1));
-                       w51.RightAttach = ((uint)(2));
-                       w51.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w51.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w49 = ((global::Gtk.Table.TableChild)(this.table1 
[this.nameentry]));
+                       w49.LeftAttach = ((uint)(1));
+                       w49.RightAttach = ((uint)(2));
+                       w49.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w49.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.nationalityentry = new global::Gtk.Entry ();
                        this.nationalityentry.CanFocus = true;
@@ -520,13 +514,13 @@ namespace LongoMatch.Gui.Component
                        this.nationalityentry.IsEditable = true;
                        this.nationalityentry.InvisibleChar = '●';
                        this.table1.Add (this.nationalityentry);
-                       global::Gtk.Table.TableChild w52 = ((global::Gtk.Table.TableChild)(this.table1 
[this.nationalityentry]));
-                       w52.TopAttach = ((uint)(1));
-                       w52.BottomAttach = ((uint)(2));
-                       w52.LeftAttach = ((uint)(1));
-                       w52.RightAttach = ((uint)(2));
-                       w52.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w52.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w50 = ((global::Gtk.Table.TableChild)(this.table1 
[this.nationalityentry]));
+                       w50.TopAttach = ((uint)(1));
+                       w50.BottomAttach = ((uint)(2));
+                       w50.LeftAttach = ((uint)(1));
+                       w50.RightAttach = ((uint)(2));
+                       w50.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w50.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.numberspinbutton = new global::Gtk.SpinButton (0, 100, 1);
                        this.numberspinbutton.CanFocus = true;
@@ -535,13 +529,13 @@ namespace LongoMatch.Gui.Component
                        this.numberspinbutton.ClimbRate = 1;
                        this.numberspinbutton.Numeric = true;
                        this.table1.Add (this.numberspinbutton);
-                       global::Gtk.Table.TableChild w53 = ((global::Gtk.Table.TableChild)(this.table1 
[this.numberspinbutton]));
-                       w53.TopAttach = ((uint)(3));
-                       w53.BottomAttach = ((uint)(4));
-                       w53.LeftAttach = ((uint)(1));
-                       w53.RightAttach = ((uint)(2));
-                       w53.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w53.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w51 = ((global::Gtk.Table.TableChild)(this.table1 
[this.numberspinbutton]));
+                       w51.TopAttach = ((uint)(3));
+                       w51.BottomAttach = ((uint)(4));
+                       w51.LeftAttach = ((uint)(1));
+                       w51.RightAttach = ((uint)(2));
+                       w51.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w51.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.positionentry = new global::Gtk.Entry ();
                        this.positionentry.CanFocus = true;
@@ -549,13 +543,13 @@ namespace LongoMatch.Gui.Component
                        this.positionentry.IsEditable = true;
                        this.positionentry.InvisibleChar = '●';
                        this.table1.Add (this.positionentry);
-                       global::Gtk.Table.TableChild w54 = ((global::Gtk.Table.TableChild)(this.table1 
[this.positionentry]));
-                       w54.TopAttach = ((uint)(2));
-                       w54.BottomAttach = ((uint)(3));
-                       w54.LeftAttach = ((uint)(1));
-                       w54.RightAttach = ((uint)(2));
-                       w54.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w54.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w52 = ((global::Gtk.Table.TableChild)(this.table1 
[this.positionentry]));
+                       w52.TopAttach = ((uint)(2));
+                       w52.BottomAttach = ((uint)(3));
+                       w52.LeftAttach = ((uint)(1));
+                       w52.RightAttach = ((uint)(2));
+                       w52.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w52.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table1.Gtk.Table+TableChild
                        this.weightspinbutton = new global::Gtk.SpinButton (0, 1000, 1);
                        this.weightspinbutton.CanFocus = true;
@@ -565,29 +559,29 @@ namespace LongoMatch.Gui.Component
                        this.weightspinbutton.Numeric = true;
                        this.weightspinbutton.Value = 80;
                        this.table1.Add (this.weightspinbutton);
-                       global::Gtk.Table.TableChild w55 = ((global::Gtk.Table.TableChild)(this.table1 
[this.weightspinbutton]));
-                       w55.TopAttach = ((uint)(5));
-                       w55.BottomAttach = ((uint)(6));
-                       w55.LeftAttach = ((uint)(1));
-                       w55.RightAttach = ((uint)(2));
-                       w55.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w55.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w53 = ((global::Gtk.Table.TableChild)(this.table1 
[this.weightspinbutton]));
+                       w53.TopAttach = ((uint)(5));
+                       w53.BottomAttach = ((uint)(6));
+                       w53.LeftAttach = ((uint)(1));
+                       w53.RightAttach = ((uint)(2));
+                       w53.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w53.YOptions = ((global::Gtk.AttachOptions)(4));
                        this.playerpropertyhbox.Add (this.table1);
-                       global::Gtk.Box.BoxChild w56 = ((global::Gtk.Box.BoxChild)(this.playerpropertyhbox 
[this.table1]));
-                       w56.Position = 1;
-                       w56.Expand = false;
-                       w56.Fill = false;
+                       global::Gtk.Box.BoxChild w54 = ((global::Gtk.Box.BoxChild)(this.playerpropertyhbox 
[this.table1]));
+                       w54.Position = 1;
+                       w54.Expand = false;
+                       w54.Fill = false;
                        this.playerpropertyalignment.Add (this.playerpropertyhbox);
                        this.playerframe.Add (this.playerpropertyalignment);
                        this.alignment2.Add (this.playerframe);
                        this.hbox4.Add (this.alignment2);
-                       global::Gtk.Box.BoxChild w60 = ((global::Gtk.Box.BoxChild)(this.hbox4 
[this.alignment2]));
-                       w60.Position = 1;
-                       w60.Expand = false;
-                       w60.Fill = false;
+                       global::Gtk.Box.BoxChild w58 = ((global::Gtk.Box.BoxChild)(this.hbox4 
[this.alignment2]));
+                       w58.Position = 1;
+                       w58.Expand = false;
+                       w58.Fill = false;
                        this.vbox3.Add (this.hbox4);
-                       global::Gtk.Box.BoxChild w61 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox4]));
-                       w61.Position = 0;
+                       global::Gtk.Box.BoxChild w59 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox4]));
+                       w59.Position = 0;
                        // Container child vbox3.Gtk.Box+BoxChild
                        this.hbuttonbox2 = new global::Gtk.HButtonBox ();
                        this.hbuttonbox2.Name = "hbuttonbox2";
@@ -598,82 +592,82 @@ namespace LongoMatch.Gui.Component
                        this.savebutton.Name = "savebutton";
                        this.savebutton.UseUnderline = true;
                        // Container child savebutton.Gtk.Container+ContainerChild
-                       global::Gtk.Alignment w62 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+                       global::Gtk.Alignment w60 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
                        // Container child GtkAlignment.Gtk.Container+ContainerChild
-                       global::Gtk.HBox w63 = new global::Gtk.HBox ();
-                       w63.Spacing = 2;
+                       global::Gtk.HBox w61 = new global::Gtk.HBox ();
+                       w61.Spacing = 2;
                        // Container child GtkHBox.Gtk.Container+ContainerChild
-                       global::Gtk.Image w64 = new global::Gtk.Image ();
-                       w64.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", 
global::Gtk.IconSize.Dialog);
-                       w63.Add (w64);
+                       global::Gtk.Image w62 = new global::Gtk.Image ();
+                       w62.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", 
global::Gtk.IconSize.Dialog);
+                       w61.Add (w62);
                        // Container child GtkHBox.Gtk.Container+ContainerChild
-                       global::Gtk.Label w66 = new global::Gtk.Label ();
-                       w66.LabelProp = global::Mono.Unix.Catalog.GetString ("Save template");
-                       w66.UseUnderline = true;
-                       w63.Add (w66);
-                       w62.Add (w63);
-                       this.savebutton.Add (w62);
+                       global::Gtk.Label w64 = new global::Gtk.Label ();
+                       w64.LabelProp = global::Mono.Unix.Catalog.GetString ("Save template");
+                       w64.UseUnderline = true;
+                       w61.Add (w64);
+                       w60.Add (w61);
+                       this.savebutton.Add (w60);
                        this.hbuttonbox2.Add (this.savebutton);
-                       global::Gtk.ButtonBox.ButtonBoxChild w70 = 
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.savebutton]));
-                       w70.Expand = false;
-                       w70.Fill = false;
+                       global::Gtk.ButtonBox.ButtonBoxChild w68 = 
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.savebutton]));
+                       w68.Expand = false;
+                       w68.Fill = false;
                        // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
                        this.newplayerbutton = new global::Gtk.Button ();
                        this.newplayerbutton.CanFocus = true;
                        this.newplayerbutton.Name = "newplayerbutton";
                        this.newplayerbutton.UseUnderline = true;
                        // Container child newplayerbutton.Gtk.Container+ContainerChild
-                       global::Gtk.Alignment w71 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+                       global::Gtk.Alignment w69 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
                        // Container child GtkAlignment.Gtk.Container+ContainerChild
-                       global::Gtk.HBox w72 = new global::Gtk.HBox ();
-                       w72.Spacing = 2;
+                       global::Gtk.HBox w70 = new global::Gtk.HBox ();
+                       w70.Spacing = 2;
                        // Container child GtkHBox.Gtk.Container+ContainerChild
-                       global::Gtk.Image w73 = new global::Gtk.Image ();
-                       w73.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-new", 
global::Gtk.IconSize.Dialog);
-                       w72.Add (w73);
+                       global::Gtk.Image w71 = new global::Gtk.Image ();
+                       w71.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-new", 
global::Gtk.IconSize.Dialog);
+                       w70.Add (w71);
                        // Container child GtkHBox.Gtk.Container+ContainerChild
-                       global::Gtk.Label w75 = new global::Gtk.Label ();
-                       w75.LabelProp = global::Mono.Unix.Catalog.GetString ("New player");
-                       w75.UseUnderline = true;
-                       w72.Add (w75);
-                       w71.Add (w72);
-                       this.newplayerbutton.Add (w71);
+                       global::Gtk.Label w73 = new global::Gtk.Label ();
+                       w73.LabelProp = global::Mono.Unix.Catalog.GetString ("New player");
+                       w73.UseUnderline = true;
+                       w70.Add (w73);
+                       w69.Add (w70);
+                       this.newplayerbutton.Add (w69);
                        this.hbuttonbox2.Add (this.newplayerbutton);
-                       global::Gtk.ButtonBox.ButtonBoxChild w79 = 
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.newplayerbutton]));
-                       w79.Position = 1;
-                       w79.Expand = false;
-                       w79.Fill = false;
+                       global::Gtk.ButtonBox.ButtonBoxChild w77 = 
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.newplayerbutton]));
+                       w77.Position = 1;
+                       w77.Expand = false;
+                       w77.Fill = false;
                        // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
                        this.deletebutton = new global::Gtk.Button ();
                        this.deletebutton.CanFocus = true;
                        this.deletebutton.Name = "deletebutton";
                        this.deletebutton.UseUnderline = true;
                        // Container child deletebutton.Gtk.Container+ContainerChild
-                       global::Gtk.Alignment w80 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+                       global::Gtk.Alignment w78 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
                        // Container child GtkAlignment.Gtk.Container+ContainerChild
-                       global::Gtk.HBox w81 = new global::Gtk.HBox ();
-                       w81.Spacing = 2;
+                       global::Gtk.HBox w79 = new global::Gtk.HBox ();
+                       w79.Spacing = 2;
                        // Container child GtkHBox.Gtk.Container+ContainerChild
-                       global::Gtk.Image w82 = new global::Gtk.Image ();
-                       w82.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-delete", 
global::Gtk.IconSize.Dialog);
-                       w81.Add (w82);
+                       global::Gtk.Image w80 = new global::Gtk.Image ();
+                       w80.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-delete", 
global::Gtk.IconSize.Dialog);
+                       w79.Add (w80);
                        // Container child GtkHBox.Gtk.Container+ContainerChild
-                       global::Gtk.Label w84 = new global::Gtk.Label ();
-                       w84.LabelProp = global::Mono.Unix.Catalog.GetString ("Delete player");
-                       w84.UseUnderline = true;
-                       w81.Add (w84);
-                       w80.Add (w81);
-                       this.deletebutton.Add (w80);
+                       global::Gtk.Label w82 = new global::Gtk.Label ();
+                       w82.LabelProp = global::Mono.Unix.Catalog.GetString ("Delete player");
+                       w82.UseUnderline = true;
+                       w79.Add (w82);
+                       w78.Add (w79);
+                       this.deletebutton.Add (w78);
                        this.hbuttonbox2.Add (this.deletebutton);
-                       global::Gtk.ButtonBox.ButtonBoxChild w88 = 
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.deletebutton]));
-                       w88.Position = 2;
-                       w88.Expand = false;
-                       w88.Fill = false;
+                       global::Gtk.ButtonBox.ButtonBoxChild w86 = 
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.deletebutton]));
+                       w86.Position = 2;
+                       w86.Expand = false;
+                       w86.Fill = false;
                        this.vbox3.Add (this.hbuttonbox2);
-                       global::Gtk.Box.BoxChild w89 = ((global::Gtk.Box.BoxChild)(this.vbox3 
[this.hbuttonbox2]));
-                       w89.Position = 1;
-                       w89.Expand = false;
-                       w89.Fill = false;
+                       global::Gtk.Box.BoxChild w87 = ((global::Gtk.Box.BoxChild)(this.vbox3 
[this.hbuttonbox2]));
+                       w87.Position = 1;
+                       w87.Expand = false;
+                       w87.Fill = false;
                        this.Add (this.vbox3);
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]