mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-12 09:41:18 +02:00
Merge pull request #683 from EmixamPP/linux-enable-ir-emitter_2
linux-enable-ir-emitter
This commit is contained in:
commit
662b29a27a
2 changed files with 278 additions and 153 deletions
|
@ -1,56 +1,56 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Generated with glade 3.18.3 -->
|
<!-- Generated with glade 3.38.2 -->
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.12"/>
|
<requires lib="gtk+" version="3.12"/>
|
||||||
<object class="GtkImage" id="iconcancel">
|
<object class="GtkImage" id="iconcancel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_right">4</property>
|
<property name="margin-right">4</property>
|
||||||
<property name="stock">gtk-cancel</property>
|
<property name="stock">gtk-cancel</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkImage" id="iconfinish">
|
<object class="GtkImage" id="iconfinish">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_right">5</property>
|
<property name="margin-right">5</property>
|
||||||
<property name="stock">gtk-apply</property>
|
<property name="stock">gtk-apply</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkImage" id="iconforward">
|
<object class="GtkImage" id="iconforward">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">4</property>
|
<property name="margin-left">4</property>
|
||||||
<property name="stock">gtk-go-forward</property>
|
<property name="stock">gtk-go-forward</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkImage" id="iconscan">
|
<object class="GtkImage" id="iconscan">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">5</property>
|
<property name="margin-left">5</property>
|
||||||
<property name="stock">gtk-media-play</property>
|
<property name="stock">gtk-media-play</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkWindow" id="onboardingwindow">
|
<object class="GtkWindow" id="onboardingwindow">
|
||||||
<property name="width_request">500</property>
|
<property name="width-request">500</property>
|
||||||
<property name="height_request">400</property>
|
<property name="height-request">400</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="title" translatable="yes">Welcome to Howdy</property>
|
<property name="title" translatable="yes">Welcome to Howdy</property>
|
||||||
<property name="window_position">center</property>
|
<property name="window-position">center</property>
|
||||||
<property name="icon">logo.png</property>
|
<property name="icon">logo.png</property>
|
||||||
<property name="type_hint">menu</property>
|
<property name="type-hint">menu</property>
|
||||||
<property name="gravity">center</property>
|
<property name="gravity">center</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slidecontainer">
|
<object class="GtkBox" id="slidecontainer">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="resize_mode">immediate</property>
|
<property name="resize-mode">immediate</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slide5">
|
<object class="GtkBox" id="slide6">
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="no_show_all">True</property>
|
<property name="no-show-all">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label9">
|
<object class="GtkLabel" id="label9">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">20</property>
|
<property name="margin-top">20</property>
|
||||||
<property name="label" translatable="yes">Setup is done!</property>
|
<property name="label" translatable="yes">Setup is done!</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="weight" value="bold"/>
|
<attribute name="weight" value="bold"/>
|
||||||
|
@ -65,11 +65,11 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label10">
|
<object class="GtkLabel" id="label10">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin_bottom">20</property>
|
<property name="margin-bottom">20</property>
|
||||||
<property name="label" translatable="yes">We're done! Howdy is now active on this computer. Try doing anything you would normally have to type your password for to authenticate, like running a command with sudo.
|
<property name="label" translatable="yes">We're done! Howdy is now active on this computer. Try doing anything you would normally have to type your password for to authenticate, like running a command with sudo.
|
||||||
|
|
||||||
You can open the Howdy Configurator later on to change more advanced settings or add additional models. Press Finish below to close this window and open the Howdy Configurator. </property>
|
You can open the Howdy Configurator later on to change more advanced settings or add additional models. Press Finish below to close this window and open the Howdy Configurator. </property>
|
||||||
|
@ -90,15 +90,15 @@ You can open the Howdy Configurator later on to change more advanced settings or
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slide4">
|
<object class="GtkBox" id="slide5">
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="no_show_all">True</property>
|
<property name="no-show-all">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label11">
|
<object class="GtkLabel" id="label11">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">20</property>
|
<property name="margin-top">20</property>
|
||||||
<property name="label" translatable="yes">Setting a certainty policy</property>
|
<property name="label" translatable="yes">Setting a certainty policy</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="weight" value="bold"/>
|
<attribute name="weight" value="bold"/>
|
||||||
|
@ -113,11 +113,11 @@ You can open the Howdy Configurator later on to change more advanced settings or
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label12">
|
<object class="GtkLabel" id="label12">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin_bottom">40</property>
|
<property name="margin-bottom">40</property>
|
||||||
<property name="label" translatable="yes">Because of changes in angles, distance, and other factors a face match is never exactly the same as the stored face model. On this page you can set how strict Howdy should be.</property>
|
<property name="label" translatable="yes">Because of changes in angles, distance, and other factors a face match is never exactly the same as the stored face model. On this page you can set how strict Howdy should be.</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
|
@ -131,31 +131,31 @@ You can open the Howdy Configurator later on to change more advanced settings or
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box2">
|
<object class="GtkBox" id="box2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">60</property>
|
<property name="margin-left">60</property>
|
||||||
<property name="margin_right">60</property>
|
<property name="margin-right">60</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkRadioButton" id="radiofast">
|
<object class="GtkRadioButton" id="radiofast">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives-default">False</property>
|
||||||
<property name="margin_bottom">10</property>
|
<property name="margin-bottom">10</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="yalign">0.50999999046325684</property>
|
<property name="yalign">0.5099999904632568</property>
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw-indicator">True</property>
|
||||||
<property name="group">radiobalanced</property>
|
<property name="group">radiobalanced</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box3">
|
<object class="GtkBox" id="box3">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">5</property>
|
<property name="margin-left">5</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label13">
|
<object class="GtkLabel" id="label13">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Fast</property>
|
<property name="label" translatable="yes">Fast</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
@ -171,7 +171,7 @@ You can open the Howdy Configurator later on to change more advanced settings or
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label14">
|
<object class="GtkLabel" id="label14">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Allows more fuzzy matches,
|
<property name="label" translatable="yes">Allows more fuzzy matches,
|
||||||
but speeds up the scanning process greatly.</property>
|
but speeds up the scanning process greatly.</property>
|
||||||
|
@ -195,22 +195,22 @@ but speeds up the scanning process greatly.</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkRadioButton" id="radiobalanced">
|
<object class="GtkRadioButton" id="radiobalanced">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives-default">False</property>
|
||||||
<property name="margin_bottom">10</property>
|
<property name="margin-bottom">10</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw-indicator">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box4">
|
<object class="GtkBox" id="box4">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">5</property>
|
<property name="margin-left">5</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label15">
|
<object class="GtkLabel" id="label15">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Balanced</property>
|
<property name="label" translatable="yes">Balanced</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
@ -226,7 +226,7 @@ but speeds up the scanning process greatly.</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label16">
|
<object class="GtkLabel" id="label16">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Still relatively quick detection,
|
<property name="label" translatable="yes">Still relatively quick detection,
|
||||||
but might not log you in when further away.</property>
|
but might not log you in when further away.</property>
|
||||||
|
@ -250,22 +250,22 @@ but might not log you in when further away.</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkRadioButton" id="radiosecure">
|
<object class="GtkRadioButton" id="radiosecure">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives-default">False</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0</property>
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw-indicator">True</property>
|
||||||
<property name="group">radiobalanced</property>
|
<property name="group">radiobalanced</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box5">
|
<object class="GtkBox" id="box5">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">5</property>
|
<property name="margin-left">5</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label17">
|
<object class="GtkLabel" id="label17">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">Secure</property>
|
<property name="label" translatable="yes">Secure</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
@ -281,7 +281,7 @@ but might not log you in when further away.</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label18">
|
<object class="GtkLabel" id="label18">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="label" translatable="yes">The slightly safer option,
|
<property name="label" translatable="yes">The slightly safer option,
|
||||||
but will take much longer to authenticate you</property>
|
but will take much longer to authenticate you</property>
|
||||||
|
@ -317,15 +317,15 @@ but will take much longer to authenticate you</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slide3">
|
<object class="GtkBox" id="slide4">
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="no_show_all">True</property>
|
<property name="no-show-all">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label4">
|
<object class="GtkLabel" id="label4">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">20</property>
|
<property name="margin-top">20</property>
|
||||||
<property name="label" translatable="yes">Adding a face model</property>
|
<property name="label" translatable="yes">Adding a face model</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="weight" value="bold"/>
|
<attribute name="weight" value="bold"/>
|
||||||
|
@ -340,11 +340,11 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label5">
|
<object class="GtkLabel" id="label5">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin_bottom">20</property>
|
<property name="margin-bottom">20</property>
|
||||||
<property name="label" translatable="yes">To authenticate you Howdy needs to save a model of your face to recognise you. Press the Scan button below to start the facial scan.</property>
|
<property name="label" translatable="yes">To authenticate you Howdy needs to save a model of your face to recognise you. Press the Scan button below to start the facial scan.</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
|
@ -358,7 +358,7 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box1">
|
<object class="GtkBox" id="box1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
|
@ -366,16 +366,16 @@ but will take much longer to authenticate you</property>
|
||||||
<object class="GtkButton" id="scanbutton">
|
<object class="GtkButton" id="scanbutton">
|
||||||
<property name="label" translatable="yes">Start face scan</property>
|
<property name="label" translatable="yes">Start face scan</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="has_focus">True</property>
|
<property name="has-focus">True</property>
|
||||||
<property name="is_focus">True</property>
|
<property name="is-focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives-default">True</property>
|
||||||
<property name="margin_left">50</property>
|
<property name="margin-left">50</property>
|
||||||
<property name="margin_right">50</property>
|
<property name="margin-right">50</property>
|
||||||
<property name="image">iconscan</property>
|
<property name="image">iconscan</property>
|
||||||
<property name="relief">none</property>
|
<property name="relief">none</property>
|
||||||
<property name="image_position">right</property>
|
<property name="image-position">right</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always-show-image">True</property>
|
||||||
<signal name="clicked" handler="on_scanbutton_click" swapped="no"/>
|
<signal name="clicked" handler="on_scanbutton_click" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
|
@ -401,16 +401,101 @@ but will take much longer to authenticate you</property>
|
||||||
<property name="position">2</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="slide3">
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="no-show-all">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="label19">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="margin-top">20</property>
|
||||||
|
<property name="label" translatable="yes">Configuring webcam</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="leiestatus">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">20</property>
|
||||||
|
<property name="label" translatable="yes">Is the infrared emitter flashing ?</property>
|
||||||
|
<property name="justify">center</property>
|
||||||
|
<property name="wrap">True</property>
|
||||||
|
<property name="track-visited-links">False</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButtonBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="layout-style">spread</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="leieyesbutton">
|
||||||
|
<property name="label" translatable="yes">yes</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<signal name="clicked" handler="slide3_button_yes" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="leienobutton">
|
||||||
|
<property name="label" translatable="yes">no</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<signal name="clicked" handler="slide3_button_no" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slide2">
|
<object class="GtkBox" id="slide2">
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="no_show_all">True</property>
|
<property name="no-show-all">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label2">
|
<object class="GtkLabel" id="label2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">20</property>
|
<property name="margin-top">20</property>
|
||||||
<property name="label" translatable="yes">Configuring webcam</property>
|
<property name="label" translatable="yes">Configuring webcam</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="weight" value="bold"/>
|
<attribute name="weight" value="bold"/>
|
||||||
|
@ -425,11 +510,11 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label3">
|
<object class="GtkLabel" id="label3">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin_bottom">20</property>
|
<property name="margin-bottom">20</property>
|
||||||
<property name="label" translatable="yes">Howdy will search your system automatically for any available cameras, so make sure your webcam is connected. After detection a list of usable webcams will be shown. Pick the one you want to use and click Next.</property>
|
<property name="label" translatable="yes">Howdy will search your system automatically for any available cameras, so make sure your webcam is connected. After detection a list of usable webcams will be shown. Pick the one you want to use and click Next.</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
|
@ -443,16 +528,16 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="devicelistbox">
|
<object class="GtkBox" id="devicelistbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="opacity">0.89000000000000001</property>
|
<property name="opacity">0.89</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="loadinglabel">
|
<object class="GtkLabel" id="loadinglabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">15</property>
|
<property name="margin-top">15</property>
|
||||||
<property name="label" translatable="yes">Testing your webcams, please wait...</property>
|
<property name="label" translatable="yes">Testing your webcams, please wait...</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="style" value="italic"/>
|
<attribute name="style" value="italic"/>
|
||||||
|
@ -478,20 +563,20 @@ but will take much longer to authenticate you</property>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">3</property>
|
<property name="position">4</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slide1">
|
<object class="GtkBox" id="slide1">
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="no_show_all">True</property>
|
<property name="no-show-all">True</property>
|
||||||
<property name="margin_bottom">10</property>
|
<property name="margin-bottom">10</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label8">
|
<object class="GtkLabel" id="label8">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">20</property>
|
<property name="margin-top">20</property>
|
||||||
<property name="label" translatable="yes">Downloading data files</property>
|
<property name="label" translatable="yes">Downloading data files</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="weight" value="bold"/>
|
<attribute name="weight" value="bold"/>
|
||||||
|
@ -506,11 +591,11 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label1">
|
<object class="GtkLabel" id="label1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin_bottom">20</property>
|
<property name="margin-bottom">20</property>
|
||||||
<property name="label" translatable="yes">Howdy needs three pre trained facial recognition datasets to be able to recognise you, which will be downloaded now. You can see the download progress below.</property>
|
<property name="label" translatable="yes">Howdy needs three pre trained facial recognition datasets to be able to recognise you, which will be downloaded now. You can see the download progress below.</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
|
@ -524,14 +609,14 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkEventBox" id="downloadeventbox">
|
<object class="GtkEventBox" id="downloadeventbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="downloadoutputlabel">
|
<object class="GtkLabel" id="downloadoutputlabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="label" translatable="yes">Starting download...</property>
|
<property name="label" translatable="yes">Starting download...</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
@ -551,19 +636,19 @@ but will take much longer to authenticate you</property>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">4</property>
|
<property name="position">5</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="slide0">
|
<object class="GtkBox" id="slide0">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImage" id="image2">
|
<object class="GtkImage" id="image2">
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">20</property>
|
<property name="margin-top">20</property>
|
||||||
<property name="margin_bottom">10</property>
|
<property name="margin-bottom">10</property>
|
||||||
<property name="xpad">7</property>
|
<property name="xpad">7</property>
|
||||||
<property name="ypad">13</property>
|
<property name="ypad">13</property>
|
||||||
<property name="pixbuf">logo_about.png</property>
|
<property name="pixbuf">logo_about.png</property>
|
||||||
|
@ -577,8 +662,8 @@ but will take much longer to authenticate you</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label6">
|
<object class="GtkLabel" id="label6">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_top">5</property>
|
<property name="margin-top">5</property>
|
||||||
<property name="label" translatable="yes">Welcome to Howdy!</property>
|
<property name="label" translatable="yes">Welcome to Howdy!</property>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="scale" value="2"/>
|
<attribute name="scale" value="2"/>
|
||||||
|
@ -592,14 +677,14 @@ but will take much longer to authenticate you</property>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label7">
|
<object class="GtkLabel" id="label7">
|
||||||
<property name="width_request">100</property>
|
<property name="width-request">100</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">center</property>
|
<property name="halign">center</property>
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
<property name="margin_left">20</property>
|
<property name="margin-left">20</property>
|
||||||
<property name="margin_right">20</property>
|
<property name="margin-right">20</property>
|
||||||
<property name="margin_top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="label" translatable="yes">This wizard will walk you through the setup process and automatically configure Howdy for you. Press next to continue.</property>
|
<property name="label" translatable="yes">This wizard will walk you through the setup process and automatically configure Howdy for you. Press next to continue.</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
|
@ -614,23 +699,23 @@ but will take much longer to authenticate you</property>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">5</property>
|
<property name="position">6</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="navigationbar">
|
<object class="GtkBox" id="navigationbar">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="margin_bottom">10</property>
|
<property name="margin-bottom">10</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="cancelbutton">
|
<object class="GtkButton" id="cancelbutton">
|
||||||
<property name="label" translatable="yes">Cancel</property>
|
<property name="label" translatable="yes">Cancel</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives-default">True</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin-left">10</property>
|
||||||
<property name="image">iconcancel</property>
|
<property name="image">iconcancel</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always-show-image">True</property>
|
||||||
<signal name="clicked" handler="exit" swapped="no"/>
|
<signal name="clicked" handler="exit" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
|
@ -646,40 +731,40 @@ but will take much longer to authenticate you</property>
|
||||||
<object class="GtkButton" id="nextbutton">
|
<object class="GtkButton" id="nextbutton">
|
||||||
<property name="label" translatable="yes">Next</property>
|
<property name="label" translatable="yes">Next</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="has_focus">True</property>
|
<property name="has-focus">True</property>
|
||||||
<property name="is_focus">True</property>
|
<property name="is-focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives-default">True</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="image">iconforward</property>
|
<property name="image">iconforward</property>
|
||||||
<property name="relief">none</property>
|
<property name="relief">none</property>
|
||||||
<property name="image_position">right</property>
|
<property name="image-position">right</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always-show-image">True</property>
|
||||||
<signal name="clicked" handler="go_next_slide" swapped="no"/>
|
<signal name="clicked" handler="go_next_slide" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="pack_type">end</property>
|
<property name="pack-type">end</property>
|
||||||
<property name="position">2</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="finishbutton">
|
<object class="GtkButton" id="finishbutton">
|
||||||
<property name="label" translatable="yes">Finish setup</property>
|
<property name="label" translatable="yes">Finish setup</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives-default">True</property>
|
||||||
<property name="no_show_all">True</property>
|
<property name="no-show-all">True</property>
|
||||||
<property name="margin_right">10</property>
|
<property name="margin-right">10</property>
|
||||||
<property name="image">iconfinish</property>
|
<property name="image">iconfinish</property>
|
||||||
<property name="relief">none</property>
|
<property name="relief">none</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always-show-image">True</property>
|
||||||
<signal name="clicked" handler="exit" swapped="no"/>
|
<signal name="clicked" handler="exit" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="pack_type">end</property>
|
<property name="pack-type">end</property>
|
||||||
<property name="position">3</property>
|
<property name="position">3</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
@ -687,8 +772,8 @@ but will take much longer to authenticate you</property>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="pack_type">end</property>
|
<property name="pack-type">end</property>
|
||||||
<property name="position">8</property>
|
<property name="position">9</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -34,7 +34,8 @@ class OnboardingWindow(gtk.Window):
|
||||||
self.builder.get_object("slide2"),
|
self.builder.get_object("slide2"),
|
||||||
self.builder.get_object("slide3"),
|
self.builder.get_object("slide3"),
|
||||||
self.builder.get_object("slide4"),
|
self.builder.get_object("slide4"),
|
||||||
self.builder.get_object("slide5")
|
self.builder.get_object("slide5"),
|
||||||
|
self.builder.get_object("slide6")
|
||||||
]
|
]
|
||||||
|
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
@ -62,6 +63,8 @@ class OnboardingWindow(gtk.Window):
|
||||||
self.execute_slide4()
|
self.execute_slide4()
|
||||||
elif self.window.current_slide == 5:
|
elif self.window.current_slide == 5:
|
||||||
self.execute_slide5()
|
self.execute_slide5()
|
||||||
|
elif self.window.current_slide == 6:
|
||||||
|
self.execute_slide6()
|
||||||
|
|
||||||
def execute_slide1(self):
|
def execute_slide1(self):
|
||||||
conf_path = "/etc/howdy"
|
conf_path = "/etc/howdy"
|
||||||
|
@ -187,10 +190,11 @@ class OnboardingWindow(gtk.Window):
|
||||||
self.devicelistbox.add(self.treeview)
|
self.devicelistbox.add(self.treeview)
|
||||||
|
|
||||||
# Create a datamodel
|
# Create a datamodel
|
||||||
self.listmodel = gtk.ListStore(str, str, str)
|
self.listmodel = gtk.ListStore(str, str, str, bool)
|
||||||
|
|
||||||
for device in device_rows:
|
for device in device_rows:
|
||||||
self.listmodel.append([device[0], device[3], device[1]])
|
is_gray = device[2] == 5
|
||||||
|
self.listmodel.append([device[0], device[3], device[1], is_gray])
|
||||||
|
|
||||||
self.treeview.set_model(self.listmodel)
|
self.treeview.set_model(self.listmodel)
|
||||||
self.treeview.set_cursor(0)
|
self.treeview.set_cursor(0)
|
||||||
|
@ -200,6 +204,42 @@ class OnboardingWindow(gtk.Window):
|
||||||
self.enable_next()
|
self.enable_next()
|
||||||
|
|
||||||
def execute_slide3(self):
|
def execute_slide3(self):
|
||||||
|
try:
|
||||||
|
import cv2
|
||||||
|
except Exception:
|
||||||
|
self.show_error(_("Error while importing OpenCV2"), _("Try reinstalling cv2"))
|
||||||
|
|
||||||
|
selection = self.treeview.get_selection()
|
||||||
|
(listmodel, rowlist) = selection.get_selected_rows()
|
||||||
|
|
||||||
|
if len(rowlist) != 1:
|
||||||
|
self.show_error(_("Error selecting camera"))
|
||||||
|
|
||||||
|
device_path = listmodel.get_value(listmodel.get_iter(rowlist[0]), 2)
|
||||||
|
is_gray = listmodel.get_value(listmodel.get_iter(rowlist[0]), 3)
|
||||||
|
|
||||||
|
if is_gray:
|
||||||
|
# test if linux-enable-ir-emitter help should be displayed,
|
||||||
|
# the user must click on the yes/no button which calls the method slide3_button_yes|no
|
||||||
|
self.capture = cv2.VideoCapture(device_path)
|
||||||
|
if not self.capture.isOpened():
|
||||||
|
self.show_error(_("The selected camera cannot be opened"), _("Try to select another one"))
|
||||||
|
self.capture.read()
|
||||||
|
else:
|
||||||
|
# skip, the selected camera is not infrared
|
||||||
|
self.go_next_slide()
|
||||||
|
|
||||||
|
def slide3_button_yes(self, button):
|
||||||
|
self.capture.release()
|
||||||
|
self.go_next_slide()
|
||||||
|
|
||||||
|
def slide3_button_no(self, button):
|
||||||
|
self.capture.release()
|
||||||
|
self.builder.get_object("leiestatus").set_markup(_("Please visit\n<a href=\"https://github.com/EmixamPP/linux-enable-ir-emitter\">https://github.com/EmixamPP/linux-enable-ir-emitter</a>\nto enable your ir emitter"))
|
||||||
|
self.builder.get_object("leieyesbutton").hide()
|
||||||
|
self.builder.get_object("leienobutton").hide()
|
||||||
|
|
||||||
|
def execute_slide4(self):
|
||||||
selection = self.treeview.get_selection()
|
selection = self.treeview.get_selection()
|
||||||
(listmodel, rowlist) = selection.get_selected_rows()
|
(listmodel, rowlist) = selection.get_selected_rows()
|
||||||
|
|
||||||
|
@ -238,10 +278,10 @@ class OnboardingWindow(gtk.Window):
|
||||||
|
|
||||||
gobject.timeout_add(10, self.go_next_slide)
|
gobject.timeout_add(10, self.go_next_slide)
|
||||||
|
|
||||||
def execute_slide4(self):
|
def execute_slide5(self):
|
||||||
self.enable_next()
|
self.enable_next()
|
||||||
|
|
||||||
def execute_slide5(self):
|
def execute_slide6(self):
|
||||||
radio_buttons = self.builder.get_object("radiobalanced").get_group()
|
radio_buttons = self.builder.get_object("radiobalanced").get_group()
|
||||||
radio_selected = False
|
radio_selected = False
|
||||||
radio_certanty = 5.0
|
radio_certanty = 5.0
|
||||||
|
|
Loading…
Reference in a new issue