diff options
author | senator <senator> | 2009-09-09 06:05:18 +0000 |
---|---|---|
committer | senator <senator> | 2009-09-09 06:05:18 +0000 |
commit | 7b9ed3f6bdd71bb195a01f0f93177037d430dd30 (patch) | |
tree | b09551e9f9d6c3498d637a117d1c32a33d7e7f4f /server/xml | |
parent | 1185b5c6cd8374f06c8d0d1070a17a180200dcef (diff) |
in the process of changing all the names of visus macros to danish
Diffstat (limited to 'server/xml')
-rw-r--r-- | server/xml/macros/egen_brille-1.0.xml | 36 | ||||
-rw-r--r-- | server/xml/macros/visus_uden_korr-1.0.xml | 26 |
2 files changed, 31 insertions, 31 deletions
diff --git a/server/xml/macros/egen_brille-1.0.xml b/server/xml/macros/egen_brille-1.0.xml index c6d1fe6..fef3a1e 100644 --- a/server/xml/macros/egen_brille-1.0.xml +++ b/server/xml/macros/egen_brille-1.0.xml @@ -16,16 +16,16 @@ out = '' if ( getValue('lensmeter.right.missing') == '' ) then - out = out .. 'Egen brille højre øje: ' .. getValue('lensmeter.right.sphere') + out = out .. 'Egen brille højre øje: ' .. getValue('lensmeter.right.sf') .. ' sf, ' .. getValue('lensmeter.right.cyl') .. ' cyl ' - .. getValue('lensmeter.right.axis') .. ' grader.' + .. getValue('lensmeter.right.grader') .. ' grader.' end if ( getValue('lensmeter.left.missing') == '' ) then - out = out .. 'Egen brille venstre øje: ' .. getValue('lensmeter.left.sphere') + out = out .. 'Egen brille venstre øje: ' .. getValue('lensmeter.left.sf') .. ' sf, ' .. getValue('lensmeter.left.cyl') .. ' cyl ' - .. getValue('lensmeter.left.axis') .. ' grader.' + .. getValue('lensmeter.left.grader') .. ' grader.' end return out @@ -76,19 +76,19 @@ end return value, timestamp, source </map> - <map name="lensmeter.left.sphere"> + <map name="lensmeter.left.sf"> -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 - if(lensmeter and lensmeter.left and lensmeter.left.sphere and lensmeter.left.sphere.value and lensmeter.left.sphere.timestamp) + if(lensmeter and lensmeter.left and lensmeter.left.sf and lensmeter.left.sf.value and lensmeter.left.sf.timestamp) then - value = lensmeter.left.sphere.value + value = lensmeter.left.sf.value -- convert . to , value = string.gsub(value, '[.]', ',') - timestamp = lensmeter.left.sphere.timestamp - source = lensmeter.left.sphere.source + timestamp = lensmeter.left.sf.timestamp + source = lensmeter.left.sf.source end return value, timestamp, source </map> @@ -108,19 +108,19 @@ end return value, timestamp, source </map> - <map name="lensmeter.right.sphere"> + <map name="lensmeter.right.sf"> -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 source = 0 - if(lensmeter and lensmeter.right and lensmeter.right.sphere and lensmeter.right.sphere.value and lensmeter.right.sphere.timestamp) + if(lensmeter and lensmeter.right and lensmeter.right.sf and lensmeter.right.sf.value and lensmeter.right.sf.timestamp) then - value = lensmeter.right.sphere.value + value = lensmeter.right.sf.value -- convert . to , value = string.gsub(value, '[.]', ',') - timestamp = lensmeter.right.sphere.timestamp - source = lensmeter.right.sphere.source + timestamp = lensmeter.right.sf.timestamp + source = lensmeter.right.sf.source end return value, timestamp, source </map> @@ -218,7 +218,7 @@ <frame layout="vbox"> <label caption="Sf:"/> - <lineedit name="lensmeter.right.sphere" map="lensmeter.right.sphere" + <lineedit name="lensmeter.right.sf" map="lensmeter.right.sf" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/> </frame> <frame layout="vbox"> @@ -228,7 +228,7 @@ </frame> <frame layout="vbox"> <label caption="Grader:"/> - <lineedit name="lensmeter.right.axis" map="lensmeter.right.axis" + <lineedit name="lensmeter.right.grader" map="lensmeter.right.grader" regexp="[\d]+" script="lt359gt0" value=""/> </frame> </frame> @@ -244,7 +244,7 @@ <frame layout="vbox"> <label caption="Sf:"/> - <lineedit name="lensmeter.left.sphere" map="lensmeter.left.sphere" + <lineedit name="lensmeter.left.sf" map="lensmeter.left.sf" regexp="[+-]{0,1}\d{1,2},\d{2}" script="lt20gt-25" value=""/> </frame> <frame layout="vbox"> @@ -254,7 +254,7 @@ </frame> <frame layout="vbox"> <label caption="Grader:"/> - <lineedit name="lensmeter.left.axis" map="lensmeter.left.axis" + <lineedit name="lensmeter.left.grader" map="lensmeter.left.grader" regexp="[\d]+" script="lt359gt0" value=""/> </frame> </frame> diff --git a/server/xml/macros/visus_uden_korr-1.0.xml b/server/xml/macros/visus_uden_korr-1.0.xml index 41d6741..bcc812b 100644 --- a/server/xml/macros/visus_uden_korr-1.0.xml +++ b/server/xml/macros/visus_uden_korr-1.0.xml @@ -2,20 +2,20 @@ <macro name="visus_uden_korr" version="1.0"> <resume language="lua"> out = '' - if ( getValue('snellen.right.missing') == '' or getValue('snellen.left.missing') == '' ) + if ( getValue('visus.uden_korr.snellen.right.missing') == '' or getValue('visus.uden_korr.snellen.left.missing') == '' ) then out = out .. 'Synsstyrke uden korrektion:\n' - if ( getValue('snellen.right.missing') == '' ) + if ( getValue('visus.uden_korr.snellen.right.missing') == '' ) then - out = out .. 'Snellen højre øje: ' .. getValue('snellen.right') .. '\n' - out = out .. 'ETDRS højre øje: ' .. getValue('etdrs.right') .. '\n' + out = out .. 'Snellen højre øje: ' .. getValue('visus.uden_korr.snellen.right') .. '\n' + out = out .. 'ETDRS højre øje: ' .. getValue('visus.uden_korr.etdrs.right') .. '\n' end - if ( getValue('snellen.left.missing') == '' ) + if ( getValue('visus.uden_korr.snellen.left.missing') == '' ) then - out = out .. 'Snellen venstre øje: ' .. getValue('snellen.left') .. '\n' - out = out .. 'ETDRS venstre øje: ' .. getValue('etdrs.left') .. '\n' + out = out .. 'Snellen venstre øje: ' .. getValue('visus.uden_korr.snellen.left') .. '\n' + out = out .. 'ETDRS venstre øje: ' .. getValue('visus.uden_korr.etdrs.left') .. '\n' end end return out @@ -143,7 +143,7 @@ <!-- Højre øje --> <frame layout="vbox"> <checkbox caption="Der er ikke målt på højre øje" - name="snellen.right.missing" script="right_eye" + name="visus.uden_korr.snellen.right.missing" script="right_eye" map="missing_eye_right_map" truevalue="mangler" falsevalue="" value=""/> <frame name="right_eye_frame" caption="Højre øje" layout="vbox"> @@ -151,7 +151,7 @@ <frame layout="vbox"> <label caption="Snellen:"/> - <altcombobox name="snellen.right" layout="vbox" type="search" value="Ikke udfyldt" script="not0"> + <altcombobox name="visus.uden_korr.snellen.right" layout="vbox" type="search" value="Ikke udfyldt" script="not0"> <item caption="Ikke udfyldt" value="Ikke udfyldt"/> <item caption="2,0" value="2,0"/> <item caption="1,6" value="1,6"/> @@ -188,7 +188,7 @@ </frame> <frame layout="vbox"> <label caption="ETDRS:"/> - <combobox name="etdrs.right" value="Ikke udfyldt" type="search" script="not0"> + <combobox name="visus.uden_korr.etdrs.right" value="Ikke udfyldt" type="search" script="not0"> <item caption="Ikke udfyldt" value="Ikke udfyldt"/> <item caption="0" value="0"/> <item caption="1" value="1"/> @@ -301,7 +301,7 @@ <!-- Venstre øje --> <frame layout="vbox"> <checkbox caption="Der er ikke målt på venstre øje" - name="snellen.left.missing" script="left_eye" + name="visus.uden_korr.snellen.left.missing" script="left_eye" map="missing_eye_left_map" truevalue="mangler" falsevalue="" value=""/> <frame name="left_eye_frame" caption="Venstre øje" layout="vbox"> @@ -309,7 +309,7 @@ <frame layout="vbox"> <label caption="Snellen:"/> - <altcombobox name="snellen.left" layout="vbox" type="search" value="Ikke udfyldt" script="not0"> + <altcombobox name="visus.uden_korr.snellen.left" layout="vbox" type="search" value="Ikke udfyldt" script="not0"> <item caption="Ikke udfyldt" value="Ikke udfyldt"/> <item caption="2,0" value="2,0"/> <item caption="1,6" value="1,6"/> @@ -346,7 +346,7 @@ </frame> <frame layout="vbox"> <label caption="ETDRS:"/> - <combobox name="etdrs.left" value="Ikke udfyldt" type="search" script="not0"> + <combobox name="visus.uden_korr.etdrs.left" value="Ikke udfyldt" type="search" script="not0"> <item caption="Ikke udfyldt" value="Ikke udfyldt"/> <item caption="0" value="0"/> <item caption="1" value="1"/> |