summaryrefslogtreecommitdiff
path: root/server/xml/example2.xml
diff options
context:
space:
mode:
authordeva <deva>2008-05-16 15:00:35 +0000
committerdeva <deva>2008-05-16 15:00:35 +0000
commit7d81d456702e3c5b0caead6e44f2c2f236d2fa41 (patch)
treee1c0f5344b7825b634c602199421e129199b698d /server/xml/example2.xml
parentd22c5966c130ef7768bac7914cb4dafa74088036 (diff)
more stuff
Diffstat (limited to 'server/xml/example2.xml')
-rw-r--r--server/xml/example2.xml79
1 files changed, 42 insertions, 37 deletions
diff --git a/server/xml/example2.xml b/server/xml/example2.xml
index 075fdbd..42f4755 100644
--- a/server/xml/example2.xml
+++ b/server/xml/example2.xml
@@ -1,38 +1,43 @@
<?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>
+<template name="testcourse">
+ <course>
+ <macro name="example2" version="1.0"
+ resume="${linse1}
+${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>
+ </course>
+</template>