[longomatch] Fix category edition fro the plays list
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix category edition fro the plays list
- Date: Fri, 27 Jan 2012 22:08:30 +0000 (UTC)
commit 853967395c2a3d17012ebf87ba0222756d0227e3
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Jan 27 21:06:41 2012 +0100
Fix category edition fro the plays list
LongoMatch.Core/Interfaces/GUI/IMainWindow.cs | 1 +
.../Gui/Component/PlaysListTreeWidget.cs | 6 +-----
LongoMatch.GUI/Gui/MainWindow.cs | 6 ++++++
LongoMatch.Services/Services/Core.cs | 1 +
4 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Core/Interfaces/GUI/IMainWindow.cs b/LongoMatch.Core/Interfaces/GUI/IMainWindow.cs
index 48a351f..08c9f09 100644
--- a/LongoMatch.Core/Interfaces/GUI/IMainWindow.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IMainWindow.cs
@@ -83,6 +83,7 @@ namespace LongoMatch.Interfaces.GUI
IPlayer Player{get;}
ICapturer Capturer{get;}
IPlaylistWidget Playlist{get;}
+ ITemplatesService TemplatesService{set;}
void AddExportEntry (string name, string shortName, Action<Project, IGUIToolkit> exportAction);
}
diff --git a/LongoMatch.GUI/Gui/Component/PlaysListTreeWidget.cs b/LongoMatch.GUI/Gui/Component/PlaysListTreeWidget.cs
index 14fd1d8..4eac941 100644
--- a/LongoMatch.GUI/Gui/Component/PlaysListTreeWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/PlaysListTreeWidget.cs
@@ -47,8 +47,6 @@ namespace LongoMatch.Gui.Component
public event RenderPlaylistHandler RenderPlaylistEvent;
ITemplatesService ts;
- ISubcategoriesTemplatesProvider subcatProvider;
- List<PlayerSubCategory> playersSubcat;
private Project project;
@@ -68,9 +66,7 @@ namespace LongoMatch.Gui.Component
public ITemplatesService TemplatesService
{
set {
- this.ts = ts;
- this.subcatProvider = ts.SubCategoriesTemplateProvider;
- this.playersSubcat = ts.PlayerSubcategories;
+ ts = value;
}
}
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index 2872334..807c668 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -191,6 +191,12 @@ namespace LongoMatch.Gui
}
}
+ public ITemplatesService TemplatesService {
+ set {
+ playsList.TemplatesService = value;
+ }
+ }
+
public void UpdateGameUnits (GameUnitsList gameUnits) {
gameUnitsActionVisible = gameUnits != null && gameUnits.Count > 0;
GameUnitsViewAction.Sensitive = gameUnitsActionVisible;
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index 0d20d11..94f2ee5 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -66,6 +66,7 @@ namespace LongoMatch.Services
/* Start TemplatesService */
ts = new TemplatesService(Config.configDirectory);
+ Core.mainWindow.TemplatesService = ts;
/* Start DB services */
db = new DataBase(Path.Combine(Config.DBDir(),Constants.DB_FILE));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]