Ticket #15751: 15751_v6.patch

File 15751_v6.patch, 14.2 KB (added by reichg, 5 years ago)

removed spaces at the beginning/end of chunks, added oneway combo in the highway_yesno chunk.

  • resources/data/defaultpresets.xml

     
    4646            <check key="tunnel" text="Tunnel" disable_off="true" />
    4747            <check key="embankment" text="Embankment" disable_off="true" />
    4848            <check key="cutting" text="Cutting" disable_off="true" />
     49            <check key="lit" text="Lit" />
    4950        </checkgroup>
    50     </chunk>
    51     <chunk id="highway_yesno_incline">
    52         <reference ref="highway_yesno" />
    5351        <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" />
     52        <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    5453    </chunk>
    5554    <chunk id="highway_yesno_incline_oneway_lit_width">
    56         <checkgroup columns="4">
    57             <check key="bridge" text="Bridge" disable_off="true" />
    58             <check key="tunnel" text="Tunnel" disable_off="true" />
    59             <check key="embankment" text="Embankment" disable_off="true" />
    60             <check key="cutting" text="Cutting" disable_off="true" />
    61             <check key="oneway" text="Oneway" />
    62             <check key="lit" text="Lit" />
    63         </checkgroup>
    64         <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" />
     55        <reference ref="highway_yesno" />
    6556        <text key="width" text="Width (meters)" />
    6657    </chunk>
    6758    <chunk id="highway_yesno_incline_oneway_lit_width_busbay_sidewalk">
     
    591582        <preset_link preset_name="Road Restrictions" />
    592583        <preset_link preset_name="Access Restrictions" />
    593584    </chunk>
     585
    594586  <!-- Groups -->
    595587  <group name="Highways" icon="presets/transport/way/way_secondary.svg">
    596588    <group name="Streets" icon="presets/transport/way/way_secondary.svg">
     
    603595            <optional>
    604596                <text key="name" text="Name" />
    605597                <check key="noname" text="Street has no name" disable_off="true" />
     598                <check key="motorroad" text="Motorroad" />
    606599                <reference ref="highway_base" />
    607600                <text key="destination" text="Destination" />
    608601                <text key="destination:ref" text="Destination reference" />
     
    609602                <text key="width" text="Width (meters)" />
    610603                <space />
    611604                <reference ref="highway_yesno" />
    612                 <checkgroup columns="4">
    613                     <check key="oneway" text="Oneway" default="on" />
    614                     <check key="lit" text="Lit" />
    615                     <check key="toll" text="Toll" />
    616                 </checkgroup>
    617605                <reference ref="placement_shoulder" />
    618606            </optional>
    619607            <reference ref="link_road_access_restrictions" />
     
    624612            <optional>
    625613                <text key="ref" text="Reference" />
    626614                <check key="noref" text="Street has no reference" disable_off="true" />
     615                <check key="motorroad" text="Motorroad" />
    627616                <reference ref="highway_base" />
    628617                <text key="destination" text="Destination" />
    629618                <text key="destination:ref" text="Destination reference" />
     
    631620                <text key="width" text="Width (meters)" />
    632621                <space />
    633622                <reference ref="highway_yesno" />
    634                 <checkgroup columns="4">
    635                     <check key="oneway" text="Oneway" default="on" />
    636                     <check key="lit" text="Lit" />
    637                     <check key="toll" text="Toll" />
    638                 </checkgroup>
    639623                <reference ref="placement_shoulder" />
    640624            </optional>
    641625            <reference ref="link_road_access_restrictions" />
     
    649633            <optional>
    650634                <text key="name" text="Name" />
    651635                <check key="noname" text="Street has no name" disable_off="true" />
     636                <check key="motorroad" text="Motorroad" />
    652637                <reference ref="highway_base" />
    653638                <text key="destination" text="Destination" />
    654639                <text key="destination:ref" text="Destination reference" />
     
    655640                <text key="width" text="Width (meters)" />
    656641                <space />
    657642                <reference ref="highway_yesno" />
    658                 <checkgroup columns="4">
    659                     <check key="oneway" text="Oneway" default="on" />
    660                     <check key="lit" text="Lit" />
    661                     <check key="toll" text="Toll" />
    662                     <check key="motorroad" text="Motorroad" default="on" />
    663                 </checkgroup>
    664643                <reference ref="placement_shoulder" />
    665644            </optional>
    666645            <reference ref="link_road_access_restrictions" />
     
    672651            <optional>
    673652                <text key="ref" text="Reference" />
    674653                <check key="noref" text="Street has no reference" disable_off="true" />
     654                <check key="motorroad" text="Motorroad" />
    675655                <reference ref="highway_base" />
    676656                <text key="destination" text="Destination" />
    677657                <text key="destination:ref" text="Destination reference" />
     
    679659                <text key="width" text="Width (meters)" />
    680660                <space />
    681661                <reference ref="highway_yesno" />
    682                 <checkgroup columns="4">
    683                     <check key="oneway" text="Oneway" default="on" />
    684                     <check key="lit" text="Lit" />
    685                     <check key="toll" text="Toll" />
    686                     <check key="motorroad" text="Motorroad" default="on" />
    687                 </checkgroup>
    688662                <reference ref="placement_shoulder" />
    689663            </optional>
    690664            <reference ref="link_road_access_restrictions" />
     
    699673            <optional>
    700674                <text key="name" text="Name" />
    701675                <check key="noname" text="Street has no name" disable_off="true" />
     676                <space/>
     677                <check key="motorroad" text="Motorroad" />
    702678                <reference ref="highway_base" />
    703679                <reference ref="highway_yesno_incline_oneway_lit_width_busbay_sidewalk" />
    704                 <checkgroup columns="4">
    705                     <check key="motorroad" text="Motorroad" />
     680                <checkgroup columns="2">
    706681                    <check key="narrow" text="Narrow" disable_off="true" />
    707682                    <check key="trolley_wire" text="Overhead trolley wires" />
    708683                </checkgroup>
     
    714689            <link wiki="Highway_link" />
    715690            <key key="highway" value="primary_link" />
    716691            <optional>
     692                <check key="motorroad" text="Motorroad" />
    717693                <reference ref="highway_base" />
    718694                <text key="destination" text="Destination" />
    719695                <text key="destination:ref" text="Destination reference" />
    720696                <text key="junction:ref" text="Junction reference" />
    721                 <check key="motorroad" text="Motorroad" />
    722697                <reference ref="highway_yesno_incline_oneway_lit_width_busbay_sidewalk" />
    723698                <space />
    724699                <reference ref="placement_shoulder" />
     
    734709            <optional>
    735710                <text key="name" text="Name" />
    736711                <check key="noname" text="Street has no name" disable_off="true" />
     712                <space/>
     713                <check key="motorroad" text="Motorroad" />
    737714                <reference ref="highway_base" />
    738715                <reference ref="highway_yesno_incline_oneway_lit_width_busbay_sidewalk" />
    739716                <checkgroup columns="2">
     
    766743            <optional>
    767744                <text key="name" text="Name" />
    768745                <check key="noname" text="Street has no name" disable_off="true" />
     746                <space/>
     747                <check key="motorroad" text="Motorroad" />
    769748                <reference ref="highway_base" />
    770749                <reference ref="highway_yesno_incline_oneway_lit_width_busbay_sidewalk" />
    771750                <checkgroup columns="2">
     
    797776                <check key="noname" text="Street has no name" disable_off="true" />
    798777                <text key="ref" text="Reference" />
    799778                <check key="noref" text="Street has no reference" disable_off="true" />
     779                <space/>
     780                <check key="motorroad" text="Motorroad" />
    800781                <reference ref="highway_base" />
    801782                <reference ref="highway_yesno_incline_oneway_lit_width_busbay_sidewalk" />
    802783                <checkgroup columns="3">
     
    818799                <text key="ref" text="Reference" />
    819800                <reference ref="highway_base" />
    820801                <reference ref="highway_yesno" />
    821                 <checkgroup columns="4">
    822                     <check key="oneway" text="Oneway" />
    823                     <check key="oneway:bicycle" text="Oneway for bicycle" />
    824                     <check key="lit" text="Lit" />
    825                 </checkgroup>
     802                <check key="oneway:bicycle" text="Oneway for bicycle" />
    826803                <text key="width" text="Width (meters)" />
    827804                <combo key="bus_bay" text="Bus bay" values="both,left,right" />
    828805                <combo key="sidewalk" text="Sidewalk" values="both,left,right,no,separate" values_context="sidewalk" />
     
    847824                <combo key="lanes" text="Lanes" values="1,2,3" length="3" />
    848825                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    849826                <reference ref="surface_smoothness" />
    850                 <reference ref="highway_yesno_incline" />
    851                 <checkgroup columns="4">
    852                     <check key="oneway" text="Oneway" />
    853                     <check key="oneway:bicycle" text="Oneway for bicycle" />
    854                     <check key="lit" text="Lit" />
    855                 </checkgroup>
     827                <reference ref="highway_yesno" />
     828                <check key="oneway:bicycle" text="Oneway for bicycle" />
    856829                <text key="width" text="Width (meters)" />
    857830                <combo key="bus_bay" text="Bus bay" values="both,left,right" />
    858831                <combo key="sidewalk" text="Sidewalk" values="both,left,right,no,separate" values_context="sidewalk" />
     
    887860                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    888861                <reference ref="surface_smoothness" />
    889862                <check key="area" text="Area" />
    890                 <reference ref="highway_yesno_incline" />
    891                 <check key="lit" text="Lit" />
     863                <reference ref="highway_yesno" />
    892864                <text key="width" text="Width (meters)" />
    893865            </optional>
    894866            <reference ref="link_road_access_restrictions" />
     
    913885            <key key="service" value="parking_aisle" />
    914886            <optional>
    915887                <reference ref="surface_smoothness" />
    916                 <check key="oneway" text="Oneway" />
    917888                <check key="lit" text="Lit" />
    918889            </optional>
    919890            <reference ref="link_road_access_restrictions" />
     
    965936        <item name="Road Restrictions" icon="presets/vehicle/restriction/maxspeed.svg" type="node,way,closedway,multipolygon" preset_name_label="true" > <!-- There are links from MP relations to this preset -->
    966937            <link wiki="Key:access" />
    967938            <space />
    968             <checkgroup columns="3" >
    969                 <check key="oneway" text="Oneway" />
     939            <checkgroup columns="4" >
     940                <check key="ice_road" text="Ice road" disable_off="true" />
     941                <check key="noexit" text="No exit (cul-de-sac)" disable_off="true" />
    970942                <check key="toll" text="Toll" />
    971                 <check key="noexit" text="No exit (cul-de-sac)" disable_off="true" />
    972943                <check key="winter_road" text="Winter road" disable_off="true" />
    973                 <check key="ice_road" text="Ice road" disable_off="true" />
    974944            </checkgroup>
     945            <space/>
     946            <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    975947            <text key="maxspeed" text="Max. speed (km/h)" />
    976948            <text key="maxspeed:forward" text="Max. speed in way direction" />
    977949            <text key="maxspeed:backward" text="Max. speed opposed to way direction" />
     
    10501022                <reference ref="name_layer" />
    10511023                <combo key="lanes" text="Lanes" values="1,2,3" length="3" />
    10521024                <reference ref="highway_yesno" />
    1053                 <check key="oneway" text="Oneway" />
     1025                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    10541026                <text key="width" text="Width (meters)" />
    10551027            </optional>
    10561028            <reference ref="link_road_access_restrictions" />
     
    11591131            <space />
    11601132            <optional text="Edit Highway Attributes:">
    11611133                <combo key="highway" text="Highway" values="motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link,unclassified,residential,living_street,service,bus_guideway,construction" values_context="Highway" values_sort="false" />
    1162                 <check key="oneway" text="Oneway" />
     1134                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    11631135            </optional>
    11641136        </item> <!-- Cycle Lane/Track -->
    11651137        <item name="Dedicated Cycleway" icon="presets/transport/way/dedicated_cycleway.svg" type="way,closedway" preset_name_label="true">
     
    23422314            <optional>
    23432315                <text key="name" text="Name" />
    23442316                <reference ref="highway_yesno" />
    2345                 <check key="oneway" text="Oneway" />
     2317                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    23462318                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    23472319                <reference ref="surface_smoothness" />
    23482320                <text key="maxspeed" text="Max. speed (km/h)" />