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:
parent
12b58fa989
commit
5a12cd5d22
1 changed files with 47 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue