[chronojump] Fixed gui at changing person on jumpsReactive and runsInterval
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed gui at changing person on jumpsReactive and runsInterval
- Date: Sun, 25 Dec 2016 11:15:36 +0000 (UTC)
commit 2c5c1202c4c19ea4f666f05b30732dee4a8299bb
Author: Xavier de Blas <xaviblas gmail com>
Date: Sun Dec 25 12:11:36 2016 +0100
Fixed gui at changing person on jumpsReactive and runsInterval
src/gui/chronojump.cs | 26 +++++++++++++++++---------
src/gui/jump.cs | 9 +++++++++
src/gui/run.cs | 10 ++++++++++
3 files changed, 36 insertions(+), 9 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index bf90beb..6b2a99e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -496,12 +496,15 @@ public partial class ChronoJumpWindow
myType = currentRunType;
else if(radio_menuitem_mode_runs_intervallic.Active)
myType = currentRunIntervalType;
- else if(radio_mode_reaction_times_small.Active)
- myType = currentReactionTimeType;
- else if(radio_mode_pulses_small.Active)
- myType = currentPulseType;
- else //if(radio_mode_multi_chronopic_small.Active)
- myType = currentMultiChronopicType;
+ else //if(radio_menuitem_mode_other.Active)
+ {
+ if(radio_mode_reaction_times_small.Active)
+ myType = currentReactionTimeType;
+ else if(radio_mode_pulses_small.Active)
+ myType = currentPulseType;
+ else //if(radio_mode_multi_chronopic_small.Active)
+ myType = currentMultiChronopicType;
+ }
if(myType.Name == "DJa" && extra_window_jumps_check_dj_fall_calculate.Active)
new DialogImageTest("", Util.GetImagePath(false) + "jump_dj_a_inside.png",
DialogImageTest.ArchiveType.ASSEMBLY);
@@ -1219,15 +1222,20 @@ public partial class ChronoJumpWindow
vbox_last_test_buttons.Sensitive = false;
//1) change on jumps, runs, pulse capture graph
- if(radio_menuitem_mode_jumps_simple.Active) {
+ if(radio_menuitem_mode_jumps_simple.Active)
+ {
updateGraphJumpsSimple();
if(notebook_capture_analyze.CurrentPage == 2) //Jumps Profile
jumpsProfileDo(true); //calculate data
}
- else if(radio_menuitem_mode_runs_simple.Active)
+ else if(radio_menuitem_mode_jumps_reactive.Active)
+ updateGraphJumpsReactive();
+ else if(radio_menuitem_mode_runs_simple.Active)
updateGraphRunsSimple();
- else if(radio_mode_reaction_times_small.Active)
+ else if(radio_menuitem_mode_runs_intervallic.Active)
+ updateGraphRunsInterval();
+ else if(radio_menuitem_mode_other.Active && radio_mode_reaction_times_small.Active)
updateGraphReactionTimes();
//2) change on encoder
diff --git a/src/gui/jump.cs b/src/gui/jump.cs
index 9b75ba3..26f168a 100644
--- a/src/gui/jump.cs
+++ b/src/gui/jump.cs
@@ -1197,7 +1197,16 @@ public partial class ChronoJumpWindow
if(eventGraph.personMAXAtSQLAllSessions > 0 || eventGraph.jumpsAtSQL.Length > 0)
PrepareJumpSimpleGraph(eventGraph, false); //don't animate
}
+ private void updateGraphJumpsReactive ()
+ {
+ 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();
+
+ //TODO paint graph of num of reactive jumps
+ }
private void extra_window_jumps_rj_initialize(JumpType myJumpType)
{
diff --git a/src/gui/run.cs b/src/gui/run.cs
index 1af3045..a6fe8bd 100644
--- a/src/gui/run.cs
+++ b/src/gui/run.cs
@@ -1009,6 +1009,16 @@ public partial class ChronoJumpWindow
if(eventGraph.personMAXAtSQLAllSessions > 0 || eventGraph.runsAtSQL.Length > 0)
PrepareRunSimpleGraph(eventGraph, false); //don't animate
}
+ private void updateGraphRunsInterval ()
+ {
+ if(event_execute_drawingarea == null || event_execute_pixmap == null)
+ return;
+
+ UtilGtk.ErasePaint(event_execute_drawingarea, event_execute_pixmap);
+ event_execute_table_run_interval_values.Hide();
+
+ //TODO paint graph of num of intervallic runs
+ }
private void extra_window_runs_interval_initialize(RunType myRunType)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]