2003-09-11 19:15:38 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
2004-05-12 15:37:17 +00:00
|
|
|
<name>replay</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Instant Replay</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>
|
|
|
|
|
2007-03-26 15:25:27 +00:00
|
|
|
<hrule/>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
# Populate the view combo box with a list of the available views
|
2010-12-27 20:19:31 +00:00
|
|
|
var combo = cmdarg().getChildren("group")[1].getNode("combo");
|
2009-10-04 20:49:43 +00:00
|
|
|
combo.removeChildren("value");
|
|
|
|
|
|
|
|
var current_view = getprop("/sim/current-view/view-number");
|
|
|
|
var i = 0;
|
|
|
|
foreach (var v; view.views) {
|
|
|
|
|
|
|
|
var name = "Unnamed view " ~ v.getIndex();
|
|
|
|
|
|
|
|
if (v.getNode("name") != nil) {
|
|
|
|
name = v.getNode("name").getValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
# Pre-populate the combo box selected value
|
|
|
|
if (v.getIndex() == current_view) {
|
|
|
|
setprop("/sim/replay/view-name", name);
|
|
|
|
}
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
combo.getNode("value[" ~ i ~ "]", 1).setValue(name);
|
|
|
|
i = i + 1;
|
|
|
|
}
|
|
|
|
</open>
|
|
|
|
</nasal>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<text>
|
|
|
|
<row>0</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Duration:</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<input>
|
|
|
|
<row>0</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/replay/duration</property>
|
|
|
|
</input>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<text>
|
|
|
|
<row>1</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>View:</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<combo>
|
|
|
|
<row>1</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
2009-10-04 20:49:43 +00:00
|
|
|
<property>/sim/replay/view-name</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2004-05-12 15:37:17 +00:00
|
|
|
</combo>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<text>
|
|
|
|
<row>2</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Disable replay:</label>
|
|
|
|
</text>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2005-07-31 08:52:26 +00:00
|
|
|
<checkbox>
|
2009-10-04 20:49:43 +00:00
|
|
|
<row>2</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
2005-07-31 08:52:26 +00:00
|
|
|
<property>/sim/replay/disable</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>During replay:</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>1</row><col>0</col>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>v/V</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<text>
|
|
|
|
<row>1</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Change view</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<text>
|
|
|
|
<row>2</row><col>0</col>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>Ctrl-v</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<text>
|
|
|
|
<row>2</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Reset view</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<text>
|
|
|
|
<row>3</row><col>0</col>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>p p</label>
|
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<text>
|
|
|
|
<row>3</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>End replay</label>
|
|
|
|
</text>
|
2004-05-12 15:37:17 +00:00
|
|
|
</group>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<hrule/>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Replay</legend>
|
2005-11-05 13:59:06 +00:00
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-apply</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
2009-10-04 20:49:43 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var index = view.indexof(getprop("/sim/replay/view-name"));
|
|
|
|
setprop("/sim/current-view/view-number", index);
|
|
|
|
</script>
|
|
|
|
</binding>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>replay</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-close</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Cancel</legend>
|
2005-11-05 13:59:06 +00:00
|
|
|
<equal>true</equal>
|
2005-11-05 18:42:28 +00:00
|
|
|
<key>Esc</key>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
<command>dialog-close</command>
|
2004-05-12 15:37:17 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
</group>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
|
|
|
</PropertyList>
|