[chronojump] Default exercise for forceSensor
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Default exercise for forceSensor
- Date: Tue, 4 Jan 2022 16:54:56 +0000 (UTC)
commit bfd5a5d25b6e7e375b5c4c37ed7a0c7e123adf03
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jan 4 17:51:42 2022 +0100
Default exercise for forceSensor
src/sqlite/forceSensor.cs | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
---
diff --git a/src/sqlite/forceSensor.cs b/src/sqlite/forceSensor.cs
index 83fb0259f..38d98cb74 100644
--- a/src/sqlite/forceSensor.cs
+++ b/src/sqlite/forceSensor.cs
@@ -492,6 +492,31 @@ class SqliteForceSensorExercise : Sqlite
return myLast;
}
+ //Default exercise for users without exercises (empty database creation or never used forceSensor)
+ protected internal static void insertDefault ()
+ {
+ Insert (true, new ForceSensorExercise(-1, "Leg extension", 0, "", 0,
+ "", false, false, false,
+ ForceSensorExercise.RepetitionsShowTypes.CONCENTRIC,
+ 100, 100));
+ Insert (true, new ForceSensorExercise(-1, "ABD/ADD", 0, "", 0,
+ "Abduction/Adduction", false, false, false,
+ ForceSensorExercise.RepetitionsShowTypes.BOTHSEPARATED,
+ 100, 100));
+ Insert (true, new ForceSensorExercise(-1, "Mid thigh pull", 100, "", 90,
+ "", false, true, false,
+ ForceSensorExercise.RepetitionsShowTypes.CONCENTRIC,
+ 200, 200));
+ Insert (true, new ForceSensorExercise(-1, "Hamstring", 0, "", 0,
+ "", true, true, false,
+ ForceSensorExercise.RepetitionsShowTypes.CONCENTRIC,
+ 50, 50));
+ Insert (true, new ForceSensorExercise(-1, "Pull rubber band", 0, "", 0,
+ "", false, true, true,
+ ForceSensorExercise.RepetitionsShowTypes.CONCENTRIC,
+ -1, -1));
+ }
+
public static void Update (bool dbconOpened, ForceSensorExercise ex)
{
if(! dbconOpened)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]