Commit 8229b90a authored by Xavier de Blas's avatar Xavier de Blas

Added debug button to help to test the camera. HIDE IT on release

parent 7a08d7e8
......@@ -1820,6 +1820,9 @@
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label_start_selector_jumps">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -8999,6 +9002,50 @@ EncoderInertialCapture</property>
<property name="position">1</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="button_video_debug">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="on_button_video_debug_clicked" swapped="no"/>
<child>
<widget class="GtkHBox" id="hbox65">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">4</property>
<child>
<widget class="GtkImage" id="image6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-dialog-warning</property>
</widget>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label56">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label">debug</property>
</widget>
<packing>
<property name="expand">True</property>
<property name="fill">True</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">2</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">True</property>
......@@ -19086,42 +19133,6 @@ Concentric</property>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label_force_sensor_ai_rfd_a">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -19439,6 +19450,9 @@ Concentric</property>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_force_sensor_ai_b">
<property name="width_request">30</property>
<property name="visible">True</property>
......@@ -19554,6 +19568,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</widget>
<packing>
<property name="expand">False</property>
......@@ -27852,6 +27869,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</widget>
<packing>
<property name="expand">False</property>
......@@ -6133,6 +6133,17 @@ LogB.Debug("mc finished 5");
Webcam.Result result = webcam.PlayPreview ();
}
private void on_button_video_debug_clicked (object o, EventArgs args)
{
string executable = "debug";
if(UtilAll.GetOSEnum() == UtilAll.OperatingSystems.WINDOWS)
executable = System.IO.Path.Combine(Util.GetPrefixDir(), "bin/debug.bat");
LogB.Information("Calling debug: " + executable);
ExecuteProcess.Result execute_result = ExecuteProcess.run (executable);
LogB.Information("Called debug.");
}
//Not used on encoder
private void playVideo (string fileName)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment