1
0
Fork 0

Improve replay dialog

This commit is contained in:
ThorstenB 2011-03-24 23:32:55 +01:00
parent 38653de528
commit 93b8d1e38c
2 changed files with 24 additions and 19 deletions

View file

@ -66,6 +66,7 @@
<input>
<row>0</row><col>1</col>
<pref-width>40</pref-width>
<halign>left</halign>
<property>/sim/replay/duration</property>
</input>
@ -79,28 +80,13 @@
<combo>
<row>1</row><col>1</col>
<halign>left</halign>
<pref-width>200</pref-width>
<property>/sim/replay/view-name</property>
<binding>
<command>dialog-apply</command>
</binding>
</combo>
<text>
<row>2</row><col>0</col>
<halign>right</halign>
<label>Disable replay:</label>
</text>
<checkbox>
<row>2</row><col>1</col>
<halign>left</halign>
<property>/sim/replay/disable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
<hrule/>
@ -156,7 +142,7 @@
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<button>
<legend>Replay</legend>
<legend>Start</legend>
<default>true</default>
<equal>true</equal>
<binding>
@ -177,6 +163,25 @@
</binding>
</button>
<empty><stretch>true</stretch></empty>
<button>
<legend>Stop</legend>
<equal>true</equal>
<enable>
<greater-than>
<property>/sim/freeze/replay-state</property>
<value>0</value>
</greater-than>
</enable>
<binding>
<property>/sim/replay/disable</property>
<command>property-assign</command>
<value type="bool">true</value>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
<button>
<legend>Cancel</legend>
<equal>true</equal>

View file

@ -963,8 +963,8 @@ top down before the key bindings are parsed.
<property>/sim/freeze/replay-state</property>
</condition>
<command>property-assign</command>
<property>/sim/freeze/replay-state</property>
<value type="int">0</value>
<property>/sim/replay/disable</property>
<value type="bool">true</value>
</binding>
</key>