1
0
Fork 0

Instruments GUI: add QNH setting

Thanks to Omega & jam007 on forum

http://forum.flightgear.org/viewtopic.php?f=6&t=20045
This commit is contained in:
Clément de l'Hamaide 2014-12-30 16:27:10 +01:00
parent 18270fddc3
commit 2ce60a3659

View file

@ -1,10 +1,8 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<PropertyList> <PropertyList>
<name>instruments</name>
<name>instruments</name> <modal>false</modal>
<modal>false</modal> <layout>vbox</layout>
<layout>vbox</layout>
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
@ -38,7 +36,7 @@
<row>0</row> <row>0</row>
<col>0</col> <col>0</col>
<halign>right</halign> <halign>right</halign>
<label>ALT setting:</label> <label>QNH setting:</label>
</text> </text>
<group> <group>
@ -48,33 +46,18 @@
<default-padding>0</default-padding> <default-padding>0</default-padding>
<button> <button>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
<legend>&lt;</legend> <legend>&lt;</legend>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property> <property>/instrumentation/altimeter/setting-hpa</property>
<step type="double">-0.01</step> <step type="double">-1</step>
</binding> </binding>
<binding> <binding>
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button>
<button>
<width>35</width>
<height>26</height>
<border>1</border>
<legend>&lt;&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step type="double">-0.10</step>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</button> </button>
</group> </group>
@ -83,8 +66,8 @@
<col>3</col> <col>3</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<live>true</live> <live>true</live>
<property>/instrumentation/altimeter/setting-inhg</property> <property>/instrumentation/altimeter/setting-hpa</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
</binding> </binding>
@ -95,7 +78,7 @@
<col>4</col> <col>4</col>
<padding>0</padding> <padding>0</padding>
<halign>left</halign> <halign>left</halign>
<label>inHg</label> <label>hPa</label>
</text> </text>
<group> <group>
@ -105,22 +88,108 @@
<default-padding>0</default-padding> <default-padding>0</default-padding>
<button> <button>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
<legend>&gt;&gt;</legend> <legend>&gt;</legend>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property> <property>/instrumentation/altimeter/setting-hpa</property>
<step type="double">0.10</step> <step type="double">1</step>
</binding> </binding>
<binding> <binding>
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button>
</group>
<text>
<row>1</row>
<col>0</col>
<halign>right</halign>
<label>ALT setting:</label>
</text>
<group>
<row>1</row>
<col>1</col>
<layout>hbox</layout>
<default-padding>0</default-padding>
<button>
<width>35</width>
<height>26</height>
<border>1</border>
<legend>&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step type="double">-0.01</step>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</button> </button>
<button> <button>
<row>0</row> <width>35</width>
<height>26</height>
<border>1</border>
<legend>&lt;&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step type="double">-0.10</step>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</button>
</group>
<input>
<row>1</row>
<col>3</col>
<width>75</width>
<height>25</height>
<live>true</live>
<property>/instrumentation/altimeter/setting-inhg</property>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<text>
<row>1</row>
<col>4</col>
<padding>0</padding>
<halign>left</halign>
<label>inHg</label>
</text>
<group>
<layout>hbox</layout>
<row>1</row>
<col>5</col>
<default-padding>0</default-padding>
<button>
<width>35</width>
<height>26</height>
<border>1</border>
<legend>&gt;&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step type="double">0.10</step>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</button>
<button>
<row>1</row>
<col>6</col> <col>6</col>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
@ -138,7 +207,7 @@
</group> </group>
<text> <text>
<row>1</row> <row>2</row>
<col>0</col> <col>0</col>
<halign>right</halign> <halign>right</halign>
<label>HI offset:</label> <label>HI offset:</label>
@ -147,7 +216,7 @@
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>0</default-padding> <default-padding>0</default-padding>
<row>1</row> <row>2</row>
<col>1</col> <col>1</col>
<button> <button>
@ -166,27 +235,27 @@
</button> </button>
<button> <button>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
<legend>&lt;&lt;</legend> <legend>&lt;&lt;</legend>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/instrumentation/heading-indicator/offset-deg</property> <property>/instrumentation/heading-indicator/offset-deg</property>
<step type="double">-10.0</step> <step type="double">-10.0</step>
</binding> </binding>
<binding> <binding>
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
</group> </group>
<input> <input>
<row>1</row> <row>2</row>
<col>3</col> <col>3</col>
<width>75</width> <width>75</width>
<height>25</height> <height>25</height>
<live>true</live> <live>true</live>
<property>/instrumentation/heading-indicator/offset-deg</property> <property>/instrumentation/heading-indicator/offset-deg</property>
<binding> <binding>
<command>dialog-apply</command> <command>dialog-apply</command>
@ -194,7 +263,7 @@
</input> </input>
<text> <text>
<row>1</row> <row>2</row>
<col>4</col> <col>4</col>
<padding>0</padding> <padding>0</padding>
<halign>left</halign> <halign>left</halign>
@ -204,40 +273,39 @@
<group> <group>
<layout>hbox</layout> <layout>hbox</layout>
<default-padding>0</default-padding> <default-padding>0</default-padding>
<row>1</row> <row>2</row>
<col>5</col> <col>5</col>
<button> <button>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
<legend>&gt;&gt;</legend> <legend>&gt;&gt;</legend>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/instrumentation/heading-indicator/offset-deg</property> <property>/instrumentation/heading-indicator/offset-deg</property>
<step type="double">10.0</step> <step type="double">10.0</step>
</binding> </binding>
<binding> <binding>
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
<button> <button>
<width>35</width> <width>35</width>
<height>26</height> <height>26</height>
<border>1</border> <border>1</border>
<legend>&gt;</legend> <legend>&gt;</legend>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/instrumentation/heading-indicator/offset-deg</property> <property>/instrumentation/heading-indicator/offset-deg</property>
<step type="double">1.0</step> <step type="double">1.0</step>
</binding> </binding>
<binding> <binding>
<command>dialog-update</command> <command>dialog-update</command>
</binding> </binding>
</button> </button>
</group> </group>
</group> </group>
<hrule/> <hrule/>