summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_lineedit.xml
blob: d706b50683282418cadc15e8a7db9432ba39f611 (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
<?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 language="lua" src="regexp.lua"/>
  </scripts>
  <widgets caption="Test LineEdit"
          layout="vbox">

    <lineedit name="dims" value="tester"
	      map="test.data"
	      onChange="this:setValid(regexp('^%d?%d?%d$'))"/>

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