[chronojump] A test cannot be deleted if cancelled
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] A test cannot be deleted if cancelled
- Date: Mon, 1 Jul 2013 10:06:44 +0000 (UTC)
commit 56f75258c828eb0ab4a4a26b31dbe7b7a2625712
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jul 1 12:05:26 2013 +0200
A test cannot be deleted if cancelled
src/gui/chronojump.cs | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 96c7d18..cac6931 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -226,6 +226,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Label label_image_test;
[Widget] Gtk.Box vbox_this_test_buttons;
[Widget] Gtk.Button button_video_play_this_test;
+ [Widget] Gtk.Button button_delete_this_test;
[Widget] Gtk.Button button_upload_session;
[Widget] Gtk.Button button_activate_chronopics;
@@ -3371,6 +3372,9 @@ Console.WriteLine("X");
Log.WriteLine("DDD");
currentEventExecute.FakeButtonFinished.Clicked -= new EventHandler(on_jump_finished);
Log.WriteLine("DDD 1");
+
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
if ( ! currentEventExecute.Cancel ) {
currentJump = (Jump) currentEventExecute.EventDone;
@@ -3518,6 +3522,9 @@ Log.WriteLine("DDD 2");
currentEventExecute.FakeButtonFinished.Clicked -= new EventHandler(on_jump_rj_finished);
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
+
if ( ! currentEventExecute.Cancel ) {
currentJumpRj = (JumpRj) currentEventExecute.EventDone;
@@ -3674,6 +3681,9 @@ Log.WriteLine("DDD 2");
{
currentEventExecute.FakeButtonFinished.Clicked -= new EventHandler(on_run_finished);
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
+
if ( ! currentEventExecute.Cancel ) {
currentRun = (Run) currentEventExecute.EventDone;
@@ -3801,6 +3811,9 @@ Log.WriteLine("DDD 2");
{
currentEventExecute.FakeButtonFinished.Clicked -= new EventHandler(on_run_interval_finished);
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
+
if ( ! currentEventExecute.Cancel ) {
currentRunInterval = (RunInterval) currentEventExecute.EventDone;
@@ -3914,6 +3927,9 @@ Log.WriteLine("DDD 2");
{
currentEventExecute.FakeButtonFinished.Clicked -= new EventHandler(on_reaction_time_finished);
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
+
if ( ! currentEventExecute.Cancel ) {
currentReactionTime = (ReactionTime) currentEventExecute.EventDone;
@@ -4021,6 +4037,9 @@ Log.WriteLine("DDD 2");
currentEventExecute.FakeButtonFinished.Clicked -= new EventHandler(on_pulse_finished);
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
+
if ( ! currentEventExecute.Cancel ) {
/*
* CURRENTLY NOT NEEDED... check
@@ -4244,6 +4263,9 @@ Log.WriteLine("DDD 2");
currentEventExecute.FakeButtonFinished.Clicked -= new
EventHandler(on_multi_chronopic_finished);
+ //test can be deleted if not cancelled
+ button_delete_this_test.Sensitive = ! currentEventExecute.Cancel;
+
if(currentMultiChronopicType.Name == Constants.RunAnalysisName && !
currentEventExecute.MultiChronopicRunAUsedCP2())
//new DialogMessage(Constants.MessageTypes.WARNING,
// Catalog.GetString("This Run Analysis is not valid because there are
no strides."));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]