Position dialog rework
Change to have radio buttons for each option on the left and the details for the selected option on the right and hide unrelated elements
This commit is contained in:
parent
838ba8230b
commit
7abf6cfdce
1 changed files with 283 additions and 202 deletions
|
@ -52,13 +52,17 @@
|
|||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<empty><stretch>1</stretch></empty>
|
||||
<empty>
|
||||
<stretch>1</stretch>
|
||||
</empty>
|
||||
|
||||
<text>
|
||||
<label>Position Aircraft In Air</label>
|
||||
</text>
|
||||
|
||||
<empty><stretch>1</stretch></empty>
|
||||
<empty>
|
||||
<stretch>1</stretch>
|
||||
</empty>
|
||||
|
||||
<button>
|
||||
<pref-width>16</pref-width>
|
||||
|
@ -72,216 +76,293 @@
|
|||
</button>
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
||||
<text>
|
||||
<label>Surface Point</label>
|
||||
</text>
|
||||
<hrule />
|
||||
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
<halign>center</halign>
|
||||
<radio>
|
||||
<row>0</row><col>0</col>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/airport</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("airport")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<text>
|
||||
<row>0</row><col>1</col>
|
||||
<halign>right</halign>
|
||||
<label>Airport:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row><col>2</col>
|
||||
<property>/sim/presets/airport-id</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("airport")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
<row>0</row><col>3</col>
|
||||
<halign>right</halign>
|
||||
<label> Runway:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row><col>4</col>
|
||||
<property>/sim/presets/runway</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("airport")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<group>
|
||||
<default-padding>6</default-padding>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<layout>vbox</layout>
|
||||
<radio>
|
||||
<live>true</live>
|
||||
<halign>left</halign>
|
||||
<label>Airport:</label>
|
||||
<property>/sim/gui/dialogs/location-in-air/airport</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("airport")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
|
||||
<radio>
|
||||
<row>1</row><col>0</col>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/lonlat</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("lonlat")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<text>
|
||||
<row>1</row><col>1</col>
|
||||
<halign>right</halign>
|
||||
<label>Longitude:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>1</row><col>2</col>
|
||||
<property>/sim/presets/longitude-deg</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("lonlat")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
<row>1</row><col>3</col>
|
||||
<halign>right</halign>
|
||||
<label> Latitude:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>1</row><col>4</col>
|
||||
<property>/sim/presets/latitude-deg</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("lonlat")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<radio>
|
||||
<label>Position:</label>
|
||||
<halign>left</halign>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/lonlat</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("lonlat")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
|
||||
<radio>
|
||||
<row>2</row><col>0</col>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/vor</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("vor")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<text>
|
||||
<row>2</row><col>1</col>
|
||||
<halign>right</halign>
|
||||
<label>VOR:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>2</row><col>2</col>
|
||||
<property>/sim/presets/vor-id</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("vor")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<radio>
|
||||
<label>VOR:</label>
|
||||
<halign>left</halign>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/vor</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("vor")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
|
||||
<radio>
|
||||
<row>3</row><col>0</col>
|
||||
<live>true</live>
|
||||
<halign>left</halign>
|
||||
<radio>
|
||||
<live>true</live>
|
||||
<halign>left</halign>
|
||||
<label>NDB:</label>
|
||||
|
||||
<property>/sim/gui/dialogs/location-in-air/ndb</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("ndb")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<text>
|
||||
<row>3</row><col>1</col>
|
||||
<halign>right</halign>
|
||||
<label>NDB:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>3</row><col>2</col>
|
||||
<property>/sim/presets/ndb-id</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("ndb")</script>
|
||||
</binding>
|
||||
</input>
|
||||
|
||||
<radio>
|
||||
<row>4</row><col>0</col>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/fix</property>
|
||||
<halign>left</halign>
|
||||
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("fix")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<text>
|
||||
<row>4</row><col>1</col>
|
||||
<halign>right</halign>
|
||||
<label>Fix:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>4</row><col>2</col>
|
||||
<property>/sim/presets/fix</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("fix")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<property>/sim/gui/dialogs/location-in-air/ndb</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("ndb")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
|
||||
|
||||
<radio>
|
||||
<row>5</row><col>0</col>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/carrier-active</property>
|
||||
<halign>left</halign>
|
||||
<radio>
|
||||
<label>Fix:</label>
|
||||
<live>true</live>
|
||||
<property>/sim/gui/dialogs/location-in-air/fix</property>
|
||||
<halign>left</halign>
|
||||
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("carrier")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<text>
|
||||
<row>5</row><col>1</col>
|
||||
<halign>right</halign>
|
||||
<label>Carrier:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>5</row><col>2</col>
|
||||
<property>/sim/presets/carrier</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("carrier")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
<row>5</row><col>3</col>
|
||||
<halign>right</halign>
|
||||
<label> Parking:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>5</row><col>4</col>
|
||||
<property>/sim/presets/parkpos</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("carrier")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("fix")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
|
||||
<radio>
|
||||
<live>true</live>
|
||||
<label>Aircraft Carrier:</label>
|
||||
<property>/sim/gui/dialogs/location-in-air/carrier-active</property>
|
||||
<halign>left</halign>
|
||||
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("carrier")</script>
|
||||
</binding>
|
||||
</radio>
|
||||
</group>
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/location-in-air/airport</property>
|
||||
</visible>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>Airport:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/airport-id</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("airport")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
<row>1</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label> Runway:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>1</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/runway</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("airport")</script>
|
||||
</binding>
|
||||
</input>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<layout>table</layout>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/location-in-air/lonlat</property>
|
||||
</visible>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>Longitude:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/longitude-deg</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("lonlat")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
<row>1</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label> Latitude:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>1</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/latitude-deg</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("lonlat")</script>
|
||||
</binding>
|
||||
</input>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<layout>table</layout>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/location-in-air/vor</property>
|
||||
</visible>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>VOR:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/vor-id</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("vor")</script>
|
||||
</binding>
|
||||
</input>
|
||||
|
||||
</group>
|
||||
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<layout>table</layout>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/location-in-air/ndb</property>
|
||||
</visible>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>NDB:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/ndb-id</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("ndb")</script>
|
||||
</binding>
|
||||
</input>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<layout>table</layout>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/location-in-air/fix</property>
|
||||
</visible>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>Fix:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/fix</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("fix")</script>
|
||||
</binding>
|
||||
</input>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<layout>table</layout>
|
||||
<visible>
|
||||
<property>/sim/gui/dialogs/location-in-air/carrier-active</property>
|
||||
</visible>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label>Carrier:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/carrier</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("carrier")</script>
|
||||
</binding>
|
||||
</input>
|
||||
<text>
|
||||
<row>1</row>
|
||||
<col>0</col>
|
||||
<halign>right</halign>
|
||||
<label> Parking:</label>
|
||||
</text>
|
||||
<input>
|
||||
<row>1</row>
|
||||
<col>1</col>
|
||||
<property>/sim/presets/parkpos</property>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio("carrier")</script>
|
||||
</binding>
|
||||
</input>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
|
Loading…
Add table
Reference in a new issue