summaryrefslogtreecommitdiff
path: root/server/xml/macros/orbita-1.0.xml
diff options
context:
space:
mode:
authordeva <deva>2010-06-01 13:02:23 +0000
committerdeva <deva>2010-06-01 13:02:23 +0000
commit730eb796bbce6f124be9194f1565b7dda1daddf1 (patch)
tree46387b60fefad222197e3319ed922b23176d4a36 /server/xml/macros/orbita-1.0.xml
parent74a28aa7125be6a603128ad600c98c4882f3b5c2 (diff)
Afdj macros/templates are now located in their own repo.
Diffstat (limited to 'server/xml/macros/orbita-1.0.xml')
-rw-r--r--server/xml/macros/orbita-1.0.xml376
1 files changed, 0 insertions, 376 deletions
diff --git a/server/xml/macros/orbita-1.0.xml b/server/xml/macros/orbita-1.0.xml
deleted file mode 100644
index a052696..0000000
--- a/server/xml/macros/orbita-1.0.xml
+++ /dev/null
@@ -1,376 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<macro name="orbita" version="1.0">
- <resume language="lua">
- out = ''
-
- if ( getValue('orbita.odxt.mangler') == '' )
- then
- out = out .. 'Orbita o.dxt:\n'
- out = out .. 'Den retrobulbære resistance er ' .. getValue('orbita.odxt.resistance') .. '.\n'
- out = out .. 'Hertelmål: ' .. getValue('orbita.odxt.hertelmaalx') .. '-' .. getValue('orbita.odxt.hertelmaaly') .. '/' .. getValue('orbita.odxt.hertelmaalz') .. '\n'
- end
-
- if ( getValue('orbita.osin.mangler') == '' )
- then
- if ( getValue('orbita.odxt.mangler') == '' )
- then
- out = out .. '\n'
- end
- out = out .. 'Orbita o.sin:\n'
- out = out .. 'Den retrobulbære resistance er ' .. getValue('orbita.osin.resistance') .. '.\n'
- out = out .. 'Hertelmål: ' .. getValue('orbita.osin.hertelmaalx') .. '-' .. getValue('orbita.osin.hertelmaaly') .. '/' .. getValue('orbita.osin.hertelmaalz') .. '\n'
- end
-
- return out
- </resume>
- <queries>
- <query service="pracro" class="missing_eye_odxt" ttl="1000000"/>
- <query service="pracro" class="missing_eye_osin" ttl="1000000"/>
- </queries>
- <maps>
- <map name="missing_eye_odxt_map">
- value = 0
- timestamp = 0
- source = ''
-
- if( missing_eye_odxt )
- then
- if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
- then
- value = ''
- timestamp = missing_eye_odxt.timestamp
- source = missing_eye_odxt.source
- else
- value = 'mangler'
- timestamp = missing_eye_odxt.timestamp
- source = missing_eye_odxt.source
- end
- end
- return value, timestamp, source
- </map>
- <map name="missing_eye_osin_map">
- value = 0
- timestamp = 0
- source = ''
-
- if( missing_eye_osin )
- then
- if( missing_eye_osin.value and missing_eye_osin.value == '' )
- then
- value = ''
- timestamp = missing_eye_osin.timestamp
- source = missing_eye_osin.source
- else
- value = 'mangler'
- timestamp = missing_eye_osin.timestamp
- source = missing_eye_osin.source
- end
- end
- return value, timestamp, source
- </map>
- </maps>
- <scripts>
- <script language="lua" name="right_eye">
- if ( value == 'mangler' )
- then
- disable('right_eye_frame')
- else
- enable('right_eye_frame')
- end
-
- return true
- </script>
- <script language="lua" name="left_eye">
- if ( value == 'mangler' )
- then
- disable('left_eye_frame')
- else
- enable('left_eye_frame')
- end
-
- return true
- </script>
- </scripts>
- <widgets caption="Orbita" layout="vbox">
-
- <frame layout="hbox">
-
- <!-- o.dxt -->
- <frame layout="vbox">
- <checkbox caption="Der er ikke målt på o.dxt"
- name="orbita.odxt.mangler" script="right_eye"
- map="missing_eye_odxt_map"
- truevalue="mangler" falsevalue="" value=""/>
- <frame name="right_eye_frame" caption="o.dxt" layout="vbox">
- <frame layout="vbox">
- <label caption="Den retrobulbære resistance er:"/>
- <combobox name="orbita.odxt.resistance" value="">
- <item caption="Normal" value="normal"/>
- <item caption="Øget" value="øget"/>
- <item caption="Hård" value="hård"/>
- </combobox>
- </frame>
- <frame layout="hbox">
- <label caption="Hertelmål:"/>
- <combobox name="orbita.odxt.hertelmaalx" value="">
- <item caption="5" value="5"/>
- <item caption="6" value="6"/>
- <item caption="7" value="7"/>
- <item caption="8" value="8"/>
- <item caption="9" value="9"/>
- <item caption="10" value="10"/>
- <item caption="11" value="11"/>
- <item caption="12" value="12"/>
- <item caption="13" value="13"/>
- <item caption="14" value="14"/>
- <item caption="15" value="15"/>
- <item caption="16" value="16"/>
- <item caption="17" value="17"/>
- <item caption="18" value="18"/>
- <item caption="19" value="19"/>
- <item caption="20" value="20"/>
- <item caption="21" value="21"/>
- <item caption="22" value="22"/>
- <item caption="23" value="23"/>
- <item caption="24" value="24"/>
- <item caption="25" value="25"/>
- <item caption="26" value="26"/>
- <item caption="27" value="27"/>
- <item caption="28" value="28"/>
- <item caption="29" value="29"/>
- <item caption="30" value="30"/>
- </combobox>
- <label caption=" - "/>
- <combobox name="orbita.odxt.hertelmaaly" value="">
- <item caption="5" value="5"/>
- <item caption="6" value="6"/>
- <item caption="7" value="7"/>
- <item caption="8" value="8"/>
- <item caption="9" value="9"/>
- <item caption="10" value="10"/>
- <item caption="11" value="11"/>
- <item caption="12" value="12"/>
- <item caption="13" value="13"/>
- <item caption="14" value="14"/>
- <item caption="15" value="15"/>
- <item caption="16" value="16"/>
- <item caption="17" value="17"/>
- <item caption="18" value="18"/>
- <item caption="19" value="19"/>
- <item caption="20" value="20"/>
- <item caption="21" value="21"/>
- <item caption="22" value="22"/>
- <item caption="23" value="23"/>
- <item caption="24" value="24"/>
- <item caption="25" value="25"/>
- <item caption="26" value="26"/>
- <item caption="27" value="27"/>
- <item caption="28" value="28"/>
- <item caption="29" value="29"/>
- <item caption="30" value="30"/>
- </combobox>
- <label caption=" / "/>
- <combobox name="orbita.odxt.hertelmaalz" value="">
- <item caption="80" value="80"/>
- <item caption="81" value="81"/>
- <item caption="82" value="82"/>
- <item caption="83" value="83"/>
- <item caption="84" value="84"/>
- <item caption="85" value="85"/>
- <item caption="86" value="86"/>
- <item caption="87" value="87"/>
- <item caption="88" value="88"/>
- <item caption="89" value="89"/>
- <item caption="90" value="90"/>
- <item caption="91" value="91"/>
- <item caption="92" value="92"/>
- <item caption="93" value="93"/>
- <item caption="94" value="94"/>
- <item caption="95" value="95"/>
- <item caption="96" value="96"/>
- <item caption="97" value="97"/>
- <item caption="98" value="98"/>
- <item caption="99" value="99"/>
- <item caption="100" value="100"/>
- <item caption="100" value="100"/>
- <item caption="101" value="101"/>
- <item caption="102" value="102"/>
- <item caption="103" value="103"/>
- <item caption="104" value="104"/>
- <item caption="105" value="105"/>
- <item caption="106" value="106"/>
- <item caption="107" value="107"/>
- <item caption="108" value="108"/>
- <item caption="109" value="109"/>
- <item caption="110" value="110"/>
- <item caption="111" value="111"/>
- <item caption="112" value="112"/>
- <item caption="113" value="113"/>
- <item caption="114" value="114"/>
- <item caption="115" value="115"/>
- <item caption="116" value="116"/>
- <item caption="117" value="117"/>
- <item caption="118" value="118"/>
- <item caption="119" value="119"/>
- <item caption="120" value="120"/>
- <item caption="120" value="120"/>
- <item caption="121" value="121"/>
- <item caption="122" value="122"/>
- <item caption="123" value="123"/>
- <item caption="124" value="124"/>
- <item caption="125" value="125"/>
- <item caption="126" value="126"/>
- <item caption="127" value="127"/>
- <item caption="128" value="128"/>
- <item caption="129" value="129"/>
- <item caption="130" value="130"/>
- </combobox>
- <spacer/>
- </frame>
- </frame>
- </frame>
-
- <!-- o.sin -->
- <frame layout="vbox">
- <checkbox caption="Der er ikke målt på o.sin"
- name="orbita.osin.mangler" script="left_eye"
- map="missing_eye_osin_map"
- truevalue="mangler" falsevalue="" value=""/>
- <frame name="left_eye_frame" caption="o.sin" layout="vbox">
- <frame layout="vbox">
- <label caption="Den retrobulbære resistance er:"/>
- <combobox name="orbita.osin.resistance" value="">
- <item caption="Normal" value="normal"/>
- <item caption="Øget" value="øget"/>
- <item caption="Hård" value="hård"/>
- </combobox>
- </frame>
- <frame layout="hbox">
- <label caption="Hertelmål:"/>
- <combobox name="orbita.osin.hertelmaalx" value="">
- <item caption="5" value="5"/>
- <item caption="6" value="6"/>
- <item caption="7" value="7"/>
- <item caption="8" value="8"/>
- <item caption="9" value="9"/>
- <item caption="10" value="10"/>
- <item caption="11" value="11"/>
- <item caption="12" value="12"/>
- <item caption="13" value="13"/>
- <item caption="14" value="14"/>
- <item caption="15" value="15"/>
- <item caption="16" value="16"/>
- <item caption="17" value="17"/>
- <item caption="18" value="18"/>
- <item caption="19" value="19"/>
- <item caption="20" value="20"/>
- <item caption="21" value="21"/>
- <item caption="22" value="22"/>
- <item caption="23" value="23"/>
- <item caption="24" value="24"/>
- <item caption="25" value="25"/>
- <item caption="26" value="26"/>
- <item caption="27" value="27"/>
- <item caption="28" value="28"/>
- <item caption="29" value="29"/>
- <item caption="30" value="30"/>
- </combobox>
- <label caption=" - "/>
- <combobox name="orbita.osin.hertelmaaly" value="">
- <item caption="5" value="5"/>
- <item caption="6" value="6"/>
- <item caption="7" value="7"/>
- <item caption="8" value="8"/>
- <item caption="9" value="9"/>
- <item caption="10" value="10"/>
- <item caption="11" value="11"/>
- <item caption="12" value="12"/>
- <item caption="13" value="13"/>
- <item caption="14" value="14"/>
- <item caption="15" value="15"/>
- <item caption="16" value="16"/>
- <item caption="17" value="17"/>
- <item caption="18" value="18"/>
- <item caption="19" value="19"/>
- <item caption="20" value="20"/>
- <item caption="21" value="21"/>
- <item caption="22" value="22"/>
- <item caption="23" value="23"/>
- <item caption="24" value="24"/>
- <item caption="25" value="25"/>
- <item caption="26" value="26"/>
- <item caption="27" value="27"/>
- <item caption="28" value="28"/>
- <item caption="29" value="29"/>
- <item caption="30" value="30"/>
- </combobox>
- <label caption=" / "/>
- <combobox name="orbita.osin.hertelmaalz" value="">
- <item caption="80" value="80"/>
- <item caption="81" value="81"/>
- <item caption="82" value="82"/>
- <item caption="83" value="83"/>
- <item caption="84" value="84"/>
- <item caption="85" value="85"/>
- <item caption="86" value="86"/>
- <item caption="87" value="87"/>
- <item caption="88" value="88"/>
- <item caption="89" value="89"/>
- <item caption="90" value="90"/>
- <item caption="91" value="91"/>
- <item caption="92" value="92"/>
- <item caption="93" value="93"/>
- <item caption="94" value="94"/>
- <item caption="95" value="95"/>
- <item caption="96" value="96"/>
- <item caption="97" value="97"/>
- <item caption="98" value="98"/>
- <item caption="99" value="99"/>
- <item caption="100" value="100"/>
- <item caption="100" value="100"/>
- <item caption="101" value="101"/>
- <item caption="102" value="102"/>
- <item caption="103" value="103"/>
- <item caption="104" value="104"/>
- <item caption="105" value="105"/>
- <item caption="106" value="106"/>
- <item caption="107" value="107"/>
- <item caption="108" value="108"/>
- <item caption="109" value="109"/>
- <item caption="110" value="110"/>
- <item caption="111" value="111"/>
- <item caption="112" value="112"/>
- <item caption="113" value="113"/>
- <item caption="114" value="114"/>
- <item caption="115" value="115"/>
- <item caption="116" value="116"/>
- <item caption="117" value="117"/>
- <item caption="118" value="118"/>
- <item caption="119" value="119"/>
- <item caption="120" value="120"/>
- <item caption="120" value="120"/>
- <item caption="121" value="121"/>
- <item caption="122" value="122"/>
- <item caption="123" value="123"/>
- <item caption="124" value="124"/>
- <item caption="125" value="125"/>
- <item caption="126" value="126"/>
- <item caption="127" value="127"/>
- <item caption="128" value="128"/>
- <item caption="129" value="129"/>
- <item caption="130" value="130"/>
- </combobox>
- <spacer/>
- </frame>
- </frame>
- </frame>
-
- </frame>
-
- <!-- Knapper -->
- <frame layout="hbox">
- <spacer />
- <button caption="Gem" action="commit"/>
- </frame>
- </widgets>
-</macro>