[chronojump] fixed sensitivity of video play this test
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] fixed sensitivity of video play this test
- Date: Thu, 14 Apr 2011 11:59:42 +0000 (UTC)
commit 8350f111a82a861fc8048bb1d26dab2c38975363
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Apr 14 09:10:01 2011 +0200
fixed sensitivity of video play this test
src/gui/chronojump.cs | 36 +++++++++++++++++++++++++++---------
1 files changed, 27 insertions(+), 9 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 5a61bc1..bebfea7 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -197,6 +197,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_test_zoom;
[Widget] Gtk.Label label_image_test;
[Widget] Gtk.Box hbox_this_test_buttons;
+ [Widget] Gtk.Button button_video_play_this_test;
[Widget] Gtk.Button button_upload_session;
[Widget] Gtk.Button button_activate_chronopics;
@@ -5354,6 +5355,7 @@ Console.WriteLine("X");
private void showHideActionEventButtons(bool show, string type) {
bool success = false;
+ bool recordedVideo = false;
if(type == "ALL" || type == "Jump") {
button_edit_selected_jump.Sensitive = show;
button_delete_selected_jump.Sensitive = show;
@@ -5362,8 +5364,11 @@ Console.WriteLine("X");
if (myTreeViewJumps.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.JUMP,
- myTreeViewJumps.EventSelectedID)))
+ myTreeViewJumps.EventSelectedID))) {
button_video_play_selected_jump.Sensitive = true;
+ recordedVideo = true;
+ }
+
success = true;
}
@@ -5376,8 +5381,10 @@ Console.WriteLine("X");
if (myTreeViewJumpsRj.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.JUMP_RJ,
- myTreeViewJumpsRj.EventSelectedID)))
+ myTreeViewJumpsRj.EventSelectedID))) {
button_video_play_selected_jump_rj.Sensitive = true;
+ recordedVideo = true;
+ }
success = true;
}
@@ -5389,8 +5396,10 @@ Console.WriteLine("X");
if (myTreeViewRuns.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.RUN,
- myTreeViewRuns.EventSelectedID)))
+ myTreeViewRuns.EventSelectedID))) {
button_video_play_selected_run.Sensitive = true;
+ recordedVideo = true;
+ }
success = true;
}
@@ -5403,8 +5412,10 @@ Console.WriteLine("X");
if (myTreeViewRunsInterval.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.RUN_I,
- myTreeViewRunsInterval.EventSelectedID)))
+ myTreeViewRunsInterval.EventSelectedID))) {
button_video_play_selected_run_interval.Sensitive = true;
+ recordedVideo = true;
+ }
success = true;
}
@@ -5416,8 +5427,10 @@ Console.WriteLine("X");
if (myTreeViewReactionTimes.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.RT,
- myTreeViewReactionTimes.EventSelectedID)))
+ myTreeViewReactionTimes.EventSelectedID))) {
button_video_play_selected_reaction_time.Sensitive = true;
+ recordedVideo = true;
+ }
success = true;
}
@@ -5432,8 +5445,10 @@ Console.WriteLine("X");
if (myTreeViewPulses.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.PULSE,
- myTreeViewPulses.EventSelectedID)))
+ myTreeViewPulses.EventSelectedID))) {
button_video_play_selected_pulse.Sensitive = true;
+ recordedVideo = true;
+ }
success = true;
}
@@ -5445,14 +5460,17 @@ Console.WriteLine("X");
if (myTreeViewMultiChronopic.EventSelectedID > 0 && File.Exists(Util.GetVideoFileName(
currentSession.UniqueID,
Constants.TestTypes.MULTICHRONOPIC,
- myTreeViewMultiChronopic.EventSelectedID)))
+ myTreeViewMultiChronopic.EventSelectedID))) {
button_video_play_selected_multi_chronopic.Sensitive = true;
+ recordedVideo = true;
+ }
success = true;
}
- if (!success) {
+ if (!success)
Log.WriteLine(string.Format("Error in showHideActionEventButtons, type: {0}", type));
- }
+
+ button_video_play_this_test.Sensitive = recordedVideo;
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]