1
0
Fork 0

Created new dialogue to control flight recorder.

New dialogue is accesible from the File menu.

Allows enable/disable of three new features: multiplayer record, continuous
record and recovery snapshot. Also moved load/save tape from the file menu into
the new dialogue.

Also removed recently-added flight recorder items from the multiplayer dialogue.

The recovery snapshot interval is 1s second if enabled. Might be better to make
it longer, e.g. 5s, but don't know how to change checkbox value.
This commit is contained in:
Julian Smith 2020-06-19 23:06:15 +01:00
parent 8b2a9204d5
commit 2a44dba040
4 changed files with 118 additions and 40 deletions

View file

@ -7,6 +7,7 @@
<!-- File menu -->
<file>File</file>
<reset>Reset</reset>
<flight-recorder-control>Flight Recorder Control</flight-recorder-control>
<load-tape>Load Flight Recorder Tape</load-tape>
<save-tape>Save Flight Recorder Tape</save-tape>
<snap-shot>Screenshot</snap-shot>

View file

@ -0,0 +1,115 @@
<?xml version="1.0"?>
<PropertyList>
<name>flight-recorder-control</name>
<layout>vbox</layout>
<!-- titlebar -->
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text>
<label>Flight Recorder Control</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>table</layout>
<checkbox>
<row>0</row>
<col>0</col>
<property>sim/replay/multiplayer</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<text>
<row>0</row>
<col>1</col>
<label>Include multiplayer aircraft in recordings</label>
<halign>left</halign>
</text>
<checkbox>
<row>1</row>
<col>0</col>
<property>sim/replay/record-continuous</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<text>
<row>1</row>
<col>1</col>
<label>Continuous record to file</label>
<halign>left</halign>
</text>
<checkbox>
<row>2</row>
<col>0</col>
<property>sim/replay/recovery-period</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<text>
<row>2</row>
<col>1</col>
<label>Maintain recovery snapshot</label>
<halign>left</halign>
</text>
<button>
<row>4</row>
<col>0</col>
<legend>Load ...</legend>
<binding>
<command>dialog-show</command>
<dialog-name>flight-recorder-load</dialog-name>
</binding>
</button>
<text>
<row>4</row>
<col>1</col>
<label>Load Flight Recorder Tape</label>
<halign>left</halign>
</text>
<button>
<row>5</row>
<col>0</col>
<legend>Save ...</legend>
<binding>
<command>dialog-show</command>
<dialog-name>flight-recorder-save</dialog-name>
</binding>
</button>
<text>
<row>5</row>
<col>1</col>
<label>Save Flight Recorder Tape</label>
<halign>left</halign>
</text>
</group>
</PropertyList>

View file

@ -167,34 +167,6 @@
</binding>
</checkbox>
<checkbox>
<row>2</row>
<col>1</col>
<colspan>2</colspan>
<halign>left</halign>
<name>multiplayer-record</name>
<label>Include multiplayer aircraft in recordings</label>
<property>/sim/replay/multiplayer</property>
<binding>
<command>dialog-apply</command>
<object-name>multiplayer-record</object-name>
</binding>
</checkbox>
<checkbox>
<row>3</row>
<col>1</col>
<colspan>2</colspan>
<halign>left</halign>
<name>record-continuous</name>
<label>Continuous record to file</label>
<property>sim/replay/record-continuous</property>
<binding>
<command>dialog-apply</command>
<object-name>record-continuous</object-name>
</binding>
</checkbox>
<checkbox>
<row>4</row>
<col>1</col>

View file

@ -13,20 +13,10 @@
</item>
<item>
<name>load-tape</name>
<key>Shift-F1</key>
<name>flight-recorder-control</name>
<binding>
<command>dialog-show</command>
<dialog-name>flight-recorder-load</dialog-name>
</binding>
</item>
<item>
<name>save-tape</name>
<key>Shift-F2</key>
<binding>
<command>dialog-show</command>
<dialog-name>flight-recorder-save</dialog-name>
<dialog-name>flight-recorder-control</dialog-name>
</binding>
</item>