[longomatch] Add lastname and nickname for players
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add lastname and nickname for players
- Date: Wed, 24 Sep 2014 20:15:02 +0000 (UTC)
commit 0228fa3f040b444ee85122a64cc80f3c1653da42
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Aug 26 15:57:13 2014 +0200
Add lastname and nickname for players
LongoMatch.Core/Store/Player.cs | 11 +-
LongoMatch.Drawing/CanvasObjects/CategoryLabel.cs | 1 +
LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs | 17 +-
.../LongoMatch.Gui.Component.TeamTemplateEditor.cs | 333 ++++++++++++--------
LongoMatch.GUI/gtk-gui/gui.stetic | 142 +++++++--
5 files changed, 332 insertions(+), 172 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Player.cs b/LongoMatch.Core/Store/Player.cs
index 55d3b04..ea7cdfc 100644
--- a/LongoMatch.Core/Store/Player.cs
+++ b/LongoMatch.Core/Store/Player.cs
@@ -53,7 +53,7 @@ namespace LongoMatch.Store
set;
}
- public string FirstName {
+ public string LastName {
get;
set;
}
@@ -141,7 +141,14 @@ namespace LongoMatch.Store
public override string ToString ()
{
- return String.Format("{0} - {1}", Number, Name);
+ string displayName;
+
+ if (NickName != null) {
+ displayName = NickName;
+ } else {
+ displayName = Name + " " + LastName;
+ }
+ return String.Format("{0} - {1}", Number, displayName);
}
#endregion
diff --git a/LongoMatch.Drawing/CanvasObjects/CategoryLabel.cs
b/LongoMatch.Drawing/CanvasObjects/CategoryLabel.cs
index 015d474..92a0b09 100644
--- a/LongoMatch.Drawing/CanvasObjects/CategoryLabel.cs
+++ b/LongoMatch.Drawing/CanvasObjects/CategoryLabel.cs
@@ -90,6 +90,7 @@ namespace LongoMatch.Drawing.CanvasObjects
tk.FontWeight = FontWeight.Bold;
tk.FontSize = 12;
tk.FillColor = Config.Style.PaletteWidgets;
+ tk.FontAlignment = FontAlignment.Left;
tk.StrokeColor = Config.Style.PaletteWidgets;
tk.DrawText (new Point (to, y), width - to, Height, category.Name);
tk.End ();
diff --git a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
index 019126b..c123b8f 100644
--- a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
@@ -50,6 +50,7 @@ namespace LongoMatch.Gui.Component
this.Build ();
playerimage.Pixbuf = IconTheme.Default.LoadIcon ("longomatch-player-pic", 45,
IconLookupFlags.ForceSvg);
+ playerframe.Sensitive = false;
teamtagger = new TeamTagger (new WidgetWrapper (drawingarea));
teamtagger.PlayersSelectionChangedEvent += HandlePlayersSelectionChangedEvent;
@@ -131,6 +132,8 @@ namespace LongoMatch.Gui.Component
teamnameentry.Changed += HandleEntryChanged;
nameentry.Changed += HandleEntryChanged;
+ lastnameentry.Changed += HandleEntryChanged;
+ nicknameentry.Changed += HandleEntryChanged;
positionentry.Changed += HandleEntryChanged;
numberspinbutton.ValueChanged += HandleEntryChanged;
heightspinbutton.ValueChanged += HandleEntryChanged;
@@ -154,6 +157,10 @@ namespace LongoMatch.Gui.Component
template.TeamName = (sender as Entry).Text;
} else if (sender == nameentry) {
loadedPlayer.Name = (sender as Entry).Text;
+ } else if (sender == lastnameentry) {
+ loadedPlayer.LastName = (sender as Entry).Text;
+ } else if (sender == nicknameentry) {
+ loadedPlayer.NickName = (sender as Entry).Text;
} else if (sender == positionentry) {
loadedPlayer.Position = (sender as Entry).Text;
} else if (sender == numberspinbutton) {
@@ -181,14 +188,16 @@ namespace LongoMatch.Gui.Component
void LoadPlayer (Player p) {
loadedPlayer = p;
- nameentry.Text = p.Name != null ? p.Name : "";
- positionentry.Text = p.Position != null ? p.Position : "";
+ nameentry.Text = p.Name ?? "";
+ lastnameentry.Text = p.LastName ?? "";
+ nicknameentry.Text = p.NickName ?? "";
+ positionentry.Text = p.Position ?? "";
numberspinbutton.Value = p.Number;
heightspinbutton.Value = p.Height;
weightspinbutton.Value = p.Weight;
- nationalityentry.Text = p.Nationality != null ? p.Nationality : "";
+ nationalityentry.Text = p.Nationality ?? "";
bdaydatepicker.Date = p.Birthday;
- mailentry.Text = p.Mail != null ? p.Mail : "";
+ mailentry.Text = p.Mail ?? "";
playerimage.Pixbuf = PlayerPhoto (p);
}
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
index d5c6fa9..891e39f 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TeamTemplateEditor.cs
@@ -44,15 +44,19 @@ namespace LongoMatch.Gui.Component
private global::Gtk.SpinButton heightspinbutton;
private global::Gtk.Label label11;
private global::Gtk.Label label12;
+ private global::Gtk.Label label13;
+ private global::Gtk.Label label14;
private global::Gtk.Label label3;
private global::Gtk.Label label5;
private global::Gtk.Label label6;
private global::Gtk.Label label7;
private global::Gtk.Label label8;
+ private global::Gtk.Entry lastnameentry;
private global::Gtk.Entry mailentry;
private global::Gtk.Label maillabel;
private global::Gtk.Entry nameentry;
private global::Gtk.Entry nationalityentry;
+ private global::Gtk.Entry nicknameentry;
private global::Gtk.SpinButton numberspinbutton;
private global::Gtk.Entry positionentry;
private global::Gtk.SpinButton weightspinbutton;
@@ -281,7 +285,6 @@ namespace LongoMatch.Gui.Component
this.alignment2.Name = "alignment2";
// Container child alignment2.Gtk.Container+ContainerChild
this.playerframe = new global::Gtk.Frame ();
- this.playerframe.Sensitive = false;
this.playerframe.Name = "playerframe";
this.playerframe.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child playerframe.Gtk.Container+ContainerChild
@@ -354,7 +357,7 @@ namespace LongoMatch.Gui.Component
w37.Expand = false;
w37.Fill = false;
// Container child playerpropertyhbox.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(8)), ((uint)(2)), false);
+ this.table1 = new global::Gtk.Table (((uint)(10)), ((uint)(2)), false);
this.table1.Name = "table1";
this.table1.RowSpacing = ((uint)(6));
this.table1.ColumnSpacing = ((uint)(6));
@@ -365,8 +368,8 @@ namespace LongoMatch.Gui.Component
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.TopAttach = ((uint)(8));
+ w38.BottomAttach = ((uint)(9));
w38.LeftAttach = ((uint)(1));
w38.RightAttach = ((uint)(2));
w38.XOptions = ((global::Gtk.AttachOptions)(4));
@@ -382,8 +385,8 @@ namespace LongoMatch.Gui.Component
this.heightspinbutton.Value = 18;
this.table1.Add (this.heightspinbutton);
global::Gtk.Table.TableChild w39 = ((global::Gtk.Table.TableChild)(this.table1
[this.heightspinbutton]));
- w39.TopAttach = ((uint)(4));
- w39.BottomAttach = ((uint)(5));
+ w39.TopAttach = ((uint)(6));
+ w39.BottomAttach = ((uint)(7));
w39.LeftAttach = ((uint)(1));
w39.RightAttach = ((uint)(2));
w39.XOptions = ((global::Gtk.AttachOptions)(4));
@@ -396,8 +399,8 @@ namespace LongoMatch.Gui.Component
this.label11.UseMarkup = true;
this.table1.Add (this.label11);
global::Gtk.Table.TableChild w40 = ((global::Gtk.Table.TableChild)(this.table1
[this.label11]));
- w40.TopAttach = ((uint)(2));
- w40.BottomAttach = ((uint)(3));
+ w40.TopAttach = ((uint)(4));
+ w40.BottomAttach = ((uint)(5));
w40.XOptions = ((global::Gtk.AttachOptions)(4));
w40.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
@@ -410,17 +413,41 @@ namespace LongoMatch.Gui.Component
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.label13 = new global::Gtk.Label ();
+ this.label13.Name = "label13";
+ this.label13.Xalign = 1F;
+ this.label13.LabelProp = global::Mono.Unix.Catalog.GetString ("<span
font_desc=\"10\">Last name</span>");
+ this.label13.UseMarkup = true;
+ this.table1.Add (this.label13);
+ global::Gtk.Table.TableChild w42 = ((global::Gtk.Table.TableChild)(this.table1
[this.label13]));
+ w42.TopAttach = ((uint)(1));
+ w42.BottomAttach = ((uint)(2));
+ w42.XOptions = ((global::Gtk.AttachOptions)(4));
+ w42.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child table1.Gtk.Table+TableChild
+ this.label14 = new global::Gtk.Label ();
+ this.label14.Name = "label14";
+ this.label14.Xalign = 1F;
+ this.label14.LabelProp = global::Mono.Unix.Catalog.GetString ("<span
font_desc=\"10\">Nickname</span>");
+ this.label14.UseMarkup = true;
+ this.table1.Add (this.label14);
+ global::Gtk.Table.TableChild w43 = ((global::Gtk.Table.TableChild)(this.table1
[this.label14]));
+ w43.TopAttach = ((uint)(2));
+ w43.BottomAttach = ((uint)(3));
+ w43.XOptions = ((global::Gtk.AttachOptions)(4));
+ w43.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 ("<span
font_desc=\"10\">Number</span>");
this.label3.UseMarkup = true;
this.table1.Add (this.label3);
- 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));
+ global::Gtk.Table.TableChild w44 = ((global::Gtk.Table.TableChild)(this.table1
[this.label3]));
+ 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.label5 = new global::Gtk.Label ();
this.label5.Name = "label5";
@@ -428,11 +455,11 @@ namespace LongoMatch.Gui.Component
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 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));
+ global::Gtk.Table.TableChild w45 = ((global::Gtk.Table.TableChild)(this.table1
[this.label5]));
+ 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.label6 = new global::Gtk.Label ();
this.label6.Name = "label6";
@@ -440,11 +467,11 @@ namespace LongoMatch.Gui.Component
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 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));
+ global::Gtk.Table.TableChild w46 = ((global::Gtk.Table.TableChild)(this.table1
[this.label6]));
+ w46.TopAttach = ((uint)(7));
+ w46.BottomAttach = ((uint)(8));
+ w46.XOptions = ((global::Gtk.AttachOptions)(4));
+ w46.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.label7 = new global::Gtk.Label ();
this.label7.Name = "label7";
@@ -452,11 +479,11 @@ namespace LongoMatch.Gui.Component
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 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));
+ global::Gtk.Table.TableChild w47 = ((global::Gtk.Table.TableChild)(this.table1
[this.label7]));
+ w47.TopAttach = ((uint)(8));
+ w47.BottomAttach = ((uint)(9));
+ w47.XOptions = ((global::Gtk.AttachOptions)(4));
+ w47.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.label8 = new global::Gtk.Label ();
this.label8.Name = "label8";
@@ -464,11 +491,25 @@ namespace LongoMatch.Gui.Component
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 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));
+ global::Gtk.Table.TableChild w48 = ((global::Gtk.Table.TableChild)(this.table1
[this.label8]));
+ w48.TopAttach = ((uint)(3));
+ w48.BottomAttach = ((uint)(4));
+ w48.XOptions = ((global::Gtk.AttachOptions)(4));
+ w48.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child table1.Gtk.Table+TableChild
+ this.lastnameentry = new global::Gtk.Entry ();
+ this.lastnameentry.CanFocus = true;
+ this.lastnameentry.Name = "lastnameentry";
+ this.lastnameentry.IsEditable = true;
+ this.lastnameentry.InvisibleChar = '●';
+ this.table1.Add (this.lastnameentry);
+ global::Gtk.Table.TableChild w49 = ((global::Gtk.Table.TableChild)(this.table1
[this.lastnameentry]));
+ w49.TopAttach = ((uint)(1));
+ w49.BottomAttach = ((uint)(2));
+ 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.mailentry = new global::Gtk.Entry ();
this.mailentry.CanFocus = true;
@@ -476,13 +517,13 @@ namespace LongoMatch.Gui.Component
this.mailentry.IsEditable = true;
this.mailentry.InvisibleChar = '•';
this.table1.Add (this.mailentry);
- 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));
+ global::Gtk.Table.TableChild w50 = ((global::Gtk.Table.TableChild)(this.table1
[this.mailentry]));
+ w50.TopAttach = ((uint)(9));
+ w50.BottomAttach = ((uint)(10));
+ 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.maillabel = new global::Gtk.Label ();
this.maillabel.Name = "maillabel";
@@ -490,11 +531,11 @@ namespace LongoMatch.Gui.Component
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 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));
+ global::Gtk.Table.TableChild w51 = ((global::Gtk.Table.TableChild)(this.table1
[this.maillabel]));
+ w51.TopAttach = ((uint)(9));
+ w51.BottomAttach = ((uint)(10));
+ w51.XOptions = ((global::Gtk.AttachOptions)(4));
+ w51.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.nameentry = new global::Gtk.Entry ();
this.nameentry.CanFocus = true;
@@ -502,11 +543,11 @@ namespace LongoMatch.Gui.Component
this.nameentry.IsEditable = true;
this.nameentry.InvisibleChar = '●';
this.table1.Add (this.nameentry);
- 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));
+ global::Gtk.Table.TableChild w52 = ((global::Gtk.Table.TableChild)(this.table1
[this.nameentry]));
+ 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.nationalityentry = new global::Gtk.Entry ();
this.nationalityentry.CanFocus = true;
@@ -514,13 +555,27 @@ namespace LongoMatch.Gui.Component
this.nationalityentry.IsEditable = true;
this.nationalityentry.InvisibleChar = '●';
this.table1.Add (this.nationalityentry);
- 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));
+ global::Gtk.Table.TableChild w53 = ((global::Gtk.Table.TableChild)(this.table1
[this.nationalityentry]));
+ 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));
+ // Container child table1.Gtk.Table+TableChild
+ this.nicknameentry = new global::Gtk.Entry ();
+ this.nicknameentry.CanFocus = true;
+ this.nicknameentry.Name = "nicknameentry";
+ this.nicknameentry.IsEditable = true;
+ this.nicknameentry.InvisibleChar = '●';
+ this.table1.Add (this.nicknameentry);
+ global::Gtk.Table.TableChild w54 = ((global::Gtk.Table.TableChild)(this.table1
[this.nicknameentry]));
+ 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));
// Container child table1.Gtk.Table+TableChild
this.numberspinbutton = new global::Gtk.SpinButton (0, 100, 1);
this.numberspinbutton.CanFocus = true;
@@ -529,13 +584,13 @@ namespace LongoMatch.Gui.Component
this.numberspinbutton.ClimbRate = 1;
this.numberspinbutton.Numeric = true;
this.table1.Add (this.numberspinbutton);
- 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));
+ global::Gtk.Table.TableChild w55 = ((global::Gtk.Table.TableChild)(this.table1
[this.numberspinbutton]));
+ 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));
// Container child table1.Gtk.Table+TableChild
this.positionentry = new global::Gtk.Entry ();
this.positionentry.CanFocus = true;
@@ -543,13 +598,13 @@ namespace LongoMatch.Gui.Component
this.positionentry.IsEditable = true;
this.positionentry.InvisibleChar = '●';
this.table1.Add (this.positionentry);
- 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));
+ global::Gtk.Table.TableChild w56 = ((global::Gtk.Table.TableChild)(this.table1
[this.positionentry]));
+ w56.TopAttach = ((uint)(4));
+ w56.BottomAttach = ((uint)(5));
+ w56.LeftAttach = ((uint)(1));
+ w56.RightAttach = ((uint)(2));
+ w56.XOptions = ((global::Gtk.AttachOptions)(4));
+ w56.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.weightspinbutton = new global::Gtk.SpinButton (0, 1000, 1);
this.weightspinbutton.CanFocus = true;
@@ -559,29 +614,29 @@ namespace LongoMatch.Gui.Component
this.weightspinbutton.Numeric = true;
this.weightspinbutton.Value = 80;
this.table1.Add (this.weightspinbutton);
- 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));
+ global::Gtk.Table.TableChild w57 = ((global::Gtk.Table.TableChild)(this.table1
[this.weightspinbutton]));
+ w57.TopAttach = ((uint)(7));
+ w57.BottomAttach = ((uint)(8));
+ w57.LeftAttach = ((uint)(1));
+ w57.RightAttach = ((uint)(2));
+ w57.XOptions = ((global::Gtk.AttachOptions)(4));
+ w57.YOptions = ((global::Gtk.AttachOptions)(4));
this.playerpropertyhbox.Add (this.table1);
- global::Gtk.Box.BoxChild w54 = ((global::Gtk.Box.BoxChild)(this.playerpropertyhbox
[this.table1]));
- w54.Position = 1;
- w54.Expand = false;
- w54.Fill = false;
+ global::Gtk.Box.BoxChild w58 = ((global::Gtk.Box.BoxChild)(this.playerpropertyhbox
[this.table1]));
+ w58.Position = 1;
+ w58.Expand = false;
+ w58.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 w58 = ((global::Gtk.Box.BoxChild)(this.hbox4
[this.alignment2]));
- w58.Position = 1;
- w58.Expand = false;
- w58.Fill = false;
+ global::Gtk.Box.BoxChild w62 = ((global::Gtk.Box.BoxChild)(this.hbox4
[this.alignment2]));
+ w62.Position = 1;
+ w62.Expand = false;
+ w62.Fill = false;
this.vbox3.Add (this.hbox4);
- global::Gtk.Box.BoxChild w59 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox4]));
- w59.Position = 0;
+ global::Gtk.Box.BoxChild w63 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox4]));
+ w63.Position = 0;
// Container child vbox3.Gtk.Box+BoxChild
this.hbuttonbox2 = new global::Gtk.HButtonBox ();
this.hbuttonbox2.Name = "hbuttonbox2";
@@ -592,82 +647,82 @@ namespace LongoMatch.Gui.Component
this.savebutton.Name = "savebutton";
this.savebutton.UseUnderline = true;
// Container child savebutton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w60 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w64 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w61 = new global::Gtk.HBox ();
- w61.Spacing = 2;
+ global::Gtk.HBox w65 = new global::Gtk.HBox ();
+ w65.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w62 = new global::Gtk.Image ();
- w62.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save",
global::Gtk.IconSize.Dialog);
- w61.Add (w62);
+ global::Gtk.Image w66 = new global::Gtk.Image ();
+ w66.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save",
global::Gtk.IconSize.Dialog);
+ w65.Add (w66);
// Container child GtkHBox.Gtk.Container+ContainerChild
- 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);
+ global::Gtk.Label w68 = new global::Gtk.Label ();
+ w68.LabelProp = global::Mono.Unix.Catalog.GetString ("Save template");
+ w68.UseUnderline = true;
+ w65.Add (w68);
+ w64.Add (w65);
+ this.savebutton.Add (w64);
this.hbuttonbox2.Add (this.savebutton);
- global::Gtk.ButtonBox.ButtonBoxChild w68 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.savebutton]));
- w68.Expand = false;
- w68.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w72 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.savebutton]));
+ w72.Expand = false;
+ w72.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 w69 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w73 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w70 = new global::Gtk.HBox ();
- w70.Spacing = 2;
+ global::Gtk.HBox w74 = new global::Gtk.HBox ();
+ w74.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w71 = new global::Gtk.Image ();
- w71.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-new",
global::Gtk.IconSize.Dialog);
- w70.Add (w71);
+ global::Gtk.Image w75 = new global::Gtk.Image ();
+ w75.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-new",
global::Gtk.IconSize.Dialog);
+ w74.Add (w75);
// Container child GtkHBox.Gtk.Container+ContainerChild
- 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);
+ global::Gtk.Label w77 = new global::Gtk.Label ();
+ w77.LabelProp = global::Mono.Unix.Catalog.GetString ("New player");
+ w77.UseUnderline = true;
+ w74.Add (w77);
+ w73.Add (w74);
+ this.newplayerbutton.Add (w73);
this.hbuttonbox2.Add (this.newplayerbutton);
- global::Gtk.ButtonBox.ButtonBoxChild w77 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.newplayerbutton]));
- w77.Position = 1;
- w77.Expand = false;
- w77.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w81 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.newplayerbutton]));
+ w81.Position = 1;
+ w81.Expand = false;
+ w81.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 w78 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w82 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w79 = new global::Gtk.HBox ();
- w79.Spacing = 2;
+ global::Gtk.HBox w83 = new global::Gtk.HBox ();
+ w83.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w80 = new global::Gtk.Image ();
- w80.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-delete",
global::Gtk.IconSize.Dialog);
- w79.Add (w80);
+ global::Gtk.Image w84 = new global::Gtk.Image ();
+ w84.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-delete",
global::Gtk.IconSize.Dialog);
+ w83.Add (w84);
// Container child GtkHBox.Gtk.Container+ContainerChild
- 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);
+ global::Gtk.Label w86 = new global::Gtk.Label ();
+ w86.LabelProp = global::Mono.Unix.Catalog.GetString ("Delete player");
+ w86.UseUnderline = true;
+ w83.Add (w86);
+ w82.Add (w83);
+ this.deletebutton.Add (w82);
this.hbuttonbox2.Add (this.deletebutton);
- global::Gtk.ButtonBox.ButtonBoxChild w86 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.deletebutton]));
- w86.Position = 2;
- w86.Expand = false;
- w86.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w90 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.deletebutton]));
+ w90.Position = 2;
+ w90.Expand = false;
+ w90.Fill = false;
this.vbox3.Add (this.hbuttonbox2);
- global::Gtk.Box.BoxChild w87 = ((global::Gtk.Box.BoxChild)(this.vbox3
[this.hbuttonbox2]));
- w87.Position = 1;
- w87.Expand = false;
- w87.Fill = false;
+ global::Gtk.Box.BoxChild w91 = ((global::Gtk.Box.BoxChild)(this.vbox3
[this.hbuttonbox2]));
+ w91.Position = 1;
+ w91.Expand = false;
+ w91.Fill = false;
this.Add (this.vbox3);
if ((this.Child != null)) {
this.Child.ShowAll ();
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 5238184..a043bbf 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -8017,7 +8017,7 @@ You can continue with the current capture, cancel it or save your project.
<child>
<widget class="Gtk.Table" id="table1">
<property name="MemberName" />
- <property name="NRows">8</property>
+ <property name="NRows">10</property>
<property name="NColumns">2</property>
<property name="RowSpacing">6</property>
<property name="ColumnSpacing">6</property>
@@ -8028,8 +8028,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="Date">0</property>
</widget>
<packing>
- <property name="TopAttach">6</property>
- <property name="BottomAttach">7</property>
+ <property name="TopAttach">8</property>
+ <property name="BottomAttach">9</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -8056,8 +8056,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="Value">18</property>
</widget>
<packing>
- <property name="TopAttach">4</property>
- <property name="BottomAttach">5</property>
+ <property name="TopAttach">6</property>
+ <property name="BottomAttach">7</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -8079,8 +8079,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
+ <property name="TopAttach">4</property>
+ <property name="BottomAttach">5</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8111,6 +8111,48 @@ You can continue with the current capture, cancel it or save your project.
</packing>
</child>
<child>
+ <widget class="Gtk.Label" id="label13">
+ <property name="MemberName" />
+ <property name="Xalign">1</property>
+ <property name="LabelProp" translatable="yes"><span
font_desc="10">Last name</span></property>
+ <property name="UseMarkup">True</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">1</property>
+ <property name="BottomAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="label14">
+ <property name="MemberName" />
+ <property name="Xalign">1</property>
+ <property name="LabelProp" translatable="yes"><span
font_desc="10">Nickname</span></property>
+ <property name="UseMarkup">True</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">2</property>
+ <property name="BottomAttach">3</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
<widget class="Gtk.Label" id="label3">
<property name="MemberName" />
<property name="Xalign">1</property>
@@ -8118,8 +8160,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
+ <property name="TopAttach">5</property>
+ <property name="BottomAttach">6</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8139,8 +8181,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
- <property name="TopAttach">4</property>
- <property name="BottomAttach">5</property>
+ <property name="TopAttach">6</property>
+ <property name="BottomAttach">7</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8160,8 +8202,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
- <property name="TopAttach">5</property>
- <property name="BottomAttach">6</property>
+ <property name="TopAttach">7</property>
+ <property name="BottomAttach">8</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8181,8 +8223,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
- <property name="TopAttach">6</property>
- <property name="BottomAttach">7</property>
+ <property name="TopAttach">8</property>
+ <property name="BottomAttach">9</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8202,8 +8244,31 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
+ <property name="TopAttach">3</property>
+ <property name="BottomAttach">4</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Entry" id="lastnameentry">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="IsEditable">True</property>
+ <property name="InvisibleChar">●</property>
+ </widget>
+ <packing>
<property name="TopAttach">1</property>
<property name="BottomAttach">2</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8223,8 +8288,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="InvisibleChar">•</property>
</widget>
<packing>
- <property name="TopAttach">7</property>
- <property name="BottomAttach">8</property>
+ <property name="TopAttach">9</property>
+ <property name="BottomAttach">10</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -8246,8 +8311,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="UseMarkup">True</property>
</widget>
<packing>
- <property name="TopAttach">7</property>
- <property name="BottomAttach">8</property>
+ <property name="TopAttach">9</property>
+ <property name="BottomAttach">10</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
@@ -8288,8 +8353,31 @@ You can continue with the current capture, cancel it or save your project.
<property name="InvisibleChar">●</property>
</widget>
<packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
+ <property name="TopAttach">3</property>
+ <property name="BottomAttach">4</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Entry" id="nicknameentry">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="IsEditable">True</property>
+ <property name="InvisibleChar">●</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">2</property>
+ <property name="BottomAttach">3</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -8314,8 +8402,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="Numeric">True</property>
</widget>
<packing>
- <property name="TopAttach">3</property>
- <property name="BottomAttach">4</property>
+ <property name="TopAttach">5</property>
+ <property name="BottomAttach">6</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -8337,8 +8425,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="InvisibleChar">●</property>
</widget>
<packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
+ <property name="TopAttach">4</property>
+ <property name="BottomAttach">5</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
@@ -8364,8 +8452,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="Value">80</property>
</widget>
<packing>
- <property name="TopAttach">5</property>
- <property name="BottomAttach">6</property>
+ <property name="TopAttach">7</property>
+ <property name="BottomAttach">8</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]