Changeset 5997 in josm
- Timestamp:
- 2013-06-08T14:26:14+02:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/defaultpresets.xml
r5976 r5997 64 64 editable: allow to add other values as text (default is "true") 65 65 match: none/key/key!/keyvalue (default is none, see below for more information) 66 length: length of input box (number of characters allowed) 66 67 67 68 multiselect: list of values from which zero or more can be selected … … 149 150 <optional> 150 151 <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" /> 153 154 <text key="maxspeed" text="Max. speed (km/h)" /> 154 155 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 175 176 <key key="highway" value="motorway_link" /> 176 177 <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" /> 179 180 <text key="maxspeed" text="Max. speed (km/h)" /> 180 181 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 202 203 <optional> 203 204 <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" /> 206 207 <text key="maxspeed" text="Max. speed (km/h)" /> 207 208 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 228 229 <text key="ref" text="Reference" /> 229 230 <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" /> 232 233 <text key="maxspeed" text="Max. speed (km/h)" /> 233 234 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 256 257 <optional> 257 258 <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" /> 260 261 <text key="maxspeed" text="Max. speed (km/h)" /> 261 262 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 282 283 <key key="highway" value="primary_link" /> 283 284 <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" /> 286 287 <text key="maxspeed" text="Max. speed (km/h)" /> 287 288 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 311 312 <optional> 312 313 <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" /> 315 316 <text key="maxspeed" text="Max. speed (km/h)" /> 316 317 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 336 337 <key key="highway" value="secondary_link" /> 337 338 <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" /> 340 341 <text key="maxspeed" text="Max. speed (km/h)" /> 341 342 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 365 366 <optional> 366 367 <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" /> 369 370 <text key="maxspeed" text="Max. speed (km/h)" /> 370 371 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 390 391 <key key="highway" value="tertiary_link" /> 391 392 <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" /> 394 395 <text key="maxspeed" text="Max. speed (km/h)" /> 395 396 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 417 418 <optional> 418 419 <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" /> 421 422 <text key="maxspeed" text="Max. speed (km/h)" /> 422 423 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 446 447 <text key="name" text="Name" /> 447 448 <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" /> 450 451 <text key="maxspeed" text="Max. speed (km/h)" /> 451 452 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 472 473 <text key="name" text="Name" /> 473 474 <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" /> 476 477 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 477 478 <check key="oneway" text="Oneway" default="off" /> … … 500 501 <text key="name" text="Name" /> 501 502 <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" /> 504 505 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 505 506 <check key="area" text="Area" default="off" /> … … 528 529 <combo key="service" text="Serviceway type" values="alley,driveway,parking_aisle" /> 529 530 <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" /> 532 533 <text key="maxspeed" text="Max. speed (km/h)" /> 533 534 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 574 575 <optional> 575 576 <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" /> 578 579 <text key="maxspeed" text="Max. speed (km/h)" /> 579 580 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 600 601 <optional> 601 602 <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" /> 604 605 <text key="maxspeed" text="Max. speed (km/h)" /> 605 606 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 675 676 <optional> 676 677 <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" /> 679 680 <check key="oneway" text="Oneway" default="off" /> 680 681 <check key="bridge" text="Bridge" default="off" /> … … 701 702 <optional> 702 703 <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" /> 704 705 <text key="maxspeed" text="Max. speed (km/h)" /> 705 706 <text key="maxweight" text="Max. weight (tonnes)" /> … … 739 740 <optional> 740 741 <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" /> 742 743 <combo key="surface" text="Surface" values="paved,concrete,cobblestone,gravel,ground,grass,sand" /> 743 744 <check key="oneway" text="Oneway" default="off" /> … … 770 771 <optional> 771 772 <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" /> 773 774 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 774 775 <check key="oneway" text="Oneway" default="off" /> … … 812 813 <optional> 813 814 <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" /> 815 816 <text key="maxspeed" text="Max. speed (km/h)" /> 816 817 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> … … 857 858 <optional> 858 859 <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" /> 860 861 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 861 862 <check key="oneway" text="Oneway" default="off" /> … … 882 883 <optional> 883 884 <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" /> 885 886 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 886 887 <check key="oneway" text="Oneway" default="off" /> … … 906 907 <optional> 907 908 <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" /> 909 910 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 910 911 <check key="oneway" text="Oneway" default="off" /> … … 932 933 <optional> 933 934 <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" /> 935 936 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 936 937 <check key="bridge" text="Bridge" default="off" /> … … 957 958 <optional> 958 959 <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" /> 960 961 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 961 962 <text key="step_count" text="Amount of Steps" /> … … 1561 1562 <optional> 1562 1563 <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" /> 1564 1565 <text key="maxspeed" text="Max. speed (km/h)" /> 1565 1566 <text key="width" text="Width (meters)" /> … … 1582 1583 <optional> 1583 1584 <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" /> 1585 1586 <text key="maxspeed" text="Max. speed (km/h)" /> 1586 1587 <text key="width" text="Width (meters)" /> … … 1601 1602 <optional> 1602 1603 <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" /> 1604 1605 <text key="width" text="Width (meters)" /> 1605 1606 </optional> … … 1618 1619 <optional> 1619 1620 <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" /> 1621 1622 <text key="width" text="Width (meters)" /> 1622 1623 </optional> … … 1639 1640 <optional> 1640 1641 <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" /> 1642 1643 <text key="width" text="Width (meters)" /> 1643 1644 <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" /> … … 1658 1659 <key key="waterway" value="drain" /> 1659 1660 <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" /> 1661 1662 </item> 1662 1663 <item name="Ditch" icon="presets/waterway.png" type="way"> … … 1669 1670 <key key="waterway" value="ditch" /> 1670 1671 <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" /> 1672 1673 </item> 1673 1674 <item name="Stream" icon="presets/waterway.png" type="way"> … … 1683 1684 <key key="waterway" value="stream" /> 1684 1685 <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" /> 1686 1687 </item> 1687 1688 <item name="Canal" icon="presets/waterway.png" type="way"> … … 1695 1696 <key key="waterway" value="canal" /> 1696 1697 <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" /> 1698 1699 <text key="wikipedia" text="Wikipedia" /> 1699 1700 </item> … … 1709 1710 <key key="waterway" value="river" /> 1710 1711 <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" /> 1712 1713 <text key="wikipedia" text="Wikipedia" /> 1713 1714 </item> … … 1785 1786 <optional> 1786 1787 <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" /> 1788 1789 <text key="width" text="Width (meters)" /> 1789 1790 <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" /> … … 2091 2092 <check key="cutting" text="Cutting" default="off" /> 2092 2093 <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" /> 2094 2095 <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground" /> 2095 2096 <text key="maxspeed" text="Max. speed (km/h)" /> … … 6316 6317 <label text="Edit Bridge" /> 6317 6318 <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" /> 6319 6320 <text key="name" text="Name" /> 6320 6321 <text key="ref" text="Reference" /> … … 6333 6334 <label text="Edit Tunnel" /> 6334 6335 <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" /> 6336 6337 <text key="name" text="Name" /> 6337 6338 <text key="ref" text="Reference" /> -
trunk/data/tagging-preset.xsd
r5760 r5997 119 119 <attribute name="auto_increment" type="string" /> 120 120 <attribute name="match" type="tns:match" /> 121 121 <attribute name="length" type="positiveInteger" /> 122 122 123 123 <attribute name="type" use="prohibited" /> … … 153 153 <attribute name="editable" type="boolean" /> 154 154 <attribute name="match" type="tns:match" /> 155 <attribute name="length" type="positiveInteger" /> 155 156 156 157 <attribute name="type" use="prohibited" /> -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r5964 r5997 947 947 public boolean editable = true; 948 948 protected JosmComboBox combo; 949 public String length; 949 950 950 951 public Combo() { … … 973 974 AutoCompletingTextField tf = new AutoCompletingTextField(); 974 975 initAutoCompletionField(tf, key); 976 if (length != null && !length.isEmpty()) { 977 tf.setMaxChars(new Integer(length)); 978 } 975 979 AutoCompletionList acList = tf.getAutoCompletionList(); 976 980 if (acList != null) {
Note:
See TracChangeset
for help on using the changeset viewer.