[chronojump] CairoPaintBarsPreJumpReactive shown number of jumps at bottom names
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] CairoPaintBarsPreJumpReactive shown number of jumps at bottom names
- Date: Thu, 9 Sep 2021 07:49:48 +0000 (UTC)
commit e91654d2a877e88ff88b5137de5bee23ca21e265
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Sep 9 09:49:24 2021 +0200
CairoPaintBarsPreJumpReactive shown number of jumps at bottom names
src/gui/eventExecute.cs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index f0725777c..342b8108c 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -2974,8 +2974,13 @@ public class CairoPaintBarsPreJumpReactive : CairoPaintBarsPre
eventGraphJumpsRjStored.type == "", "(" + Catalog.GetString("Simulated") +
")"); // condition for "all runs"
int fontHeightForBottomNames = cb.GetFontForBottomNames (events, longestWord);
+ /*
int maxRowsForText = calculateMaxRowsForTextCairo (events, longestWord.Length,
eventGraphJumpsRjStored.type == "", thereIsASimulated, false);
+ */
+ //TYPE A: on jumpRj show always jump type to show at the side the number of jumps. If change
here, change it below (TYPEB)
+ int maxRowsForText = calculateMaxRowsForTextCairo (events, longestWord.Length,
+ true, thereIsASimulated, false);
int bottomMargin = cb.GetBottomMarginForText (maxRowsForText, fontHeightForBottomNames);
@@ -2996,10 +3001,13 @@ public class CairoPaintBarsPreJumpReactive : CairoPaintBarsPre
countToDraw --;
// 2) Add bottom names
- //names_l.Add(Catalog.GetString(jump.Type));
+ /*
string typeRowString = "";
if (eventGraphJumpsRjStored.type == "") //if "all runs" show run.Type
typeRowString = jump.Type;
+ */
+ //TYPE B: on jumpRj show always jump type to show at the side the number of jumps. If
change here, change it above (TYPEA)
+ string typeRowString = string.Format("{0} - {1}", jump.Type, jump.Jumps);
names_l.Add(createTextBelowBar(
"",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]