[chronojump] ForceSensor path conditions check max>=min
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ForceSensor path conditions check max>=min
- Date: Tue, 25 May 2021 12:36:55 +0000 (UTC)
commit 08acc40c5971f3cd720638ff9647c2c9b2603d72
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue May 25 14:36:26 2021 +0200
ForceSensor path conditions check max>=min
glade/repetitive_conditions.glade | 3 +++
src/gui/repetitiveConditions.cs | 12 ++++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/glade/repetitive_conditions.glade b/glade/repetitive_conditions.glade
index cd844f528..af6e04ced 100644
--- a/glade/repetitive_conditions.glade
+++ b/glade/repetitive_conditions.glade
@@ -4563,6 +4563,7 @@
<widget class="GtkLabel" id="label_rhythm_tab">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="label">rhythm</property>
</widget>
<packing>
<property name="position">3</property>
@@ -5038,6 +5039,7 @@
<property name="adjustment">50 0 9999 1 10
0</property>
<property name="climb_rate">1</property>
<property name="numeric">True</property>
+ <signal name="value_changed"
handler="on_spin_force_sensor_capture_feedback_path_min_value_changed" swapped="no"/>
</widget>
<packing>
<property name="expand">False</property>
@@ -5095,6 +5097,7 @@
<property name="adjustment">100 0 9999 1 10
0</property>
<property name="climb_rate">1</property>
<property name="numeric">True</property>
+ <signal name="value_changed"
handler="on_spin_force_sensor_capture_feedback_path_max_value_changed" swapped="no"/>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index 8bdf9e1f2..6f93aac1d 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -998,6 +998,18 @@ public class RepetitiveConditionsWindow
}
//force sensor feedback path
+
+ private void on_spin_force_sensor_capture_feedback_path_min_value_changed (object o, EventArgs args)
+ {
+ if(spin_force_sensor_capture_feedback_path_min.Value >
spin_force_sensor_capture_feedback_path_max.Value)
+ spin_force_sensor_capture_feedback_path_max.Value =
spin_force_sensor_capture_feedback_path_min.Value;
+ }
+ private void on_spin_force_sensor_capture_feedback_path_max_value_changed (object o, EventArgs args)
+ {
+ if(spin_force_sensor_capture_feedback_path_max.Value <
spin_force_sensor_capture_feedback_path_min.Value)
+ spin_force_sensor_capture_feedback_path_min.Value =
spin_force_sensor_capture_feedback_path_max.Value;
+ }
+
public bool GetForceSensorFeedbackPathActive {
get { return radio_force_sensor_capture_feedback_show_path.Active; }
//get { return true; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]