[chronojump] Encoder shows "Profile:" on analyze cross



commit 4375ef75ba91a0a44bccfd7febd081ed88a3e399
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jan 9 13:32:51 2018 +0100

    Encoder shows "Profile:" on analyze cross

 glade/app1.glade   |   30 ++++++++++++++++++++++++++++++
 src/gui/encoder.cs |   17 +++++++++--------
 2 files changed, 39 insertions(+), 8 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 7bf1afb..5f77caf 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1547,6 +1547,9 @@
                                                             <placeholder/>
                                                             </child>
                                                             <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkLabel" 
id="label_start_selector_jumps">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -20339,13 +20342,37 @@ then click this button.</property>
                                                             </packing>
                                                             </child>
                                                             <child>
+                                                            <widget class="GtkHBox" 
id="hbox_combo_encoder_analyze_cross_sup">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">6</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label276">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Profile:</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_combo_encoder_analyze_cross">
+                                                            <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
                                                             </widget>
                                                             <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
                                                             <property name="position">7</property>
@@ -22410,6 +22437,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 4b0375e..0a6fd6c 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -143,6 +143,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Box hbox_combo_encoder_exercise_analyze;
        [Widget] Gtk.ComboBox combo_encoder_exercise_analyze;
 
+       [Widget] Gtk.Box hbox_combo_encoder_analyze_cross_sup; //includes "Profile" label and the hbox
        [Widget] Gtk.Box hbox_combo_encoder_analyze_cross;
        [Widget] Gtk.ComboBox combo_encoder_analyze_cross;
        
@@ -3156,7 +3157,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_single_toggled (object obj, EventArgs args) {
                hbox_encoder_analyze_curve_num.Visible=true;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = true;
-               hbox_combo_encoder_analyze_cross.Visible=false;
+               hbox_combo_encoder_analyze_cross_sup.Visible=false;
                hbox_combo_encoder_analyze_1RM.Visible=false;
                check_encoder_analyze_mean_or_max.Visible=false;
                hbox_encoder_analyze_show_powerbars.Visible=false;
@@ -3181,7 +3182,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_superpose_toggled (object obj, EventArgs args) {
                hbox_encoder_analyze_curve_num.Visible=true;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = true;
-               hbox_combo_encoder_analyze_cross.Visible=false;
+               hbox_combo_encoder_analyze_cross_sup.Visible=false;
                hbox_combo_encoder_analyze_1RM.Visible=false;
                check_encoder_analyze_mean_or_max.Visible=false;
                hbox_encoder_analyze_show_powerbars.Visible=false;
@@ -3203,7 +3204,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_side_toggled (object obj, EventArgs args) {
                hbox_encoder_analyze_curve_num.Visible=false;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = false;
-               hbox_combo_encoder_analyze_cross.Visible=false;
+               hbox_combo_encoder_analyze_cross_sup.Visible=false;
                hbox_combo_encoder_analyze_1RM.Visible=false;
                check_encoder_analyze_mean_or_max.Visible=false;
                hbox_encoder_analyze_show_powerbars.Visible=false;
@@ -3225,7 +3226,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_powerbars_toggled (object obj, EventArgs args) {
                hbox_encoder_analyze_curve_num.Visible=false;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = false;
-               hbox_combo_encoder_analyze_cross.Visible=false;
+               hbox_combo_encoder_analyze_cross_sup.Visible=false;
                hbox_combo_encoder_analyze_1RM.Visible=false;
                check_encoder_analyze_mean_or_max.Visible=false;
                hbox_encoder_analyze_show_powerbars.Visible=true;
@@ -3248,7 +3249,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_cross_toggled (object obj, EventArgs args) {
                hbox_encoder_analyze_curve_num.Visible=false;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = false;
-               hbox_combo_encoder_analyze_cross.Visible=true;
+               hbox_combo_encoder_analyze_cross_sup.Visible=true;
                hbox_combo_encoder_analyze_1RM.Visible=false;
                check_encoder_analyze_mean_or_max.Visible=true;
                hbox_encoder_analyze_show_powerbars.Visible=false;
@@ -3271,7 +3272,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_1RM_toggled (object obj, EventArgs args) {
                hbox_encoder_analyze_curve_num.Visible=false;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = false;
-               hbox_combo_encoder_analyze_cross.Visible=false;
+               hbox_combo_encoder_analyze_cross_sup.Visible=false;
                hbox_combo_encoder_analyze_1RM.Visible=true;
                check_encoder_analyze_mean_or_max.Visible=true;
                hbox_encoder_analyze_show_powerbars.Visible=false;
@@ -3294,7 +3295,7 @@ public partial class ChronoJumpWindow
        private void on_radiobutton_encoder_analyze_neuromuscular_profile_toggled (object obj, EventArgs 
args) {
                hbox_encoder_analyze_curve_num.Visible=false;
                hbox_combo_encoder_analyze_curve_num_combo.Visible = false;
-               hbox_combo_encoder_analyze_cross.Visible=false;
+               hbox_combo_encoder_analyze_cross_sup.Visible=false;
                hbox_combo_encoder_analyze_1RM.Visible=false;
                check_encoder_analyze_mean_or_max.Visible=false;
                hbox_encoder_analyze_show_powerbars.Visible=false;
@@ -3658,7 +3659,7 @@ public partial class ChronoJumpWindow
                        hbox_combo_encoder_analyze_cross.PackStart(combo_encoder_analyze_cross, true, true, 
0);
                        hbox_combo_encoder_analyze_cross.ShowAll(); 
                        combo_encoder_analyze_cross.Sensitive = true;
-                       hbox_combo_encoder_analyze_cross.Visible = false; //do not show hbox at start
+                       hbox_combo_encoder_analyze_cross_sup.Visible = false; //do not show hbox at start
                }
        }
                


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