Changes between Version 58 and Version 59 of TaggingPresets


Ignore:
Timestamp:
2014-10-29T14:30:17+01:00 (10 years ago)
Author:
Klumbumbus
Comment:

joined "match"

Legend:

Unmodified
Added
Removed
Modified
  • TaggingPresets

    v58 v59  
    8181Attribute entry and selection dialog boxes:
    8282 '''<text>'''::
    83    A text edit field to enter any arbitrary string from the user. ''key'' is mandatory, ''text'', ''default'' and ''required'' is optional
     83   A text edit field to enter any arbitrary string from the user. ''key'' is mandatory, ''text'', ''default'', ''match'' and ''required'' is optional
    8484 '''<combo>'''::
    85    Displays a multiple choice combo box. ''key'' and ''values'' are mandatory and ''text'', ''default'', ''editable'' and ''required'' is optional.
     85   Displays a multiple choice combo box. ''key'' and ''values'' are mandatory and ''text'', ''default'', ''editable'', ''match'' and ''required'' is optional.
    8686   If editable is true (default), combo boxes can be edited as if they were text fields (additional to the drop down menu). Non editable
    8787   combo boxes can only contain one of the specified values.
    88 
    8988 '''<multiselect>'''::
    90    Displays a list from which zero or more items can be chosen. ''key'' and ''values'' are mandatory, and ''text'', ''default'', ''delimiter'', and ''required'' are optional. The selected values will be concatenated with the specified delimiter (default: semicolon) and written to the tag value. If a tag value has already been set when the preset dialog is opened, the multiselect will attempt to mark the appropriate items in the list as select. If the tag value cannot be represented by a combination of choices in the list, then the list will be disabled so that the user cannot accidentally overwrite a custom value. In contrast to the "combo" element, the "multiselect" expects the list of values, descriptions etc. to use the specified delimiter, i.e. by default you will have to use a semicolon. You can specify delimiter="," but then a comma will also be used in the tag value.
     89   Displays a list from which zero or more items can be chosen. ''key'' and ''values'' are mandatory, and ''text'', ''default'', ''delimiter'', ''match'' and ''required'' are optional. The selected values will be concatenated with the specified delimiter (default: semicolon) and written to the tag value. If a tag value has already been set when the preset dialog is opened, the multiselect will attempt to mark the appropriate items in the list as select. If the tag value cannot be represented by a combination of choices in the list, then the list will be disabled so that the user cannot accidentally overwrite a custom value. In contrast to the "combo" element, the "multiselect" expects the list of values, descriptions etc. to use the specified delimiter, i.e. by default you will have to use a semicolon. You can specify delimiter="," but then a comma will also be used in the tag value.
    9190 '''<check>'''::
    92    A checkbox which the user can only select or deselect. The ''key'' attribute is mandatory. ''text'', ''default'' and ''required'' is optional.
     91   A checkbox which the user can only select or deselect. The ''key'' attribute is mandatory. ''text'', ''default'', ''match'' and ''required'' is optional.
    9392Set a key value pair:
    9493 '''<key>'''::
    95    This tag will always set a key to a specific value. ''key'' is required and if ''value'' is present, the key will be set. If ''value'' attribute is ommited, the key is removed.
     94   This tag will always set a key to a specific value. ''key'' is required and if ''value'' is present, the key will be set. If ''value'' attribute is ommited, the key is removed. ''match'' is optional.
    9695
    9796=== Attributes ===
     
    174173  key: key to set
    175174  value: value to set
    176   match: none/key/key!/keyvalue/keyvalue! (default is "keyvalue!", see below for more information)
    177175
    178176text: text box
     
    187185                  happens if the user selects it. default is no auto-increment;
    188186                  mutually exclusive with use_last_as_default.
    189   match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)
    190187  length: length of input box (number of characters allowed)
    191188  alternative_autocomplete_keys: comma separated list of alternative keys to use for autocompletion
     
    211208  use_last_as_default: true/false/force (default is "false")
    212209  editable: allow to add other values as text (default is "true")
    213   match: none/key/key!/keyvalue/keyvalue! (default is none, see below for more information)
    214210  values_searchable: true/false (whether to search in combo (display_)values when searching for presets)
    215211  length: length of input box (number of characters allowed)
     
    236232  default: default string to display (defaults to "")
    237233  use_last_as_default: true/false/force (default is "false")
    238   match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)
    239234  values_searchable: true/false (whether to search in multiselect (display_)values when searching for presets)
    240235
     
    249244  value_off: the value to set when unchecked (default is "no")
    250245  disable_off: whether the off value is disabled in the dialog, i.e., only unset or yes are provided
    251   match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)
    252246
    253247role: type to specify possible roles in relations
     
    283277are supplied, then "values" will be treated as "display_values" and translated instead.
    284278
    285 The match attribute allows to change the matching process, i.e., determining whether
    286 the tags of an OSM object fit into this preset.
    287  - none: neutral, i.e., do not consider this item for matching
    288  - key: positive if key matches, neutral otherwise
    289  - key!: positive if key matches, negative otherwise
    290  - keyvalue: positive if key and value matches, neutral otherwise
    291  - keyvalue!: positive if key and value matches, negative otherwise
    292 Note that for a match, at least one positive and no negative is required.
    293279}}}
    294280