[chronojump] forceSensor variability label cvrmssd and units depending on method
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] forceSensor variability label cvrmssd and units depending on method
- Date: Fri, 18 Dec 2020 15:26:38 +0000 (UTC)
commit f1cbd97e5b74e920c7337805118b70ce5878a622
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Dec 18 16:25:52 2020 +0100
forceSensor variability label cvrmssd and units depending on method
glade/app1.glade | 34 +++++++++++++++++++---------------
src/gui/app1/forceSensorAnalyze.cs | 7 +++++++
2 files changed, 26 insertions(+), 15 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index d313a3cc..d83a7e60 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -23490,6 +23490,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -23581,10 +23584,9 @@ Concentric</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label584">
+ <widget class="GtkLabel"
id="label_force_sensor_ai_variability_units">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label">N</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -23657,7 +23659,6 @@ Concentric</property>
</child>
<child>
<widget class="GtkLabel"
id="label_force_sensor_ai_variability_cvrmssd">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label">(cvRMSSD)</property>
@@ -28306,18 +28307,6 @@ Concentric</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
- <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Tests
will be filmed</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
<widget class="GtkHBox"
id="hbox_video_encoder_capturing">
<property name="can_focus">False</property>
<property name="spacing">4</property>
@@ -28354,6 +28343,18 @@ Concentric</property>
</packing>
</child>
<child>
+ <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Tests
will be filmed</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkHBox"
id="hbox_video_encoder_no_capturing">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -36585,6 +36586,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index 9b0665e5..6538bb98 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -134,6 +134,8 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Label label_force_sensor_ai_impulse_values;
[Widget] Gtk.Label label_force_sensor_ai_variability_values;
[Widget] Gtk.Label label_force_sensor_ai_feedback_values;
+ [Widget] Gtk.Label label_force_sensor_ai_variability_cvrmssd;
+ [Widget] Gtk.Label label_force_sensor_ai_variability_units;
private RepetitionMouseLimits fsAIRepetitionMouseLimits;
@@ -1905,6 +1907,11 @@ public partial class ChronoJumpWindow
}
table_force_sensor_ai_impulse_variability_and_feedback.Visible = (countA != countB);
+ label_force_sensor_ai_variability_cvrmssd.Visible = (preferences.forceSensorVariabilityMethod
== Preferences.VariabilityMethodEnum.CVRMSSD);
+ if(preferences.forceSensorVariabilityMethod == Preferences.VariabilityMethodEnum.CVRMSSD)
+ label_force_sensor_ai_variability_units.Text = "%";
+ else
+ label_force_sensor_ai_variability_units.Text = "N";
if(countA != countB)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]