[chronojump] Improvements on contacts graph right controls (graph buttons moved to right)



commit b920953321bb3b36dbc7772eadd35ea111692cee
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Aug 6 09:59:44 2021 +0200

    Improvements on contacts graph right controls (graph buttons moved to right)

 glade/app1.glade           | 401 +++++++++++++++++++--------------------------
 src/gui/app1/chronojump.cs |  37 ++---
 src/gui/eventExecute.cs    |  32 ++--
 3 files changed, 202 insertions(+), 268 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 3dd0ca9e4..90b06de22 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -7703,7 +7703,7 @@ EncoderInertialCapture</property>
                                                             <widget class="GtkHBox" id="hbox553">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">24</property>
+                                                            <property name="spacing">30</property>
                                                             <child>
                                                             <widget class="GtkHBox" 
id="hbox_contacts_graph_test">
                                                             <property name="visible">True</property>
@@ -7763,16 +7763,11 @@ EncoderInertialCapture</property>
                                                             <widget class="GtkHBox" id="hbox554">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">24</property>
+                                                            <property name="spacing">12</property>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox555">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">24</property>
-                                                            <child>
-                                                            <widget class="GtkHBox" id="hbox8">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
                                                             <property name="spacing">12</property>
                                                             <child>
                                                             <widget class="GtkCheckButton" 
id="check_contacts_capture_graph">
@@ -7790,183 +7785,6 @@ EncoderInertialCapture</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkHBox" 
id="hbox_contacts_simple_graph_controls">
-                                                            <property name="can_focus">False</property>
-                                                            <child>
-                                                            <widget class="GtkLabel" id="label119">
-                                                            <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="GtkAlignment" id="alignment60">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="right_padding">12</property>
-                                                            <child>
-                                                            <widget class="GtkHBox" 
id="hbox_contacts_graph_last_limit">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
-                                                            <child>
-                                                            <widget class="GtkLabel" id="label542">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" 
translatable="yes">Last</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkSpinButton" 
id="spin_contacts_graph_last_limit">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property name="invisible_char">•</property>
-                                                            <property name="width_chars">2</property>
-                                                            <property 
name="primary_icon_activatable">False</property>
-                                                            <property 
name="secondary_icon_activatable">False</property>
-                                                            <property 
name="primary_icon_sensitive">True</property>
-                                                            <property 
name="secondary_icon_sensitive">True</property>
-                                                            <property name="adjustment">10 5 30 1 10 
0</property>
-                                                            <property name="numeric">True</property>
-                                                            <signal name="value_changed" 
handler="on_spin_contacts_graph_last_limit_value_changed" swapped="no"/>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">1</property>
-                                                            </packing>
-                                                            </child>
-                                                            </widget>
-                                                            </child>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">1</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkHBox" 
id="hbox_contacts_graph_person">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
-                                                            <child>
-                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_currentPerson">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property 
name="receives_default">False</property>
-                                                            <property name="tooltip">Current 
person</property>
-                                                            <property name="active">True</property>
-                                                            <property name="draw_indicator">False</property>
-                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_person_toggled" swapped="no"/>
-                                                            <child>
-                                                            <widget class="GtkImage" 
id="image_radio_contacts_graph_currentPerson">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property 
name="stock">gtk-missing-image</property>
-                                                            </widget>
-                                                            </child>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">True</property>
-                                                            <property name="fill">True</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_allPersons">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property 
name="receives_default">False</property>
-                                                            <property name="tooltip">All persons</property>
-                                                            <property name="draw_indicator">False</property>
-                                                            <property 
name="group">radio_contacts_graph_currentPerson</property>
-                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_person_toggled" swapped="no"/>
-                                                            <child>
-                                                            <widget class="GtkImage" 
id="image_radio_contacts_graph_allPersons">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property 
name="stock">gtk-missing-image</property>
-                                                            </widget>
-                                                            </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">2</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkAlignment" 
id="alignment_check_run_simple_show_time">
-                                                            <property name="can_focus">False</property>
-                                                            <property name="left_padding">12</property>
-                                                            <child>
-                                                            <widget class="GtkCheckButton" 
id="check_run_simple_show_time">
-                                                            <property name="visible">True</property>
-                                                            <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"/>
-                                                            <child>
-                                                            <widget class="GtkImage" 
id="image_run_simple_show_time">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property 
name="stock">gtk-missing-image</property>
-                                                            </widget>
-                                                            </child>
-                                                            </widget>
-                                                            </child>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">3</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkLabel" id="label120">
-                                                            <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">4</property>
-                                                            </packing>
-                                                            </child>
-                                                            </widget>
-                                                            <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="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkCheckButton" 
id="check_contacts_capture_table">
                                                             <property name="label" translatable="yes">Show 
table</property>
                                                             <property name="visible">True</property>
@@ -8119,7 +7937,6 @@ EncoderInertialCapture</property>
                                                             <widget class="GtkVBox" id="vbox20">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">4</property>
                                                             <child>
                                                             <widget class="GtkVBox" id="vbox21">
                                                             <property name="can_focus">False</property>
@@ -8178,8 +7995,8 @@ EncoderInertialCapture</property>
                                                             </child>
                                                             </widget>
                                                             <packing>
-                                                            <property name="expand">True</property>
-                                                            <property name="fill">True</property>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
                                                             <property name="position">0</property>
                                                             </packing>
                                                             </child>
@@ -8223,10 +8040,174 @@ EncoderInertialCapture</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkAlignment" 
id="align_check_vbox_contacts_graph_legend">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="bottom_padding">6</property>
+                                                            <child>
+                                                            <widget class="GtkCheckButton" 
id="check_vbox_contacts_graph_legend">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">False</property>
+                                                            <signal name="clicked" 
handler="on_check_vbox_contacts_graph_legend_clicked" swapped="no"/>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_info_sessions_info">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="stock">gtk-info</property>
+                                                            <property name="icon-size">1</property>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">3</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkButton" 
id="button_inspect_last_test_run_intervallic">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="receives_default">True</property>
+                                                            <property name="has_tooltip">True</property>
+                                                            <property name="tooltip" 
translatable="yes">Inspect</property>
+                                                            <signal name="clicked" 
handler="on_button_inspect_last_test_clicked" swapped="no"/>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_test_inspect1">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</property>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">4</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkVBox" 
id="vbox_contacts_simple_graph_controls">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">6</property>
+                                                            <child>
+                                                            <widget class="GtkVBox" id="vbox105">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">2</property>
+                                                            <child>
+                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_currentPerson">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="tooltip">Current 
person</property>
+                                                            <property name="active">True</property>
+                                                            <property name="draw_indicator">False</property>
+                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_person_toggled" swapped="no"/>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_radio_contacts_graph_currentPerson">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</property>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkRadioButton" 
id="radio_contacts_graph_allPersons">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="tooltip">All persons</property>
+                                                            <property name="active">True</property>
+                                                            <property name="draw_indicator">False</property>
+                                                            <property 
name="group">radio_contacts_graph_currentPerson</property>
+                                                            <signal name="toggled" 
handler="on_radio_contacts_graph_person_toggled" swapped="no"/>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_radio_contacts_graph_allPersons">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</property>
+                                                            </widget>
+                                                            </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">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkSpinButton" 
id="spin_contacts_graph_last_limit">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="max_length">2</property>
+                                                            <property name="invisible_char">•</property>
+                                                            <property name="width_chars">2</property>
+                                                            <property 
name="primary_icon_activatable">False</property>
+                                                            <property 
name="secondary_icon_activatable">False</property>
+                                                            <property 
name="primary_icon_sensitive">True</property>
+                                                            <property 
name="secondary_icon_sensitive">True</property>
+                                                            <property name="adjustment">10 2 30 1 10 
0</property>
+                                                            <property name="numeric">True</property>
+                                                            <signal name="value_changed" 
handler="on_spin_contacts_graph_last_limit_value_changed" swapped="no"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkCheckButton" 
id="check_run_simple_show_time">
+                                                            <property name="visible">True</property>
+                                                            <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"/>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_run_simple_show_time">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</property>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
                                                             <property name="fill">True</property>
                                                             <property name="position">2</property>
                                                             </packing>
                                                             </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">5</property>
+                                                            </packing>
+                                                            </child>
                                                             <child>
                                                             <widget class="GtkVBox" id="vbox255">
                                                             <property name="visible">True</property>
@@ -8324,51 +8305,7 @@ EncoderInertialCapture</property>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
                                                             <property name="pack_type">end</property>
-                                                            <property name="position">3</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkCheckButton" 
id="check_vbox_contacts_graph_legend">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property 
name="receives_default">False</property>
-                                                            <property name="draw_indicator">False</property>
-                                                            <signal name="clicked" 
handler="on_check_vbox_contacts_graph_legend_clicked" swapped="no"/>
-                                                            <child>
-                                                            <widget class="GtkImage" 
id="image_info_sessions_info">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property name="stock">gtk-info</property>
-                                                            <property name="icon-size">1</property>
-                                                            </widget>
-                                                            </child>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">4</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
-                                                            <widget class="GtkButton" 
id="button_inspect_last_test_run_intervallic">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">True</property>
-                                                            <property name="receives_default">True</property>
-                                                            <property name="has_tooltip">True</property>
-                                                            <property name="tooltip" 
translatable="yes">Inspect</property>
-                                                            <signal name="clicked" 
handler="on_button_inspect_last_test_clicked" swapped="no"/>
-                                                            <child>
-                                                            <widget class="GtkImage" 
id="image_test_inspect1">
-                                                            <property name="visible">True</property>
-                                                            <property name="can_focus">False</property>
-                                                            <property 
name="stock">gtk-missing-image</property>
-                                                            </widget>
-                                                            </child>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="position">5</property>
+                                                            <property name="position">6</property>
                                                             </packing>
                                                             </child>
                                                             </widget>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index ed425f693..56646f8b7 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -1138,9 +1138,9 @@ public partial class ChronoJumpWindow
                        on_extra_window_pulses_test_changed(obj, args);
 
                        event_graph_label_graph_test.Visible = true;
-                       hbox_contacts_simple_graph_controls.Visible = false;
+                       vbox_contacts_simple_graph_controls.Visible = false;
 
-                       check_vbox_contacts_graph_legend.Visible = false;
+                       align_check_vbox_contacts_graph_legend.Visible = false;
                        vbox_contacts_graph_legend.Visible = false;
                }
        }
@@ -1153,9 +1153,9 @@ public partial class ChronoJumpWindow
                        on_extra_window_multichronopic_test_changed(obj, args);
 
                        event_graph_label_graph_test.Visible = true;
-                       hbox_contacts_simple_graph_controls.Visible = false;
+                       vbox_contacts_simple_graph_controls.Visible = false;
 
-                       check_vbox_contacts_graph_legend.Visible = false;
+                       align_check_vbox_contacts_graph_legend.Visible = false;
                        vbox_contacts_graph_legend.Visible = false;
                }
        }
@@ -3491,11 +3491,11 @@ public partial class ChronoJumpWindow
                                on_extra_window_jumps_test_changed(new object(), new EventArgs());
 
                                event_graph_label_graph_test.Visible = false;
-                               hbox_contacts_simple_graph_controls.Visible = 
check_contacts_capture_graph.Active;
-                               alignment_check_run_simple_show_time.Visible = false;
+                               vbox_contacts_simple_graph_controls.Visible = true;
+                               check_run_simple_show_time.Visible = false;
                                button_jumps_simple_capture_save_image.Visible = true;
 
-                               check_vbox_contacts_graph_legend.Visible = true;
+                               align_check_vbox_contacts_graph_legend.Visible = true;
                                //vbox_contacts_graph_legend.Visible = false;
 
                                frame_jumps_automatic.Visible = true;
@@ -3509,9 +3509,9 @@ public partial class ChronoJumpWindow
                                on_extra_window_jumps_rj_test_changed(new object(), new EventArgs());
 
                                event_graph_label_graph_test.Visible = true;
-                               hbox_contacts_simple_graph_controls.Visible = false;
+                               vbox_contacts_simple_graph_controls.Visible = false;
 
-                               check_vbox_contacts_graph_legend.Visible = false;
+                               align_check_vbox_contacts_graph_legend.Visible = false;
                                vbox_contacts_graph_legend.Visible = false;
 
                                pixbufModeCurrent = new Pixbuf (null, Util.GetImagePath(false) + 
"image_jump_reactive.png");
@@ -3552,11 +3552,11 @@ public partial class ChronoJumpWindow
                                on_extra_window_runs_test_changed(new object(), new EventArgs());
 
                                event_graph_label_graph_test.Visible = false;
-                               hbox_contacts_simple_graph_controls.Visible = 
check_contacts_capture_graph.Active;
-                               alignment_check_run_simple_show_time.Visible = true;
+                               vbox_contacts_simple_graph_controls.Visible = true;
+                               check_run_simple_show_time.Visible = true;
                                button_runs_simple_capture_save_image.Visible = true;
 
-                               check_vbox_contacts_graph_legend.Visible = true;
+                               align_check_vbox_contacts_graph_legend.Visible = true;
                                //vbox_contacts_graph_legend.Visible = false;
 
                                frame_run_simple_double_contacts.Visible = true;
@@ -3570,9 +3570,9 @@ public partial class ChronoJumpWindow
                                on_extra_window_runs_interval_test_changed(new object(), new EventArgs());
 
                                event_graph_label_graph_test.Visible = true;
-                               hbox_contacts_simple_graph_controls.Visible = false;
+                               vbox_contacts_simple_graph_controls.Visible = false;
 
-                               check_vbox_contacts_graph_legend.Visible = false;
+                               align_check_vbox_contacts_graph_legend.Visible = false;
                                vbox_contacts_graph_legend.Visible = false;
 
                                createTreeView_runs_interval_sprint (treeview_runs_interval_sprint);
@@ -3725,9 +3725,9 @@ public partial class ChronoJumpWindow
                        //notebook_capture_analyze.GetNthPage(2).Hide(); //hide jumpsProfile on other tests
 
                        event_graph_label_graph_test.Visible = true;
-                       hbox_contacts_simple_graph_controls.Visible = false;
+                       vbox_contacts_simple_graph_controls.Visible = false;
 
-                       check_vbox_contacts_graph_legend.Visible = false;
+                       align_check_vbox_contacts_graph_legend.Visible = false;
                        vbox_contacts_graph_legend.Visible = false;
 
                        setLabelContactsExerciseSelected(m);
@@ -3769,7 +3769,7 @@ public partial class ChronoJumpWindow
 
                        hbox_change_modes_runs.Visible = true;
 
-                       check_vbox_contacts_graph_legend.Visible = false;
+                       align_check_vbox_contacts_graph_legend.Visible = false;
                        vbox_contacts_graph_legend.Visible = false;
 
                        combo_race_analyzer_device.Active = 0;
@@ -3916,9 +3916,6 @@ public partial class ChronoJumpWindow
                else
                        hbox_contacts_capture_show_need_one.Visible = true;
 
-               if(current_mode == Constants.Modes.JUMPSSIMPLE || current_mode == Constants.Modes.RUNSSIMPLE)
-                       hbox_contacts_simple_graph_controls.Visible = check_contacts_capture_graph.Active;
-
                /*
                   update the preferences variable
                   note as can be changed while capturing, it will be saved to SQL on exit
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index acfc6c220..5781e0d98 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -47,14 +47,13 @@ public partial class ChronoJumpWindow
 
 
        [Widget] Gtk.SpinButton spin_contacts_graph_last_limit;
-       [Widget] Gtk.HBox hbox_contacts_simple_graph_controls;
+       [Widget] Gtk.VBox vbox_contacts_simple_graph_controls;
        [Widget] Gtk.RadioButton radio_contacts_graph_currentTest;
        [Widget] Gtk.RadioButton radio_contacts_graph_allTests;
        [Widget] Gtk.RadioButton radio_contacts_graph_currentPerson;
        [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.Alignment alignment_check_run_simple_show_time;
        [Widget] Gtk.CheckButton check_run_simple_show_time;
        
        [Widget] Gtk.ProgressBar event_execute_progressbar_event;
@@ -78,6 +77,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Table event_execute_table_run_interval_values;
        [Widget] Gtk.Table event_execute_table_pulse_values;
        
+       [Widget] Gtk.Alignment align_check_vbox_contacts_graph_legend;
        [Widget] Gtk.CheckButton check_vbox_contacts_graph_legend;
        [Widget] Gtk.VBox vbox_contacts_graph_legend;
 
@@ -320,10 +320,10 @@ public partial class ChronoJumpWindow
        private void showJumpSimpleLabels() 
        {
                event_graph_label_graph_test.Visible = false;
-               hbox_contacts_simple_graph_controls.Visible = check_contacts_capture_graph.Active;
-               alignment_check_run_simple_show_time.Visible = false;
+               vbox_contacts_simple_graph_controls.Visible = check_contacts_capture_graph.Active;
+               check_run_simple_show_time.Visible = false;
 
-               check_vbox_contacts_graph_legend.Visible = true;
+               align_check_vbox_contacts_graph_legend.Visible = true;
                //vbox_contacts_graph_legend.Visible = false;
 
                notebook_results_data.Visible = false;
@@ -333,9 +333,9 @@ public partial class ChronoJumpWindow
        private void showJumpReactiveLabels() 
        {
                event_graph_label_graph_test.Visible = true;
-               hbox_contacts_simple_graph_controls.Visible = false;
+               vbox_contacts_simple_graph_controls.Visible = false;
 
-               check_vbox_contacts_graph_legend.Visible = false;
+               align_check_vbox_contacts_graph_legend.Visible = false;
                vbox_contacts_graph_legend.Visible = false;
 
                //show reactive info
@@ -359,10 +359,10 @@ public partial class ChronoJumpWindow
        private void showRunSimpleLabels() 
        {
                event_graph_label_graph_test.Visible = false;
-               hbox_contacts_simple_graph_controls.Visible = check_contacts_capture_graph.Active;
-               alignment_check_run_simple_show_time.Visible = true;
+               vbox_contacts_simple_graph_controls.Visible = check_contacts_capture_graph.Active;
+               check_run_simple_show_time.Visible = true;
 
-               check_vbox_contacts_graph_legend.Visible = true;
+               align_check_vbox_contacts_graph_legend.Visible = true;
                //vbox_contacts_graph_legend.Visible = false;
 
                notebook_results_data.Visible = false;
@@ -371,9 +371,9 @@ public partial class ChronoJumpWindow
        private void showRunIntervalLabels() 
        {
                event_graph_label_graph_test.Visible = true;
-               hbox_contacts_simple_graph_controls.Visible = false;
+               vbox_contacts_simple_graph_controls.Visible = false;
 
-               check_vbox_contacts_graph_legend.Visible = false;
+               align_check_vbox_contacts_graph_legend.Visible = false;
                vbox_contacts_graph_legend.Visible = false;
 
                //show run interval info
@@ -394,9 +394,9 @@ public partial class ChronoJumpWindow
        private void showReactionTimeLabels() 
        {
                event_graph_label_graph_test.Visible = true;
-               hbox_contacts_simple_graph_controls.Visible = false;
+               vbox_contacts_simple_graph_controls.Visible = false;
 
-               check_vbox_contacts_graph_legend.Visible = true;
+               align_check_vbox_contacts_graph_legend.Visible = true;
                //vbox_contacts_graph_legend.Visible = false;
 
                notebook_results_data.Visible = false;
@@ -405,9 +405,9 @@ public partial class ChronoJumpWindow
        private void showPulseLabels() 
        {
                event_graph_label_graph_test.Visible = true;
-               hbox_contacts_simple_graph_controls.Visible = false;
+               vbox_contacts_simple_graph_controls.Visible = false;
 
-               check_vbox_contacts_graph_legend.Visible = false;
+               align_check_vbox_contacts_graph_legend.Visible = false;
                vbox_contacts_graph_legend.Visible = false;
 
                //show pulse info


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