summaryrefslogtreecommitdiff
path: root/server/xml/example2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/example2.xml')
-rw-r--r--server/xml/example2.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/server/xml/example2.xml b/server/xml/example2.xml
new file mode 100644
index 0000000..1ac7dba
--- /dev/null
+++ b/server/xml/example2.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<macro name="example2" version="1.0"
+ resume="${linse1}\n${linse2}">
+ <queries>
+ <query class="lensmeter" ttl="10000"/>
+ <query class="autophoropter" ttl="10000" automap="true"/>
+ </queries>
+ <maps>
+ <map name="axis">
+ -- LUA program
+ return RIGHT.axis
+ </map>
+ <map name="dioptri">
+ -- LUA program
+ return RIGHT.dioptri
+ </map>
+ </maps>
+ <window name="mainwindow"
+ caption="Fundus"
+ width="500"
+ height="560"
+ layout="vbox">
+ <frame name="linse_frame" caption="Linser:" layout="vbox">
+ <frame name="linse_framea" layout="hbox">
+ <label name="a" width="300" caption="Akse rotation:"/>
+ <lineedit name="linse1" regexp="[0-9]{1,3}D" map="axis" value="90K"/>
+ </frame>
+ <frame name="linse_frameb" layout="hbox">
+ <label name="b" width="300" caption="Diotri:"/>
+ <lineedit name="linse2" regexp="[0-9]{1,3}D" map="dioptri" value="90K"/>
+ </frame>
+ </frame>
+ <frame name="buttons" layout="hbox">
+ <button name="cancel" caption="Annuller" action="cancel"/>
+ <button name="commit" caption="Godkend" action="commit"/>
+ </frame>
+ </window>
+</macro>