[longomatch/redesign: 72/96] Small fixes after rebasing against master



commit 4a57e219c6ef451701f63a349f9dbe9902ca41d1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Feb 6 02:01:29 2011 +0100

    Small fixes after rebasing against master

 LongoMatch/Gui/Component/CategoriesScale.cs        |    8 ++++----
 LongoMatch/Gui/Component/PlayerProperties.cs       |    4 ++--
 LongoMatch/Gui/Component/TimeLineWidget.cs         |    4 ----
 LongoMatch/Gui/Component/TimeScale.cs              |    4 ++--
 .../Gui/TreeView/PlayerPropertiesTreeView.cs       |    2 +-
 LongoMatch/LongoMatch.mdp                          |    7 +------
 6 files changed, 10 insertions(+), 19 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/CategoriesScale.cs b/LongoMatch/Gui/Component/CategoriesScale.cs
index 111c284..226e32b 100644
--- a/LongoMatch/Gui/Component/CategoriesScale.cs
+++ b/LongoMatch/Gui/Component/CategoriesScale.cs
@@ -21,8 +21,8 @@ using Gtk;
 using Gdk;
 using Pango;
 using LongoMatch.Common;
-using LongoMatch.TimeNodes;
-using LongoMatch.DB;
+using LongoMatch.Store;
+using LongoMatch.Store.Templates;
 
 namespace LongoMatch.Gui.Component
 {
@@ -43,7 +43,7 @@ namespace LongoMatch.Gui.Component
 			layout.Alignment = Pango.Alignment.Left;
 		}
 		
-		public Sections Categories {
+		public Categories Categories {
 			get;
 			set;
 		}	
@@ -73,7 +73,7 @@ namespace LongoMatch.Gui.Component
 				return;
 			
 			using(Cairo.Context g = Gdk.CairoHelper.Create(win)) {
-				foreach (SectionsTimeNode cat in Categories.SectionsTimeNodes) {
+				foreach (Category cat in Categories) {
 					int y = LINE_WIDTH/2 + i * SECTION_HEIGHT - (int)Scroll;
 					CairoUtils.DrawRoundedRectangle (g, 2, y + 3 , Allocation.Width - 3,
 					                                 SECTION_HEIGHT - 3, SECTION_HEIGHT/7,
diff --git a/LongoMatch/Gui/Component/PlayerProperties.cs b/LongoMatch/Gui/Component/PlayerProperties.cs
index c2525d0..7a8760b 100644
--- a/LongoMatch/Gui/Component/PlayerProperties.cs
+++ b/LongoMatch/Gui/Component/PlayerProperties.cs
@@ -62,7 +62,7 @@ namespace LongoMatch.Gui.Component
 				weightspinbutton.Value = value.Weight;
 				heightspinbutton.Value = value.Height;
 				image.Pixbuf = value.Photo;
-				playscombobox.Active = value.Discarded ? 1 : 0;
+				playscombobox.Active = value.Playing ? 0 : 1;
 			}
 			get {
 				return player;
@@ -166,7 +166,7 @@ namespace LongoMatch.Gui.Component
 		
 		protected virtual void OnPlayscomboboxChanged (object sender, System.EventArgs e)
 		{
-			player.Discarded = playscombobox.ActiveText == Catalog.GetString("No");
+			player.Playing = playscombobox.ActiveText == Catalog.GetString("Yes");
 		}
 		
 		
diff --git a/LongoMatch/Gui/Component/TimeLineWidget.cs b/LongoMatch/Gui/Component/TimeLineWidget.cs
index f84b652..208dfd0 100644
--- a/LongoMatch/Gui/Component/TimeLineWidget.cs
+++ b/LongoMatch/Gui/Component/TimeLineWidget.cs
@@ -149,7 +149,6 @@ namespace LongoMatch.Gui.Component {
 					return;
 				}
 				hasProject = true;
-				frames = value.File.GetFrames();
 				categories = value.Categories;
 				tsList = new Dictionary<Category, TimeScale>();
 				frames = value.Description.File.GetFrames();
@@ -159,9 +158,6 @@ namespace LongoMatch.Gui.Component {
 
 				tr.Frames = frames;
 				tr.FrameRate = value.Description.File.Fps;
-				ushort fps = value.Description.File.Fps;
-				tr = new TimeReferenceWidget(frames,fps);
-				vbox1.PackStart(tr,false,false,0);
 				tr.Show();
 				
 				foreach (Category cat in  categories) {
diff --git a/LongoMatch/Gui/Component/TimeScale.cs b/LongoMatch/Gui/Component/TimeScale.cs
index 1fe7924..d880757 100644
--- a/LongoMatch/Gui/Component/TimeScale.cs
+++ b/LongoMatch/Gui/Component/TimeScale.cs
@@ -78,7 +78,7 @@ namespace LongoMatch.Gui.Component
 			this.list = list;
 			HeightRequest= SECTION_HEIGHT;
 			Size((int)(frames/pixelRatio),SECTION_HEIGHT);
-			this.color = CairoUtils.RGBToCairoColor(color);
+			this.color = new Cairo.Color(0, 0, 1);
 			this.color.A = ALPHA;
 			Events = EventMask.PointerMotionMask | EventMask.ButtonPressMask | EventMask.ButtonReleaseMask ;
 
@@ -182,7 +182,7 @@ namespace LongoMatch.Gui.Component
 						CairoUtils.DrawRoundedRectangle(g,selected.StartFrame/pixelRatio,3,
 						                                selected.TotalFrames/pixelRatio,height-6,
 						                                SECTION_HEIGHT/7, color, borderColor);
-						if (selected.HasDrawing) {
+						if (selected.HasDrawings) {
 							g.MoveTo(selected.KeyFrame/pixelRatio,3);
 							g.LineTo(selected.KeyFrame/pixelRatio,SECTION_HEIGHT-3);
 							g.StrokePreserve();
diff --git a/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs b/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
index 7f52d07..5e7468f 100644
--- a/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
+++ b/LongoMatch/Gui/TreeView/PlayerPropertiesTreeView.cs
@@ -125,7 +125,7 @@ namespace LongoMatch.Gui.Component
 		{
 			Player player = (Player) model.GetValue(iter, 0);
 
-			(cell as Gtk.CellRendererText).Text = player.Discarded ? Catalog.GetString("No") : Catalog.GetString("Yes");
+			(cell as Gtk.CellRendererText).Text = player.Playing ? 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/LongoMatch.mdp b/LongoMatch/LongoMatch.mdp
index 17d53f6..bedc404 100644
--- a/LongoMatch/LongoMatch.mdp
+++ b/LongoMatch/LongoMatch.mdp
@@ -160,10 +160,7 @@
     <File subtype="Code" buildaction="Compile" name="Gui/TreeView/ListTreeViewBase.cs" />
     <File subtype="Code" buildaction="Compile" name="Gui/Component/CategoriesScale.cs" />
     <File subtype="Code" buildaction="Compile" name="Common/Cairo.cs" />
-    <File subtype="Directory" buildaction="Compile" name="Compat" />
     <File subtype="Code" buildaction="Compile" name="IO/XMLReader.cs" />
-    <File subtype="Code" buildaction="Compile" name="IO/SectionsReader.cs" />
-    <File subtype="Code" buildaction="Compile" name="IO/SectionsWriter.cs" />
     <File subtype="Directory" buildaction="Compile" name="Store" />
     <File subtype="Directory" buildaction="Compile" name="DB" />
     <File subtype="Directory" buildaction="Compile" name="DB" />
@@ -196,7 +193,6 @@
     <File subtype="Code" buildaction="Compile" name="Store/TimeNode.cs" />
     <File subtype="Directory" buildaction="Compile" name="Time" />
     <File subtype="Code" buildaction="Compile" name="Store/Templates/TeamTemplate.cs" />
-    <File subtype="Code" buildaction="Compile" name="IO/XMLReader.cs" />
     <File subtype="Code" buildaction="Compile" name="Common/SerializableObject.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/SubCategory.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/Templates/SubCategoriesTemplate.cs" />
@@ -217,7 +213,6 @@
     <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <ProjectReference specificVersion="False" type="Assembly" localcopy="True" refto="../../../../../usr/lib/mono/gac/Db4objects.Db4o/7.4.121.14026__6199cd4f203aa8eb/Db4objects.Db4o.dll" />
     <ProjectReference type="Gac" localcopy="True" refto="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
->>>>>>> Update Monodevelop project file with the new changes
   </References>
   <LanguageParameters StartupObject="LongoMatch.MainClass" ApplicationIcon="." CodePage="65001" ctype="CSharpProjectParameters" />
-</Project>
+</Project>
\ No newline at end of file



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