[longomatch/fakelive] Add a dummy file for fkae live projects
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/fakelive] Add a dummy file for fkae live projects
- Date: Mon, 15 Mar 2010 21:44:41 +0000 (UTC)
commit 38f603d2f104ed48936e9ca831e0112c3654f00b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 7 16:09:28 2010 +0100
Add a dummy file for fkae live projects
LongoMatch/Common/Constants.cs | 5 ++++-
LongoMatch/Gui/Component/ProjectDetailsWidget.cs | 9 ++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch/Common/Constants.cs b/LongoMatch/Common/Constants.cs
index 5e4de65..32f5d1a 100644
--- a/LongoMatch/Common/Constants.cs
+++ b/LongoMatch/Common/Constants.cs
@@ -21,7 +21,10 @@ using System;
namespace LongoMatch.Common
{
class Constants{
- public const string TRANSLATORS =
+
+ public const string FAKE_PROJECT = "@Fake Project@";
+
+ public const string TRANSLATORS =
@"Andoni Morales Alastruey (es)
Mario Blättermann (de)
Pavel Bárta (cs)
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index 017e4ad..083d887 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -239,9 +239,7 @@ namespace LongoMatch.Gui.Component
public void UpdateProject() {
if (useType == ProjectType.EditProject ||
useType == ProjectType.NewFileProject)
- project.File= mFile;
- else
- project.File = null;
+ project.File= mFile;
project.LocalName = localTeamEntry.Text;
project.VisitorName = visitorTeamEntry.Text;
project.LocalGoals = (int)localSpinButton.Value;
@@ -259,6 +257,11 @@ namespace LongoMatch.Gui.Component
if (Filename == "" && useType == ProjectType.NewFileProject)
return null;
else {
+ if (useType == ProjectType.NewFakeCaptureProject){
+ mFile = new PreviewMediaFile();
+ mFile.FilePath = Constants.FAKE_PROJECT;
+ mFile.Fps = 25;
+ }
return new Project(mFile,
LocalName,
VisitorName,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]