summaryrefslogtreecommitdiff
path: root/server/xml/macros/example.xml
diff options
context:
space:
mode:
authorsenator <senator>2009-11-16 11:36:08 +0000
committersenator <senator>2009-11-16 11:36:08 +0000
commit1a6bd6fdbfffa6fb120b1464854a95b43221719d (patch)
tree9ab5d7acfd549e53ec58921f6319ef4aa4650ff6 /server/xml/macros/example.xml
parentc3cf6809bd89f2fddbdc8a6d0b8c2e713392f710 (diff)
Several more changes to field names. These are done with sed, so it is possible that something is broken. I do check things after changes are made so it should be ok
Diffstat (limited to 'server/xml/macros/example.xml')
-rw-r--r--server/xml/macros/example.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/xml/macros/example.xml b/server/xml/macros/example.xml
index 2e60ae7..d9710ec 100644
--- a/server/xml/macros/example.xml
+++ b/server/xml/macros/example.xml
@@ -1,10 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
-<macro name="example" version="1.0" resume="Axis: ${axis}\nCylinder: ${cyl}\nSphere: ${sphere}\n">
+<macro name="example" version="1.0" resume="Axis: $.grader}\nCylinder: ${cyl}\nSphere: $.sfere}\n">
<queries>
<query class="lensmeter" ttl="10000" automap="true"/>
</queries>
<maps>
- <map name="axis">
+ <map name=.grader">
-- LUA program
return math.pi, 1234567890, 'local'
</map>
@@ -30,9 +30,9 @@
</maps>
<scripts>
<script language="lua" name="theanswer">
- sphere = tonumber(getValue('sphere'))
- axis = tonumber(getValue('axis'))
- if( sphere == axis )
+ .sfere = tonumber(getValue(.sfere'))
+ .grader = tonumber(getValue(.grader'))
+ if(.sfere ==.grader )
then
setValue('cyl', name)
return true
@@ -50,7 +50,7 @@
<frame name="linse_framea" layout="hbox">
<icon src="righteye"/>
<label name="a" width="100" caption="Akse rotation:"/>
- <lineedit name="axis" regexp="[24]*" map="axis" lua="theanswer" value="244"/>
+ <lineedit name=.grader" regexp="[24]*" map=.grader" lua="theanswer" value="244"/>
</frame>
<frame name="linse_frameb" layout="hbox">
<icon src="lefteye"/>
@@ -62,10 +62,10 @@
</frame>
</frame>
<frame name="linse_frame" caption="FlereLinser:" layout="vbox">
- <multilist name="multilisttest" value="" layout="vbox" format="Sphere: ${spherecombo}, Cyl: ${multcyl}.">
+ <multilist name="multilisttest" value="" layout="vbox" format="Sphere: $.sferecombo}, Cyl: ${multcyl}.">
<frame name="linse_frameb" layout="hbox">
<label name="b" width="100" caption="Sphere:"/>
- <combobox name="spherecombo" width="100" value="val_lad" type="search">
+ <combobox name=.sferecombo" width="100" value="val_lad" type="search">
<item caption="sap" value="val_sap"/>
<item caption="sat" value="val_sat"/>
<item caption="sad" value="val_sad"/>