2006-02-15 10:33:38 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<x>-20</x>
|
|
|
|
<y>-20</y>
|
|
|
|
<name>nasal-console</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Nasal Console</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<hrule><dummy/></hrule>
|
|
|
|
|
|
|
|
<textbox>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<pref-height>120</pref-height>
|
2006-02-15 12:15:37 +00:00
|
|
|
<pref-width>450</pref-width>
|
2006-02-15 10:33:38 +00:00
|
|
|
<slider>20</slider>
|
|
|
|
<editable>true</editable>
|
|
|
|
<property>/sim/gui/dialogs/nasal-console/code</property>
|
|
|
|
</textbox>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>8</default-padding>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>TAB to leave edit field</label>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<color>
|
|
|
|
<red>0.5</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.5</blue>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Close</legend>
|
|
|
|
<key>Esc</key>
|
|
|
|
<equal>true</equal>
|
2006-02-15 10:38:13 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2006-02-15 10:33:38 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2006-02-15 12:15:37 +00:00
|
|
|
<button>
|
|
|
|
<legend>Print</legend>
|
2006-02-15 16:37:23 +00:00
|
|
|
<key>Ctrl-p</key>
|
2006-02-15 12:15:37 +00:00
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2006-02-15 16:37:23 +00:00
|
|
|
rule = "--------------------------------------------------";
|
|
|
|
print(rule ~ "\n");
|
2006-02-15 12:15:37 +00:00
|
|
|
print(getprop("/sim/gui/dialogs/nasal-console/code"));
|
2006-02-15 16:37:23 +00:00
|
|
|
print(rule);
|
2006-02-15 12:15:37 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2006-02-15 10:33:38 +00:00
|
|
|
<button>
|
|
|
|
<legend>Execute</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>compile(getprop("/sim/gui/dialogs/nasal-console/code"))()</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</PropertyList>
|