summaryrefslogtreecommitdiff
path: root/server/xml/macros/farvesynstest-1.0.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/farvesynstest-1.0.xml')
-rw-r--r--server/xml/macros/farvesynstest-1.0.xml594
1 files changed, 0 insertions, 594 deletions
diff --git a/server/xml/macros/farvesynstest-1.0.xml b/server/xml/macros/farvesynstest-1.0.xml
deleted file mode 100644
index b3d8462..0000000
--- a/server/xml/macros/farvesynstest-1.0.xml
+++ /dev/null
@@ -1,594 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<macro name="farvesynstest" version="1.0">
- <resume language="lua">
- transformation = ''
- vanishing = ''
- hidden = ''
- diagnostic = ''
- out = ''
-
- if ( getValue('farvesynstest.transformation.12.checkbox') == 'correct' )
- then
- transformation = transformation .. '12 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.12') .. ' '
- end
- if ( getValue('farvesynstest.transformation.8.checkbox') == 'correct' )
- then
- transformation = transformation .. '8 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.8') .. ' '
- end
- if ( getValue('farvesynstest.transformation.6.checkbox') == 'correct' )
- then
- transformation = transformation .. '6 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.6') .. ' '
- end
- if ( getValue('farvesynstest.transformation.29.checkbox') == 'correct' )
- then
- transformation = transformation .. '29 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.29') .. ' '
- end
- if ( getValue('farvesynstest.transformation.57.checkbox') == 'correct' )
- then
- transformation = transformation .. '57 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.57') .. ' '
- end
- if ( getValue('farvesynstest.transformation.5.checkbox') == 'correct' )
- then
- transformation = transformation .. '5 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.5') .. ' '
- end
- if ( getValue('farvesynstest.transformation.3.checkbox') == 'correct' )
- then
- transformation = transformation .. '3 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.3') .. ' '
- end
- if ( getValue('farvesynstest.transformation.15.checkbox') == 'correct' )
- then
- transformation = transformation .. '15 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.15') .. ' '
- end
- if ( getValue('farvesynstest.transformation.74.checkbox') == 'correct' )
- then
- transformation = transformation .. '74 '
- else
- transformation = transformation .. getValue('farvesynstest.transformation.74') .. ' '
- end
-
- if ( getValue('farvesynstest.vanishing.2.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '2 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.2') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.6.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '6 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.6') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.97.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '97 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.97') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.45.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '45 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.45') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.5.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '5 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.5') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.7.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '7 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.7') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.16.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '16 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.16') .. ' '
- end
- if ( getValue('farvesynstest.vanishing.73.checkbox') == 'correct' )
- then
- vanishing = vanishing .. '73 '
- else
- vanishing = vanishing .. getValue('farvesynstest.vanishing.73') .. ' '
- end
-
- if ( getValue('farvesynstest.hidden.1.checkbox') == 'correct' )
- then
- hidden = hidden .. '- '
- else
- hidden = hidden .. getValue('farvesynstest.hidden.1') .. ' '
- end
- if ( getValue('farvesynstest.hidden.2.checkbox') == 'correct' )
- then
- hidden = hidden .. '- '
- else
- hidden = hidden .. getValue('farvesynstest.hidden.2') .. ' '
- end
- if ( getValue('farvesynstest.hidden.3.checkbox') == 'correct' )
- then
- hidden = hidden .. '- '
- else
- hidden = hidden .. getValue('farvesynstest.hidden.3') .. ' '
- end
- if ( getValue('farvesynstest.hidden.4.checkbox') == 'correct' )
- then
- hidden = hidden .. '- '
- else
- hidden = hidden .. getValue('farvesynstest.hidden.4') .. ' '
- end
-
- if ( getValue('farvesynstest.diagnostic.26.checkbox') == 'correct' )
- then
- diagnostic = diagnostic .. '26 '
- else
- diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.26') .. ' '
- end
- if ( getValue('farvesynstest.diagnostic.42.checkbox') == 'correct' )
- then
- diagnostic = diagnostic .. '42 '
- else
- diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.42') .. ' '
- end
- if ( getValue('farvesynstest.diagnostic.35.checkbox') == 'correct' )
- then
- diagnostic = diagnostic .. '35 '
- else
- diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.35') .. ' '
- end
- if ( getValue('farvesynstest.diagnostic.96.checkbox') == 'correct' )
- then
- diagnostic = diagnostic .. '96 '
- else
- diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.96') .. ' '
- end
-
- out = out .. "Transformation:"
- for i = 0, string.len(transformation) - 15, 1 do
- out = out .. ' '
- end
- out = out .. "| Vanishing:\n"
- out = out .. transformation .. ' | '
- out = out .. vanishing .. '\n'
- out = out .. "Hidden:"
- for i = 0, string.len(hidden) - 7, 1 do
- out = out .. ' '
- end
- out = out .. "| Diagnostic\n"
- out = out .. hidden .. " | "
- out = out .. diagnostic .. '\n'
-
- return out
-</resume>
- <queries>
- </queries>
- <maps>
- </maps>
- <scripts>
- <script language="lua" name="not0">
- if(value == '')
- then
- return false
- end
- return true
- </script>
- <script language="lua" name="t12">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.12')
- else
- disable('farvesynstest.transformation.12')
- end
-
- return true
- </script>
- <script language="lua" name="t8">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.8')
- else
- disable('farvesynstest.transformation.8')
- end
-
- return true
- </script>
- <script language="lua" name="t6">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.6')
- else
- disable('farvesynstest.transformation.6')
- end
-
- return true
- </script>
- <script language="lua" name="t29">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.29')
- else
- disable('farvesynstest.transformation.29')
- end
-
- return true
- </script>
- <script language="lua" name="t57">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.57')
- else
- disable('farvesynstest.transformation.57')
- end
-
- return true
- </script>
- <script language="lua" name="t5">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.5')
- else
- disable('farvesynstest.transformation.5')
- end
-
- return true
- </script>
- <script language="lua" name="t3">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.3')
- else
- disable('farvesynstest.transformation.3')
- end
-
- return true
- </script>
- <script language="lua" name="t15">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.15')
- else
- disable('farvesynstest.transformation.15')
- end
-
- return true
- </script>
- <script language="lua" name="t74">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.transformation.74')
- else
- disable('farvesynstest.transformation.74')
- end
-
- return true
- </script>
- <script language="lua" name="v2">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.2')
- else
- disable('farvesynstest.vanishing.2')
- end
-
- return true
- </script>
- <script language="lua" name="v6">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.6')
- else
- disable('farvesynstest.vanishing.6')
- end
-
- return true
- </script>
- <script language="lua" name="v97">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.97')
- else
- disable('farvesynstest.vanishing.97')
- end
-
- return true
- </script>
- <script language="lua" name="v45">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.45')
- else
- disable('farvesynstest.vanishing.45')
- end
-
- return true
- </script>
- <script language="lua" name="v5">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.5')
- else
- disable('farvesynstest.vanishing.5')
- end
-
- return true
- </script>
- <script language="lua" name="v7">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.7')
- else
- disable('farvesynstest.vanishing.7')
- end
-
- return true
- </script>
- <script language="lua" name="v16">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.16')
- else
- disable('farvesynstest.vanishing.16')
- end
-
- return true
- </script>
- <script language="lua" name="v73">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.vanishing.73')
- else
- disable('farvesynstest.vanishing.73')
- end
-
- return true
- </script>
- <script language="lua" name="h1">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.hidden.1')
- else
- disable('farvesynstest.hidden.1')
- end
-
- return true
- </script>
- <script language="lua" name="h2">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.hidden.2')
- else
- disable('farvesynstest.hidden.2')
- end
-
- return true
- </script>
- <script language="lua" name="h3">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.hidden.3')
- else
- disable('farvesynstest.hidden.3')
- end
-
- return true
- </script>
- <script language="lua" name="h4">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.hidden.4')
- else
- disable('farvesynstest.hidden.4')
- end
-
- return true
- </script>
- <script language="lua" name="d26">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.diagnostic.26')
- else
- disable('farvesynstest.diagnostic.26')
- end
-
- return true
- </script>
- <script language="lua" name="d42">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.diagnostic.42')
- else
- disable('farvesynstest.diagnostic.42')
- end
-
- return true
- </script>
- <script language="lua" name="d35">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.diagnostic.35')
- else
- disable('farvesynstest.diagnostic.35')
- end
-
- return true
- </script>
- <script language="lua" name="d96">
- if ( value == 'wrong' )
- then
- enable('farvesynstest.diagnostic.96')
- else
- disable('farvesynstest.diagnostic.96')
- end
-
- return true
- </script>
- </scripts>
- <widgets caption="Farvesynstest" layout="vbox">
- <label caption="Ved korrekt svar, sæt kryds i boksen. Ved forkert svar, anfør svaret i tekstfeltet."/>
- <label caption=""/>
- <label caption="Transformation:"/>
- <frame layout="hbox">
- <frame layout="vbox">
- <label caption="12"/>
- <checkbox name="farvesynstest.transformation.12.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t12"/>
- <lineedit name="farvesynstest.transformation.12" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="8"/>
- <checkbox name="farvesynstest.transformation.8.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t8"/>
- <lineedit name="farvesynstest.transformation.8" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="6"/>
- <checkbox name="farvesynstest.transformation.6.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t6"/>
- <lineedit name="farvesynstest.transformation.6" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="29"/>
- <checkbox name="farvesynstest.transformation.29.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t29"/>
- <lineedit name="farvesynstest.transformation.29" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="57"/>
- <checkbox name="farvesynstest.transformation.57.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t57"/>
- <lineedit name="farvesynstest.transformation.57" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="5"/>
- <checkbox name="farvesynstest.transformation.5.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t5"/>
- <lineedit name="farvesynstest.transformation.5" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="3"/>
- <checkbox name="farvesynstest.transformation.3.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t3"/>
- <lineedit name="farvesynstest.transformation.3" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="15"/>
- <checkbox name="farvesynstest.transformation.15.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t15"/>
- <lineedit name="farvesynstest.transformation.15" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="74"/>
- <checkbox name="farvesynstest.transformation.74.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="t74"/>
- <lineedit name="farvesynstest.transformation.74" value="" regexp="\d{1,2}"/>
- </frame>
- </frame>
- <label caption=""/>
- <label caption="Vanishing:"/>
- <frame layout="hbox">
- <frame layout="vbox">
- <label caption="2"/>
- <checkbox name="farvesynstest.vanishing.2.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v2"/>
- <lineedit name="farvesynstest.vanishing.2" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="6"/>
- <checkbox name="farvesynstest.vanishing.6.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v6"/>
- <lineedit name="farvesynstest.vanishing.6" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="97"/>
- <checkbox name="farvesynstest.vanishing.97.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v97"/>
- <lineedit name="farvesynstest.vanishing.97" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="45"/>
- <checkbox name="farvesynstest.vanishing.45.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v45"/>
- <lineedit name="farvesynstest.vanishing.45" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="5"/>
- <checkbox name="farvesynstest.vanishing.5.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v5"/>
- <lineedit name="farvesynstest.vanishing.5" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="7"/>
- <checkbox name="farvesynstest.vanishing.7.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v7"/>
- <lineedit name="farvesynstest.vanishing.7" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="16"/>
- <checkbox name="farvesynstest.vanishing.16.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v16"/>
- <lineedit name="farvesynstest.vanishing.16" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="73"/>
- <checkbox name="farvesynstest.vanishing.73.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="v73"/>
- <lineedit name="farvesynstest.vanishing.73" value="" regexp="\d{1,2}"/>
- </frame>
- </frame>
- <label caption=""/>
- <label caption="Hidden:"/>
- <frame layout="hbox">
- <frame layout="vbox">
- <label caption="-"/>
- <checkbox name="farvesynstest.hidden.1.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="h1"/>
- <lineedit name="farvesynstest.hidden.1" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="-"/>
- <checkbox name="farvesynstest.hidden.2.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="h2"/>
- <lineedit name="farvesynstest.hidden.2" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="-"/>
- <checkbox name="farvesynstest.hidden.3.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="h3"/>
- <lineedit name="farvesynstest.hidden.3" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="-"/>
- <checkbox name="farvesynstest.hidden.4.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="h4"/>
- <lineedit name="farvesynstest.hidden.4" value="" regexp="\d{1,2}"/>
- </frame>
- </frame>
- <label caption=""/>
- <label caption="Diagnostic:"/>
- <frame layout="hbox">
- <frame layout="vbox">
- <label caption="26"/>
- <checkbox name="farvesynstest.diagnostic.26.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="d26"/>
- <lineedit name="farvesynstest.diagnostic.26" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="42"/>
- <checkbox name="farvesynstest.diagnostic.42.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="d42"/>
- <lineedit name="farvesynstest.diagnostic.42" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="35"/>
- <checkbox name="farvesynstest.diagnostic.35.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="d35"/>
- <lineedit name="farvesynstest.diagnostic.35" value="" regexp="\d{1,2}"/>
- </frame>
- <frame layout="vbox">
- <label caption="96"/>
- <checkbox name="farvesynstest.diagnostic.96.checkbox" caption="Korrekt" truevalue="correct" falsevalue="wrong" script="d96"/>
- <lineedit name="farvesynstest.diagnostic.96" value="" regexp="\d{1,2}"/>
- </frame>
- </frame>
-
- <!-- Knapper -->
- <frame layout="hbox">
- <spacer/>
- <button caption="Gem" action="commit"/>
- </frame>
- </widgets>
-</macro>