1
0
Fork 0

make input fields instantaneous, like the check- and radioboxes (which is

not only more consistent, but also makes the autopilot dialog act more like
the real device). Add a few rules. Move the checkboxes to the left, as it's
usually done in GUIs for switches that enable/disable a group of widgets.
This commit is contained in:
mfranz 2006-02-16 15:43:30 +00:00
parent 92c5097250
commit a1a5a7e618

View file

@ -19,17 +19,19 @@
<text><label>Autopilot Settings</label></text>
<hrule><dummy/></hrule>
<group>
<layout>hbox</layout>
<default-padding>8</default-padding>
<group> <!-- Pitch/Altitude -->
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text><label>Heading Control:</label></text>
<empty><stretch>true</stretch></empty>
<checkbox>
<label>Active</label>
<label>Heading Control</label>
<halign>fill</halign>
<property>/autopilot/gui/hdg-active</property>
<binding>
<command>nasal</command>
@ -71,6 +73,10 @@
<row>1</row><col>2</col>
<name>hdg-bug</name>
<property>/autopilot/settings/heading-bug-deg</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -90,6 +96,10 @@
<row>2</row><col>2</col>
<name>hdg-true</name>
<property>/autopilot/settings/true-heading-deg</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -107,17 +117,13 @@
</radio>
</group>
<empty>
<stretch>true</stretch>
<pref-height>28</pref-height>
</empty>
<hrule><dummy/></hrule>
<group>
<layout>hbox</layout>
<text><label>Velocity Control:</label></text>
<empty><stretch>true</stretch></empty>
<checkbox>
<label>Active</label>
<label>Velocity Control</label>
<halign>fill</halign>
<property>/autopilot/gui/vel-active</property>
<binding>
<command>nasal</command>
@ -146,6 +152,10 @@
<rowspan>2</rowspan>
<name>vel-throttle</name>
<property>/autopilot/settings/target-speed-kt</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -164,15 +174,18 @@
</group>
</group> <!-- End of Heading/Speed -->
<vrule><dummy/></vrule>
<group> <!-- Pitch/Altitude -->
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text><label>Pitch/Altitude Control:</label></text>
<empty><stretch>true</stretch></empty>
<checkbox>
<label>Active</label>
<label>Pitch/Altitude Control</label>
<halign>fill</halign>
<property>/autopilot/gui/alt-active</property>
<binding>
<command>nasal</command>
@ -200,6 +213,10 @@
<row>0</row><col>2</col>
<name>alt-vert</name>
<property>/autopilot/settings/vertical-speed-fpm</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -219,6 +236,10 @@
<row>1</row><col>2</col>
<name>alt-pitch</name>
<property>/autopilot/settings/target-pitch-deg</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -238,6 +259,10 @@
<row>2</row><col>2</col>
<name>alt-aoa</name>
<property>/autopilot/settings/target-aoa-deg</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -257,6 +282,10 @@
<row>3</row><col>2</col>
<name>alt-alt</name>
<property>/autopilot/settings/target-altitude-ft</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -276,6 +305,10 @@
<row>4</row><col>2</col>
<name>alt-agl</name>
<property>/autopilot/settings/target-agl-ft</property>
<binding>
<command>dialog-apply</command>
</binding>
<live>true</live>
</input>
<text>
@ -299,7 +332,7 @@
</group>
<button>
<legend>OK</legend>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<padding>10</padding>