[chronojump] capture 1RM reference only in gravitatory



commit 87ab2e1c7ec7519908af1615e9883f1a40b52922
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri May 27 09:10:07 2016 +0200

    capture 1RM reference only in gravitatory

 glade/chronojump.glade |    2 +-
 src/gui/chronojump.cs  |    2 ++
 src/gui/encoder.cs     |    1 +
 3 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index f098819..34d9670 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -12711,7 +12711,7 @@ on current Chronojump version.</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkHBox" id="hbox61">
+                                                            <widget class="GtkHBox" id="hbox_capture_1RM">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 1cc0c2b..511ea55 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3060,6 +3060,7 @@ public partial class ChronoJumpWindow
                                }
                                
                                currentEncoderGI = Constants.EncoderGI.GRAVITATORY;
+                               hbox_capture_1RM.Visible = true;
                        } else {
                                menuitem_mode_selected_power_inertial.Visible = true;
 
@@ -3071,6 +3072,7 @@ public partial class ChronoJumpWindow
                                }
                                
                                currentEncoderGI = Constants.EncoderGI.INERTIAL;
+                               hbox_capture_1RM.Visible = false;
                        }
                        if(changed) {
                                label_encoder_selected.Text = encoderConfigurationCurrent.code;
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 2c49bc3..eb7813c 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -39,6 +39,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Button button_encoder_select;
        [Widget] Gtk.SpinButton spin_encoder_extra_weight;
        [Widget] Gtk.Label label_encoder_displaced_weight;
+       [Widget] Gtk.HBox hbox_capture_1RM;
        [Widget] Gtk.Label label_encoder_1RM_percent;
        [Widget] Gtk.Label label_encoder_im_total;
        [Widget] Gtk.SpinButton spin_encoder_im_weights_n;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]