gui/dialogs/weather*: show METAR description in separate window.
METAR description is too big to fit in 'Weather Conditions' window. Also moved the description of item selected in the popup (Live data, Manual input, ... etc.) so it is immediately below the popup. Used to be the other side of the METAR info, which was a little confusing.
This commit is contained in:
parent
7ba35793f6
commit
b21ecb2315
2 changed files with 96 additions and 43 deletions
53
gui/dialogs/weather-metar-description.xml
Normal file
53
gui/dialogs/weather-metar-description.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>weather-metar-description</name>
|
||||
<modal>false</modal>
|
||||
<resizable>true</resizable>
|
||||
<layout>vbox</layout>
|
||||
<width>300</width>
|
||||
<height>150</height>
|
||||
<default-padding>3</default-padding>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<label>METAR Description</label>
|
||||
</text>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
<button>
|
||||
<legend/>
|
||||
<key>Esc</key>
|
||||
<pref-width>16</pref-width>
|
||||
<pref-height>16</pref-height>
|
||||
<border>2</border>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
</group>
|
||||
|
||||
<textbox>
|
||||
<name>metar-string-human</name>
|
||||
<halign>fill</halign>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
<pref-height>200</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
<wrap>true</wrap>
|
||||
<top-line>0</top-line>
|
||||
<property>/environment/metar/description</property>
|
||||
</textbox>
|
||||
<button>
|
||||
<legend>Close</legend>
|
||||
<equal>true</equal>
|
||||
<default>true</default>
|
||||
<key>Esc</key>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
</PropertyList>
|
|
@ -631,6 +631,41 @@
|
|||
</group>
|
||||
</group>
|
||||
|
||||
<!--
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<label>Description</label>
|
||||
</text>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
-->
|
||||
|
||||
<textbox>
|
||||
<name>description</name>
|
||||
<halign>fill</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>450</pref-width>
|
||||
<pref-height>100</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
<wrap>true</wrap>
|
||||
<live>true</live>
|
||||
<top-line>0</top-line>
|
||||
<property>sim/gui/dialogs/metar/description[0]</property>
|
||||
</textbox>
|
||||
|
||||
<!-- only for a gap -->
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<default-padding>1</default-padding>
|
||||
<text>
|
||||
<label> </label>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
|
@ -689,56 +724,21 @@
|
|||
</binding>
|
||||
</textbox>
|
||||
</group>
|
||||
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<label>METAR Description</label>
|
||||
</text>
|
||||
<button>
|
||||
<legend>METAR Description...</legend>
|
||||
<binding>
|
||||
<command>dialog-show</command>
|
||||
<dialog-name>weather-metar-description</dialog-name>
|
||||
</binding>
|
||||
</button>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<textbox>
|
||||
<name>metar-string-human</name>
|
||||
<halign>fill</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-height>200</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
<wrap>true</wrap>
|
||||
<top-line>0</top-line>
|
||||
<property>/environment/metar/description</property>
|
||||
</textbox>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<text>
|
||||
<label>Description</label>
|
||||
</text>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
|
||||
<textbox>
|
||||
<name>description</name>
|
||||
<halign>fill</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>450</pref-width>
|
||||
<pref-height>100</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
<wrap>true</wrap>
|
||||
<live>true</live>
|
||||
<top-line>0</top-line>
|
||||
<property>sim/gui/dialogs/metar/description[0]</property>
|
||||
</textbox>
|
||||
|
||||
</group>
|
||||
|
||||
<!-- only for a gap -->
|
||||
|
|
Loading…
Add table
Reference in a new issue