The Unofficial XCSoar Manual

Advanced:Dialog

From XCSoar

Jump to: navigation, search

Contents

How to edit dialog XML files

Without compiling XCSoar.

XML File Format

TODO

Gotchas:

  • Not true XML, simple parser
  • Examples are not well formed XML, so can't use XML tools - but simple parser will parse well formed XML

File Name and Location

The file name must exactly match the name in the available files. Put it in your XCSoarData directory.

Portrait vs Landscape

All files for portrait are the normal name, but for landscape have "_L" at the end. Some dialogs do not differentiate.

Available Files

  • dlgAirspace_L.xml
  • dlgAirspace.xml
  • dlgAirspaceColours_L.xml
  • dlgAirspaceColours.xml
  • dlgAirspacePatterns_L.xml
  • dlgAirspacePatterns.xml
  • dlgAirspaceSelect_L.xml
  • dlgAirspaceSelect.xml
  • dlgAirspaceWarning.xml
  • dlgBasicSettings.xml
  • dlgBrightness.xml
  • dlgChecklist_L.xml
  • dlgChecklist.xml
  • dlgConfiguration_L.xml
  • dlgConfiguration.xml
  • dlgVario.xml
  • dlgHelp_L.xml
  • dlgHelp.xml
  • dlgLoggerReplay.xml
  • dlgStartPoint_L.xml
  • dlgStartPoint.xml
  • dlgStartup_L.xml
  • dlgStartup.xml
  • dlgAnalysis_L.xml
  • dlgAnalysis.xml
  • dlgStatus.xml
  • dlgSwitches.xml
  • dlgTaskCalculator.xml
  • dlgTaskOverview_L.xml
  • dlgTaskOverview.xml
  • dlgTaskWaypoint_L.xml
  • dlgTaskWaypoint.xml
  • dlgTeamCode.xml
  • dlgTextEntry_T.xml
  • dlgTextEntry.xml
  • dlgVegaDemo.xml
  • dlgVoice.xml
  • dlgWayPointDetails_L.xml
  • dlgWayPointDetails.xml
  • dlgWayPointSelect_L.xml
  • dlgWayPointSelect.xml
  • dlgWaypointEdit_L.xml
  • dlgWaypointEdit.xml
  • dlgWaypointOutOfTerrain.xml
  • dlgWeather.xml
  • dlgWindSettings.xml

Example File

 <?xml version="1.0" encoding="ISO-8859-1"?>
 <PMML version="3.0"
   xmlns="http://www.dmg.org/PMML-3-0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema_instance" >
   <Header copyright="VADIS">
      <Application name="RANK For <you>" version="1.99beta" />
   </Header>
   <Extension extender="RANKF" name="keys"><Key name="urn"></Key></Extension>
 
 <WndForm Name="frmChecklist" Type="Dialog" X=0 Y=0 Width=320 Height=240 Caption="Waypoint Info" Font=3  BackColor=0xDADBAB>
 
   <WndButton Name="cmdNext"  Caption=">" X=35 Y=160 Width=35  Height=28 Font=3 OnClickNotify="OnNextClicked" Tag=1 />
   <WndButton Name="cmdPrev"  Caption="<" X=0 Y=160 Width=35  Height=28 Font=3 OnClickNotify="OnPrevClicked" Tag=0/>
   <WndButton Name="cmdClose" Caption="Close" X=5 Y=190 Width=60  Height=28 Font=2 Tag=3 />
   
   <WndListFrame Name=frmDetails X=70 Y=0 Width=246 Height=222 Font=3 
     OnListInfo="OnDetailsListInfo">
     <WndOwnerDrawFrame Name=frmDetailsEntry X=2 Y=2 Width=235 Height=18 Font=3  OnPaint="OnPaintDetailsListItem"/>
   </WndListFrame>
 
 </WndForm>    
 
 </PMML>
Personal tools
SourceForge.net Logo XCSoar is Free Software released under the GNU/GPL License.