summaryrefslogtreecommitdiff
path: root/server/xml/example2.xml
blob: d30bfecacf5d45e5ef3d0bac254109c2693400a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version='1.0' encoding='UTF-8'?>
<template name="testcourse">
  <course>
    <macro name="example2" 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>
  </course>
</template>