[chronojump/michrolab] Done: check_contacts_networks_upload



commit 2bceb9f8922271b8e455729f3bc2a05006c33825
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Aug 4 16:36:16 2022 +0200

    Done: check_contacts_networks_upload

 glade/app1.glade    | 54 +++++++++++++++++++++++++++++++++++++++--------------
 src/gui/networks.cs |  7 +++++++
 2 files changed, 47 insertions(+), 14 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 41194dd71..99c8a9a3f 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -6660,6 +6660,20 @@ EncoderInertialCapture</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <child>
+                                                            <widget class="GtkCheckButton" 
id="check_contacts_networks_upload">
+                                                            <property name="label" translatable="yes">Upload 
next capture</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="active">True</property>
+                                                            <property name="draw_indicator">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkNotebook" 
id="notebook_video_contacts">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -6669,7 +6683,7 @@ EncoderInertialCapture</property>
                                                             <widget class="GtkHBox" 
id="hbox_video_contacts_no_capturing">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="spacing">6</property>
+                                                            <property name="spacing">16</property>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox168">
                                                             <property name="visible">True</property>
@@ -6778,6 +6792,9 @@ EncoderInertialCapture</property>
                                                             </packing>
                                                             </child>
                                                             </widget>
+                                                            <packing>
+                                                            <property name="tab_pack">end</property>
+                                                            </packing>
                                                             </child>
                                                             <child>
                                                             <widget class="GtkLabel" id="label56">
@@ -6919,7 +6936,7 @@ EncoderInertialCapture</property>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
                                                             <property name="pack_type">end</property>
-                                                            <property name="position">0</property>
+                                                            <property name="position">1</property>
                                                             </packing>
                                                             </child>
                                                           </widget>
@@ -26072,6 +26089,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -32872,6 +32892,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>
@@ -32908,18 +32940,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>
@@ -42352,6 +42372,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -50416,6 +50439,9 @@ Since Chronojump 2.1.3, backups contain the complete data.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             </child>
                                                             </widget>
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 71c8a050a..e0c1b3590 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -88,6 +88,9 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.HBox hbox_RFID_disconnected;
        [Widget] Gtk.Label label_encoder_checked_error;
 
+       //contacts
+       [Widget] Gtk.CheckButton check_contacts_networks_upload;
+
        //runsInterval
        [Widget] Gtk.RadioButton radio_run_interval_compujump_5m;
        [Widget] Gtk.RadioButton radio_run_interval_compujump_10m;
@@ -194,8 +197,10 @@ public partial class ChronoJumpWindow
 
                        //do not allow camera controls
                        showWebcamCaptureContactsControls (false); //contacts
+                       notebook_video_contacts.Visible = false;
                        hbox_video_encoder.Visible = false;
 
+                       check_contacts_networks_upload.Visible = true;
                        check_encoder_networks_upload.Visible = true;
 
                        //networks always without lateral person win
@@ -475,6 +480,8 @@ public partial class ChronoJumpWindow
        private void configNetworsEncoderAsGuest(bool guest)
        {
                //on guest widgets are invisible, cleaner and easier than unsensitive because during 
capture/curves sensitivity changes on some buttons
+               check_contacts_networks_upload.Active = ! guest;
+               check_contacts_networks_upload.Visible = ! guest;
                check_encoder_networks_upload.Active = ! guest;
                check_encoder_networks_upload.Visible = ! guest;
 


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