Changeset 18834 in josm


Ignore:
Timestamp:
2023-09-20T16:30:51+02:00 (15 months ago)
Author:
taylor.smock
Message:

Fix #23149: Add line_arrangement to power supports presets (patch by gaben)

Location:
trunk/resources/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r18812 r18834  
    391391        <reference ref="cables" />
    392392        <combo key="circuits" text="Amount of circuits" values="1,2,3,4" />
     393    </chunk>
     394    <chunk id="line_properties">
     395        <combo key="line_attachment" text="Line attachment" values="suspension,anchor,pin,pulley" values_sort="false" values_context="power" />
     396        <combo key="line_arrangement" text="Line arrangement" values="horizontal,semi_horizontal,vertical,semi_vertical,triangular,delta,square,unarranged" values_sort="false" values_context="power" />
     397        <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
    393398    </chunk>
    394399    <chunk id="power_loc">
     
    465470    </chunk>
    466471    <chunk id="power_pole">
    467         <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    468         <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
     472        <reference ref="line_properties" />
    469473        <check key="location:transition" text="Location transition" disable_off="true" />
    470474        <reference ref="pole" />
     
    60216025            <reference ref="pole" />
    60226026            <reference ref="utilities" />
     6027            <optional>
     6028                <reference ref="line_properties"/>
     6029            </optional>
    60236030            <preset_link preset_name="Pole" text="Similar preset:" />
    60246031        </item> <!-- Utility Pole -->
     
    68716878            <key key="power" value="terminal" />
    68726879            <optional>
    6873                 <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    6874                 <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
     6880                <reference ref="line_properties" />
    68756881                <reference ref="ref_operator" />
    68766882            </optional>
     
    68866892            <reference ref="ref_operator" />
    68876893            <combo key="design" text="Portal design" values="portal,portal_two-level,portal_three-level" values_context="power" />
    6888             <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    6889             <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
     6894            <reference ref="line_properties" />
    68906895        </item> <!-- Power Portal -->
    68916896        <item name="Power Tower" icon="presets/power/tower.svg" type="node" preset_name_label="true">
     
    69006905            <optional>
    69016906                <combo key="design" text="Tower design" values="one-level,two-level,donau,three-level,barrel,asymmetric,triangle,flag,donau;one-level,four-level,six-level,nine-level,delta,delta_two-level,y-frame,x-frame,h-frame,guyed_h-frame,portal,portal_two-level,portal_three-level,guyed_v-frame,bipole,monopolar" values_context="power" />
    6902                 <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    6903                 <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
     6907                <reference ref="line_properties" />
    69046908                <check key="triple_tower" text="Triple tower" />
    69056909                <check key="design:incomplete" text="Incomplete tower" />
     
    69616965            <space />
    69626966            <key key="power" value="insulator" />
    6963             <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    6964             <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
     6967            <reference ref="line_properties" />
    69656968            <reference ref="ref_operator" />
    69666969        </item> <!-- Insulator -->
  • trunk/resources/data/validator/deprecated.mapcss

    r18736 r18834  
    18981898  suggestAlternative: "design";
    18991899  suggestAlternative: "structure";
     1900  suggestAlternative: "line_arrangement";
     1901  suggestAlternative: "line_attachment";
    19001902  suggestAlternative: "line_management";
    1901   suggestAlternative: "line_attachment";
    19021903  set generic_power_tower_type_warning;
    19031904  group: tr("deprecated tagging");
     
    19581959*[pole:type][power][power=~/^(tower|pole|insulator|portal|terminal)$/]!.power_pole_type_warning!.generic_power_tower_type_warning {
    19591960  throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
     1961  suggestAlternative: "line_arrangement";
     1962  suggestAlternative: "line_attachment";
    19601963  suggestAlternative: "line_management";
    1961   suggestAlternative: "line_attachment";
    19621964  group: tr("deprecated tagging");
    19631965}
  • trunk/resources/data/validator/geometry.mapcss

    r18687 r18834  
    128128way[voltage:tertiary],
    129129way[transformer],
     130way[line_arrangement],
    130131way[line_attachment],
    131132way[line_management],
Note: See TracChangeset for help on using the changeset viewer.