[chronojump] RunI realtime cairo graph shows correctly personName if != than currentPerson
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RunI realtime cairo graph shows correctly personName if != than currentPerson
- Date: Tue, 8 Mar 2022 11:13:33 +0000 (UTC)
commit cdee0cbb5662761090002b81a69f61b70787b124
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Mar 8 12:13:11 2022 +0100
RunI realtime cairo graph shows correctly personName if != than currentPerson
src/gui/app1/chronojump.cs | 2 +-
src/gui/eventExecute.cs | 14 ++++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 8506d8cf3..f5ec8ce7f 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -1902,7 +1902,7 @@ public partial class ChronoJumpWindow
selectedRunInterval.DistanceTotal, //TODO: take care, maybe is not this
distance (maybe use selectedRunIntervalType)
selectedRunInterval.TimeLast, selectedRunInterval.IntervalTimesString,
selectedRunInterval.DistanceTotal, selectedRunIntervalType.DistancesString,
- selectedRunInterval.Type);
+ selectedRunInterval.Type, selectedRunInterval.Description); //Description is
personName
}
private void treeviewRunsIntervalContextMenu(RunInterval myRun) {
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 4b1ac1739..4cdeae5a0 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -517,14 +517,15 @@ public partial class ChronoJumpWindow
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.timesString,
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.distanceTotal,
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.distancesString,
-
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.type);
+
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.type,
+ currentPerson.Name);
}
else if(selectedRunInterval != null)
PrepareRunIntervalRealtimeCaptureGraph(
selectedRunInterval.DistanceTotal, //TODO: take care, maybe
is not this distance (maybe use selectedRunIntervalType)
selectedRunInterval.TimeLast,
selectedRunInterval.IntervalTimesString,
selectedRunInterval.DistanceTotal,
selectedRunIntervalType.DistancesString,
- selectedRunInterval.Type);
+ selectedRunInterval.Type, selectedRunInterval.Description);
//Description is person.Name
}
}
@@ -796,7 +797,8 @@ public partial class ChronoJumpWindow
event_execute_drawingarea_realtime_capture_cairo,
preferences.fontType.ToString());
}
- public void PrepareRunIntervalRealtimeCaptureGraph (double lastDistance, double lastTime, string
timesString, double distanceTotal, string distancesString, string type)
+ public void PrepareRunIntervalRealtimeCaptureGraph (double lastDistance, double lastTime, string
timesString, double distanceTotal,
+ string distancesString, string type, string personName)
{
if(currentPerson == null)
return;
@@ -810,7 +812,7 @@ public partial class ChronoJumpWindow
cairoPaintBarsPreRealTime = new CairoPaintBarsPreRunIntervalRealtimeCapture(
event_execute_drawingarea_realtime_capture_cairo,
preferences.fontType.ToString(), current_mode,
- currentPerson.Name, type, preferences.digitsNumber,//
preferences.heightPreferred,
+ personName, type, preferences.digitsNumber,// preferences.heightPreferred,
check_runI_realtime_rel_abs.Active, lastDistance,
//lastTime,
timesString, distancesString, isLastCaptured);
@@ -1882,8 +1884,8 @@ public partial class ChronoJumpWindow
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.timesString,
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.distanceTotal,
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.distancesString,
-
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.type
- );
+
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.type,
+ currentPerson.Name);
}
break;
case EventType.Types.REACTIONTIME:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]