Changeset 5639 in josm for trunk/data/defaultpresets.xml


Ignore:
Timestamp:
2012-12-28T02:16:10+01:00 (7 years ago)
Author:
framm
Message:

Add a new preset option "auto_increment" that allows the user to select one of a number of given auto-increment values. This works like "use_last_as_default", only that the last value is incremented or decremented as selected by the user. Switch this on for house numbers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r5628 r5639  
    3535  default: default string to display (defaults to "")
    3636  use_last_as_default: true/false/force (default is "false")
     37  auto_increment: may contain a comma separated list of integer increments or
     38                  decrements, e.g. "-2,-1,+1,+2"; a button will be shown next
     39                  to the text field for each value, allowing the user to select
     40                  auto-increment with the given stepping. auto-increment only
     41                  happens if the user selects it. default is no auto-increment;
     42                  mutually exclusive with use_last_as_default.
    3743  match: none/key/key!/keyvalue (default is "none", see below for more information)
    3844  length: length of input box (number of characters allowed)
     
    57275733            <label text="Edit Address Information" />
    57285734            <space />
    5729             <text key="addr:housenumber" text="House number" match="key" />
     5735            <text key="addr:housenumber" text="House number" match="key" auto_increment="-2,-1,+1,+2" />
    57305736            <optional>
    57315737                <text key="addr:housename" text="House name" match="key" />
Note: See TracChangeset for help on using the changeset viewer.