[chronojump] Jump exercise options show [start inside] if is not drop jump



commit e210ef081b755a817a4b0f405c670226fca779dd
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Dec 11 15:29:11 2020 +0100

    Jump exercise options show [start inside] if is not drop jump

 glade/app1.glade     | 64 +++++++++++++++++++++++++++++++++++++++++++++++++---
 src/gui/app1/jump.cs |  5 +++-
 2 files changed, 65 insertions(+), 4 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 821f3a75..2b748a1b 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -13439,11 +13439,62 @@ EncoderInertialCapture</property>
                                                             </packing>
                                                             </child>
                                                             <child>
+                                                            <widget class="GtkHBox" id="hbox23">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <child>
+                                                            <widget class="GtkHBox" 
id="extra_window_jumps_simple_hbox_start_inside">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label582">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">[</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" 
id="extra_window_jumps_label_dj_start_inside1">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Start 
inside</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label583">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">]</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="extra_window_jumps_hbox_fall">
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">30</property>
                                                             <child>
-                                                            <widget class="GtkHBox" id="hbox23">
+                                                            <widget class="GtkHBox" id="hbox216">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">8</property>
@@ -13457,7 +13508,7 @@ EncoderInertialCapture</property>
                                                             <property name="draw_indicator">False</property>
                                                             <signal name="toggled" 
handler="on_extra_window_jumps_check_dj_fall_calculate_toggled" swapped="no"/>
                                                             <child>
-                                                            <widget class="GtkHBox" id="hbox216">
+                                                            <widget class="GtkHBox" id="hbox300">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <child>
@@ -13497,7 +13548,7 @@ EncoderInertialCapture</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkHBox" id="hbox300">
+                                                            <widget class="GtkHBox" id="hbox404">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <child>
@@ -13625,6 +13676,13 @@ EncoderInertialCapture</property>
                                                             <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
                                                             <property name="padding">5</property>
                                                             <property name="position">2</property>
                                                             </packing>
diff --git a/src/gui/app1/jump.cs b/src/gui/app1/jump.cs
index e08b3d16..d8b03520 100644
--- a/src/gui/app1/jump.cs
+++ b/src/gui/app1/jump.cs
@@ -35,6 +35,7 @@ public partial class ChronoJumpWindow
        //options jumps
        [Widget] Gtk.Button button_jump_type_delete_simple;
        [Widget] Gtk.SpinButton extra_window_jumps_spinbutton_weight;
+       [Widget] Gtk.HBox extra_window_jumps_simple_hbox_start_inside;
        [Widget] Gtk.Box extra_window_jumps_hbox_fall;
        [Widget] Gtk.CheckButton extra_window_jumps_check_dj_fall_calculate;
        [Widget] Gtk.Label extra_window_jumps_label_dj_start_inside;
@@ -462,8 +463,10 @@ public partial class ChronoJumpWindow
                
                        //only on simple jumps  
                        extra_window_jumps_hbox_fall.Visible = false;
-               } else 
+               } else {
+                       extra_window_jumps_simple_hbox_start_inside.Visible = ! show;
                        extra_window_jumps_hbox_fall.Visible = show;
+               }
        }
        
        private void extra_window_showLimitData (bool show) {


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