[chronojump/michrolab] ForceSensorExercise explantion/examples differentiate isometric/elastic
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] ForceSensorExercise explantion/examples differentiate isometric/elastic
- Date: Thu, 14 Jul 2022 16:37:58 +0000 (UTC)
commit a37fc7dc3b9da3e01a5b9c1ad60bba8374ffc919
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jul 14 12:07:14 2022 +0200
ForceSensorExercise explantion/examples differentiate isometric/elastic
src/gui/forceSensorExercise.cs | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/forceSensorExercise.cs b/src/gui/forceSensorExercise.cs
index 71ae2b872..e56a44e33 100644
--- a/src/gui/forceSensorExercise.cs
+++ b/src/gui/forceSensorExercise.cs
@@ -109,6 +109,7 @@ public class ForceSensorExerciseWindow
[Widget] Gtk.Button fakeButtonReadValues;
public bool Success;
+ private Constants.Modes chronojumpMode;
private ForceSensorExercise exercise;
//values on preferences, useful to show them unsensitive if the
radio_detect_repetitions_from_prefs.Active
@@ -175,6 +176,7 @@ public class ForceSensorExerciseWindow
ForceSensorExerciseWindowBox.label_header.Text = textHeader;
}
+ ForceSensorExerciseWindowBox.chronojumpMode = chronojumpMode;
ForceSensorExerciseWindowBox.Success = false;
ForceSensorExerciseWindowBox.modeEnum = modesEnum.EDIT;
ForceSensorExerciseWindowBox.exercise = exercise;
@@ -244,6 +246,7 @@ public class ForceSensorExerciseWindow
ForceSensorExerciseWindowBox.label_header.Text = textHeader;
}
+ ForceSensorExerciseWindowBox.chronojumpMode = chronojumpMode;
if(chronojumpMode == Constants.Modes.FORCESENSORISOMETRIC)
ForceSensorExerciseWindowBox.radio_fixation_not_elastic.Active = true;
else //if(chronojumpMode == Constants.Modes.FORCESENSORELASTIC)
@@ -440,10 +443,13 @@ public class ForceSensorExerciseWindow
{
string str;
if(o == Options.FORCE_SENSOR)
- str = "1.- " + Catalog.GetString("Isometric Leg Extension.") +
- "\n2.- " + Catalog.GetString("Upper limb movements against a rubber if the
displaced mass is considered insignificant.");
- else if(o == Options.FORCE_RESULTANT)
- str = "1.- " + Catalog.GetString("Vertical:") + " " + Catalog.GetString("Isometric
squat with the force sensor fixed between the floor and the body.") +
+ {
+ if (chronojumpMode == Constants.Modes.FORCESENSORISOMETRIC)
+ str = "- " + Catalog.GetString("Isometric Leg Extension.");
+ else //if (chronojumpMode == Constants.Modes.FORCESENSORELASTIC)
+ str = "- " + Catalog.GetString("Upper limb movements against a rubber if the
displaced mass is considered insignificant.");
+ } else if(o == Options.FORCE_RESULTANT)
+ str = "1.- " + Catalog.GetString("Vertical:") + " " + Catalog.GetString("Squat with
the force sensor fixed between the floor and the body.") +
"\n2.- " + Catalog.GetString("Horizontal:") + " " +
Catalog.GetString("Movements where a significant mass is accelerated.") +
"\n3.- " + Catalog.GetString("Diagonal movement:") + " " +
Catalog.GetString("Lateral squat.");
else if(o == Options.FIXATION_ELASTIC)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]