<?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> <widgets 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> </widgets> </macro>