[chronojump] jumpRj type combo changes event_graph_label_graph_test and delete graph
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] jumpRj type combo changes event_graph_label_graph_test and delete graph
- Date: Mon, 8 Jun 2020 10:21:01 +0000 (UTC)
commit d1298c47ff452c1418dd77eefa5eae043d0c958f
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jun 8 12:19:55 2020 +0200
jumpRj type combo changes event_graph_label_graph_test and delete graph
src/gui/app1/jump.cs | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
---
diff --git a/src/gui/app1/jump.cs b/src/gui/app1/jump.cs
index 8455f0ec..7d04cd52 100644
--- a/src/gui/app1/jump.cs
+++ b/src/gui/app1/jump.cs
@@ -277,12 +277,25 @@ public partial class ChronoJumpWindow
}
private void updateGraphJumpsReactive ()
{
+ if(currentPerson == null || currentSession == null)
+ return;
+
if(event_execute_drawingarea == null || event_execute_pixmap == null)
return;
UtilGtk.ErasePaint(event_execute_drawingarea, event_execute_pixmap);
event_execute_table_jump_reactive_values.Hide();
+ //we do not plot graph, but we want to update label event_graph_label_graph_test
+ //intializeVariables if not done before
+ event_execute_initializeVariables(
+ ! cp2016.StoredCanCaptureContacts, //is simulated
+ currentPerson.UniqueID,
+ currentPerson.Name,
+ Catalog.GetString("Phases"), //name of the different moments
+ Constants.JumpRjTable, //tableName
+ currentJumpRjType.Name
+ );
//TODO paint graph of num of reactive jumps
}
@@ -335,6 +348,12 @@ public partial class ChronoJumpWindow
extra_window_jumps_rj_radiobutton_weight.Active = true;
}
+ if(! configChronojump.Exhibition)
+ {
+ //do not update graph, but erase it and change label event_graph_label_graph_test
+ updateGraphJumpsReactive();
+ }
+
setLabelContactsExerciseSelectedOptionsJumpsReactive();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]