Ticket #15751: 15751_v3.patch

File 15751_v3.patch, 11.3 KB (added by reichg, 3 years ago)

Bandaid for now. New ticket should be made for revamp of the defaultpresets.xml file.

  • resources/data/defaultpresets.xml

     
    2020            <list_entry value="very_horrible" short_description="Specialized off-road: tractor, ATV" />
    2121            <list_entry value="impassable" short_description="No wheeled vehicle" />
    2222        </combo>
     23        <space/>
    2324    </chunk>
    2425    <chunk id="sport_surface">
    2526        <combo key="surface" text="Surface" values="artificial_turf,asphalt,clay,concrete,decoturf,grass,sand,tartan,ground" />
     
    3940        <space />
    4041        <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    4142        <reference ref="surface_smoothness" />
     43        <space/>
    4244    </chunk>
    4345    <chunk id="highway_yesno">
    44         <checkgroup columns="4">
     46        <checkgroup columns="7">
    4547            <check key="bridge" text="Bridge" disable_off="true" />
    4648            <check key="tunnel" text="Tunnel" disable_off="true" />
    4749            <check key="embankment" text="Embankment" disable_off="true" />
    4850            <check key="cutting" text="Cutting" disable_off="true" />
     51            <check key="lit" text="Lit" />
     52            <check key="toll" text="Toll" />
     53            <check key="motorroad" text="Motorroad" />
    4954        </checkgroup>
    50     </chunk>
    51     <chunk id="highway_yesno_incline">
    52         <reference ref="highway_yesno" />
     55        <space />
    5356        <combo key="incline" text="Incline" values="10%,-10%,10°,-10°,up,down" />
    5457    </chunk>
    5558    <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" />
     59        <reference ref="highway_yesno" />
     60        <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    6561        <text key="width" text="Width (meters)" />
    6662    </chunk>
    6763    <chunk id="highway_yesno_incline_oneway_lit_width_busbay_sidewalk">
     
    576572        <preset_link preset_name="Road Restrictions" />
    577573        <preset_link preset_name="Access Restrictions" />
    578574    </chunk>
     575
    579576  <!-- Groups -->
    580577  <group name="Highways" icon="presets/transport/way/way_secondary.svg">
    581578    <group name="Streets" icon="presets/transport/way/way_secondary.svg">
     
    594591                <text key="width" text="Width (meters)" />
    595592                <space />
    596593                <reference ref="highway_yesno" />
    597                 <checkgroup columns="4">
    598                     <check key="oneway" text="Oneway" default="on" />
    599                     <check key="lit" text="Lit" />
    600                     <check key="toll" text="Toll" />
    601                 </checkgroup>
     594                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" default="yes"/>
    602595                <reference ref="placement_shoulder" />
    603596            </optional>
    604597            <reference ref="link_road_access_restrictions" />
     
    616609                <text key="width" text="Width (meters)" />
    617610                <space />
    618611                <reference ref="highway_yesno" />
    619                 <checkgroup columns="4">
    620                     <check key="oneway" text="Oneway" default="on" />
    621                     <check key="lit" text="Lit" />
    622                     <check key="toll" text="Toll" />
    623                 </checkgroup>
     612                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" default="yes"/>
    624613                <reference ref="placement_shoulder" />
    625614            </optional>
    626615            <reference ref="link_road_access_restrictions" />
     
    640629                <text key="width" text="Width (meters)" />
    641630                <space />
    642631                <reference ref="highway_yesno" />
    643                 <checkgroup columns="4">
    644                     <check key="oneway" text="Oneway" default="on" />
    645                     <check key="lit" text="Lit" />
    646                     <check key="toll" text="Toll" />
    647                     <check key="motorroad" text="Motorroad" default="on" />
    648                 </checkgroup>
     632                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" default="yes"/>
    649633                <reference ref="placement_shoulder" />
    650634            </optional>
    651635            <reference ref="link_road_access_restrictions" />
     
    664648                <text key="width" text="Width (meters)" />
    665649                <space />
    666650                <reference ref="highway_yesno" />
    667                 <checkgroup columns="4">
    668                     <check key="oneway" text="Oneway" default="on" />
    669                     <check key="lit" text="Lit" />
    670                     <check key="toll" text="Toll" />
    671                     <check key="motorroad" text="Motorroad" default="on" />
    672                 </checkgroup>
     651                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" default="yes"/>
    673652                <reference ref="placement_shoulder" />
    674653            </optional>
    675654            <reference ref="link_road_access_restrictions" />
     
    686665                <check key="noname" text="Street has no name" disable_off="true" />
    687666                <reference ref="highway_base" />
    688667                <reference ref="highway_yesno_incline_oneway_lit_width_busbay_sidewalk" />
    689                 <checkgroup columns="4">
    690                     <check key="motorroad" text="Motorroad" />
     668                <checkgroup columns="2">
    691669                    <check key="narrow" text="Narrow" disable_off="true" />
    692670                    <check key="trolley_wire" text="Overhead trolley wires" />
    693671                </checkgroup>
     
    803781                <text key="ref" text="Reference" />
    804782                <reference ref="highway_base" />
    805783                <reference ref="highway_yesno" />
    806                 <checkgroup columns="4">
    807                     <check key="oneway" text="Oneway" />
     784                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
     785                <checkgroup columns="1">
    808786                    <check key="oneway:bicycle" text="Oneway for bicycle" />
    809                     <check key="lit" text="Lit" />
    810787                </checkgroup>
    811788                <text key="width" text="Width (meters)" />
    812789                <combo key="bus_bay" text="Bus bay" values="both,left,right" />
     
    832809                <combo key="lanes" text="Lanes" values="1,2,3" length="3" />
    833810                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    834811                <reference ref="surface_smoothness" />
    835                 <reference ref="highway_yesno_incline" />
    836                 <checkgroup columns="4">
    837                     <check key="oneway" text="Oneway" />
     812                <reference ref="highway_yesno" />
     813                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
     814                <checkgroup columns="1">
    838815                    <check key="oneway:bicycle" text="Oneway for bicycle" />
    839                     <check key="lit" text="Lit" />
    840816                </checkgroup>
    841817                <text key="width" text="Width (meters)" />
    842818                <combo key="bus_bay" text="Bus bay" values="both,left,right" />
     
    872848                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    873849                <reference ref="surface_smoothness" />
    874850                <check key="area" text="Area" />
    875                 <reference ref="highway_yesno_incline" />
    876                 <check key="lit" text="Lit" />
     851                <reference ref="highway_yesno" />
    877852                <text key="width" text="Width (meters)" />
    878853            </optional>
    879854            <reference ref="link_road_access_restrictions" />
     
    898873            <key key="service" value="parking_aisle" />
    899874            <optional>
    900875                <reference ref="surface_smoothness" />
    901                 <check key="oneway" text="Oneway" />
     876                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    902877                <check key="lit" text="Lit" />
    903878            </optional>
    904879            <reference ref="link_road_access_restrictions" />
     
    950925        <item name="Road Restrictions" icon="presets/vehicle/restriction/maxspeed.svg" type="node,way,closedway" preset_name_label="true">
    951926            <link wiki="Key:access" />
    952927            <space />
    953             <checkgroup columns="3" >
    954                 <check key="oneway" text="Oneway" />
     928            <checkgroup columns="4" >
    955929                <check key="toll" text="Toll" />
    956930                <check key="noexit" text="No exit (cul-de-sac)" disable_off="true" />
    957931                <check key="winter_road" text="Winter road" disable_off="true" />
    958932                <check key="ice_road" text="Ice road" disable_off="true" />
    959933            </checkgroup>
     934            <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    960935            <text key="maxspeed" text="Max. speed (km/h)" />
    961936            <text key="maxspeed:forward" text="Max. speed in way direction" />
    962937            <text key="maxspeed:backward" text="Max. speed opposed to way direction" />
     
    10401015                <reference ref="name_layer" />
    10411016                <combo key="lanes" text="Lanes" values="1,2,3" length="3" />
    10421017                <reference ref="highway_yesno" />
    1043                 <check key="oneway" text="Oneway" />
     1018                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    10441019                <text key="width" text="Width (meters)" />
    10451020            </optional>
    10461021            <reference ref="link_road_access_restrictions" />
     
    11491124            <space />
    11501125            <optional text="Edit Highway Attributes:">
    11511126                <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" />
    1152                 <check key="oneway" text="Oneway" />
     1127                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    11531128            </optional>
    11541129        </item> <!-- Cycle Lane/Track -->
    11551130        <item name="Dedicated Cycleway" icon="presets/transport/way/dedicated_cycleway.svg" type="way,closedway" preset_name_label="true">
     
    23322307            <optional>
    23332308                <text key="name" text="Name" />
    23342309                <reference ref="highway_yesno" />
    2335                 <check key="oneway" text="Oneway" />
     2310                <combo key="oneway" text="Oneway" values="yes,no,reversible,alternating" />
    23362311                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" values_sort="false" />
    23372312                <reference ref="surface_smoothness" />
    23382313                <text key="maxspeed" text="Max. speed (km/h)" />