Changes between Version 58 and Version 59 of TaggingPresets
- Timestamp:
- 2014-10-29T14:30:17+01:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v58 v59 81 81 Attribute entry and selection dialog boxes: 82 82 '''<text>''':: 83 A text edit field to enter any arbitrary string from the user. ''key'' is mandatory, ''text'', ''default'' and ''required'' is optional83 A text edit field to enter any arbitrary string from the user. ''key'' is mandatory, ''text'', ''default'', ''match'' and ''required'' is optional 84 84 '''<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. 86 86 If editable is true (default), combo boxes can be edited as if they were text fields (additional to the drop down menu). Non editable 87 87 combo boxes can only contain one of the specified values. 88 89 88 '''<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. 91 90 '''<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. 93 92 Set a key value pair: 94 93 '''<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. 96 95 97 96 === Attributes === … … 174 173 key: key to set 175 174 value: value to set 176 match: none/key/key!/keyvalue/keyvalue! (default is "keyvalue!", see below for more information)177 175 178 176 text: text box … … 187 185 happens if the user selects it. default is no auto-increment; 188 186 mutually exclusive with use_last_as_default. 189 match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)190 187 length: length of input box (number of characters allowed) 191 188 alternative_autocomplete_keys: comma separated list of alternative keys to use for autocompletion … … 211 208 use_last_as_default: true/false/force (default is "false") 212 209 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)214 210 values_searchable: true/false (whether to search in combo (display_)values when searching for presets) 215 211 length: length of input box (number of characters allowed) … … 236 232 default: default string to display (defaults to "") 237 233 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)239 234 values_searchable: true/false (whether to search in multiselect (display_)values when searching for presets) 240 235 … … 249 244 value_off: the value to set when unchecked (default is "no") 250 245 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)252 246 253 247 role: type to specify possible roles in relations … … 283 277 are supplied, then "values" will be treated as "display_values" and translated instead. 284 278 285 The match attribute allows to change the matching process, i.e., determining whether286 the tags of an OSM object fit into this preset.287 - none: neutral, i.e., do not consider this item for matching288 - key: positive if key matches, neutral otherwise289 - key!: positive if key matches, negative otherwise290 - keyvalue: positive if key and value matches, neutral otherwise291 - keyvalue!: positive if key and value matches, negative otherwise292 Note that for a match, at least one positive and no negative is required.293 279 }}} 294 280