1
0
Fork 0

Updated the dialog, and made the fields read-write rather than

read-only.
This commit is contained in:
david 2002-11-07 22:59:17 +00:00
parent 1acc765781
commit 303a982b8b

73
gui.xml
View file

@ -1,5 +1,40 @@
<?xml version="1.0"?>
<!--
Early sample GUI configuration.
This file will eventually hold (or point to) the configuration for all
of the FlightGear GUI. For now, however, the contents are strictly
experimentation. Here are some quick notes:
1. Coordinates are from the bottom left corner of the parent container
(the bottom-left convention comes from OpenGL).
2. Allowed types are "group", "dialog", "input", "text", and
"button".
3. Any component may have an "x", "y", "width", and "height"
subproperty.
4. For GUI purposes, the FlightGear window is always assumed to be
1024x768, no matter how large or small it is actually displayed.
5. The top-level dialog container will always be centered on the
screen.
6. Top-level objects without a name will be ignored.
7. If changing a property value in an "input" component isn't working,
it's probably a problem with the property; try the FlightGear
property browser and see if it can be changed there.
8. Use these notes with caution; they're probably already out of date.
-->
<PropertyList> <PropertyList>
<!-- A sample dialog to say hello and control the orientation -->
<dialog> <dialog>
<name>hello</name> <name>hello</name>
<width>400</width> <width>400</width>
@ -17,8 +52,8 @@
<y>110</y> <y>110</y>
<width>200</width> <width>200</width>
<height>25</height> <height>25</height>
<label>degrees latitude</label> <label>degrees roll</label>
<default-value-prop>/position/latitude-deg</default-value-prop> <default-value-prop>/orientation/roll-deg</default-value-prop>
</input> </input>
<input> <input>
@ -26,8 +61,8 @@
<y>80</y> <y>80</y>
<width>200</width> <width>200</width>
<height>25</height> <height>25</height>
<label>degrees longitude</label> <label>degrees pitch</label>
<default-value-prop>/position/longitude-deg</default-value-prop> <default-value-prop>/orientation/pitch-deg</default-value-prop>
</input> </input>
<input> <input>
@ -35,17 +70,39 @@
<y>50</y> <y>50</y>
<width>200</width> <width>200</width>
<height>25</height> <height>25</height>
<label>feet altitude (ASL)</label> <label>degrees heading</label>
<default-value-prop>/position/altitude-ft</default-value-prop> <default-value-prop>/orientation/heading-deg</default-value-prop>
</input> </input>
<button> <button>
<x>5</x>
<y>10</y> <y>10</y>
<width>100</width> <legend>OK</legend>
<legend>Enough, already!</legend> <action>close-apply</action>
<default>true</default> <default>true</default>
</button> </button>
<button>
<x>105</x>
<y>10</y>
<legend>Apply</legend>
<action>apply</action>
</button>
<button>
<x>205</x>
<y>10</y>
<legend>Update</legend>
<action>update</action>
</button>
<button>
<x>305</x>
<y>10</y>
<legend>Cancel</legend>
<action>close</action>
</button>
</dialog> </dialog>
</PropertyList> </PropertyList>