summaryrefslogtreecommitdiff
path: root/server/xml/macros/B.2.2.4.1.xml
blob: a92cd50f707fa4d59c0ff91cb02a31dceda0a3ce (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
50
51
52
53
54
<?xml version='1.0' encoding='UTF-8'?>
<!--
    20081204: Bent Bisballe Nyeng
    Feltnavnene ændret så de giver mening.
  -->
<!--
    20090108: Bent Bisballe Nyeng
    Højre/venstre byttet om.
  -->
<macro name="B.2.2.4.1" version="1.0">
  <resume></resume>
  <queries>
  </queries>
  <maps>
  </maps>
  <scripts>
    <script language="lua" name="lt10000gt0">
      value = string.gsub(value, ',', '.')
      if(tonumber(value) &gt;= 0 and tonumber(value) &lt;= 10000)
      then
        return true
      else
        return false
      end
    </script>
  </scripts>
  <window caption="OCT, u. konklusion (B.2.2.4.1)"
          layout="vbox">

    <frame layout="hbox">
      
      <!-- Højre øje -->
      <frame caption="Højre øje" layout="hbox">
	<label caption="Tykkelse:"/>
	<lineedit name="oct.right.thickness" regexp="\d{1,5}" script="lt10000gt0" value=""/>
	<label caption="µm"/>
      </frame>

      <!-- Venstre øje -->
      <frame caption="Venstre øje" layout="hbox">
	<label caption="Tykkelse:"/>
	<lineedit name="oct.left.thickness" regexp="\d{1,5}" script="lt10000gt0" value=""/>
	<label caption="µm"/>
      </frame>
      
    </frame>

    <!-- Knapper -->
    <frame layout="hbox">
      <spacer />
      <button caption="Gem" action="commit"/>
    </frame>
  </window>
</macro>