[longomatch] Move 'Team' enum to common



commit 9a0608c831497baa73a78fc31be64695cef02538
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Sep 5 14:10:20 2010 +0200

    Move 'Team' enum to common

 LongoMatch/Common/Enums.cs                        |    6 ++++++
 LongoMatch/Compat/0.0/DatabaseMigrator.cs         |    1 +
 LongoMatch/DB/DataBase.cs                         |    1 +
 LongoMatch/Gui/Component/PlayersListTreeWidget.cs |    1 +
 LongoMatch/Gui/Component/PlaysListTreeWidget.cs   |    3 ++-
 LongoMatch/Gui/TreeView/PlayersTreeView.cs        |    1 +
 LongoMatch/Handlers/Handlers.cs                   |    1 +
 LongoMatch/Time/MediaTimeNode.cs                  |    6 +-----
 8 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch/Common/Enums.cs b/LongoMatch/Common/Enums.cs
index b8d260e..4ba72ee 100644
--- a/LongoMatch/Common/Enums.cs
+++ b/LongoMatch/Common/Enums.cs
@@ -47,4 +47,10 @@ namespace LongoMatch.Common
 		SortByStopTime = 2,
 		SortByDuration = 3
 	}
+	
+	public enum Team {
+		NONE = 0,
+		LOCAL = 1,
+		VISITOR = 2,
+	}
 }
diff --git a/LongoMatch/Compat/0.0/DatabaseMigrator.cs b/LongoMatch/Compat/0.0/DatabaseMigrator.cs
index 22f02c7..5c12411 100644
--- a/LongoMatch/Compat/0.0/DatabaseMigrator.cs
+++ b/LongoMatch/Compat/0.0/DatabaseMigrator.cs
@@ -23,6 +23,7 @@ using System.IO;
 using LongoMatch.DB;
 using LongoMatch.TimeNodes;
 using LongoMatch.Video.Utils;
+using LongoMatch.Common;
 using System.Threading;
 using Gtk;
 
diff --git a/LongoMatch/DB/DataBase.cs b/LongoMatch/DB/DataBase.cs
index e3afc77..a55f319 100644
--- a/LongoMatch/DB/DataBase.cs
+++ b/LongoMatch/DB/DataBase.cs
@@ -29,6 +29,7 @@ using Db4objects.Db4o.Query;
 using LongoMatch.TimeNodes;
 using LongoMatch.Gui;
 using LongoMatch.Video.Utils;
+using LongoMatch.Common;
 
 namespace LongoMatch.DB
 {
diff --git a/LongoMatch/Gui/Component/PlayersListTreeWidget.cs b/LongoMatch/Gui/Component/PlayersListTreeWidget.cs
index 99afa58..57bef7e 100644
--- a/LongoMatch/Gui/Component/PlayersListTreeWidget.cs
+++ b/LongoMatch/Gui/Component/PlayersListTreeWidget.cs
@@ -22,6 +22,7 @@ using Mono.Unix;
 using LongoMatch.DB;
 using LongoMatch.Handlers;
 using LongoMatch.TimeNodes;
+using LongoMatch.Common;
 
 
 namespace LongoMatch.Gui.Component
diff --git a/LongoMatch/Gui/Component/PlaysListTreeWidget.cs b/LongoMatch/Gui/Component/PlaysListTreeWidget.cs
index 4f7beea..e7c2473 100644
--- a/LongoMatch/Gui/Component/PlaysListTreeWidget.cs
+++ b/LongoMatch/Gui/Component/PlaysListTreeWidget.cs
@@ -24,6 +24,7 @@ using Mono.Unix;
 using LongoMatch.DB;
 using LongoMatch.Handlers;
 using LongoMatch.TimeNodes;
+using LongoMatch.Common;
 
 namespace LongoMatch.Gui.Component
 {
@@ -149,7 +150,7 @@ namespace LongoMatch.Gui.Component
 		}
 
 
-		protected virtual void OnTreeviewPlayersTagged(LongoMatch.TimeNodes.MediaTimeNode tNode, LongoMatch.TimeNodes.Team team)
+		protected virtual void OnTreeviewPlayersTagged(LongoMatch.TimeNodes.MediaTimeNode tNode, Team team)
 		{
 			if (PlayersTagged != null)
 				PlayersTagged(tNode,team);
diff --git a/LongoMatch/Gui/TreeView/PlayersTreeView.cs b/LongoMatch/Gui/TreeView/PlayersTreeView.cs
index 5274258..7254459 100644
--- a/LongoMatch/Gui/TreeView/PlayersTreeView.cs
+++ b/LongoMatch/Gui/TreeView/PlayersTreeView.cs
@@ -22,6 +22,7 @@ using Gtk;
 using Mono.Unix;
 using LongoMatch.Handlers;
 using LongoMatch.TimeNodes;
+using LongoMatch.Common;
 
 namespace LongoMatch.Gui.Component
 {
diff --git a/LongoMatch/Handlers/Handlers.cs b/LongoMatch/Handlers/Handlers.cs
index 347a914..0f94697 100644
--- a/LongoMatch/Handlers/Handlers.cs
+++ b/LongoMatch/Handlers/Handlers.cs
@@ -23,6 +23,7 @@ using System.Collections.Generic;
 using LongoMatch;
 using LongoMatch.DB;
 using LongoMatch.TimeNodes;
+using LongoMatch.Common;
 
 namespace LongoMatch.Handlers
 {
diff --git a/LongoMatch/Time/MediaTimeNode.cs b/LongoMatch/Time/MediaTimeNode.cs
index 13c7227..4b9b1a2 100644
--- a/LongoMatch/Time/MediaTimeNode.cs
+++ b/LongoMatch/Time/MediaTimeNode.cs
@@ -22,14 +22,10 @@ using System;
 using System.Collections.Generic;
 using Mono.Unix;
 using Gdk;
+using LongoMatch.Common;
 
 namespace LongoMatch.TimeNodes
 {
-	public enum Team {
-		NONE = 0,
-		LOCAL = 1,
-		VISITOR = 2,
-	}
 
 	/// <summary>
 	/// I represent a Play in the game, that's why I'm probably the most



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