[chronojump] force sensor: Hidden camera stuff



commit f9eabb8922e211f251a4c064165554a99db7e4f0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Feb 19 16:21:35 2019 +0100

    force sensor: Hidden camera stuff

 src/gui/forceSensor.cs | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index 26c30301..2cdd0d23 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -76,6 +76,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.HBox hbox_force_sensor_lat_and_comments;
        [Widget] Gtk.Alignment alignment_force_sensor_adjust;
        [Widget] Gtk.VSeparator vseparator_force_sensor_camera_space;
+       [Widget] Gtk.VBox vbox_contacts_camera;
        [Widget] Gtk.Button button_force_sensor_tare;
        [Widget] Gtk.Button button_force_sensor_calibrate;
        [Widget] Gtk.Label label_force_sensor_value_max;
@@ -1484,7 +1485,14 @@ LogB.Information(" re R ");
        private void showHideForceSensorControls(bool modeForceSensor)
        {
                hbox_capture_phases_time.Visible = ! modeForceSensor;
-               vseparator_force_sensor_camera_space.Visible = modeForceSensor; //extra space before camera 
on force sensor
+
+               //make it visible when camera works on force sensor (before we need database stuff for 
forcesensor)
+               //vseparator_force_sensor_camera_space.Visible = modeForceSensor; //extra space before camera 
on force sensor
+               vseparator_force_sensor_camera_space.Visible = false; //extra space before camera on force 
sensor
+               //vbox_contacts_camera.Visible = true; //should be visible on all contacts, but right now 
hide it on force sensor
+               vbox_contacts_camera.Visible = ! modeForceSensor;
+               button_video_play_this_test.Visible = ! modeForceSensor; //should be visible on all contacts, 
but right now hide it on force sensor
+
                menuitem_force_sensor_open_folder.Visible = modeForceSensor;
                menuitem_force_sensor_check_version.Visible = modeForceSensor;
        }


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