[chronojump/FS-TFT-Menu] Run simple tests barchart selection will select on treeview
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Run simple tests barchart selection will select on treeview
- Date: Wed, 27 Apr 2022 17:18:03 +0000 (UTC)
commit 2a71a534dea3f549b5510eb337877535e2336d01
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 25 10:24:55 2022 +0200
Run simple tests barchart selection will select on treeview
src/gui/eventExecute.cs | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 5b2c4dd6d..0b039e901 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -579,7 +579,9 @@ public partial class ChronoJumpWindow
private void on_event_execute_drawingarea_cairo_button_press_event (object o, ButtonPressEventArgs
args)
{
LogB.Information("on_event_execute_drawingarea_cairo_button_press_event");
- if (current_mode != Constants.Modes.JUMPSREACTIVE && current_mode !=
Constants.Modes.RUNSINTERVALLIC)
+ if (current_mode != Constants.Modes.JUMPSREACTIVE &&
+ current_mode != Constants.Modes.RUNSSIMPLE &&
+ current_mode != Constants.Modes.RUNSINTERVALLIC)
return;
if(cairoPaintBarsPre == null)
@@ -599,6 +601,12 @@ public partial class ChronoJumpWindow
myTreeViewJumpsRj.SelectEvent (id, true); //scroll
on_treeview_jumps_rj_cursor_changed (new object (), new EventArgs ()); //in order to
update top graph
}
+ else if (current_mode == Constants.Modes.RUNSSIMPLE && myTreeViewRuns != null)
+ {
+ myTreeViewRuns.ZoomToTestsIfNeeded ();
+ myTreeViewRuns.SelectEvent (id, true); //scroll
+ on_treeview_runs_cursor_changed (new object (), new EventArgs ()); //in order to
update top graph
+ }
else if (current_mode == Constants.Modes.RUNSINTERVALLIC && myTreeViewRunsInterval != null)
{
myTreeViewRunsInterval.ZoomToTestsIfNeeded ();
@@ -2887,7 +2895,7 @@ public class CairoPaintBarsPreRunSimple : CairoPaintBarsPre
protected override void paintSpecific()
{
- cb = new CairoBars1Series (darea, CairoBars.Type.NORMAL, false, true, true);
+ cb = new CairoBars1Series (darea, CairoBars.Type.NORMAL, true, true, true);
cb.YVariable = Catalog.GetString("Speed");
cb.YUnits = "m/s";
@@ -2922,6 +2930,7 @@ public class CairoPaintBarsPreRunSimple : CairoPaintBarsPre
List<PointF> point_l = new List<PointF>();
List<string> names_l = new List<string>();
+ List<int> id_l = new List<int>(); //the uniqueIDs for knowing them on bar selection
int countToDraw = eventGraphRunsStored.runsAtSQL.Count;
foreach(Run run in eventGraphRunsStored.runsAtSQL)
@@ -2944,8 +2953,12 @@ public class CairoPaintBarsPreRunSimple : CairoPaintBarsPre
run.Description,
thereIsASimulated, (run.Simulated == -1),
longestWord.Length, maxRowsForText));
+
+ id_l.Add(run.UniqueID);
}
+ cb.Id_l = id_l;
+
cb.PassGuidesData (new CairoBarsGuideManage(
! ShowPersonNames, true, //usePersonGuides, useGroupGuides
eventGraphRunsStored.sessionMAXAtSQL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]