summaryrefslogtreecommitdiff
path: root/server/xml/example2.xml
diff options
context:
space:
mode:
authordeva <deva>2008-05-20 15:01:12 +0000
committerdeva <deva>2008-05-20 15:01:12 +0000
commit44099653bfc6f3124c7c776a81c01ec973995c49 (patch)
tree5f6fb059a16a0880f0e8b080d9ebd9298046932b /server/xml/example2.xml
parent556f00e4af55e78836c45f47b0662ab44bbb8b48 (diff)
Added some code for the new output format.
Diffstat (limited to 'server/xml/example2.xml')
-rw-r--r--server/xml/example2.xml46
1 files changed, 45 insertions, 1 deletions
diff --git a/server/xml/example2.xml b/server/xml/example2.xml
index d30bfec..65164bc 100644
--- a/server/xml/example2.xml
+++ b/server/xml/example2.xml
@@ -1,6 +1,50 @@
<?xml version='1.0' encoding='UTF-8'?>
<template name="testcourse">
- <course>
+ <course name="example2">
+ <macro name="example1" version="1.0"
+ resume="${linse1}${linse2}">
+ <queries>
+ <query device_id="lensmeter" device_type="lensmeter" class="lensmeter" ttl="10000"/>
+ </queries>
+ <maps>
+ <map name="axis">
+ -- LUA program
+ return right.axis
+ </map>
+ <map name="sphere">
+ -- LUA program
+ return right.sphere
+ </map>
+ <map name="cyl">
+ -- LUA program
+ return right.cyl
+ </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}" map="axis" value="90K"/>
+ </frame>
+ <frame name="linse_frameb" layout="hbox">
+ <label name="b" width="300" caption="Sphere:"/>
+ <lineedit name="linse2" regexp="[0-9]{1,3}" map="sphere" value="90K"/>
+ </frame>
+ <frame name="linse_framec" layout="hbox">
+ <label name="c" width="300" caption="Sphere:"/>
+ <lineedit name="linse3" regexp="[0-9]{1,3}" map="cyl" 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>
<macro name="example2" version="1.0"
resume="${linse1}${linse2}">
<queries>