fg-simbrief-addon/gui/dialogs/addon-simbrief-dialog.xml
2021-10-17 12:44:25 +02:00

238 lines
7.3 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>addon-simbrief-dialog</name>
<layout>vbox</layout>
<pref-width>500</pref-width>
<group>
<layout>hbox</layout>
<empty>
<stretch>1</stretch>
</empty>
<text>
<label>SimBrief</label>
</text>
<empty>
<stretch>1</stretch>
</empty>
<button>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<legend></legend>
<keynum>27</keynum>
<border>2</border>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text>
<label>SimBrief username</label>
<pref-width>100</pref-width>
<halign>left</halign>
</text>
<input>
<property>/sim/simbrief/username</property>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
</input>
</group>
<empty>
<pref-height>10</pref-height>
</empty>
<group>
<layout>hbox</layout>
<empty>
<stretch>1</stretch>
</empty>
<text>
<label>What to import</label>
</text>
<empty>
<stretch>1</stretch>
</empty>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<checkbox>
<property>/sim/simbrief/options/import-fp</property>
<label>Flight Plan Route</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<valign>top</valign>
<pref-width>100</pref-width>
</checkbox>
<group>
<pref-width>100</pref-width>
<layout>vbox</layout>
<checkbox>
<property>/sim/simbrief/options/import-departure</property>
<label>Departure RWY, SID</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
<checkbox>
<property>/sim/simbrief/options/import-arrival</property>
<label>Arrival RWY, STAR</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
<checkbox>
<property>/sim/simbrief/options/autocommit</property>
<label>Activate immediately</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
</group>
</group>
<group>
<layout>hbox</layout>
<checkbox>
<property>/sim/simbrief/options/import-perfinit</property>
<label>Performance init</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
</group>
<group>
<layout>hbox</layout>
<checkbox>
<property>/sim/simbrief/options/import-payload</property>
<label>Payload</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
</group>
<group>
<layout>hbox</layout>
<checkbox>
<property>/sim/simbrief/options/import-fob</property>
<label>Fuel</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
<group>
<layout>hbox</layout>
<text>
<label>Strategy</label>
</text>
<combo>
<property>/sim/simbrief/options/fuel-strategy</property>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
<value>first-come-first-serve</value>
<value>balanced</value>
</combo>
<halign>left</halign>
<pref-width>100</pref-width>
</group>
</group>
<group>
<layout>hbox</layout>
<halign>left</halign>
<checkbox>
<property>/sim/simbrief/options/import-winds-aloft</property>
<label>Winds Aloft</label>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<pref-width>100</pref-width>
</checkbox>
<text>
<label>Updater: unknown</label>
<format>Updater: %s</format>
<property>/sim/simbrief/aloft-updater-status</property>
<live type="bool">true</live>
<halign>left</halign>
</text>
<button>
<legend>Start</legend>
<binding>
<command>nasal</command>
<script>simbrief.startAloftUpdater();</script>
</binding>
<halign>left</halign>
</button>
<button>
<legend>Stop</legend>
<binding>
<command>nasal</command>
<script>simbrief.stopAloftUpdater();</script>
</binding>
<halign>left</halign>
</button>
<empty>
</empty>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<text>
<label>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</label>
<format>%s</format>
<property>/sim/simbrief/text-status</property>
<live type="bool">true</live>
</text>
</group>
<group>
<layout>hbox</layout>
<button>
<legend>Import</legend>
<binding>
<command>nasal</command>
<script>simbrief.loadFP()</script>
</binding>
</button>
<button>
<legend>Activate</legend>
<binding>
<command>nasal</command>
<script>commitFlightplan()</script>
</binding>
</button>
</group>
</group>
</PropertyList>