[chronojump] check_run_show_time used on run and runI



commit 96990554fa5fb4daee038d019d594b7017267b50
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Sep 27 13:54:05 2021 +0200

    check_run_show_time used on run and runI

 glade/app1.glade           | 34 ++++++++++++++++++++--------------
 src/gui/app1/chronojump.cs |  5 ++---
 src/gui/eventExecute.cs    | 15 ++++++++-------
 3 files changed, 30 insertions(+), 24 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 05a3c69bf..4140fe63f 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -8067,11 +8067,11 @@ EncoderInertialCapture</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkCheckButton" 
id="check_run_simple_show_time">
+                                                            <widget class="GtkCheckButton" 
id="check_run_show_time">
                                                             <property name="can_focus">True</property>
                                                             <property 
name="receives_default">False</property>
                                                             <property name="draw_indicator">False</property>
-                                                            <signal name="toggled" 
handler="on_check_run_simple_show_time_toggled" swapped="no"/>
+                                                            <signal name="toggled" 
handler="on_check_run_show_time_toggled" swapped="no"/>
                                                             <child>
                                                             <widget class="GtkImage" 
id="image_run_simple_show_time">
                                                             <property name="visible">True</property>
@@ -25046,6 +25046,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -31357,18 +31360,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>
@@ -31405,6 +31396,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>
@@ -40727,6 +40730,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/chronojump.cs b/src/gui/app1/chronojump.cs
index bb3b52af0..ca0c4a562 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -3479,6 +3479,7 @@ public partial class ChronoJumpWindow
                button_contacts_exercise_close_and_recalculate.Visible = false;
                vbox_contacts_signal_comment.Visible = false;
                frame_jumps_automatic.Visible = false;
+               check_run_show_time.Visible = false;
 
                hbox_combo_select_contacts_top_with_arrows.Visible = false; //TODO: this will be unneded
 
@@ -3533,7 +3534,6 @@ public partial class ChronoJumpWindow
 
                                event_graph_label_graph_test.Visible = false;
                                vbox_contacts_simple_graph_controls.Visible = true;
-                               check_run_simple_show_time.Visible = false;
                                button_jumps_simple_capture_save_image.Visible = true;
 
                                //align_check_vbox_contacts_graph_legend.Visible = true;
@@ -3552,7 +3552,6 @@ public partial class ChronoJumpWindow
 
                                event_graph_label_graph_test.Visible = false;
                                vbox_contacts_simple_graph_controls.Visible = true;
-                               check_run_simple_show_time.Visible = false;
 
                                //align_check_vbox_contacts_graph_legend.Visible = false;
                                //vbox_contacts_graph_legend.Visible = false;
@@ -3588,6 +3587,7 @@ public partial class ChronoJumpWindow
                        image_top_laterality_contacts.Visible = false;
 
                        hbox_change_modes_runs.Visible = true;
+                       check_run_show_time.Visible = true;
 
                        if(m == Constants.Modes.RUNSSIMPLE) 
                        {
@@ -3596,7 +3596,6 @@ public partial class ChronoJumpWindow
 
                                event_graph_label_graph_test.Visible = false;
                                vbox_contacts_simple_graph_controls.Visible = true;
-                               check_run_simple_show_time.Visible = true;
                                button_runs_simple_capture_save_image.Visible = true;
 
                                //align_check_vbox_contacts_graph_legend.Visible = true;
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 111492cd6..69d62a7d9 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -59,7 +59,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.RadioButton radio_contacts_graph_allPersons;
        [Widget] Gtk.Image image_radio_contacts_graph_currentPerson;
        [Widget] Gtk.Image image_radio_contacts_graph_allPersons;
-       [Widget] Gtk.CheckButton check_run_simple_show_time;
+       [Widget] Gtk.CheckButton check_run_show_time;
        
        [Widget] Gtk.ProgressBar event_execute_progressbar_event;
        [Widget] Gtk.ProgressBar event_execute_progressbar_time;
@@ -291,7 +291,7 @@ public partial class ChronoJumpWindow
        {
                event_graph_label_graph_test.Visible = false;
                vbox_contacts_simple_graph_controls.Visible = true;
-               check_run_simple_show_time.Visible = false;
+               check_run_show_time.Visible = false;
 
 //             align_check_vbox_contacts_graph_legend.Visible = true;
                //vbox_contacts_graph_legend.Visible = false;
@@ -304,7 +304,7 @@ public partial class ChronoJumpWindow
        {
                event_graph_label_graph_test.Visible = false;
                vbox_contacts_simple_graph_controls.Visible = true;
-               check_run_simple_show_time.Visible = false;
+               check_run_show_time.Visible = false;
 
 //             align_check_vbox_contacts_graph_legend.Visible = false;
 //             vbox_contacts_graph_legend.Visible = false;
@@ -316,7 +316,7 @@ public partial class ChronoJumpWindow
        {
                event_graph_label_graph_test.Visible = false;
                vbox_contacts_simple_graph_controls.Visible = true;
-               check_run_simple_show_time.Visible = true;
+               check_run_show_time.Visible = true;
 
 //             align_check_vbox_contacts_graph_legend.Visible = true;
                //vbox_contacts_graph_legend.Visible = false;
@@ -326,8 +326,9 @@ public partial class ChronoJumpWindow
                
        private void showRunIntervalLabels() 
        {
-               event_graph_label_graph_test.Visible = true;
-               vbox_contacts_simple_graph_controls.Visible = false;
+               event_graph_label_graph_test.Visible = false;
+               vbox_contacts_simple_graph_controls.Visible = true;
+               check_run_show_time.Visible = true;
 
 //             align_check_vbox_contacts_graph_legend.Visible = false;
 //             vbox_contacts_graph_legend.Visible = false;
@@ -802,7 +803,7 @@ public partial class ChronoJumpWindow
 
                // Paint cairo graph
                cairoPaintBarsPre.ShowPersonNames = radio_contacts_graph_allPersons.Active;
-               cairoPaintBarsPre.RunsShowTime = check_run_simple_show_time.Active;
+               cairoPaintBarsPre.RunsShowTime = check_run_show_time.Active;
                cairoPaintBarsPre.Paint();
        }
        


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