summaryrefslogtreecommitdiff
path: root/server/xml/macros/pupilstoerrelse-1.0.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/pupilstoerrelse-1.0.xml')
-rw-r--r--server/xml/macros/pupilstoerrelse-1.0.xml50
1 files changed, 25 insertions, 25 deletions
diff --git a/server/xml/macros/pupilstoerrelse-1.0.xml b/server/xml/macros/pupilstoerrelse-1.0.xml
index b648d46..0eb7fd1 100644
--- a/server/xml/macros/pupilstoerrelse-1.0.xml
+++ b/server/xml/macros/pupilstoerrelse-1.0.xml
@@ -2,19 +2,19 @@
<macro name="pupilstoerrelse" version="1.0">
<resume language="lua">
out = ''
- if ( getValue('pupilstoerrelse.odxt.missing') == '' or getValue('pupilstoerrelse.osin.missing') == '' )
+ if ( getValue('pupilstoerrelse.mangler.odxt') == '' or getValue('pupilstoerrelse.mangler.osin') == '' )
then
out = out .. 'Pupilstørrelse, ' .. getValue('pupilstoerrelse.method') .. ':\n'
end
- if ( getValue('pupilstoerrelse.odxt.missing') == '' )
+ if ( getValue('pupilstoerrelse.mangler.odxt') == '' )
then
- out = out .. 'o.dxt: ' .. getValue('pupilstoerrelse.odxt.diameter') .. ' mm\n'
+ out = out .. 'o.dxt: ' .. getValue('pupilstoerrelse.diameter.odxt') .. ' mm\n'
end
- if ( getValue('pupilstoerrelse.osin.missing') == '' )
+ if ( getValue('pupilstoerrelse.mangler.osin') == '' )
then
- out = out .. 'o.sin: ' .. getValue('pupilstoerrelse.osin.diameter') .. ' mm\n'
+ out = out .. 'o.sin: ' .. getValue('pupilstoerrelse.diameter.osin') .. ' mm\n'
end
return out
@@ -22,42 +22,42 @@
<queries>
</queries>
<maps>
- <map name="missing_eye_right_map">
+ <map name="missing_eye_odxt_map">
value = 0
timestamp = 0
source = ''
- if( missing_eye_right )
+ if( missing_eye_odxt )
then
- if( missing_eye_right.value and missing_eye_right.value == '' )
+ if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
then
value = ''
- timestamp = missing_eye_right.timestamp
- source = missing_eye_right.source
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
else
value = 'mangler'
- timestamp = missing_eye_right.timestamp
- source = missing_eye_right.source
+ timestamp = missing_eye_odxt.timestamp
+ source = missing_eye_odxt.source
end
end
return value, timestamp, source
</map>
- <map name="missing_eye_left_map">
+ <map name="missing_eye_osin_map">
value = 0
timestamp = 0
source = ''
- if( missing_eye_left )
+ if( missing_eye_osin )
then
- if( missing_eye_left.value and missing_eye_left.value == '' )
+ if( missing_eye_osin.value and missing_eye_osin.value == '' )
then
value = ''
- timestamp = missing_eye_left.timestamp
- source = missing_eye_left.source
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
else
value = 'mangler'
- timestamp = missing_eye_left.timestamp
- source = missing_eye_left.source
+ timestamp = missing_eye_osin.timestamp
+ source = missing_eye_osin.source
end
end
return value, timestamp, source
@@ -105,14 +105,14 @@
<!-- o.dxt -->
<frame layout="vbox">
<checkbox caption="Der er ikke målt på o.dxt"
- name="pupilstoerrelse.odxt.missing" script="right_eye"
- map="missing_eye_right_map"
+ name="pupilstoerrelse.mangler.odxt" script="right_eye"
+ map="missing_eye_odxt_map"
truevalue="mangler" falsevalue="" value=""/>
<frame name="right_eye_frame" caption="o.dxt" layout="hbox">
<frame layout="vbox">
<label caption="Diameter:"/>
<frame layout="hbox">
- <lineedit name="pupilstoerrelse.odxt.diameter" script="lt12gt0"
+ <lineedit name="pupilstoerrelse.diameter.odxt" script="lt12gt0"
regexp="\d{1,2},\d{1}" value=""/>
<label caption="mm"/>
</frame>
@@ -123,14 +123,14 @@
<!-- o.sin -->
<frame layout="vbox">
<checkbox caption="Der er ikke målt på o.sin"
- name="pupilstoerrelse.osin.missing" script="left_eye"
- map="missing_eye_left_map"
+ name="pupilstoerrelse.mangler.osin" script="left_eye"
+ map="missing_eye_osin_map"
truevalue="mangler" falsevalue="" value=""/>
<frame name="left_eye_frame" caption="o.sin" layout="hbox">
<frame layout="vbox">
<label caption="Diameter:"/>
<frame layout="hbox">
- <lineedit name="pupilstoerrelse.osin.diameter" script="lt12gt0"
+ <lineedit name="pupilstoerrelse.diameter.osin" script="lt12gt0"
regexp="\d{1,2},\d{1}" value=""/>
<label caption="mm"/>
</frame>