[chronojump/michrolab] Forcesensor exercise edit/add show subtitle isometric/elastic
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Forcesensor exercise edit/add show subtitle isometric/elastic
- Date: Thu, 14 Jul 2022 16:37:58 +0000 (UTC)
commit 3d5f2c88cb52ae5a17b437fe57dd391ccec42c33
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jul 13 12:09:02 2022 +0200
Forcesensor exercise edit/add show subtitle isometric/elastic
src/gui/app1/forceSensor.cs | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index 7b2fc2283..41f12192a 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -3459,9 +3459,13 @@ LogB.Information(" fs R ");
LogB.Information("selected exercise: " + ex.ToString());
+ string subtitle = Catalog.GetString ("Isometric exercise");
+ if (current_mode == Constants.Modes.FORCESENSORELASTIC)
+ subtitle = Catalog.GetString ("Elastic exercise");
+
forceSensorExerciseWin = ForceSensorExerciseWindow.ShowEdit (current_mode,
Catalog.GetString("Exercise"),
- Catalog.GetString("Force sensor exercise:"), ex,
+ subtitle, ex,
preferences.forceSensorElasticEccMinDispl,
preferences.forceSensorElasticConMinDispl,
preferences.forceSensorNotElasticEccMinForce,
preferences.forceSensorNotElasticConMinForce);
@@ -3470,9 +3474,13 @@ LogB.Information(" fs R ");
void on_button_force_sensor_exercise_add_clicked (object o, EventArgs args)
{
+ string subtitle = Catalog.GetString ("Isometric exercise");
+ if (current_mode == Constants.Modes.FORCESENSORELASTIC)
+ subtitle = Catalog.GetString ("Elastic exercise");
+
forceSensorExerciseWin = ForceSensorExerciseWindow.ShowAdd (current_mode,
Catalog.GetString("Exercise"),
- Catalog.GetString("Force sensor exercise:"),
+ subtitle,
preferences.forceSensorElasticEccMinDispl,
preferences.forceSensorElasticConMinDispl,
preferences.forceSensorNotElasticEccMinForce,
preferences.forceSensorNotElasticConMinForce);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]