summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_lineedit.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/test_lineedit.xml')
-rw-r--r--server/xml/macros/test_lineedit.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/server/xml/macros/test_lineedit.xml b/server/xml/macros/test_lineedit.xml
new file mode 100644
index 0000000..6c79d83
--- /dev/null
+++ b/server/xml/macros/test_lineedit.xml
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="test_lineedit" version="1.0">
+ <resume></resume>
+ <queries>
+ </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" regexp="[0-9]"/>
+
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Reset" action="reset"/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </window>
+</macro>