summaryrefslogtreecommitdiff
path: root/server/xml/example2.xml
blob: 075fdbd8dd4a3d9fbcf089f2e5ea6c19d0a78dfd (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
<?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>