[chronojump] videoOn to off because hangs in windows
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] videoOn to off because hangs in windows
- Date: Tue, 29 Jan 2013 21:38:30 +0000 (UTC)
commit d6f81031c076bfcfae0cb9e4b1f16adb8fc06870
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jan 29 22:36:44 2013 +0100
videoOn to off because hangs in windows
src/gui/chronojump.cs | 45 +++++++++++++++++++++++++++++----------------
1 files changed, 29 insertions(+), 16 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 10f5ff6..ae35f55 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -256,7 +256,7 @@ public partial class ChronoJumpWindow
Random rand;
bool volumeOn;
- bool videoOn;
+ bool videoOn; //TODO: now always false because it crashes on windows
//persons
private TreeStore treeview_persons_store;
@@ -841,10 +841,14 @@ public partial class ChronoJumpWindow
UtilGtk.ColorsCheckOnlyPrelight(checkbutton_volume);
changeVolumeButton(volumeOn);
+ /*
if ( SqlitePreferences.Select("videoOn") == "True" )
videoOn = true;
else
videoOn = false;
+ */
+ videoOn = false;
+
UtilGtk.ColorsCheckOnlyPrelight(checkbutton_video);
changeVideoButton(videoOn);
@@ -2734,6 +2738,7 @@ public partial class ChronoJumpWindow
}
private void on_checkbutton_video_clicked(object o, EventArgs args) {
+ /*
if(checkbutton_video.Active) {
videoOn = true;
SqlitePreferences.Update("videoOn", "True", false);
@@ -2742,6 +2747,7 @@ public partial class ChronoJumpWindow
SqlitePreferences.Update("videoOn", "False", false);
}
changeVideoButton(checkbutton_video.Active);
+ */
}
@@ -3241,8 +3247,9 @@ Log.WriteLine("DDD");
}
//move video file if exists
- if (! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.JUMP, currentJump.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if (! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.JUMP, currentJump.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
if(weightPercentPreferred)
myTreeViewJumps.Add(currentPerson.Name, currentJump);
@@ -3369,8 +3376,9 @@ Log.WriteLine("DDD 2");
currentJumpRj = (JumpRj) currentEventExecute.EventDone;
//move video file if exists
- if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.JUMP_RJ, currentJumpRj.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.JUMP_RJ, currentJumpRj.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
//if user clicked in finish earlier
if(currentEventExecute.Finish) {
@@ -3524,8 +3532,9 @@ Log.WriteLine("DDD 2");
currentRun = (Run) currentEventExecute.EventDone;
//move video file if exists
- if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.RUN, currentRun.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.RUN, currentRun.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
currentRun.MetersSecondsPreferred = metersSecondsPreferred;
@@ -3650,8 +3659,9 @@ Log.WriteLine("DDD 2");
currentRunInterval = (RunInterval) currentEventExecute.EventDone;
//move video file if exists
- if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.RUN_I, currentRunInterval.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.RUN_I, currentRunInterval.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
currentRunInterval.MetersSecondsPreferred = metersSecondsPreferred;
@@ -3763,8 +3773,9 @@ Log.WriteLine("DDD 2");
currentReactionTime = (ReactionTime) currentEventExecute.EventDone;
//move video file if exists
- if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.RT, currentReactionTime.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.RT, currentReactionTime.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
myTreeViewReactionTimes.Add(currentPerson.Name, currentReactionTime);
@@ -3882,8 +3893,9 @@ Log.WriteLine("DDD 2");
currentPulse = (Pulse) currentEventExecute.EventDone;
//move video file if exists
- if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.PULSE, currentPulse.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if(! Util.MoveTempVideo(currentSession.UniqueID, Constants.TestTypes.PULSE, currentPulse.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
myTreeViewPulses.Add(currentPerson.Name, currentPulse);
@@ -4131,9 +4143,10 @@ Console.WriteLine("V");
currentMultiChronopic = (MultiChronopic) currentEventExecute.EventDone;
Console.WriteLine("W");
//move video file if exists
- if(! Util.MoveTempVideo(currentSession.UniqueID,
- Constants.TestTypes.MULTICHRONOPIC, currentMultiChronopic.UniqueID))
- new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
+ if(videoOn)
+ if(! Util.MoveTempVideo(currentSession.UniqueID,
+ Constants.TestTypes.MULTICHRONOPIC, currentMultiChronopic.UniqueID))
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Sorry, video cannot be stored."));
//this produces also a crash:
//new DialogMessage(Constants.MessageTypes.INFO, "Please, touch a platform now.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]