1
0
Fork 0

Added configuration file for new menubar.

Moved dialogs to a new dialogs/ subdirectory.

Added an 'air' dialog.
This commit is contained in:
david 2003-01-16 18:17:28 +00:00
parent ca3963d865
commit c4c51e68be
4 changed files with 122 additions and 0 deletions

85
gui/dialogs/air.xml Normal file
View file

@ -0,0 +1,85 @@
<?xml version="1.0"?>
<PropertyList>
<type>dialog</type>
<name>air</name>
<width>400</width>
<height>180</height>
<modal>false</modal>
<text>
<x>10</x>
<y>150</y>
<label>Environment: Air</label>
</text>
<input>
<x>10</x>
<y>110</y>
<width>200</width>
<height>25</height>
<label>sea-level temperature (degC)</label>
<property>/environment/temperature-sea-level-degc</property>
</input>
<input>
<x>10</x>
<y>80</y>
<width>200</width>
<height>25</height>
<label>sea-level dewpoint (degC)</label>
<property>/environment/dewpoint-sea-level-degc</property>
</input>
<input>
<x>10</x>
<y>50</y>
<width>200</width>
<height>25</height>
<label>sea-level pressure (inHG)</label>
<property>/environment/pressure-sea-level-inhg</property>
</input>
<button>
<x>5</x>
<y>10</y>
<legend>OK</legend>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
<default>true</default>
</button>
<button>
<x>105</x>
<y>10</y>
<legend>Apply</legend>
<binding>
<command>dialog-apply</command>
</binding>
</button>
<button>
<x>205</x>
<y>10</y>
<legend>Reset</legend>
<binding>
<command>dialog-update</command>
</binding>
</button>
<button>
<x>305</x>
<y>10</y>
<legend>Cancel</legend>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList>

37
gui/menubar.xml Normal file
View file

@ -0,0 +1,37 @@
<PropertyList>
<menu>
<label>File</label>
<item>
<label>Quit</label>
<binding>
<command>exit</command>
</binding>
</item>
</menu>
<menu>
<label>Weather</label>
<item>
<label>Winds</label>
<binding>
<command>dialog-show</command>
<dialog-name>winds</dialog-name>
</binding>
</item>
<item>
<label>Air</label>
<binding>
<command>dialog-show</command>
<dialog-name>air</dialog-name>
</binding>
</item>
</menu>
</PropertyList>