1
0
Fork 0

before the big instrumentation rewrite dme.cxx cared for the initial

mode according to the switch position. Now dme.cxx is more generic
and can't make these settings any more -- and doesn't. So the dme
didn't display anything even if the knob was on.

The initialization has now to be done in the dme.xml file.
(Button-less actions are fired at init time and then thrown away.)
This commit is contained in:
mfranz 2006-02-02 00:07:11 +00:00
parent 12b58fa989
commit 5a12cd5d22

View file

@ -346,6 +346,53 @@ properties' values.
</layers>
<actions>
<action>
<name>Setup</name>
<binding>
<condition>
<equals>
<property>/instrumentation/dme/switch-position</property>
<value type="int">1</value>
</equals>
</condition>
<command>property-assign</command>
<property>/instrumentation/dme/frequencies/source</property>
<value>/instrumentation/nav[0]/frequencies/selected-mhz</value>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/dme/switch-position</property>
<value type="int">2</value>
</equals>
</condition>
<command>property-assign</command>
<property>/instrumentation/dme/frequencies/source</property>
<value>/instrumentation/dme/frequencies/selected-mhz</value>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/dme/switch-position</property>
<value type="int">2</value>
</equals>
</condition>
<command>property-assign</command>
<property>/instrumentation/dme/frequencies/selected-mhz</property>
<property>/instrumentation/nav[0]/frequencies/selected-mhz</property>
</binding>
<binding>
<condition>
<equals>
<property>/instrumentation/dme/switch-position</property>
<value type="int">3</value>
</equals>
</condition>
<command>property-assign</command>
<property>/instrumentation/dme/frequencies/source</property>
<value>/instrumentation/nav[1]/frequencies/selected-mhz</value>
</binding>
</action>
<action>
<name>Rotate knob left</name>