summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_lineedit.xml
blob: 92f33e3a30fec985568c9a7fa8b095ac704ce7f7 (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
<?xml version='1.0' encoding='UTF-8'?>
<macro name="test_lineedit" version="1.0">
  <resume></resume>
  <queries>
    <query service="pentominos" class="test" ttl="1000000"/>
  </queries>
  <maps>
  </maps>
  <scripts>
    <script name="A" language="lua">
      if ( value == '4' )
      then
        return true
      end
      return false
    </script>
  </scripts>
  <window caption="Test LineEdit"
          layout="vbox">

    <lineedit name="dims" value="tester" script="A" map="test.data" regexp="[0-9]"/>

    <frame layout="hbox">
      <spacer />
      <button caption="Reset" action="reset"/>
      <button caption="Gem" action="commit"/>
    </frame>
  </window>
</macro>