Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ivac2:firdef_label_layout_xml [2015/06/15 17:46]
splendor.bouman
ivac2:firdef_label_layout_xml [2016/03/26 22:53]
splendor.bouman
Line 1: Line 1:
-====== ​label_state.xml ======+====== ​label.xml ======
  
-The label_state.xml files construct ​the label for each label stateWe recommend the use of one file per state and naming the state accordingly.+The label.xml files constructs ​the label. Multiple ​label files may exist with different names to construct different label layouts, for example app.xml and acc.xml
  
-  * unconcerned +The ''​(label_name).xml''​ file is located in the ''​fir/​labels/''​ directory
-  * concerned +
-  * assumed +
-  * released +
-  * uncorrelated +
-  * filtered +
-  * ground_arr +
-  * ground_arr_assumed +
-  * ground_dep +
-  * ground_dep_assumed +
- +
-The ''​label_state.xml''​ file is located in the ''​fir/​labels/​(name)''​ directory+
  
 ^Root Element|labels|| ^Root Element|labels||
-^Element|label|| +^Attribute^Remarks^ 
-^Attribute^Format^Remarks^ +|type|function| 
-|type|string|Label state - see above list+|ground|labels shown in ground radar
-|font|font to use - defined in sddfonts.xml|+|airborne|labels shown for airborne traffic|
  
-^Root Element|label|| +^Root Element|<​state>​|| 
-^Element|line|| +^Attribute^family^Remarks^ 
-|Defines ​line in the label|||+|default|all|Standard label
 +|arrival|ground|label for arriving aircraft| 
 +|departure|ground|label for departing aircraft| 
 +|psr|airborne|label for aircraft *not* equipped with transponder| 
 +|concerned|airborne|label for aircraft with station set as NEXT| 
 +|assumed|airborne|label for aircraft assumed by station| 
 +|released|airborne|label for aircraft released by station| 
 +|filtered|airborne|label for aircraft subject to High/Low filter|
  
 ^Root Element|line|| ^Root Element|line||
 ^Element|field|| ^Element|field||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|id|string|ID of label field (must be present in [[ivac2:​firdef_labelfields_xml|labelfields.xml]]|+|id|string|ID of label field|
 |unselected|boolean|show field when label is **not** selected| |unselected|boolean|show field when label is **not** selected|
 +|prefix|string|prefix before field|
 +|format|string|format of field (fstring)|
 +|action|string|function called by single click|
 +|doubleaction|string|function called by double click|
 +|info|string|function called by right (secondary) click|
  
 <code xml> <code xml>
 <​labels>​ <​labels>​
- <label type="unconcerned" ​font="track" > + <airborne>​ 
-  <​line>​ +  <​default>​ 
-   <​field id="​callsign"​ unselected="​true"/>​ +   <​line>​ 
-  </line+    <!-- STATUS LINE - MUST BE DEFINED !! --> 
-  <​line>​ +    <field id="alert" ​   tag="" ​     ​unselected="​true"​ prefix="" ​  /
-   <​field id="​afl"​ unselected="​true"/>​ +    <​field id="​warning" ​ tag="" ​     unselected="​true"​ prefix="​ " ​ /> 
-   ​<field id="cfl" unselected="​true"/>​ +    ​<field id="​rof" ​     tag="" ​     unselected="​true"​ prefix="​ " ​ format="​ROF" ​ /> 
-  </line+    <field id="​dupe" ​    ​tag="" ​     unselected="​true"​ prefix="​ " ​ format="​DUPE"​ /> 
-  <​line>​ +   </line> 
-   <​field id="​cwp"​ unselected="​true"/>​ +   <​line>​ 
-   <​field id="​ades"​ unselected="​false"/>​ +    ​<field id="​callsign" ​tag="" ​    unselected="​true" ​ prefix="" ​ action="​CALLSIGNMENU"​ info="​CALLSIGNMENU"​ doubleaction="​NEXTME" /> 
-  </​line>​+    <​field id="​si" ​     tag="​SI"​ unselected="​true" ​ prefix="​ " action="​NEXT" ​        ​info="​NEXT" ​        ​doubleaction="​NEXTME"​ /> 
 +    ​<field id="​atyp" ​    ​tag="" ​    ​unselected="​true" ​ prefix="​ " action="​FLIGHTPLAN" ​/> 
 +    <​field id="​wtc" ​     tag="" ​    ​unselected="​false" ​ prefix="​ " /> 
 +    ​<field id="​tssr" ​    ​tag="" ​    ​unselected="​false"​ prefix="​ " action="​ASSR"​ /> 
 +   </line> 
 +   <​line>​ 
 +    ​<field id="​afl" ​     ​tag="​***"  ​unselected="​true" ​ prefix="" ​  ​format="​%02d"​ units="​FL" /> 
 +    <field id="ic" ​      tag="" ​    unselected="​true" ​ prefix="​" /> 
 +    <​field id="​gs" ​      ​tag="​---" ​   unselected="​true" ​ prefix="​ " ​  ​format="​N%03d"​ units="​N"​ /> 
 +    ​<field id="​xcop" ​    ​tag="​COPX" ​  ​unselected="​false"​ prefix="​ " action="​XCOP"​ info="​EXPLT" ​/> 
 +    <field id="​rfl" ​     tag="​RFL" ​   unselected="​false"​ prefix="​ " action="​RFL"​ format="​%03d"​ units="​FL"​ /> 
 +   </line> 
 +   <​line>​ 
 +    <field id="​cfl" ​     tag="​CFL" ​ unselected="​true" ​ prefix="" ​ action="​CFL"​ format="​%03d"​ units="​FL"​ /> 
 +    <field id="​xfl" ​     tag="​XFL" ​   unselected="​false"​ prefix="​ " action="​XFL" ​ info="​EXPLT"​ format="​%03d"​ units="​FL"​ /> 
 +    ​<field id="​cwp" ​     ​tag="​AHDG" ​  unselected="​true" ​ prefix="​ " ​ action="​CWP" /> 
 +    <​field id="​asp" ​     tag="​ASP" ​  ​unselected="​true" ​ prefix="​ " ​  ​action="​ASP"​ format="/​%03d"​ units="​KTS"​ /> 
 +    ​<field id="​ades" ​    tag="" ​      unselected="​false" prefix="​ " action="​FLIGHTPLAN"/>​ 
 +   </​line>​ 
 +   <​line>​ 
 +    <field id="​text" ​    ​tag="​OP_TEXT" ​  ​unselected="​false"​ prefix="" ​ action="​TEXT" ​ /> 
 +   </line
 +  </​default>​ 
 + </​airborne>
  </​label>​  </​label>​
 </​labels>​ </​labels>​