[longomatch/is_playing] Add a new property to choose whether a player is to be shown in the players list



commit 6fd6fad6bf0593d6b1c009fbc49e9f9f12a2b977
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Nov 12 00:16:07 2010 +0100

    Add a new property to choose whether a player is to be shown in the players list

 LongoMatch/DB/TeamTemplate.cs                      |    2 +-
 LongoMatch/Gui/Component/PlayerProperties.cs       |    8 +
 .../Gui/TreeView/PlayerPropertiesTreeView.cs       |   14 ++
 LongoMatch/Time/Player.cs                          |   19 +++-
 .../LongoMatch.Gui.Component.PlayerProperties.cs   |  135 ++++++++++++--------
 .../LongoMatch.Gui.Dialog.EditPlayerDialog.cs      |    4 +-
 LongoMatch/gtk-gui/gui.stetic                      |  106 +++++++++++-----
 LongoMatch/gtk-gui/objects.xml                     |   16 +-
 8 files changed, 208 insertions(+), 96 deletions(-)
---
diff --git a/LongoMatch/DB/TeamTemplate.cs b/LongoMatch/DB/TeamTemplate.cs
index cfd5735..cac286f 100644
--- a/LongoMatch/DB/TeamTemplate.cs
+++ b/LongoMatch/DB/TeamTemplate.cs
@@ -47,7 +47,7 @@ namespace LongoMatch.DB
 
 		public void CreateDefaultTemplate(int playersCount) {
 			for (int i=0; i<playersCount;i++) {
-				playersList.Add(new Player("Player "+i, new DateTime(),"", 0,0,"",i,null));
+				playersList.Add(new Player("Player "+i, new DateTime(),"", 0,0,"",i,null, true));
 			}
 		}
 
diff --git a/LongoMatch/Gui/Component/PlayerProperties.cs b/LongoMatch/Gui/Component/PlayerProperties.cs
index fc9994d..182b95f 100644
--- a/LongoMatch/Gui/Component/PlayerProperties.cs
+++ b/LongoMatch/Gui/Component/PlayerProperties.cs
@@ -62,6 +62,7 @@ namespace LongoMatch.Gui.Component
 				weightspinbutton.Value = value.Weight;
 				heightspinbutton.Value = value.Height;
 				image.Pixbuf = value.Photo;
+				playscombobox.Active = value.IsPlaying ? 0 : 1;
 			}
 			get {
 				return player;
@@ -162,5 +163,12 @@ namespace LongoMatch.Gui.Component
 		{
 			player.Nationality = nationalityentry.Text;
 		}
+		
+		protected virtual void OnPlayscomboboxChanged (object sender, System.EventArgs e)
+		{
+			player.IsPlaying = playscombobox.ActiveText != Catalog.GetString("No");
+		}
+		
+		
 	}
 }
diff --git a/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs b/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
index b99fee2..0d9e2d3 100644
--- a/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
+++ b/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
@@ -51,6 +51,11 @@ namespace LongoMatch.Gui.Component
 			Gtk.CellRendererText nameCell = new Gtk.CellRendererText();
 			nameColumn.PackStart(nameCell, true);
 			
+			Gtk.TreeViewColumn playsColumn = new Gtk.TreeViewColumn();
+			playsColumn.Title = Catalog.GetString("Play this match");
+			Gtk.CellRendererText playCell = new Gtk.CellRendererText();
+			playsColumn.PackStart(playCell, true);
+			
 			Gtk.TreeViewColumn birthdayColumn = new Gtk.TreeViewColumn();
 			birthdayColumn.Title = Catalog.GetString("Date of Birth");
 			Gtk.CellRendererText birthdayCell = new Gtk.CellRendererText();
@@ -83,6 +88,7 @@ namespace LongoMatch.Gui.Component
 
 			photoColumn.SetCellDataFunc(photoCell, new Gtk.TreeCellDataFunc(RenderPhoto));
 			nameColumn.SetCellDataFunc(nameCell, new Gtk.TreeCellDataFunc(RenderName));
+			playsColumn.SetCellDataFunc(playCell, new Gtk.TreeCellDataFunc(RenderPlay));
 			nationColumn.SetCellDataFunc(nationCell, new Gtk.TreeCellDataFunc(RenderNationality));
 			positionColumn.SetCellDataFunc(positionCell, new Gtk.TreeCellDataFunc(RenderPosition));
 			numberColumn.SetCellDataFunc(numberCell, new Gtk.TreeCellDataFunc(RenderNumber));
@@ -92,6 +98,7 @@ namespace LongoMatch.Gui.Component
 
 			AppendColumn(photoColumn);
 			AppendColumn(nameColumn);
+			AppendColumn(playsColumn);
 			AppendColumn(numberColumn);
 			AppendColumn(positionColumn);
 			AppendColumn(heightColumn);
@@ -113,6 +120,13 @@ namespace LongoMatch.Gui.Component
 
 			(cell as Gtk.CellRendererText).Text = player.Name;
 		}
+		
+		private void RenderPlay(Gtk.TreeViewColumn column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
+		{
+			Player player = (Player) model.GetValue(iter, 0);
+
+			(cell as Gtk.CellRendererText).Text = player.IsPlaying ? Catalog.GetString("Yes") : Catalog.GetString("no");
+		}
 
 		private void RenderNationality(Gtk.TreeViewColumn column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter)
 		{
diff --git a/LongoMatch/Time/Player.cs b/LongoMatch/Time/Player.cs
index 911b56d..4ff1ded 100644
--- a/LongoMatch/Time/Player.cs
+++ b/LongoMatch/Time/Player.cs
@@ -36,6 +36,8 @@ namespace LongoMatch.TimeNodes
 		private int weight;
 		private DateTime birthday;
 		private String nationality;
+		/* Added in 0.16.4 */
+		private bool isPlaying;
 
 		/// <summary>
 		/// Creates a new player
@@ -67,7 +69,7 @@ namespace LongoMatch.TimeNodes
 		#region Constructors
 		public Player(string name, DateTime birthday, String nationality, 
 		              float height, int weight, string position,
-		              int number, Pixbuf photo)
+		              int number, Pixbuf photo, bool isPlaying)
 		{
 			this.name = name;
 			this.birthday = birthday;
@@ -76,6 +78,7 @@ namespace LongoMatch.TimeNodes
 			this.weight = weight;
 			this.position = position;
 			this.number = number;
+			this.isPlaying = isPlaying;
 			Photo = photo;
 		}
 		#endregion
@@ -182,6 +185,20 @@ namespace LongoMatch.TimeNodes
 				weight = value;
 			}
 		}
+		
+		/// <value>
+		/// A tema can have several players, but not all of them
+		/// play in the same match,. This allow reusing the same
+		/// template in a team, definning if this plays plays or not
+		/// </value>
+		public bool IsPlaying{
+			get {
+				return isPlaying;
+			}
+			set {
+				isPlaying = value;
+			}
+		}
 		#endregion
 	}
 }
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs
index bf77393..33aa7ec 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs
@@ -36,12 +36,16 @@ namespace LongoMatch.Gui.Component
 
 		private global::Gtk.Label label8;
 
+		private global::Gtk.Label label9;
+
 		private global::Gtk.Entry nameentry;
 
 		private global::Gtk.Entry nationalityentry;
 
 		private global::Gtk.SpinButton numberspinbutton;
 
+		private global::Gtk.ComboBox playscombobox;
+
 		private global::Gtk.Entry positionentry;
 
 		private global::Gtk.SpinButton weightspinbutton;
@@ -53,7 +57,7 @@ namespace LongoMatch.Gui.Component
 			global::Stetic.BinContainer.Attach (this);
 			this.Name = "LongoMatch.Gui.Component.PlayerProperties";
 			// Container child LongoMatch.Gui.Component.PlayerProperties.Gtk.Container+ContainerChild
-			this.table1 = new global::Gtk.Table (((uint)(8)), ((uint)(2)), false);
+			this.table1 = new global::Gtk.Table (((uint)(9)), ((uint)(2)), false);
 			this.table1.Name = "table1";
 			this.table1.RowSpacing = ((uint)(6));
 			this.table1.ColumnSpacing = ((uint)(6));
@@ -81,8 +85,8 @@ namespace LongoMatch.Gui.Component
 			w2.Fill = false;
 			this.table1.Add (this.hbox1);
 			global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox1]));
-			w3.TopAttach = ((uint)(7));
-			w3.BottomAttach = ((uint)(8));
+			w3.TopAttach = ((uint)(8));
+			w3.BottomAttach = ((uint)(9));
 			w3.LeftAttach = ((uint)(1));
 			w3.RightAttach = ((uint)(2));
 			w3.XOptions = ((global::Gtk.AttachOptions)(4));
@@ -110,8 +114,8 @@ namespace LongoMatch.Gui.Component
 			w5.Fill = false;
 			this.table1.Add (this.hbox2);
 			global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox2]));
-			w6.TopAttach = ((uint)(6));
-			w6.BottomAttach = ((uint)(7));
+			w6.TopAttach = ((uint)(7));
+			w6.BottomAttach = ((uint)(8));
 			w6.LeftAttach = ((uint)(1));
 			w6.RightAttach = ((uint)(2));
 			w6.XOptions = ((global::Gtk.AttachOptions)(4));
@@ -127,8 +131,8 @@ namespace LongoMatch.Gui.Component
 			this.heightspinbutton.Value = 18;
 			this.table1.Add (this.heightspinbutton);
 			global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.heightspinbutton]));
-			w7.TopAttach = ((uint)(3));
-			w7.BottomAttach = ((uint)(4));
+			w7.TopAttach = ((uint)(4));
+			w7.BottomAttach = ((uint)(5));
 			w7.LeftAttach = ((uint)(1));
 			w7.RightAttach = ((uint)(2));
 			w7.XOptions = ((global::Gtk.AttachOptions)(4));
@@ -147,8 +151,8 @@ namespace LongoMatch.Gui.Component
 			this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Position:");
 			this.table1.Add (this.label2);
 			global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.label2]));
-			w9.TopAttach = ((uint)(1));
-			w9.BottomAttach = ((uint)(2));
+			w9.TopAttach = ((uint)(2));
+			w9.BottomAttach = ((uint)(3));
 			w9.XOptions = ((global::Gtk.AttachOptions)(4));
 			w9.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
@@ -157,8 +161,8 @@ namespace LongoMatch.Gui.Component
 			this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Number:");
 			this.table1.Add (this.label3);
 			global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.label3]));
-			w10.TopAttach = ((uint)(2));
-			w10.BottomAttach = ((uint)(3));
+			w10.TopAttach = ((uint)(3));
+			w10.BottomAttach = ((uint)(4));
 			w10.XOptions = ((global::Gtk.AttachOptions)(4));
 			w10.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
@@ -167,8 +171,8 @@ namespace LongoMatch.Gui.Component
 			this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Photo:");
 			this.table1.Add (this.label4);
 			global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.label4]));
-			w11.TopAttach = ((uint)(7));
-			w11.BottomAttach = ((uint)(8));
+			w11.TopAttach = ((uint)(8));
+			w11.BottomAttach = ((uint)(9));
 			w11.XOptions = ((global::Gtk.AttachOptions)(4));
 			w11.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
@@ -177,8 +181,8 @@ namespace LongoMatch.Gui.Component
 			this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Height");
 			this.table1.Add (this.label5);
 			global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.label5]));
-			w12.TopAttach = ((uint)(3));
-			w12.BottomAttach = ((uint)(4));
+			w12.TopAttach = ((uint)(4));
+			w12.BottomAttach = ((uint)(5));
 			w12.XOptions = ((global::Gtk.AttachOptions)(4));
 			w12.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
@@ -187,8 +191,8 @@ namespace LongoMatch.Gui.Component
 			this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Weight");
 			this.table1.Add (this.label6);
 			global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.label6]));
-			w13.TopAttach = ((uint)(4));
-			w13.BottomAttach = ((uint)(5));
+			w13.TopAttach = ((uint)(5));
+			w13.BottomAttach = ((uint)(6));
 			w13.XOptions = ((global::Gtk.AttachOptions)(4));
 			w13.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
@@ -197,8 +201,8 @@ namespace LongoMatch.Gui.Component
 			this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Birth day");
 			this.table1.Add (this.label7);
 			global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.label7]));
-			w14.TopAttach = ((uint)(6));
-			w14.BottomAttach = ((uint)(7));
+			w14.TopAttach = ((uint)(7));
+			w14.BottomAttach = ((uint)(8));
 			w14.XOptions = ((global::Gtk.AttachOptions)(4));
 			w14.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
@@ -207,22 +211,32 @@ namespace LongoMatch.Gui.Component
 			this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("Nationality");
 			this.table1.Add (this.label8);
 			global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.label8]));
-			w15.TopAttach = ((uint)(5));
-			w15.BottomAttach = ((uint)(6));
+			w15.TopAttach = ((uint)(6));
+			w15.BottomAttach = ((uint)(7));
 			w15.XOptions = ((global::Gtk.AttachOptions)(4));
 			w15.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
+			this.label9 = new global::Gtk.Label ();
+			this.label9.Name = "label9";
+			this.label9.LabelProp = global::Mono.Unix.Catalog.GetString ("Plays this match:");
+			this.table1.Add (this.label9);
+			global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1[this.label9]));
+			w16.TopAttach = ((uint)(1));
+			w16.BottomAttach = ((uint)(2));
+			w16.XOptions = ((global::Gtk.AttachOptions)(4));
+			w16.YOptions = ((global::Gtk.AttachOptions)(4));
+			// Container child table1.Gtk.Table+TableChild
 			this.nameentry = new global::Gtk.Entry ();
 			this.nameentry.CanFocus = true;
 			this.nameentry.Name = "nameentry";
 			this.nameentry.IsEditable = true;
 			this.nameentry.InvisibleChar = 'â??';
 			this.table1.Add (this.nameentry);
-			global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1[this.nameentry]));
-			w16.LeftAttach = ((uint)(1));
-			w16.RightAttach = ((uint)(2));
-			w16.XOptions = ((global::Gtk.AttachOptions)(4));
-			w16.YOptions = ((global::Gtk.AttachOptions)(4));
+			global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.nameentry]));
+			w17.LeftAttach = ((uint)(1));
+			w17.RightAttach = ((uint)(2));
+			w17.XOptions = ((global::Gtk.AttachOptions)(4));
+			w17.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
 			this.nationalityentry = new global::Gtk.Entry ();
 			this.nationalityentry.CanFocus = true;
@@ -230,13 +244,13 @@ namespace LongoMatch.Gui.Component
 			this.nationalityentry.IsEditable = true;
 			this.nationalityentry.InvisibleChar = 'â??';
 			this.table1.Add (this.nationalityentry);
-			global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.nationalityentry]));
-			w17.TopAttach = ((uint)(5));
-			w17.BottomAttach = ((uint)(6));
-			w17.LeftAttach = ((uint)(1));
-			w17.RightAttach = ((uint)(2));
-			w17.XOptions = ((global::Gtk.AttachOptions)(4));
-			w17.YOptions = ((global::Gtk.AttachOptions)(4));
+			global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table1[this.nationalityentry]));
+			w18.TopAttach = ((uint)(6));
+			w18.BottomAttach = ((uint)(7));
+			w18.LeftAttach = ((uint)(1));
+			w18.RightAttach = ((uint)(2));
+			w18.XOptions = ((global::Gtk.AttachOptions)(4));
+			w18.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
 			this.numberspinbutton = new global::Gtk.SpinButton (0, 100, 1);
 			this.numberspinbutton.CanFocus = true;
@@ -245,12 +259,26 @@ namespace LongoMatch.Gui.Component
 			this.numberspinbutton.ClimbRate = 1;
 			this.numberspinbutton.Numeric = true;
 			this.table1.Add (this.numberspinbutton);
-			global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table1[this.numberspinbutton]));
-			w18.TopAttach = ((uint)(2));
-			w18.BottomAttach = ((uint)(3));
-			w18.LeftAttach = ((uint)(1));
-			w18.RightAttach = ((uint)(2));
-			w18.YOptions = ((global::Gtk.AttachOptions)(4));
+			global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1[this.numberspinbutton]));
+			w19.TopAttach = ((uint)(3));
+			w19.BottomAttach = ((uint)(4));
+			w19.LeftAttach = ((uint)(1));
+			w19.RightAttach = ((uint)(2));
+			w19.YOptions = ((global::Gtk.AttachOptions)(4));
+			// Container child table1.Gtk.Table+TableChild
+			this.playscombobox = global::Gtk.ComboBox.NewText ();
+			this.playscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("Yes"));
+			this.playscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("No"));
+			this.playscombobox.Name = "playscombobox";
+			this.playscombobox.Active = 0;
+			this.table1.Add (this.playscombobox);
+			global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.table1[this.playscombobox]));
+			w20.TopAttach = ((uint)(1));
+			w20.BottomAttach = ((uint)(2));
+			w20.LeftAttach = ((uint)(1));
+			w20.RightAttach = ((uint)(2));
+			w20.XOptions = ((global::Gtk.AttachOptions)(4));
+			w20.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
 			this.positionentry = new global::Gtk.Entry ();
 			this.positionentry.CanFocus = true;
@@ -258,13 +286,13 @@ namespace LongoMatch.Gui.Component
 			this.positionentry.IsEditable = true;
 			this.positionentry.InvisibleChar = 'â??';
 			this.table1.Add (this.positionentry);
-			global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1[this.positionentry]));
-			w19.TopAttach = ((uint)(1));
-			w19.BottomAttach = ((uint)(2));
-			w19.LeftAttach = ((uint)(1));
-			w19.RightAttach = ((uint)(2));
-			w19.XOptions = ((global::Gtk.AttachOptions)(4));
-			w19.YOptions = ((global::Gtk.AttachOptions)(4));
+			global::Gtk.Table.TableChild w21 = ((global::Gtk.Table.TableChild)(this.table1[this.positionentry]));
+			w21.TopAttach = ((uint)(2));
+			w21.BottomAttach = ((uint)(3));
+			w21.LeftAttach = ((uint)(1));
+			w21.RightAttach = ((uint)(2));
+			w21.XOptions = ((global::Gtk.AttachOptions)(4));
+			w21.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
 			this.weightspinbutton = new global::Gtk.SpinButton (0, 100, 1);
 			this.weightspinbutton.CanFocus = true;
@@ -274,13 +302,13 @@ namespace LongoMatch.Gui.Component
 			this.weightspinbutton.Numeric = true;
 			this.weightspinbutton.Value = 80;
 			this.table1.Add (this.weightspinbutton);
-			global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.table1[this.weightspinbutton]));
-			w20.TopAttach = ((uint)(4));
-			w20.BottomAttach = ((uint)(5));
-			w20.LeftAttach = ((uint)(1));
-			w20.RightAttach = ((uint)(2));
-			w20.XOptions = ((global::Gtk.AttachOptions)(4));
-			w20.YOptions = ((global::Gtk.AttachOptions)(4));
+			global::Gtk.Table.TableChild w22 = ((global::Gtk.Table.TableChild)(this.table1[this.weightspinbutton]));
+			w22.TopAttach = ((uint)(5));
+			w22.BottomAttach = ((uint)(6));
+			w22.LeftAttach = ((uint)(1));
+			w22.RightAttach = ((uint)(2));
+			w22.XOptions = ((global::Gtk.AttachOptions)(4));
+			w22.YOptions = ((global::Gtk.AttachOptions)(4));
 			this.Add (this.table1);
 			if ((this.Child != null)) {
 				this.Child.ShowAll ();
@@ -288,6 +316,7 @@ namespace LongoMatch.Gui.Component
 			this.Hide ();
 			this.weightspinbutton.ValueChanged += new global::System.EventHandler (this.OnWeightspinbuttonValueChanged);
 			this.positionentry.Changed += new global::System.EventHandler (this.OnPositionentryChanged);
+			this.playscombobox.Changed += new global::System.EventHandler (this.OnPlayscomboboxChanged);
 			this.numberspinbutton.EditingDone += new global::System.EventHandler (this.OnNumberspinbuttonChanged);
 			this.numberspinbutton.ValueChanged += new global::System.EventHandler (this.OnNumberspinbuttonValueChanged);
 			this.nationalityentry.Changed += new global::System.EventHandler (this.OnNationalityentryChanged);
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EditPlayerDialog.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EditPlayerDialog.cs
index 4a51799..2649897 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EditPlayerDialog.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EditPlayerDialog.cs
@@ -51,8 +51,8 @@ namespace LongoMatch.Gui.Dialog
 			if ((this.Child != null)) {
 				this.Child.ShowAll ();
 			}
-			this.DefaultWidth = 254;
-			this.DefaultHeight = 206;
+			this.DefaultWidth = 257;
+			this.DefaultHeight = 355;
 			this.Show ();
 		}
 	}
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index bb80359..f22a5de 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -3687,13 +3687,13 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.PlayerProperties" design-size="270 253">
+  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.PlayerProperties" design-size="270 286">
     <property name="MemberName" />
     <property name="Visible">False</property>
     <child>
       <widget class="Gtk.Table" id="table1">
         <property name="MemberName" />
-        <property name="NRows">8</property>
+        <property name="NRows">9</property>
         <property name="NColumns">2</property>
         <property name="RowSpacing">6</property>
         <property name="ColumnSpacing">6</property>
@@ -3729,8 +3729,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             </child>
           </widget>
           <packing>
-            <property name="TopAttach">7</property>
-            <property name="BottomAttach">8</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>
@@ -3775,8 +3775,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             </child>
           </widget>
           <packing>
-            <property name="TopAttach">6</property>
-            <property name="BottomAttach">7</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>
@@ -3804,8 +3804,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <signal name="ValueChanged" handler="OnHeightspinbuttonValueChanged" />
           </widget>
           <packing>
-            <property name="TopAttach">3</property>
-            <property name="BottomAttach">4</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>
@@ -3842,8 +3842,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Position:</property>
           </widget>
           <packing>
-            <property name="TopAttach">1</property>
-            <property name="BottomAttach">2</property>
+            <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>
@@ -3861,8 +3861,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Number:</property>
           </widget>
           <packing>
-            <property name="TopAttach">2</property>
-            <property name="BottomAttach">3</property>
+            <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>
@@ -3880,8 +3880,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Photo:</property>
           </widget>
           <packing>
-            <property name="TopAttach">7</property>
-            <property name="BottomAttach">8</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>
@@ -3899,8 +3899,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Height</property>
           </widget>
           <packing>
-            <property name="TopAttach">3</property>
-            <property name="BottomAttach">4</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>
@@ -3918,8 +3918,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Weight</property>
           </widget>
           <packing>
-            <property name="TopAttach">4</property>
-            <property name="BottomAttach">5</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>
@@ -3937,8 +3937,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Birth day</property>
           </widget>
           <packing>
-            <property name="TopAttach">6</property>
-            <property name="BottomAttach">7</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>
@@ -3956,8 +3956,27 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <property name="LabelProp" translatable="yes">Nationality</property>
           </widget>
           <packing>
-            <property name="TopAttach">5</property>
-            <property name="BottomAttach">6</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>
+            <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="label9">
+            <property name="MemberName" />
+            <property name="LabelProp" translatable="yes">Plays this match:</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>
@@ -4000,8 +4019,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <signal name="Changed" handler="OnNationalityentryChanged" />
           </widget>
           <packing>
-            <property name="TopAttach">5</property>
-            <property name="BottomAttach">6</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>
@@ -4028,8 +4047,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <signal name="ValueChanged" handler="OnNumberspinbuttonValueChanged" />
           </widget>
           <packing>
-            <property name="TopAttach">2</property>
-            <property name="BottomAttach">3</property>
+            <property name="TopAttach">3</property>
+            <property name="BottomAttach">4</property>
             <property name="LeftAttach">1</property>
             <property name="RightAttach">2</property>
             <property name="AutoSize">False</property>
@@ -4043,6 +4062,31 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
           </packing>
         </child>
         <child>
+          <widget class="Gtk.ComboBox" id="playscombobox">
+            <property name="MemberName" />
+            <property name="IsTextCombo">True</property>
+            <property name="Items" translatable="yes">Yes
+No</property>
+            <property name="Active">0</property>
+            <signal name="Changed" handler="OnPlayscomboboxChanged" />
+          </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">False</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="positionentry">
             <property name="MemberName" />
             <property name="CanFocus">True</property>
@@ -4051,8 +4095,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <signal name="Changed" handler="OnPositionentryChanged" />
           </widget>
           <packing>
-            <property name="TopAttach">1</property>
-            <property name="BottomAttach">2</property>
+            <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>
@@ -4079,8 +4123,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <signal name="ValueChanged" handler="OnWeightspinbuttonValueChanged" />
           </widget>
           <packing>
-            <property name="TopAttach">4</property>
-            <property name="BottomAttach">5</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>
@@ -5096,7 +5140,7 @@ Show-&gt;&lt;b&gt; S&lt;/b&gt;
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.EditPlayerDialog" design-size="254 206">
+  <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.EditPlayerDialog" design-size="257 355">
     <property name="MemberName" />
     <property name="Title" translatable="yes">Player Details</property>
     <property name="Icon">resource:longomatch.png</property>
diff --git a/LongoMatch/gtk-gui/objects.xml b/LongoMatch/gtk-gui/objects.xml
index 567c155..45894a6 100644
--- a/LongoMatch/gtk-gui/objects.xml
+++ b/LongoMatch/gtk-gui/objects.xml
@@ -147,10 +147,6 @@
       </itemgroup>
     </signals>
   </object>
-  <object type="LongoMatch.Gui.Popup.TransparentDrawingArea" palette-category="General" allow-children="false" base-type="Gtk.Window">
-    <itemgroups />
-    <signals />
-  </object>
   <object type="LongoMatch.Gui.Component.DrawingToolBox" palette-category="General" allow-children="false" base-type="Gtk.Bin">
     <itemgroups />
     <signals>
@@ -172,10 +168,6 @@
     </itemgroups>
     <signals />
   </object>
-  <object type="LongoMatch.Gui.Component.TaggerWidget" palette-category="General" allow-children="false" base-type="Gtk.Bin">
-    <itemgroups />
-    <signals />
-  </object>
   <object type="LongoMatch.Gui.Component.PlayListWidget" palette-category="LongoMatch" allow-children="false" base-type="Gtk.Bin">
     <itemgroups />
     <signals>
@@ -226,4 +218,12 @@
     <itemgroups />
     <signals />
   </object>
+  <object type="LongoMatch.Gui.Component.TaggerWidget" palette-category="General" allow-children="false" base-type="Gtk.Bin">
+    <itemgroups />
+    <signals />
+  </object>
+  <object type="LongoMatch.Gui.Popup.TransparentDrawingArea" palette-category="General" allow-children="false" base-type="Gtk.Window">
+    <itemgroups />
+    <signals />
+  </object>
 </objects>
\ No newline at end of file



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