[chronojump] Newtworks: Icon for rest times on encoder



commit ac1b2a725c7ba5545960b5e425b4aeea328ec174
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 26 17:53:15 2020 +0100

    Newtworks: Icon for rest times on encoder

 glade/app1.glade      | 43 ++++++++++++++++++++++++++++++-------------
 src/gui/app1/icons.cs |  2 ++
 src/gui/restTime.cs   |  1 +
 3 files changed, 33 insertions(+), 13 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index a7d263c6..45f02d30 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -23282,6 +23282,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -24066,6 +24069,17 @@ Concentric</property>
                                                     <property name="position">3</property>
                                                   </packing>
                                                 </child>
+                                                <child>
+                                                  <widget class="GtkImage" id="image_encoder_rest_time">
+                                                    <property name="can_focus">False</property>
+                                                    <property name="stock">gtk-missing-image</property>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">4</property>
+                                                  </packing>
+                                                </child>
                                                 <child>
                                                   <widget class="GtkTable" id="table14">
                                                     <property name="visible">True</property>
@@ -24203,7 +24217,7 @@ Concentric</property>
                                                   <packing>
                                                     <property name="expand">True</property>
                                                     <property name="fill">True</property>
-                                                    <property name="position">4</property>
+                                                    <property name="position">5</property>
                                                   </packing>
                                                 </child>
                                               </widget>
@@ -25554,6 +25568,18 @@ 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>
@@ -25590,18 +25616,6 @@ 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>
@@ -32957,6 +32971,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/icons.cs b/src/gui/app1/icons.cs
index 509ed8ca..b6e99877 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -168,6 +168,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Image image_encoder_analyze_image_compujump_send_email_send;
        [Widget] Gtk.Image image_encoder_analyze_check;
        [Widget] Gtk.Image image_menuitem_encoder_session_overview;
+       [Widget] Gtk.Image image_encoder_rest_time;
 
        //force sensor
        [Widget] Gtk.Image image_selector_start_force_sensor;
@@ -456,6 +457,7 @@ public partial class ChronoJumpWindow
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_rest.png");
                image_rest.Pixbuf = pixbuf;
                image_encoder_rhythm_rest.Pixbuf = pixbuf;
+               image_encoder_rest_time.Pixbuf = pixbuf;
 
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "folder_check.png");
                image_all_persons_events.Pixbuf = pixbuf;
diff --git a/src/gui/restTime.cs b/src/gui/restTime.cs
index 45efcf77..2b1421fe 100644
--- a/src/gui/restTime.cs
+++ b/src/gui/restTime.cs
@@ -124,6 +124,7 @@ public partial class ChronoJumpWindow
        {
                labels_rest_time_encoder_clean();
                List<LastTestTime> listLastMin = restTime.LastMinList();
+               image_encoder_rest_time.Visible = (listLastMin.Count > 0);
                int count = 0;
                foreach(LastTestTime ltt in listLastMin)
                {


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