diff --git a/gui/dialogs/atc-dialog.xml b/gui/dialogs/atc-dialog.xml new file mode 100644 index 000000000..0c33b564d --- /dev/null +++ b/gui/dialogs/atc-dialog.xml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<PropertyList> + <name>atc-dialog</name> + <y>70</y> + <layout>vbox</layout> + + <text> + <label>ATC Communication</label> + </text> + + <hrule><dummy/></hrule> + + <group> + <name>transmission-choice</name> + <layout>vbox</layout> + <!-- using one copy of button-template per ATC message --> + <button-template> + <hide>true</hide> + <legend>LEGEND</legend> + <equal>true</equal> + <property>PROPERTY</property> + <binding> + <command>property-assign</command> + <property>/sim/atc/transmission-num</property> + <value type="int">TRANSMISSION NUMBER</value> + </binding> + <binding> + <command>dialog-apply</command> + </binding> + <binding> + <command>dialog-close</command> + </binding> + </button-template> + </group> + + <button> + <legend>Cancel</legend> + <binding> + <command>dialog-close</command> + </binding> + </button> +</PropertyList> diff --git a/gui/dialogs/atc-freq-display.xml b/gui/dialogs/atc-freq-display.xml new file mode 100644 index 000000000..a0d6d5313 --- /dev/null +++ b/gui/dialogs/atc-freq-display.xml @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<PropertyList> + <name>atc-freq-display</name> + <x>70</x> + <layout>vbox</layout> + + <text> + <label>TITLE ("ICAO Frequencies")</label> + </text> + + <hrule><dummy/></hrule> + + <group> + <name>frequency-list</name> + <layout>vbox</layout> + <!-- using one copy of group-template per frequency line --> + <group-template> + <hide>true</hide> + <layout>hbox</layout> + <text> + <halign>left</halign> + <label>LABEL</label> + </text> + <empty> + <stretch>true</stretch> + </empty> + <text> + <halign>right</halign> + <label>FREQUENCY</label> + </text> + </group-template> + </group> + + <button> + <legend>Close</legend> + <default>true</default> + <binding> + <command>dialog-close</command> + </binding> + </button> +</PropertyList> diff --git a/gui/dialogs/atc-freq-search.xml b/gui/dialogs/atc-freq-search.xml new file mode 100644 index 000000000..50101b1ac --- /dev/null +++ b/gui/dialogs/atc-freq-search.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<PropertyList> + <name>atc-freq-search</name> + <y>70</y> + <layout>vbox</layout> + + <text> + <label>Display Airport Frequencies</label> + </text> + + <hrule><dummy/></hrule> + + <group> + <name>quick-buttons</name> + <layout>hbox</layout> + <halign>center</halign> + <button-template> + <hide>true</hide> + <legend>ICAO</legend> + <binding> + <command>property-assign</command> + <property>/sim/atc/freq-airport</property> + <value type="string">ICAO</value> + </binding> + </button-template> + </group> + + <text> + <name>no-atc-in-range</name> + <hide>true</hide> + <label>No ATC in range 40 nm.</label> + </text> + + <group> + <layout>hbox</layout> + <empty><stretch>true</stretch></empty> + <text> + <label>Airport identifier:</label> + </text> + <input> + <halign>fill</halign> + <stretch>false</stretch> + <property>/sim/atc/freq-airport</property> + </input> + <empty><stretch>true</stretch></empty> + </group> + + <group> + <layout>hbox</layout> + <halign>fill</halign> + <default-padding>10</default-padding> + <empty><stretch>true</stretch></empty> + + <button> + <legend>OK</legend> + <default>true</default> + <equal>true</equal> + <binding> + <command>dialog-apply</command> + </binding> + <binding> + <command>dialog-close</command> + </binding> + </button> + + <empty><stretch>true</stretch></empty> + + <button> + <legend>Cancel</legend> + <equal>true</equal> + <binding> + <command>dialog-close</command> + </binding> + </button> + + <empty><stretch>true</stretch></empty> + </group> + +</PropertyList>