summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_metawidget.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/test_metawidget.xml')
-rw-r--r--server/xml/macros/test_metawidget.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/server/xml/macros/test_metawidget.xml b/server/xml/macros/test_metawidget.xml
new file mode 100644
index 0000000..c2a71a5
--- /dev/null
+++ b/server/xml/macros/test_metawidget.xml
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="test_metawidget" version="1.0">
+ <resume>${dims}</resume>
+ <queries>
+ </queries>
+ <maps>
+ </maps>
+ <scripts>
+ </scripts>
+ <window caption="Test Metawidget"
+ layout="vbox">
+
+ <metawidget layout="vbox" name="dims" format="${test1}: ${test2}" storechildren="true">
+ <lineedit name="test1" value="test"/>
+ <checkbox name="test2" value="ja" truevalue="ja" falsevalue="nej" caption="Og svaret er?"/>
+ </metawidget>
+
+ <metawidget layout="vbox" name="dims2" format="${a}: ${b}" storechildren="false">
+ <lineedit name="a" value="test"/>
+ <checkbox name="b" value="ja" truevalue="ja" falsevalue="nej" caption="Og svaret er?"/>
+ </metawidget>
+
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Reset" action="reset"/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </window>
+</macro>