diff options
Diffstat (limited to 'server/xml/example2.xml')
-rw-r--r-- | server/xml/example2.xml | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/server/xml/example2.xml b/server/xml/example2.xml index 42f4755..d30bfec 100644 --- a/server/xml/example2.xml +++ b/server/xml/example2.xml @@ -1,21 +1,23 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version='1.0' encoding='UTF-8'?> <template name="testcourse"> <course> <macro name="example2" version="1.0" - resume="${linse1} -${linse2}"> + resume="${linse1}${linse2}"> <queries> - <query class="lensmeter" ttl="10000"/> - <query class="autophoropter" ttl="10000" automap="true"/> + <query device_id="lensmeter" device_type="lensmeter" class="lensmeter" ttl="10000"/> </queries> <maps> <map name="axis"> -- LUA program return right.axis </map> - <map name="dioptri"> + <map name="sphere"> -- LUA program - return right.dioptri + return right.sphere + </map> + <map name="cyl"> + -- LUA program + return right.cyl </map> </maps> <window name="mainwindow" @@ -26,11 +28,15 @@ ${linse2}"> <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"/> + <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="Diotri:"/> - <lineedit name="linse2" regexp="[0-9]{1,3}D" map="dioptri" value="90K"/> + <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"> |