Changeset 7667 in josm
- Timestamp:
- 2014-10-29T11:17:47+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/defaultpresets.xml
r7653 r7667 8 8 http://openclipart.org/media/view/media/clip_art 9 9 http://www.sjjb.co.uk/mapicons/ (meanwhile in osm svn) 10 11 Format description: https://josm.openstreetmap.de/wiki/TaggingPresets 10 12 --> 11 <!--12 item:13 name: the text to display14 icon: the icon to display15 - relative to the icon path16 - URL's are also supported to allow remote icons (are cached locally)17 type: the data types - way,node,relation,closedway (separated by comma)18 name_template: define custom formatting for OSM primitives19 see https://josm.openstreetmap.de/wiki/NameTemplate20 preset_name_label: whether to insert "[preset name]" label in dialog21 (defaults to "false" for backward-compatibility on external presets)22 13 23 group: a group of items (same syntax as "item")24 25 link: link to the relating map features website26 href: the URL27 28 preset_link: a link to an other preset29 preset_name: the exact name of the preset to link to30 31 label: simple static text label32 text: the text to display33 icon: location of icon to display (optional)34 icon_size: maximal size of icon (optional). If no value is given, default is 16px35 36 space: empty line37 38 optional: optional tags, short for "space" plus "label" plus "space"39 text: the text to display (defaults to "Optional Attributes:")40 41 separator: separator line in menus42 43 item_separator: horizontal separator line between items (in window)44 45 key: fixed key/value pair to be set46 key: key to set47 value: value to set48 match: none/key/key!/keyvalue/keyvalue! (default is "keyvalue!", see below for more information)49 50 text: text box51 key: key to set52 text: fixed label to display53 default: default string to display (defaults to "")54 use_last_as_default: true/false/force (default is "false")55 auto_increment: may contain a comma separated list of integer increments or56 decrements, e.g. "-2,-1,+1,+2"; a button will be shown next57 to the text field for each value, allowing the user to select58 auto-increment with the given stepping. auto-increment only59 happens if the user selects it. default is no auto-increment;60 mutually exclusive with use_last_as_default.61 match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)62 length: length of input box (number of characters allowed)63 alternative_autocomplete_keys: comma separated list of alternative keys to use for autocompletion64 65 combo: combo box, with multiple choices and possible to enter free form text66 key: key to set67 text: fixed label to display68 delimiter: character that separates values (default: comma)69 values: separated list of values70 values_from: to use instead of "values" if the list of values has to be obtained with a Java method71 of this form: public static String[] getValues();72 The value must be: "full.package.name.ClassName#methodName"73 display_values: comma separated list of values to be displayed instead of the74 database values, order and number must be equal to values75 short_descriptions: comma separated list of texts to be displayed below each76 display_value. (Only if it is not possible to describe77 the entry in 2-3 words.) Instead of comma separated list78 instead using values, display_values and short_descriptions, the following form is also supported:79 <list_entry value="" display_value="" short_description="" icon="" icon_size="" />80 icon: location of icon81 icon_size: maximal size of icon. If tag is not setup it is taken default size of icon file82 default: default string to display (defaults to "")83 use_last_as_default: true/false/force (default is "false")84 editable: allow to add other values as text (default is "true")85 match: none/key/key!/keyvalue/keyvalue! (default is none, see below for more information)86 values_searchable: true/false (whether to search in combo (display_)values when searching for presets)87 length: length of input box (number of characters allowed)88 89 multiselect: list of values from which zero or more can be selected90 key: key to set91 text: fixed label to display92 delimiter: character that separates values (default: semicolon) - this93 will also be used to separate selected values in the tag.94 values: delimiter-separated list of values (delimiter can be escaped with backslash)95 values_from: to use instead of "values" if the list of values has to be obtained with a Java method96 of this form: public static String[] getValues();97 The value must be: "full.package.name.ClassName#methodName"98 rows: specify the number of rows to display (default -1)99 display_values: delimiter-separated list of values to be displayed instead of the100 database values, order and number must be equal to values101 short_descriptions: delimiter-separated list of texts to be displayed below each102 display_value. (Only if it is not possible to describe103 the entry in 2-3 words.) Instead of a separated list104 instead using values, display_values and short_descriptions, the following form is also supported:105 <list_entry value="" display_value="' short_description="" icon="" icon_size="" />106 icon: location of icon107 icon_size: maximal size of icon. If tag is not setup it is taken default size of icon file108 default: default string to display (defaults to "")109 use_last_as_default: true/false/force (default is "false")110 match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)111 values_searchable: true/false (whether to search in multiselect (display_)values when searching for presets)112 113 checkgroup: group of checks114 columns: number of columns115 116 check: checkbox117 key: key to set118 text: fixed label to display119 default: ticked on/off (default is "off")120 value_on: the value to set when checked (default is "yes")121 value_off: the value to set when unchecked (default is "no")122 disable_off: whether the off value is disabled in the dialog, i.e., only unset or yes are provided123 match: none/key/key!/keyvalue/keyvalue! (default is "none", see below for more information)124 125 role: type to specify possible roles in relations126 key: the role name used in relation127 text: fixed label to display128 requisite: optional/required (default is "optional")129 count: how often can the role occur (if not given unlimited number is assumed)130 type: the data types - way,node,relation,closedway (separated by comma)131 member_expression: an expression (cf. search dialog) for objects of this role132 133 chunk: a template of elements for later (repeated) use134 id: the unique identifier for this chunk135 136 reference: include an earlier defined template137 ref: the unique identifier of the (already defined) template to include138 139 presets: For external files <presets> should have following attributes:140 author: the author of the preset141 version: a version number of some sort (e.g. creation date)142 description: what is your preset meant to be143 shortdescription: very short description144 link: a link to a helpful website (optional)145 icon: an icon for the whole presets146 The fields description, shortdescription and link may also be localized (e.g. de.link)147 148 See also https://josm.openstreetmap.de/wiki/TaggingPresets wiki page.149 150 The fields "name", "text", "display_values" may also be localized (e.g. de.name).151 When translations of equal words but different meanings may conflict, a translation152 context should be specified. Use "name_context", "text_context" or "values_context"153 for this. The context should be a meaningful short description to help translators.154 155 In JOSM internally all "name", "text" and "display_values" are translated when156 no specific translation has been given in XML file. When no "display_values"157 are supplied, then "values" will be treated as "display_values" and translated instead.158 159 The match attribute allows to change the matching process, i.e., determining whether160 the tags of an OSM object fit into this preset.161 - none: neutral, i.e., do not consider this item for matching162 - key: positive if key matches, neutral otherwise163 - key!: positive if key matches, negative otherwise164 - keyvalue: positive if key and value matches, neutral otherwise165 - keyvalue!: positive if key and value matches, negative otherwise166 Note that for a match, at least one positive and no negative is required.167 -->168 14 <!-- Item chunks --> 169 15 <chunk id="surface">
Note:
See TracChangeset
for help on using the changeset viewer.