[tuxdroid-svn] r852 - in software/gadgets/light_monitor/trunk: . Light_monitor Light_monitor/Script
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-01-16 11:43:39
|
Author: Paul_R Date: 2008-01-16 12:43:32 +0100 (Wed, 16 Jan 2008) New Revision: 852 Modified: software/gadgets/light_monitor/trunk/Light_monitor.tgf software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/main.pyp software/gadgets/light_monitor/trunk/Light_monitor/Strings/fr_ALL.xml software/gadgets/light_monitor/trunk/Light_monitor/about.xml software/gadgets/light_monitor/trunk/Light_monitor/settings.xml software/gadgets/light_monitor/trunk/Light_monitor/strings.xml Log: * Fixed a bug which surcharge the CPU when the main function was executed. Modified: software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/main.pyp =================================================================== --- software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/main.pyp 2008-01-16 11:40:29 UTC (rev 851) +++ software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/main.pyp 2008-01-16 11:43:32 UTC (rev 852) @@ -21,7 +21,8 @@ tux.cmd.spinl_on_free(8, 1) count = 0 while measure.search_light_flag: - pass + tux.sys.wait(0.2) + path = _me.get_param('MainScript') path = path.replace('%20', ' ') if os.path.isfile(path) and os.path.exists(path): Modified: software/gadgets/light_monitor/trunk/Light_monitor/Strings/fr_ALL.xml =================================================================== --- software/gadgets/light_monitor/trunk/Light_monitor/Strings/fr_ALL.xml 2008-01-16 11:40:29 UTC (rev 851) +++ software/gadgets/light_monitor/trunk/Light_monitor/Strings/fr_ALL.xml 2008-01-16 11:43:32 UTC (rev 852) @@ -1,9 +1,60 @@ <?xml version='1.0' encoding='UTF-8'?> <strings> + <Both type='str'>La lumière a passé le seuil</Both> + <Change type='str'>La lumière a changé</Change> + <ChangeD type='str'>La lumière a chuté puis augmenté</ChangeD> + <ChangeU type='str'>La lumière a augmenté puis chuté</ChangeU> + <Decrease type='str'>La lumière est passée en dessous du seuil</Decrease> + <Drop type='str'>La lumière a chuté</Drop> + <Increase type='str'>La lumière est passée en dessus du seuil</Increase> + <MainBehavior type='str'>Comportement principal</MainBehavior> + <Raise type='str'>La lumière a augmenté</Raise> + <Threshold type='str'>La lumière a atteint le seuil</Threshold> + <conf_btnAdd type='str'>Ajouter</conf_btnAdd> + <conf_btnBehavior type='str'>Supprimer</conf_btnBehavior> + <conf_btnModify type='str'>Modifier</conf_btnModify> + <conf_btnRemove type='str'>Enlever</conf_btnRemove> + <conf_lblBehavior type='str'>Comportement</conf_lblBehavior> + <conf_lblBoth type='str'>Deux directions</conf_lblBoth> + <conf_lblChange type='str'>Changement</conf_lblChange> + <conf_lblChangeD type='str'>Chute et augmente</conf_lblChangeD> + <conf_lblChangeU type='str'>Augmente et chute</conf_lblChangeU> + <conf_lblControl type='str'>Contrôle</conf_lblControl> + <conf_lblDecrease type='str'>Diminue</conf_lblDecrease> + <conf_lblDefaultBehavior type='str'>Comportement pas défaut</conf_lblDefaultBehavior> + <conf_lblDrop type='str'>Chute</conf_lblDrop> + <conf_lblEvent type='str'>Evènement</conf_lblEvent> + <conf_lblIncrease type='str'>Augmente</conf_lblIncrease> + <conf_lblNotNotified type='str'>Non notifié</conf_lblNotNotified> + <conf_lblNotified type='str'>Notifié ?</conf_lblNotified> + <conf_lblNotifiedBehavior type='str'>Notifié</conf_lblNotifiedBehavior> + <conf_lblRaise type='str'>Accroissement</conf_lblRaise> + <conf_lblRate type='str'>Taux de rafraichissement</conf_lblRate> + <conf_lblSample type='str'>Points</conf_lblSample> + <conf_lblThreshold type='str'>Seuil</conf_lblThreshold> + <conf_lblTime type='str'>Temps (sec.)</conf_lblTime> + <conf_lblType type='str'>Type</conf_lblType> + <conf_lblValue type='str'>Valeur (%)</conf_lblValue> + <dark1 type='str'>Il fait sombre ici !</dark1> + <dark2 type='str'>Et encore plus là !</dark2> + <dark3 type='str'>hmm, il fait toujours plus sombre ...</dark3> + <dark4 type='str'>C'est l'endroit le plus sombre !</dark4> + <dark5 type='str'>Je ne peux pas trouver l'endroit le plus sombre ...</dark5> + <disable type='str'>Interdire les mesures quand les yeux sont fermés</disable> + <gui_conf_about_title type='str'>A propos</gui_conf_about_title> + <gui_conf_accept_bt type='str'>Valider</gui_conf_accept_bt> + <gui_conf_author_lb type='str'>Auteur</gui_conf_author_lb> + <gui_conf_cancel_bt type='str'>Annuler</gui_conf_cancel_bt> + <gui_conf_current_bind_lb type='str'>Assignation</gui_conf_current_bind_lb> + <gui_conf_delay_lb type='str'>Délai (sec)</gui_conf_delay_lb> + <gui_conf_description_lb type='str'>Description</gui_conf_description_lb> + <gui_conf_rate_lb type='str'>Taux de rafraichissement :</gui_conf_rate_lb> + <gui_conf_remote_set_bt type='str'>Set</gui_conf_remote_set_bt> <gui_conf_remote_title type='str'>Contrôle</gui_conf_remote_title> - <conf_lblRaise type='str'>Accroissement</conf_lblRaise> - <conf_lblEvent type='str'>Evènement</conf_lblEvent> - <widget_lblControl type='str'>Contrôle</widget_lblControl> + <gui_conf_sample_lb type='str'>Nombre de points :</gui_conf_sample_lb> + <gui_conf_update_title type='str'>Mise à jour</gui_conf_update_title> + <gui_conf_version_lb type='str'>Version</gui_conf_version_lb> + <gui_conf_window_title type='str'>Paramètres</gui_conf_window_title> <help_text type='str'>-- Les évènements : Deux grands types d'évènements peuvent avoir lieu, contenant chacun diverses options : @@ -40,85 +91,34 @@ Une zone de test comportant deux boutons permettent à Tux de rechercher la direction la plus lumineuse, ou la plus sombre. Deux scripts de bases se trpouvent dans /tmp/Light_monitor/Data</help_text> - <conf_lblSample type='str'>Points</conf_lblSample> - <widget_lblLight type='str'>Trouver lumière</widget_lblLight> - <conf_lblNotifiedBehavior type='str'>Notifié</conf_lblNotifiedBehavior> - <Change type='str'>La lumière a changé</Change> - <Both type='str'>La lumière a passé le seuil</Both> - <widget_lblRaise type='str'>Augmentation</widget_lblRaise> - <gui_conf_current_bind_lb type='str'>Assignation</gui_conf_current_bind_lb> - <conf_lblBehavior type='str'>Comportement</conf_lblBehavior> - <name_to_read type='str'>Moniteur de lumière</name_to_read> - <gui_conf_window_title type='str'>Paramètres</gui_conf_window_title> - <widget_lblSet type='str'>Ajouter a la config.</widget_lblSet> - <conf_lblValue type='str'>Valeur (%)</conf_lblValue> - <conf_lblTime type='str'>Temps (sec.)</conf_lblTime> - <widget_lblTest type='str'>Notifications</widget_lblTest> - <conf_lblThreshold type='str'>Seuil</conf_lblThreshold> - <gui_conf_accept_bt type='str'>Valider</gui_conf_accept_bt> - <power_supply type='str'>Vous devez deconnecter l'alimentation</power_supply> - <widget_lblNotified type='str'>Notifé</widget_lblNotified> - <conf_btnBehavior type='str'>Supprimer</conf_btnBehavior> - <conf_lblType type='str'>Type</conf_lblType> - <Drop type='str'>La lumière a chuté</Drop> - <widget_lblEvent type='str'>Evènement</widget_lblEvent> - <dark4 type='str'>C'est l'endroit le plus sombre !</dark4> - <widget_lblBoth type='str'>Deux directions</widget_lblBoth> - <gui_conf_remote_set_bt type='str'>Set</gui_conf_remote_set_bt> - <search type='str'>Je cherche ...</search> - <conf_lblNotNotified type='str'>Non notifié</conf_lblNotNotified> - <ChangeD type='str'>La lumière a chuté puis augmenté</ChangeD> - <widget_lblThreshold type='str'>Seuil</widget_lblThreshold> + <light1 type='str'>Je vois de la lumière ici...</light1> <light2 type='str'>J'en vois encore plus ici !</light2> <light3 type='str'>ou ici ?</light3> - <light1 type='str'>Je vois de la lumière ici...</light1> <light4 type='str'>Je pense que la lumière vient de cette direction</light4> <light5 type='str'>Je ne peux pas trouver d'où vient la lumière...</light5> - <ChangeU type='str'>La lumière a augmenté puis chuté</ChangeU> - <gui_conf_description_lb type='str'>Description</gui_conf_description_lb> - <widget_lblDark type='str'>Trouver ombre</widget_lblDark> - <Increase type='str'>La lumière est passée en dessus du seuil</Increase> - <conf_lblBoth type='str'>Deux directions</conf_lblBoth> - <conf_lblDecrease type='str'>Diminue</conf_lblDecrease> - <gui_conf_version_lb type='str'>Version</gui_conf_version_lb> - <gui_conf_update_title type='str'>Mise à jour</gui_conf_update_title> - <widget_lblValue type='str'>Valeur (%)</widget_lblValue> - <gui_conf_cancel_bt type='str'>Annuler</gui_conf_cancel_bt> <mainscript type='str'>J'ai trouvé la lumière !</mainscript> - <widget_lblDrop type='str'>Chute</widget_lblDrop> - <widget_lblIncrease type='str'>Accroissement</widget_lblIncrease> - <conf_btnAdd type='str'>Ajouter</conf_btnAdd> - <gui_conf_author_lb type='str'>Auteur</gui_conf_author_lb> - <conf_lblDrop type='str'>Chute</conf_lblDrop> - <Raise type='str'>La lumière a augmenté</Raise> - <Decrease type='str'>La lumière est passée en dessous du seuil</Decrease> - <widget_lblDisplayThreshold type='str'>Afficher le seuil sur le graph.</widget_lblDisplayThreshold> - <conf_lblRate type='str'>Taux de rafraichissement</conf_lblRate> - <conf_lblControl type='str'>Contrôle</conf_lblControl> - <conf_btnRemove type='str'>Enlever</conf_btnRemove> - <conf_lblIncrease type='str'>Augmente</conf_lblIncrease> - <widget_lblChangeU type='str'>Changement sup.</widget_lblChangeU> - <widget_lblChangeD type='str'>Changement inf.</widget_lblChangeD> - <conf_lblChange type='str'>Changement</conf_lblChange> + <name_to_read type='str'>Moniteur de lumière</name_to_read> + <power_supply type='str'>Vous devez deconnecter l'alimentation</power_supply> + <search type='str'>Je cherche ...</search> + <speaker_name type='str'>Bruno8k</speaker_name> + <widget_lblBehavior type='str'>Activer le script</widget_lblBehavior> + <widget_lblBoth type='str'>Deux directions</widget_lblBoth> <widget_lblBtnApply type='str'>Appliquer</widget_lblBtnApply> - <gui_conf_rate_lb type='str'>Taux de rafraichissement :</gui_conf_rate_lb> - <conf_lblChangeU type='str'>Augmente et chute</conf_lblChangeU> - <gui_conf_delay_lb type='str'>Délai (sec)</gui_conf_delay_lb> - <gui_conf_about_title type='str'>A propos</gui_conf_about_title> - <conf_lblChangeD type='str'>Chute et augmente</conf_lblChangeD> <widget_lblChange type='str'>Changement</widget_lblChange> - <conf_btnModify type='str'>Modifier</conf_btnModify> - <dark1 type='str'>Il fait sombre ici !</dark1> - <dark3 type='str'>hmm, il fait toujours plus sombre ...</dark3> - <dark2 type='str'>Et encore plus là !</dark2> - <dark5 type='str'>Je ne peux pas trouver l'endroit le plus sombre ...</dark5> + <widget_lblChangeD type='str'>Changement inf.</widget_lblChangeD> + <widget_lblChangeU type='str'>Changement sup.</widget_lblChangeU> + <widget_lblControl type='str'>Contrôle</widget_lblControl> + <widget_lblDark type='str'>Trouver ombre</widget_lblDark> <widget_lblDecrease type='str'>Decroissance</widget_lblDecrease> - <gui_conf_sample_lb type='str'>Nombre de points :</gui_conf_sample_lb> - <disable type='str'>Interdire les mesures quand les yeux sont fermés</disable> - <conf_lblDefaultBehavior type='str'>Comportement pas défaut</conf_lblDefaultBehavior> - <speaker_name type='str'>Bruno8k</speaker_name> - <widget_lblBehavior type='str'>Activer le script</widget_lblBehavior> - <conf_lblNotified type='str'>Notifié ?</conf_lblNotified> - <Threshold type='str'>La lumière a atteint le seuil</Threshold> - <MainBehavior type='str'>Comportement principal</MainBehavior> + <widget_lblDisplayThreshold type='str'>Afficher le seuil sur le graph.</widget_lblDisplayThreshold> + <widget_lblDrop type='str'>Chute</widget_lblDrop> + <widget_lblEvent type='str'>Evènement</widget_lblEvent> + <widget_lblIncrease type='str'>Accroissement</widget_lblIncrease> + <widget_lblLight type='str'>Trouver lumière</widget_lblLight> + <widget_lblNotified type='str'>Notifé</widget_lblNotified> + <widget_lblRaise type='str'>Augmentation</widget_lblRaise> + <widget_lblSet type='str'>Ajouter a la config.</widget_lblSet> + <widget_lblTest type='str'>Notifications</widget_lblTest> + <widget_lblThreshold type='str'>Seuil</widget_lblThreshold> + <widget_lblValue type='str'>Valeur (%)</widget_lblValue> </strings> Modified: software/gadgets/light_monitor/trunk/Light_monitor/about.xml =================================================================== --- software/gadgets/light_monitor/trunk/Light_monitor/about.xml 2008-01-16 11:40:29 UTC (rev 851) +++ software/gadgets/light_monitor/trunk/Light_monitor/about.xml 2008-01-16 11:43:32 UTC (rev 852) @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='UTF-8'?> <about> <gadget_author type='str'>Paul Rathgeb</gadget_author> - <gadget_version type='str'>0.0.1</gadget_version> + <gadget_description type='str'>Light monitor for tux droid</gadget_description> <gadget_name type='str'>light_monitor</gadget_name> - <gadget_description type='str'>Light monitor for tux droid</gadget_description> + <gadget_version type='str'>0.0.2</gadget_version> </about> Modified: software/gadgets/light_monitor/trunk/Light_monitor/settings.xml =================================================================== --- software/gadgets/light_monitor/trunk/Light_monitor/settings.xml 2008-01-16 11:40:29 UTC (rev 851) +++ software/gadgets/light_monitor/trunk/Light_monitor/settings.xml 2008-01-16 11:43:32 UTC (rev 852) @@ -1,59 +1,59 @@ <?xml version='1.0' encoding='UTF-8'?> <settings> - <parameters> - <change_notified type='bool'>False</change_notified> - <chk_ThresholdBehavior type='bool'>False</chk_ThresholdBehavior> - <increase_rad type='bool'>True</increase_rad> - <chk_ChangeBehavior type='bool'>False</chk_ChangeBehavior> - <changeU_time type='float'>1.0</changeU_time> - <test_tab type='list'>[[1, 0, 0, 10.0, 2.0, False, None, False, 0]]</test_tab> - <changeD_rad type='bool'>False</changeD_rad> - <threshold type='float'>50.0</threshold> - <decrease_rad type='bool'>False</decrease_rad> - <Sample type='float'>500.0</Sample> - <raise type='float'>10.0</raise> - <changeU_rad type='bool'>False</changeU_rad> - <threshold_notified type='bool'>False</threshold_notified> - <config type='list'>[]</config> - <behavior_file_change type='NoneType'>None</behavior_file_change> - <drop_rad type='bool'>True</drop_rad> - <raise_rad type='bool'>False</raise_rad> - <changeD type='float'>10.0</changeD> - <drop_time type='float'>1.0</drop_time> - <disable type='bool'>False</disable> - <changeU type='float'>10.0</changeU> - <raise_time type='float'>1.0</raise_time> - <drop type='float'>10.0</drop> - <MainScript type='str'> - </MainScript> - <behavior_file_threshold type='NoneType'>None</behavior_file_threshold> - <threshold_chk type='bool'>False</threshold_chk> - <Rate type='float'>0.1</Rate> - <changeD_time type='float'>1.0</changeD_time> - <both_rad type='bool'>False</both_rad> - </parameters> <general> - <have_settings_part type='bool'>True</have_settings_part> + <framework_version type='str'>0.0.0</framework_version> <gui_state> + <conf> + <visible type='bool'>False</visible> + </conf> <widget> - <y type='int'>317</y> <visible type='bool'>True</visible> <x type='int'>0</x> + <y type='int'>317</y> </widget> - <conf> - <visible type='bool'>False</visible> - </conf> </gui_state> + <have_main_part type='bool'>True</have_main_part> + <have_settings_part type='bool'>True</have_settings_part> + <have_widget_part type='bool'>True</have_widget_part> <language type='str'>en_US</language> + <main_priority type='int'>4</main_priority> + <menu_active type='bool'>True</menu_active> <notified type='bool'>True</notified> <notify_delay type='int'>1</notify_delay> - <framework_version type='str'>0.0.0</framework_version> - <menu_active type='bool'>True</menu_active> - <have_widget_part type='bool'>True</have_widget_part> + <notify_priority type='int'>4</notify_priority> + <pitch type='int'>100</pitch> <speaker type='int'>3</speaker> - <pitch type='int'>100</pitch> - <have_main_part type='bool'>True</have_main_part> - <main_priority type='int'>4</main_priority> - <notify_priority type='int'>4</notify_priority> </general> + <parameters> + <MainScript type='str'> + </MainScript> + <Rate type='float'>0.1</Rate> + <Sample type='float'>500.0</Sample> + <behavior_file_change type='NoneType'>None</behavior_file_change> + <behavior_file_threshold type='NoneType'>None</behavior_file_threshold> + <both_rad type='bool'>False</both_rad> + <changeD type='float'>10.0</changeD> + <changeD_rad type='bool'>False</changeD_rad> + <changeD_time type='float'>1.0</changeD_time> + <changeU type='float'>10.0</changeU> + <changeU_rad type='bool'>False</changeU_rad> + <changeU_time type='float'>1.0</changeU_time> + <change_notified type='bool'>False</change_notified> + <chk_ChangeBehavior type='bool'>False</chk_ChangeBehavior> + <chk_ThresholdBehavior type='bool'>False</chk_ThresholdBehavior> + <config type='list'>[]</config> + <decrease_rad type='bool'>False</decrease_rad> + <disable type='bool'>False</disable> + <drop type='float'>10.0</drop> + <drop_rad type='bool'>True</drop_rad> + <drop_time type='float'>1.0</drop_time> + <increase_rad type='bool'>True</increase_rad> + <raise type='float'>10.0</raise> + <raise_rad type='bool'>False</raise_rad> + <raise_time type='float'>1.0</raise_time> + <test_tab type='list'>[[1, 0, 0, 10.0, 2.0, False, None, False, 0]]</test_tab> + <threshold type='float'>50.0</threshold> + <threshold_chk type='bool'>False</threshold_chk> + <threshold_notified type='bool'>False</threshold_notified> + </parameters> </settings> Modified: software/gadgets/light_monitor/trunk/Light_monitor/strings.xml =================================================================== --- software/gadgets/light_monitor/trunk/Light_monitor/strings.xml 2008-01-16 11:40:29 UTC (rev 851) +++ software/gadgets/light_monitor/trunk/Light_monitor/strings.xml 2008-01-16 11:43:32 UTC (rev 852) @@ -1,9 +1,60 @@ <?xml version='1.0' encoding='UTF-8'?> <strings> + <Both type='str'>The light level reached the threshold</Both> + <Change type='str'>The light level changed</Change> + <ChangeD type='str'>The light level dropped and raised</ChangeD> + <ChangeU type='str'>The light level raised and dropped</ChangeU> + <Decrease type='str'>The light level passed below the threshold</Decrease> + <Drop type='str'>The light level dropped</Drop> + <Increase type='str'>The light level exceeded the threshold</Increase> + <MainBehavior type='str'>Main behavior</MainBehavior> + <Raise type='str'>The light level raised</Raise> + <Threshold type='str'>The light reached the threshold</Threshold> + <conf_btnAdd type='str'>Add</conf_btnAdd> + <conf_btnBehavior type='str'>Clear path</conf_btnBehavior> + <conf_btnModify type='str'>Modify</conf_btnModify> + <conf_btnRemove type='str'>Remove</conf_btnRemove> + <conf_lblBehavior type='str'>Behavior script</conf_lblBehavior> + <conf_lblBoth type='str'>Both</conf_lblBoth> + <conf_lblChange type='str'>Change</conf_lblChange> + <conf_lblChangeD type='str'>Drop and raise</conf_lblChangeD> + <conf_lblChangeU type='str'>Raise and drop</conf_lblChangeU> + <conf_lblControl type='str'>Control</conf_lblControl> + <conf_lblDecrease type='str'>Decrease</conf_lblDecrease> + <conf_lblDefaultBehavior type='str'>Default behavior</conf_lblDefaultBehavior> + <conf_lblDrop type='str'>Drop</conf_lblDrop> + <conf_lblEvent type='str'>Event</conf_lblEvent> + <conf_lblIncrease type='str'>Increase</conf_lblIncrease> + <conf_lblNotNotified type='str'>Not notified</conf_lblNotNotified> + <conf_lblNotified type='str'>Notified ?</conf_lblNotified> + <conf_lblNotifiedBehavior type='str'>Notified</conf_lblNotifiedBehavior> + <conf_lblRaise type='str'>Raise</conf_lblRaise> + <conf_lblRate type='str'>Refresh rate</conf_lblRate> <conf_lblSample type='str'>Samples</conf_lblSample> - <conf_lblRaise type='str'>Raise</conf_lblRaise> - <conf_lblEvent type='str'>Event</conf_lblEvent> - <widget_lblControl type='str'>Control</widget_lblControl> + <conf_lblThreshold type='str'>Threshold</conf_lblThreshold> + <conf_lblTime type='str'>Time (sec.)</conf_lblTime> + <conf_lblType type='str'>Type</conf_lblType> + <conf_lblValue type='str'>Value (%)</conf_lblValue> + <dark1 type='str'>It's pretty dark here.</dark1> + <dark2 type='str'>And darker here.</dark2> + <dark3 type='str'>hmm, but it's even more dark over here!</dark3> + <dark4 type='str'>This is the darkest spot.</dark4> + <dark5 type='str'>I can't find the darkest spot...</dark5> + <disable type='str'>Disable measurement when the eyes are closed</disable> + <gui_conf_about_title type='str'>About</gui_conf_about_title> + <gui_conf_accept_bt type='str'>Accept</gui_conf_accept_bt> + <gui_conf_author_lb type='str'>Author</gui_conf_author_lb> + <gui_conf_cancel_bt type='str'>Cancel</gui_conf_cancel_bt> + <gui_conf_current_bind_lb type='str'>Current</gui_conf_current_bind_lb> + <gui_conf_delay_lb type='str'>Delay (sec)</gui_conf_delay_lb> + <gui_conf_description_lb type='str'>Description</gui_conf_description_lb> + <gui_conf_rate_lb type='str'>Refresh rate :</gui_conf_rate_lb> + <gui_conf_remote_set_bt type='str'>Set</gui_conf_remote_set_bt> + <gui_conf_remote_title type='str'>Control</gui_conf_remote_title> + <gui_conf_sample_lb type='str'>Sample :</gui_conf_sample_lb> + <gui_conf_update_title type='str'>Update</gui_conf_update_title> + <gui_conf_version_lb type='str'>Version</gui_conf_version_lb> + <gui_conf_window_title type='str'>Parameters</gui_conf_window_title> <help_text type='str'>-- The events: Two main types of events can take place, each containing various options: @@ -40,85 +91,34 @@ In the test part with two buttons you can make Tux search for the light source or darkest spot. Two example scripts can be found in /tmp/Light_monitor/Data.</help_text> - <gui_conf_remote_title type='str'>Control</gui_conf_remote_title> - <widget_lblLight type='str'>Search light</widget_lblLight> - <conf_lblNotifiedBehavior type='str'>Notified</conf_lblNotifiedBehavior> - <Change type='str'>The light level changed</Change> - <Both type='str'>The light level reached the threshold</Both> - <widget_lblRaise type='str'>Raise</widget_lblRaise> - <gui_conf_current_bind_lb type='str'>Current</gui_conf_current_bind_lb> - <conf_lblBehavior type='str'>Behavior script</conf_lblBehavior> - <name_to_read type='str'>Light monitor</name_to_read> - <gui_conf_window_title type='str'>Parameters</gui_conf_window_title> - <widget_lblSet type='str'>Add to config</widget_lblSet> - <conf_lblValue type='str'>Value (%)</conf_lblValue> - <conf_lblTime type='str'>Time (sec.)</conf_lblTime> - <widget_lblDark type='str'>Search darkness</widget_lblDark> - <conf_lblThreshold type='str'>Threshold</conf_lblThreshold> - <gui_conf_accept_bt type='str'>Accept</gui_conf_accept_bt> - <power_supply type='str'>You must disconnect the power supply</power_supply> - <widget_lblNotified type='str'>Notified</widget_lblNotified> - <conf_btnBehavior type='str'>Clear path</conf_btnBehavior> - <conf_lblType type='str'>Type</conf_lblType> - <dark2 type='str'>And darker here.</dark2> - <widget_lblEvent type='str'>Event</widget_lblEvent> - <widget_lblDecrease type='str'>Decreasing</widget_lblDecrease> - <gui_conf_update_title type='str'>Update</gui_conf_update_title> - <gui_conf_remote_set_bt type='str'>Set</gui_conf_remote_set_bt> - <search type='str'>I seek ...</search> - <conf_lblNotNotified type='str'>Not notified</conf_lblNotNotified> - <ChangeD type='str'>The light level dropped and raised</ChangeD> - <widget_lblThreshold type='str'>Threshold</widget_lblThreshold> + <light1 type='str'>Seeing more light over here.</light1> <light2 type='str'>ow wait, even lighter here.</light2> <light3 type='str'>or here ...</light3> - <light1 type='str'>Seeing more light over here.</light1> <light4 type='str'>I think the light is coming from this direction.</light4> <light5 type='str'>I can't find the direction of the light.</light5> - <ChangeU type='str'>The light level raised and dropped</ChangeU> - <gui_conf_description_lb type='str'>Description</gui_conf_description_lb> - <Increase type='str'>The light level exceeded the threshold</Increase> - <conf_lblBoth type='str'>Both</conf_lblBoth> - <conf_lblDecrease type='str'>Decrease</conf_lblDecrease> - <gui_conf_version_lb type='str'>Version</gui_conf_version_lb> + <mainscript type='str'>I've found the light !</mainscript> + <name_to_read type='str'>Light monitor</name_to_read> + <power_supply type='str'>You must disconnect the power supply</power_supply> + <search type='str'>I seek ...</search> + <speaker_name type='str'>Ryan8k</speaker_name> + <widget_lblBehavior type='str'>Enable behavior script</widget_lblBehavior> <widget_lblBoth type='str'>Both direction</widget_lblBoth> - <widget_lblValue type='str'>Value (%)</widget_lblValue> - <gui_conf_cancel_bt type='str'>Cancel</gui_conf_cancel_bt> - <mainscript type='str'>I've found the light !</mainscript> + <widget_lblBtnApply type='str'>Apply changes</widget_lblBtnApply> + <widget_lblChange type='str'>Change</widget_lblChange> + <widget_lblChangeD type='str'>Drop and raise</widget_lblChangeD> + <widget_lblChangeU type='str'>Raise and drop</widget_lblChangeU> + <widget_lblControl type='str'>Control</widget_lblControl> + <widget_lblDark type='str'>Search darkness</widget_lblDark> + <widget_lblDecrease type='str'>Decreasing</widget_lblDecrease> + <widget_lblDisplayThreshold type='str'>Display threshold on graph</widget_lblDisplayThreshold> <widget_lblDrop type='str'>Drop</widget_lblDrop> + <widget_lblEvent type='str'>Event</widget_lblEvent> <widget_lblIncrease type='str'>Increasing</widget_lblIncrease> - <conf_btnAdd type='str'>Add</conf_btnAdd> - <gui_conf_author_lb type='str'>Author</gui_conf_author_lb> + <widget_lblLight type='str'>Search light</widget_lblLight> + <widget_lblNotified type='str'>Notified</widget_lblNotified> + <widget_lblRaise type='str'>Raise</widget_lblRaise> + <widget_lblSet type='str'>Add to config</widget_lblSet> <widget_lblTest type='str'>Notifications</widget_lblTest> - <conf_lblDrop type='str'>Drop</conf_lblDrop> - <Raise type='str'>The light level raised</Raise> - <Decrease type='str'>The light level passed below the threshold</Decrease> - <widget_lblDisplayThreshold type='str'>Display threshold on graph</widget_lblDisplayThreshold> - <conf_lblRate type='str'>Refresh rate</conf_lblRate> - <conf_lblControl type='str'>Control</conf_lblControl> - <conf_btnRemove type='str'>Remove</conf_btnRemove> - <conf_lblIncrease type='str'>Increase</conf_lblIncrease> - <widget_lblChangeU type='str'>Raise and drop</widget_lblChangeU> - <widget_lblChangeD type='str'>Drop and raise</widget_lblChangeD> - <conf_lblChange type='str'>Change</conf_lblChange> - <widget_lblBtnApply type='str'>Apply changes</widget_lblBtnApply> - <gui_conf_rate_lb type='str'>Refresh rate :</gui_conf_rate_lb> - <conf_lblChangeU type='str'>Raise and drop</conf_lblChangeU> - <gui_conf_delay_lb type='str'>Delay (sec)</gui_conf_delay_lb> - <gui_conf_about_title type='str'>About</gui_conf_about_title> - <conf_lblChangeD type='str'>Drop and raise</conf_lblChangeD> - <widget_lblChange type='str'>Change</widget_lblChange> - <conf_btnModify type='str'>Modify</conf_btnModify> - <dark1 type='str'>It's pretty dark here.</dark1> - <dark3 type='str'>hmm, but it's even more dark over here!</dark3> - <Drop type='str'>The light level dropped</Drop> - <dark5 type='str'>I can't find the darkest spot...</dark5> - <dark4 type='str'>This is the darkest spot.</dark4> - <gui_conf_sample_lb type='str'>Sample :</gui_conf_sample_lb> - <disable type='str'>Disable measurement when the eyes are closed</disable> - <conf_lblDefaultBehavior type='str'>Default behavior</conf_lblDefaultBehavior> - <speaker_name type='str'>Ryan8k</speaker_name> - <widget_lblBehavior type='str'>Enable behavior script</widget_lblBehavior> - <conf_lblNotified type='str'>Notified ?</conf_lblNotified> - <Threshold type='str'>The light reached the threshold</Threshold> - <MainBehavior type='str'>Main behavior</MainBehavior> + <widget_lblThreshold type='str'>Threshold</widget_lblThreshold> + <widget_lblValue type='str'>Value (%)</widget_lblValue> </strings> Modified: software/gadgets/light_monitor/trunk/Light_monitor.tgf =================================================================== (Binary files differ) |