Correction of the arrangement of controls for "Weather" dialog
Remove gaps made by space characters. Add ability to stretch the window. Adapt to the Tortola style too.
This commit is contained in:
parent
fc60ae32c9
commit
6c025f04b2
1 changed files with 411 additions and 492 deletions
|
@ -298,7 +298,7 @@
|
|||
<!-- Control the weather -->
|
||||
<name>weather</name>
|
||||
<modal>false</modal>
|
||||
<resizable>false</resizable>
|
||||
<resizable>true</resizable>
|
||||
<layout>vbox</layout>
|
||||
<default-padding>3</default-padding>
|
||||
|
||||
|
@ -335,32 +335,22 @@
|
|||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
|
||||
<!-- only for a gap -->
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<default-padding>1</default-padding>
|
||||
<text>
|
||||
<label> </label>
|
||||
</text>
|
||||
</group>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<valign>fill</valign>
|
||||
<padding>5</padding>
|
||||
|
||||
<text>
|
||||
<halign>left</halign>
|
||||
<label>Select Weather Engine</label>
|
||||
</text>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>left</halign>
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
<!--
|
||||
<pref-width>500</pref-width>
|
||||
-->
|
||||
|
||||
<radio>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
|
@ -391,9 +381,14 @@
|
|||
</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<checkbox>
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<layout>hbox</layout>
|
||||
<halign>right</halign>
|
||||
|
||||
<checkbox>
|
||||
<halign>right</halign>
|
||||
<name>manual-weather-config</name>
|
||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||
|
@ -414,20 +409,10 @@
|
|||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<empty>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
|
||||
<button>
|
||||
<row>0</row>
|
||||
<col>3</col>
|
||||
<halign>right</halign>
|
||||
<!--
|
||||
<pref-width>170</pref-width>
|
||||
-->
|
||||
<legend>Manual Configuration ...</legend>
|
||||
|
||||
<legend>Manual Configuration...</legend>
|
||||
<enable>
|
||||
<property>sim/gui/dialogs/metar/mode/manual-weather</property>
|
||||
</enable>
|
||||
|
@ -447,11 +432,9 @@
|
|||
<textbox>
|
||||
<name>basic description</name>
|
||||
<halign>fill</halign>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
<!--
|
||||
<pref-width>250</pref-width>
|
||||
-->
|
||||
<pref-height>70</pref-height>
|
||||
<pref-height>90</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
<wrap>true</wrap>
|
||||
|
@ -460,14 +443,9 @@
|
|||
<property>sim/gui/dialogs/metar/description[1]</property>
|
||||
</textbox>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>left</halign>
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
<!--
|
||||
<pref-width>500</pref-width>
|
||||
-->
|
||||
|
||||
<radio>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
|
@ -499,15 +477,14 @@
|
|||
</binding>
|
||||
</radio>
|
||||
|
||||
<text>
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<label> </label>
|
||||
</text>
|
||||
<layout>hbox</layout>
|
||||
<halign>right</halign>
|
||||
|
||||
<button>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<halign>right</halign>
|
||||
<legend>Weather help</legend>
|
||||
<binding>
|
||||
<command>open-browser</command>
|
||||
|
@ -516,13 +493,8 @@
|
|||
</button>
|
||||
|
||||
<button>
|
||||
<row>0</row>
|
||||
<col>3</col>
|
||||
<legend> Advanced Settings ...</legend>
|
||||
<legend>Advanced Settings...</legend>
|
||||
<halign>right</halign>
|
||||
<!--
|
||||
<pref-width>170</pref-width>
|
||||
-->
|
||||
<enable>
|
||||
<property>sim/gui/dialogs/metar/mode/local-weather</property>
|
||||
<value>1</value>
|
||||
|
@ -538,11 +510,9 @@
|
|||
<textbox>
|
||||
<name>advance-description</name>
|
||||
<halign>fill</halign>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
<!--
|
||||
<pref-width>250</pref-width>
|
||||
-->
|
||||
<pref-height>90</pref-height>
|
||||
<pref-height>100</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
<wrap>true</wrap>
|
||||
|
@ -550,70 +520,35 @@
|
|||
<top-line>0</top-line>
|
||||
<property>sim/gui/dialogs/metar/description[2]</property>
|
||||
</textbox>
|
||||
|
||||
<!--
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
|
||||
</group>
|
||||
-->
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
|
||||
</group>
|
||||
|
||||
<!-- only for a gap -->
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<default-padding>1</default-padding>
|
||||
<text>
|
||||
<label> </label>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
|
||||
<!-- only for a gap -->
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<default-padding>1</default-padding>
|
||||
<text>
|
||||
<label> </label>
|
||||
</text>
|
||||
</group>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<halign>left</halign>
|
||||
<padding>5</padding>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>left</halign>
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<label>Weather Conditions</label>
|
||||
<halign>left</halign>
|
||||
</text>
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<label> </label>
|
||||
<halign>left</halign>
|
||||
</text>
|
||||
|
||||
<combo>
|
||||
<row>0</row>
|
||||
<col>2</col>
|
||||
<col>1</col>
|
||||
<name>source-selection</name>
|
||||
<halign>fill</halign>
|
||||
<halign>right</halign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>300</pref-width>
|
||||
<property>sim/gui/dialogs/metar/source-selection</property>
|
||||
|
@ -633,13 +568,12 @@
|
|||
</binding>
|
||||
</combo>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<textbox>
|
||||
<name>description</name>
|
||||
<halign>fill</halign>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
<pref-width>450</pref-width>
|
||||
<pref-height>100</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>false</editable>
|
||||
|
@ -648,27 +582,28 @@
|
|||
<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>
|
||||
<layout>vbox</layout>
|
||||
<padding>5</padding>
|
||||
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
|
||||
<text>
|
||||
<row>0</row>
|
||||
<col>0</col>
|
||||
<label>METAR Data</label>
|
||||
<halign>left</halign>
|
||||
</text>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
<text>
|
||||
<label> </label>
|
||||
</text>
|
||||
|
||||
<group>
|
||||
<row>0</row>
|
||||
<col>1</col>
|
||||
<layout>hbox</layout>
|
||||
<halign>right</halign>
|
||||
|
||||
<text>
|
||||
<label>Data is valid</label>
|
||||
</text>
|
||||
|
@ -681,21 +616,18 @@
|
|||
</enable>
|
||||
</checkbox>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<textbox>
|
||||
<name>metar-string-input</name>
|
||||
<halign>fill</halign>
|
||||
<valign>fill</valign>
|
||||
<stretch>true</stretch>
|
||||
<!--
|
||||
<pref-width>250</pref-width>
|
||||
-->
|
||||
<pref-height>70</pref-height>
|
||||
<slider>15</slider>
|
||||
<editable>true</editable>
|
||||
<wrap>true</wrap>
|
||||
<!-- <live>true</live> -->
|
||||
<!-- <live>true</live> -->
|
||||
<top-line>0</top-line>
|
||||
<property>sim/gui/dialogs/metar/metar-string</property>
|
||||
<enable>
|
||||
|
@ -715,10 +647,10 @@
|
|||
<object-name>metar-string-input</object-name>
|
||||
</binding>
|
||||
</textbox>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
<halign>left</halign>
|
||||
<button>
|
||||
<legend>METAR Description...</legend>
|
||||
<binding>
|
||||
|
@ -726,31 +658,18 @@
|
|||
<dialog-name>weather-metar-description</dialog-name>
|
||||
</binding>
|
||||
</button>
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
|
||||
<!-- only for a gap -->
|
||||
<group>
|
||||
<layout>vbox</layout>
|
||||
<default-padding>1</default-padding>
|
||||
<text>
|
||||
<label> </label>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
<layout>hbox</layout>
|
||||
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
|
@ -794,9 +713,9 @@
|
|||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<empty>
|
||||
<stretch>true</stretch>
|
||||
</empty>
|
||||
</group>
|
||||
|
||||
</PropertyList>
|
||||
|
|
Loading…
Reference in a new issue