Changeset 5997 in josm


Ignore:
Timestamp:
2013-06-08T14:26:14+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8737 - Presets: add length attribute for combos

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r5976 r5997  
    6464  editable: allow to add other values as text (default is "true")
    6565  match: none/key/key!/keyvalue (default is none, see below for more information)
     66  length: length of input box (number of characters allowed)
    6667
    6768multiselect: list of values from which zero or more can be selected
     
    149150            <optional>
    150151                <text key="name" text="Name" />
    151                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    152                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     152                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     153                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    153154                <text key="maxspeed" text="Max. speed (km/h)" />
    154155                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    175176            <key key="highway" value="motorway_link" />
    176177            <optional>
    177                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    178                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     178                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     179                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    179180                <text key="maxspeed" text="Max. speed (km/h)" />
    180181                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    202203            <optional>
    203204                <text key="name" text="Name" />
    204                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    205                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     205                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     206                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    206207                <text key="maxspeed" text="Max. speed (km/h)" />
    207208                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    228229            <text key="ref" text="Reference" />
    229230            <optional>
    230                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    231                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     231                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     232                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    232233                <text key="maxspeed" text="Max. speed (km/h)" />
    233234                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    256257            <optional>
    257258                <text key="name" text="Name" />
    258                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    259                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     259                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     260                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    260261                <text key="maxspeed" text="Max. speed (km/h)" />
    261262                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    282283            <key key="highway" value="primary_link" />
    283284            <optional>
    284                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    285                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     285                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     286                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    286287                <text key="maxspeed" text="Max. speed (km/h)" />
    287288                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    311312            <optional>
    312313                <text key="name" text="Name" />
    313                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    314                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     314                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     315                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    315316                <text key="maxspeed" text="Max. speed (km/h)" />
    316317                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    336337            <key key="highway" value="secondary_link" />
    337338            <optional>
    338                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    339                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     339                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     340                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    340341                <text key="maxspeed" text="Max. speed (km/h)" />
    341342                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    365366            <optional>
    366367                <text key="name" text="Name" />
    367                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    368                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     368                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     369                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    369370                <text key="maxspeed" text="Max. speed (km/h)" />
    370371                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    390391            <key key="highway" value="tertiary_link" />
    391392            <optional>
    392                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    393                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     393                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     394                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    394395                <text key="maxspeed" text="Max. speed (km/h)" />
    395396                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    417418            <optional>
    418419                <text key="name" text="Name" />
    419                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    420                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     420                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     421                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    421422                <text key="maxspeed" text="Max. speed (km/h)" />
    422423                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    446447            <text key="name" text="Name" />
    447448            <optional>
    448                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    449                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     449                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     450                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    450451                <text key="maxspeed" text="Max. speed (km/h)" />
    451452                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    472473            <text key="name" text="Name" />
    473474            <optional>
    474                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    475                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     475                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     476                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    476477                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    477478                <check key="oneway" text="Oneway" default="off" />
     
    500501            <text key="name" text="Name" />
    501502            <optional>
    502                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    503                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     503                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     504                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    504505                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    505506                <check key="area" text="Area" default="off" />
     
    528529                <combo key="service" text="Serviceway type" values="alley,driveway,parking_aisle" />
    529530                <text key="name" text="Name" />
    530                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    531                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     531                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     532                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    532533                <text key="maxspeed" text="Max. speed (km/h)" />
    533534                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    574575            <optional>
    575576                <text key="name" text="Name" />
    576                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    577                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     577                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     578                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    578579                <text key="maxspeed" text="Max. speed (km/h)" />
    579580                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    600601            <optional>
    601602                <text key="name" text="Name" />
    602                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    603                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     603                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     604                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    604605                <text key="maxspeed" text="Max. speed (km/h)" />
    605606                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    675676            <optional>
    676677                <text key="name" text="Name" />
    677                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
    678                 <combo key="lanes" text="Lanes" values="1,2,3,4,5" />
     678                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
     679                <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="3" />
    679680                <check key="oneway" text="Oneway" default="off" />
    680681                <check key="bridge" text="Bridge" default="off" />
     
    701702            <optional>
    702703                <text key="name" text="Name" />
    703                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" default="1" />
     704                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" default="1" length="3" />
    704705                <text key="maxspeed" text="Max. speed (km/h)" />
    705706                <text key="maxweight" text="Max. weight (tonnes)" />
     
    739740            <optional>
    740741                <text key="name" text="Name" />
    741                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     742                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    742743                <combo key="surface" text="Surface" values="paved,concrete,cobblestone,gravel,ground,grass,sand" />
    743744                <check key="oneway" text="Oneway" default="off" />
     
    770771            <optional>
    771772                <text key="name" text="Name" />
    772                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     773                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    773774                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    774775                <check key="oneway" text="Oneway" default="off" />
     
    812813            <optional>
    813814                <text key="name" text="Name" />
    814                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     815                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    815816                <text key="maxspeed" text="Max. speed (km/h)" />
    816817                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
     
    857858            <optional>
    858859                <text key="name" text="Name" />
    859                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     860                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    860861                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    861862                <check key="oneway" text="Oneway" default="off" />
     
    882883            <optional>
    883884                <text key="name" text="Name" />
    884                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     885                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    885886                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    886887                <check key="oneway" text="Oneway" default="off" />
     
    906907            <optional>
    907908                <text key="name" text="Name" />
    908                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     909                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    909910                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    910911                <check key="oneway" text="Oneway" default="off" />
     
    932933            <optional>
    933934                <text key="name" text="Name" />
    934                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     935                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    935936                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    936937                <check key="bridge" text="Bridge" default="off" />
     
    957958            <optional>
    958959                <text key="name" text="Name" />
    959                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     960                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    960961                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    961962                <text key="step_count" text="Amount of Steps" />
     
    15611562            <optional>
    15621563                <text key="name" text="Name" />
    1563                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" default="-1" />
     1564                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" default="-1" length="3" />
    15641565                <text key="maxspeed" text="Max. speed (km/h)" />
    15651566                <text key="width" text="Width (meters)" />
     
    15821583            <optional>
    15831584                <text key="name" text="Name" />
    1584                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1585                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    15851586                <text key="maxspeed" text="Max. speed (km/h)" />
    15861587                <text key="width" text="Width (meters)" />
     
    16011602            <optional>
    16021603                <text key="name" text="Name" />
    1603                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1604                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16041605                <text key="width" text="Width (meters)" />
    16051606            </optional>
     
    16181619            <optional>
    16191620                <text key="name" text="Name" />
    1620                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1621                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16211622                <text key="width" text="Width (meters)" />
    16221623            </optional>
     
    16391640            <optional>
    16401641                <text key="name" text="Name" />
    1641                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1642                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16421643                <text key="width" text="Width (meters)" />
    16431644                <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" />
     
    16581659            <key key="waterway" value="drain" />
    16591660            <text key="name" text="Name" />
    1660             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1661            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16611662        </item>
    16621663        <item name="Ditch" icon="presets/waterway.png" type="way">
     
    16691670            <key key="waterway" value="ditch" />
    16701671            <text key="name" text="Name" />
    1671             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1672            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16721673        </item>
    16731674        <item name="Stream" icon="presets/waterway.png" type="way">
     
    16831684            <key key="waterway" value="stream" />
    16841685            <text key="name" text="Name" />
    1685             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1686            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16861687        </item>
    16871688        <item name="Canal" icon="presets/waterway.png" type="way">
     
    16951696            <key key="waterway" value="canal" />
    16961697            <text key="name" text="Name" />
    1697             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1698            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    16981699            <text key="wikipedia" text="Wikipedia" />
    16991700        </item>
     
    17091710            <key key="waterway" value="river" />
    17101711            <text key="name" text="Name" />
    1711             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     1712            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    17121713            <text key="wikipedia" text="Wikipedia" />
    17131714        </item>
     
    17851786            <optional>
    17861787                <text key="name" text="Name" />
    1787                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" default="-1" />
     1788                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" default="-1" length="3" />
    17881789                <text key="width" text="Width (meters)" />
    17891790                <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" />
     
    20912092                <check key="cutting" text="Cutting" default="off" />
    20922093                <check key="embankment" text="Embankment" default="off" />
    2093                 <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     2094                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    20942095                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" />
    20952096                <text key="maxspeed" text="Max. speed (km/h)" />
     
    63166317            <label text="Edit Bridge" />
    63176318            <key key="type" value="bridge" />
    6318             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     6319            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    63196320            <text key="name" text="Name" />
    63206321            <text key="ref" text="Reference" />
     
    63336334            <label text="Edit Tunnel" />
    63346335            <key key="type" value="tunnel" />
    6335             <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" />
     6336            <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    63366337            <text key="name" text="Name" />
    63376338            <text key="ref" text="Reference" />
  • trunk/data/tagging-preset.xsd

    r5760 r5997  
    119119                <attribute name="auto_increment" type="string" />
    120120                <attribute name="match" type="tns:match" />
    121         <attribute name="length" type="positiveInteger" />
     121                <attribute name="length" type="positiveInteger" />
    122122
    123123                <attribute name="type" use="prohibited" />
     
    153153                <attribute name="editable" type="boolean" />
    154154                <attribute name="match" type="tns:match" />
     155                <attribute name="length" type="positiveInteger" />
    155156
    156157                <attribute name="type" use="prohibited" />
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r5964 r5997  
    947947        public boolean editable = true;
    948948        protected JosmComboBox combo;
     949        public String length;
    949950
    950951        public Combo() {
     
    973974            AutoCompletingTextField tf = new AutoCompletingTextField();
    974975            initAutoCompletionField(tf, key);
     976            if (length != null && !length.isEmpty()) {
     977                tf.setMaxChars(new Integer(length));
     978            }
    975979            AutoCompletionList acList = tf.getAutoCompletionList();
    976980            if (acList != null) {
Note: See TracChangeset for help on using the changeset viewer.