summaryrefslogtreecommitdiff
path: root/server/xml
diff options
context:
space:
mode:
authordeva <deva>2008-05-08 14:47:58 +0000
committerdeva <deva>2008-05-08 14:47:58 +0000
commit088e153fefc48e3241964c7941a2ff8bc19b57ba (patch)
tree591a2b04f49f3606a54c960196b20502bfd41a02 /server/xml
parent657e97f432db434da838f92bfd95dc0fbb33ede3 (diff)
More design of the query/map system.
Diffstat (limited to 'server/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>