| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
<PropertyList> |
| 5 |
<name>swift_connection</name> |
| 6 |
<layout>vbox</layout> |
| 7 |
<resizable>false</resizable> |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
<group> |
| 12 |
<layout>hbox</layout> |
| 13 |
|
| 14 |
<text> |
| 15 |
<label>Swift Connection Settings</label> |
| 16 |
</text> |
| 17 |
|
| 18 |
<empty> |
| 19 |
<stretch>1</stretch> |
| 20 |
</empty> |
| 21 |
|
| 22 |
<button> |
| 23 |
<legend>X</legend> |
| 24 |
<key>Esc</key> |
| 25 |
<pref-width>20</pref-width> |
| 26 |
<pref-height>20</pref-height> |
| 27 |
<binding> |
| 28 |
<command>dialog-close</command> |
| 29 |
</binding> |
| 30 |
</button> |
| 31 |
</group> |
| 32 |
<hrule/> |
| 33 |
|
| 34 |
|
| 35 |
<group> |
| 36 |
<layout>hbox</layout> |
| 37 |
<halign>center</halign> |
| 38 |
<default-padding>10</default-padding> |
| 39 |
|
| 40 |
<button> |
| 41 |
<legend>Start server</legend> |
| 42 |
<equal>true</equal> |
| 43 |
<enable> |
| 44 |
<not> |
| 45 |
<property>/sim/swift/serverRunning</property> |
| 46 |
</not> |
| 47 |
</enable> |
| 48 |
<binding> |
| 49 |
<command>nasal</command> |
| 50 |
<script> |
| 51 |
fgcommand("swiftStart", props.Node.new({ |
| 52 |
"message": getprop("/controls/lighting/landing-lights")})); |
| 53 |
</script> |
| 54 |
</binding> |
| 55 |
</button> |
| 56 |
|
| 57 |
<button> |
| 58 |
<legend>Stop server</legend> |
| 59 |
<equal>true</equal> |
| 60 |
<enable> |
| 61 |
<property>/sim/swift/serverRunning</property> |
| 62 |
</enable> |
| 63 |
<binding> |
| 64 |
<command>nasal</command> |
| 65 |
<script> |
| 66 |
fgcommand("swiftStop", props.Node.new({ |
| 67 |
"message": getprop("/controls/lighting/landing-lights")})); |
| 68 |
</script> |
| 69 |
</binding> |
| 70 |
</button> |
| 71 |
</group> |
| 72 |
|
| 73 |
|
| 74 |
<group> |
| 75 |
<layout>hbox</layout> |
| 76 |
<row>4</row> |
| 77 |
<col>1</col> |
| 78 |
<text> |
| 79 |
<width>2</width> |
| 80 |
<halign>right</halign> |
| 81 |
<label>Address</label> |
| 82 |
</text> |
| 83 |
<input> |
| 84 |
<pref-width>150</pref-width> |
| 85 |
<halign>left</halign> |
| 86 |
<property>/sim/swift/address</property> |
| 87 |
<enable> |
| 88 |
<not> |
| 89 |
<property>/sim/swift/serverRunning</property> |
| 90 |
</not> |
| 91 |
</enable> |
| 92 |
</input> |
| 93 |
<text> |
| 94 |
<width>2</width> |
| 95 |
<halign>right</halign> |
| 96 |
<label>Port</label> |
| 97 |
</text> |
| 98 |
<input> |
| 99 |
<pref-width>55</pref-width> |
| 100 |
<halign>left</halign> |
| 101 |
<property>/sim/swift/port</property> |
| 102 |
<enable> |
| 103 |
<not> |
| 104 |
<property>/sim/swift/serverRunning</property> |
| 105 |
</not> |
| 106 |
</enable> |
| 107 |
</input> |
| 108 |
|
| 109 |
</group> |
| 110 |
|
| 111 |
<group> |
| 112 |
<layout>hbox</layout> |
| 113 |
<halign>center</halign> |
| 114 |
<default-padding>10</default-padding> |
| 115 |
|
| 116 |
<button> |
| 117 |
<legend>Apply setting changes</legend> |
| 118 |
<equal>true</equal> |
| 119 |
<enable> |
| 120 |
<not> |
| 121 |
<property>/sim/swift/serverRunning</property> |
| 122 |
</not> |
| 123 |
</enable> |
| 124 |
<binding> |
| 125 |
<command>dialog-apply</command> |
| 126 |
</binding> |
| 127 |
</button> |
| 128 |
</group> |
| 129 |
</PropertyList> |