[chronojump] ForceSensor graphAI show ForceN label at Y axis
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ForceSensor graphAI show ForceN label at Y axis
- Date: Tue, 25 Feb 2020 16:31:51 +0000 (UTC)
commit 13c1cb179294e765523a970c900d8de8cea30663
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Feb 25 17:31:07 2020 +0100
ForceSensor graphAI show ForceN label at Y axis
src/gui/app1/forceSensorAnalyze.cs | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index c9fd7c6a..c1688b09 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -785,11 +785,17 @@ public partial class ChronoJumpWindow
//draw vertical line
if(solid)
+ {
+ layout_force_ai_text.SetMarkup("Force (N)");
+ layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
+ force_sensor_ai_pixmap.DrawLayout (pen_gray_cont_force_ai,
+ xPx - textWidth/2, 0, layout_force_ai_text);
+
force_sensor_ai_pixmap.DrawLine(pen_gray_cont_force_ai,
- xPx, 4, xPx, force_sensor_ai_drawingarea.Allocation.Height -
textHeight -4);
- else
+ xPx, textHeight, xPx, force_sensor_ai_drawingarea.Allocation.Height -
textHeight -6);
+ } else
force_sensor_ai_pixmap.DrawLine(pen_gray_discont_force_ai,
- xPx, 4, xPx, force_sensor_ai_drawingarea.Allocation.Height -
textHeight -4);
+ xPx, 6, xPx, force_sensor_ai_drawingarea.Allocation.Height -
textHeight -6);
}
private void forcePaintAnalyzeGeneralHLine(int yForce, bool solid)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]