Changeset 3279 in josm for trunk/data


Ignore:
Timestamp:
2010-05-24T23:36:44+02:00 (9 years ago)
Author:
stoecker
Message:

fix #4192 - allow definition of true/false values in presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r3196 r3279  
    4545  default: ticked on/off
    4646  delete_if_empty: true/false
     47  value_on: the value to set when checked (default is "yes")
     48  value_off: the value to set when unchecked (default is 'no')
    4749
    4850For external files the <annotations> should have following elements:
     
    13301332            <combo key="operator" text="Operator" values="Agip,Aral,Avia,BP,Esso,OMV,Q8,Repsol,Shell,Statoil,Tamoil,Texaco,Total,Indipend." default="" delete_if_empty="true" />
    13311333            <optional>
    1332                                 <text key="name" text="Name" default="" delete_if_empty="true" />
    1333                                 <combo key="opening_hours" text="Opening Hours" values="24/7,Mo-Fr 08:30-20:00,Tu-Su 08:00-15:00; Sa 08:00-12:00" default="" delete_if_empty="true" />
    1334                                 <label text="Fuel types:" />
    1335                                 <check key="fuel:diesel" text="Diesel" default="off" delete_if_empty="true" />
    1336                                 <check key="fuel:biodiesel" text="Bio Diesel" default="off" delete_if_empty="true" />
    1337                                 <check key="fuel:GTL_diesel" text="Diesel (Gas To Liquid - ultimate diesel)" default="off" delete_if_empty="true" />
    1338                                 <check key="fuel:HGV_diesel" text="Diesel for Heavy Good Vehicles" default="off" delete_if_empty="true" />
    1339                                 <check key="fuel:octane_91" text="Octane 91" default="off" delete_if_empty="true" />
    1340                                 <check key="fuel:octane_95" text="Octane 95" default="off" delete_if_empty="true" />
    1341                                 <check key="fuel:octane_98" text="Octane 98" default="off" delete_if_empty="true" />
    1342                                 <check key="fuel:octane_100" text="Octane 100" default="off" delete_if_empty="true" />
    1343                                 <check key="fuel:e10" text="E10 (10% Ethanol mix)" default="off" delete_if_empty="true" />
    1344                                 <check key="fuel:e85" text="E85 (85% Ethanol mix)" default="off" delete_if_empty="true" />
    1345                                 <check key="fuel:lpg" text="LPG (Liquefied petroleum gas)" default="off" delete_if_empty="true" />
    1346                                 <check key="fuel:cng" text="CNG (Compressed Natural Gas)" default="off" delete_if_empty="true" />
    1347                                 <check key="fuel:1_25" text="1/25 mix (mofa/moped)" default="off" delete_if_empty="true" />
    1348                                 <check key="fuel:1_50" text="1/50 mix (mofa/moped)" default="off" delete_if_empty="true" />
     1334                <text key="name" text="Name" default="" delete_if_empty="true" />
     1335                <combo key="opening_hours" text="Opening Hours" values="24/7,Mo-Fr 08:30-20:00,Tu-Su 08:00-15:00; Sa 08:00-12:00" default="" delete_if_empty="true" />
     1336                <label text="Fuel types:" />
     1337                <check key="fuel:diesel" text="Diesel" default="off" delete_if_empty="true" />
     1338                <check key="fuel:biodiesel" text="Bio Diesel" default="off" delete_if_empty="true" />
     1339                <check key="fuel:GTL_diesel" text="Diesel (Gas To Liquid - ultimate diesel)" default="off" delete_if_empty="true" />
     1340                <check key="fuel:HGV_diesel" text="Diesel for Heavy Good Vehicles" default="off" delete_if_empty="true" />
     1341                <check key="fuel:octane_91" text="Octane 91" default="off" delete_if_empty="true" />
     1342                <check key="fuel:octane_95" text="Octane 95" default="off" delete_if_empty="true" />
     1343                <check key="fuel:octane_98" text="Octane 98" default="off" delete_if_empty="true" />
     1344                <check key="fuel:octane_100" text="Octane 100" default="off" delete_if_empty="true" />
     1345                <check key="fuel:e10" text="E10 (10% Ethanol mix)" default="off" delete_if_empty="true" />
     1346                <check key="fuel:e85" text="E85 (85% Ethanol mix)" default="off" delete_if_empty="true" />
     1347                <check key="fuel:lpg" text="LPG (Liquefied petroleum gas)" default="off" delete_if_empty="true" />
     1348                <check key="fuel:cng" text="CNG (Compressed Natural Gas)" default="off" delete_if_empty="true" />
     1349                <check key="fuel:1_25" text="1/25 mix (mofa/moped)" default="off" delete_if_empty="true" />
     1350                <check key="fuel:1_50" text="1/50 mix (mofa/moped)" default="off" delete_if_empty="true" />
     1351                <check key="shop" text="With kiosk" value_on="kiosk" value_off="" default="off" delete_if_empty="true" />
    13491352            </optional>
    13501353        </item>
     
    22132216            <key key="amenity" value="post_office" />
    22142217            <text key="name" text="Name" default="" delete_if_empty="true" />
    2215             <text key="operator" text="Operator" default="" delete_if_empty="true" />
     2218        <text key="operator" text="Operator" default="" delete_if_empty="true" />
    22162219        </item>
    22172220        <separator/>
     
    24252428            <text key="operator" text="Operator" default="" delete_if_empty="true" />
    24262429            <text key="ref" text="Line reference" default="" delete_if_empty="true" />
    2427                         <!-- TODO: voltage values used are a mixture of power lines and railways - needs cleanup -->
     2430            <!-- TODO: voltage values used are a mixture of power lines and railways - needs cleanup -->
    24282431            <combo key="voltage" text="Voltage" values="3000,10000,15000,20000,25000,110000,220000,380000" default="" delete_if_empty="true" />
    24292432            <text key="cables" text="Amount of Cables" default="" delete_if_empty="true" />
Note: See TracChangeset for help on using the changeset viewer.