Changeset 3793 in josm


Ignore:
Timestamp:
2011-01-21T08:35:14+01:00 (9 years ago)
Author:
framm
Message:

add multiselect docs to defaultpresets

Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r3772 r3793  
    5050  use_last_as_default: true/false
    5151
     52multiselect: list of values from which zero or more can be selected
     53  key: key to set
     54  text: fixed label to display
     55  delimiter: character that separates values (default: semicolon) - this
     56             will also be used to separate selected values in the tag.
     57  values: delimiter-separated list of values (delimiter can be escaped with backslash)
     58  display_values: delimiter-separated list of values to be displayed instead of the
     59                  database values, order and number must be equal to values
     60  short_description: delimiter-separated list of texts to be displayed below each
     61                    display_value. (Only if it is not possible to describe
     62                    the entry in 2-3 words.) Instead of a separated list, you can
     63                    also write it in the following form:
     64                        <short_description>first description</short_description>
     65                                ...
     66                        <short_description>last description</short_description>
     67  default: default string to display
     68  delete_if_empty: true/false
     69  use_last_as_default: true/false
     70
    5271check: checkbox
    5372  key: key to set
  • trunk/data/tagging-preset.xsd

    r3741 r3793  
    7272                        <element name="text" type="tns:text" />
    7373                        <element name="combo" type="tns:combo" />
     74                        <element name="multiselect" type="tns:multiselect" />
    7475                        <element name="check" type="tns:check" />
    7576                </choice>
     
    129130                <attribute name="default" type="string" />
    130131                <attribute name="editable" type="boolean" />
     132                <attribute name="delete_if_empty" type="boolean" />
     133                <attribute name="required" type="boolean"/>
     134
     135                <attribute name="type" use="prohibited"/>
     136                <attribute name="value" use="prohibited"/>
     137                <attribute name="name" use="prohibited"/>
     138                <attribute name="delete-if-empty" use="prohibited"/>
     139                <attribute name="display-values" use="prohibited"/>
     140                <anyAttribute processContents="skip"/>
     141        </complexType>
     142
     143        <complexType name="multiselect">
     144                <attribute name="key" type="string" use="required" />
     145                <attribute name="text" type="string" />
     146                <attribute name="text_context" type="string" />
     147                <attribute name="values" type="string" use="required" />
     148                <attribute name="values_context" type="string" />
     149                <attribute name="display_values" type="string"/>
     150                <attribute name="default" type="string" />
     151                <attribute name="delimiter" type="string" />
    131152                <attribute name="delete_if_empty" type="boolean" />
    132153                <attribute name="required" type="boolean"/>
Note: See TracChangeset for help on using the changeset viewer.