[chronojump] Sprint analyze export gui: 1st signals connected



commit 270118e8669921d175b3ebcd6d2564648af18125
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 15 16:36:52 2021 +0100

    Sprint analyze export gui: 1st signals connected

 glade/app1.glade  |  6 ++++++
 src/gui/sprint.cs | 29 +++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index f011de6e..513833a7 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -20885,6 +20885,7 @@ Concentric</property>
                                                             <property 
name="receives_default">False</property>
                                                             <property name="active">True</property>
                                                             <property name="draw_indicator">False</property>
+                                                            <signal name="toggled" 
handler="on_radio_sprint_analyze_individual_current_set_toggled" swapped="no"/>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox486">
                                                             <property name="visible">True</property>
@@ -20930,6 +20931,7 @@ Concentric</property>
                                                             <property 
name="receives_default">False</property>
                                                             <property name="draw_indicator">False</property>
                                                             <property 
name="group">radio_sprint_analyze_individual_current_set</property>
+                                                            <signal name="toggled" 
handler="on_radio_sprint_analyze_individual_current_session_toggled" swapped="no"/>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox487">
                                                             <property name="visible">True</property>
@@ -21011,6 +21013,7 @@ Concentric</property>
                                                             <property 
name="receives_default">False</property>
                                                             <property name="draw_indicator">False</property>
                                                             <property 
name="group">radio_sprint_analyze_individual_current_set</property>
+                                                            <signal name="toggled" 
handler="on_radio_sprint_analyze_groupal_current_session_toggled" swapped="no"/>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox488">
                                                             <property name="visible">True</property>
@@ -21082,6 +21085,8 @@ Concentric</property>
                                                             <widget class="GtkNotebook" 
id="notebook_sprint_analyze_top">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
+                                                            <property name="show_tabs">False</property>
+                                                            <property name="show_border">False</property>
                                                             <child>
                                                             <widget class="GtkVPaned" id="vpaned1">
                                                             <property name="visible">True</property>
@@ -21345,6 +21350,7 @@ Concentric</property>
                                                             <property 
name="receives_default">False</property>
                                                             <property name="active">True</property>
                                                             <property name="draw_indicator">True</property>
+                                                            <signal name="toggled" 
handler="on_check_sprint_export_images_toggled" swapped="no"/>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/sprint.cs b/src/gui/sprint.cs
index 1d029024..c58c15c1 100644
--- a/src/gui/sprint.cs
+++ b/src/gui/sprint.cs
@@ -35,6 +35,12 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Image image_sprint;
        [Widget] Gtk.Button button_sprint_save_image;
 
+       [Widget] Gtk.Notebook notebook_sprint_analyze_top;
+       [Widget] Gtk.CheckButton check_sprint_export_images;
+       [Widget] Gtk.HBox hbox_sprint_export_width_height;
+       [Widget] Gtk.SpinButton spinbutton_sprint_export_image_width;
+       [Widget] Gtk.SpinButton spinbutton_sprint_export_image_height;
+
        static Sprint sprint;
        TreeStore storeSprint;
 
@@ -314,4 +320,27 @@ public partial class ChronoJumpWindow
                new DialogMessage(Constants.MessageTypes.INFO, myString);
        }
 
+
+       //move to export gui file
+
+       private void on_check_sprint_export_images_toggled (object o, EventArgs args)
+       {
+               hbox_sprint_export_width_height.Visible = check_sprint_export_images.Active;
+       }
+
+       private void on_radio_sprint_analyze_individual_current_set_toggled (object o, EventArgs args)
+       {
+               notebook_sprint_analyze_top.CurrentPage = 0;
+       }
+
+       private void on_radio_sprint_analyze_individual_current_session_toggled (object o, EventArgs args)
+       {
+               notebook_sprint_analyze_top.CurrentPage = 1;
+       }
+
+       private void on_radio_sprint_analyze_groupal_current_session_toggled (object o, EventArgs args)
+       {
+               notebook_sprint_analyze_top.CurrentPage = 1;
+       }
+
 }


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