[chronojump] CairoBars title from test-person to person-test
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] CairoBars title from test-person to person-test
- Date: Sat, 28 Aug 2021 15:11:13 +0000 (UTC)
commit a6b5b1413813b3f832351ad802d63904459516a4
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Aug 28 17:10:46 2021 +0200
CairoBars title from test-person to person-test
src/gui/app1/jump.cs | 2 +-
src/gui/app1/run.cs | 2 +-
src/gui/eventExecute.cs | 20 +++++++++++---------
3 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/src/gui/app1/jump.cs b/src/gui/app1/jump.cs
index 06db523db..5be251121 100644
--- a/src/gui/app1/jump.cs
+++ b/src/gui/app1/jump.cs
@@ -345,7 +345,7 @@ public partial class ChronoJumpWindow
cairoPaintBarsPre = new CairoPaintBarsPreJumpSimple (
event_execute_drawingarea_cairo, preferences.fontType.ToString(),
current_mode,
- typeTemp, personStr, preferences.digitsNumber);
+ personStr, typeTemp, preferences.digitsNumber);
cairoPaintBarsPre.StoreEventGraphJumps (eventGraph);
PrepareJumpSimpleGraph(cairoPaintBarsPre.eventGraphJumpsStored, false);
diff --git a/src/gui/app1/run.cs b/src/gui/app1/run.cs
index 047551a7e..f013ff059 100644
--- a/src/gui/app1/run.cs
+++ b/src/gui/app1/run.cs
@@ -213,7 +213,7 @@ public partial class ChronoJumpWindow
cairoPaintBarsPre = new CairoPaintBarsPreRunSimple (
event_execute_drawingarea_cairo, preferences.fontType.ToString(),
current_mode,
- typeTemp, personStr, preferences.digitsNumber);
+ personStr, typeTemp, preferences.digitsNumber);
cairoPaintBarsPre.StoreEventGraphRuns (eventGraph);
PrepareRunSimpleGraph(cairoPaintBarsPre.eventGraphRunsStored, false);
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index ea913c752..4ba3af02a 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -3223,17 +3223,19 @@ public abstract class CairoPaintBarsPre
protected abstract bool haveDataToPlot ();
protected abstract void paintSpecific();
- protected string generateTitle (string testName, string personName)
+ protected string generateTitle (string personName, string testName)
{
string titleStr = "";
string sep = "";
- if(testName != "")
+
+ if(personName != "")
{
- titleStr = testName;
+ titleStr = personName;
sep = " - ";
}
- if(personName != "")
- titleStr += sep + personName;
+
+ if(testName != "")
+ titleStr += sep + testName;
return titleStr;
}
@@ -3464,9 +3466,9 @@ public abstract class CairoPaintBarsPre
public class CairoPaintBarsPreJumpSimple : CairoPaintBarsPre
{
- public CairoPaintBarsPreJumpSimple (DrawingArea darea, string fontStr, Constants.Modes mode, string
testName, string personName, int pDN)
+ public CairoPaintBarsPreJumpSimple (DrawingArea darea, string fontStr, Constants.Modes mode, string
personName, string testName, int pDN)
{
- initialize (darea, fontStr, mode, generateTitle(testName, personName), pDN);
+ initialize (darea, fontStr, mode, generateTitle(personName, testName), pDN);
}
public override void StoreEventGraphJumps (PrepareEventGraphJumpSimple eventGraph)
@@ -3553,9 +3555,9 @@ public class CairoPaintBarsPreJumpSimple : CairoPaintBarsPre
public class CairoPaintBarsPreRunSimple : CairoPaintBarsPre
{
- public CairoPaintBarsPreRunSimple (DrawingArea darea, string fontStr, Constants.Modes mode, string
testName, string personName, int pDN)
+ public CairoPaintBarsPreRunSimple (DrawingArea darea, string fontStr, Constants.Modes mode, string
personName, string testName, int pDN)
{
- initialize (darea, fontStr, mode, generateTitle(testName, personName), pDN);
+ initialize (darea, fontStr, mode, generateTitle(personName, testName), pDN);
}
public override void StoreEventGraphRuns (PrepareEventGraphRunSimple eventGraph)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]