Changeset 16638 in josm


Ignore:
Timestamp:
2020-06-14T18:57:34+02:00 (4 weeks ago)
Author:
simon04
Message:

fix #19282 - Add documentation from wiki to tagging-preset.xsd (patch by hiddewie)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/tagging-preset.xsd

    r16280 r16638  
    2121
    2222    <complexType name="root">
     23        <annotation>
     24            <documentation>
     25                Has to be the main tag of the file.
     26            </documentation>
     27        </annotation>
    2328        <complexContent>
    2429            <extension base="tns:group-parent">
    25                 <attribute name="author" type="string" />
    26                 <attribute name="version" type="string" />
    27                 <attribute name="shortdescription" type="string" />
    28                 <attribute name="description" type="string" />
    29                 <attribute name="link" type="string" />
    30                 <attribute name="baselanguage" type="string" />
     30                <attribute name="author" type="string">
     31                    <annotation>
     32                        <documentation>
     33                            The name of the author of the preset.
     34                        </documentation>
     35                    </annotation>
     36                </attribute>
     37                <attribute name="version" type="string">
     38                    <annotation>
     39                        <documentation>
     40                            The version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: [[revision]] (the latest version number of the wiki page) and [[date]] (the date of the last edit), e.g. version="1.[[revision]]_[[date]]".
     41                        </documentation>
     42                    </annotation>
     43                </attribute>
     44                <attribute name="shortdescription" type="string">
     45                    <annotation>
     46                        <documentation>
     47                            Very short overview description i.e. the "name" of the preset.
     48                            <br/>
     49                            May be localized (i.e. de.shortdescription)
     50                        </documentation>
     51                    </annotation>
     52                </attribute>
     53                <attribute name="description" type="string">
     54                    <annotation>
     55                        <documentation>
     56                            Description what the file contains.
     57                            <br/>
     58                            May be localized (i.e. de.description)
     59                        </documentation>
     60                    </annotation>
     61                </attribute>
     62                <attribute name="link" type="string">
     63                    <annotation>
     64                        <documentation>
     65                            Web link to further details.
     66                            <br/>
     67                            May be localized (i.e. de.link)
     68                        </documentation>
     69                    </annotation>
     70                </attribute>
     71                <attribute name="baselanguage" type="string">
     72                    <annotation>
     73                        <documentation>
     74                            When the base language is not English, specify it here (using non English preset texts will prevent automatic translation, once it is implemented (#11392)).
     75                        </documentation>
     76                    </annotation>
     77                </attribute>
    3178
    3279                <anyAttribute processContents="skip" />
     
    4491            </choice>
    4592        </sequence>
    46         <attribute name="icon" type="string" />
     93        <attributeGroup ref="tns:attributes.icon" />
    4794
    4895        <attribute name="type" use="prohibited" />
     
    5299
    53100    <complexType name="group">
     101        <annotation>
     102            <documentation>
     103                Used to group items in sub menus. name is required, icon is optional attribute.
     104            </documentation>
     105        </annotation>
    54106        <complexContent>
    55107            <extension base="tns:group-parent">
    56                 <attribute name="name" type="string" use="required" />
     108                <attributeGroup ref="tns:attributes.name" />
    57109            </extension>
    58110        </complexContent>
    59111    </complexType>
    60112
    61     <complexType name="separator" />
     113    <complexType name="separator">
     114        <annotation>
     115            <documentation>
     116                Insert a line separator into the menu.
     117            </documentation>
     118        </annotation>
     119    </complexType>
    62120
    63121    <complexType name="item">
     122        <annotation>
     123            <documentation>
     124                Every item is one annotation set to select from. name is required, type and preset_name_label are recommended, icon and name_template are optional attributes.
     125            </documentation>
     126        </annotation>
    64127        <sequence>
    65128            <choice minOccurs="0" maxOccurs="unbounded">
     
    70133            <element name="roles" type="tns:roles" minOccurs="0" maxOccurs="1" />
    71134        </sequence>
    72         <attribute name="name" type="string" use="required" />
    73         <attribute name="icon" type="string" />
    74         <attribute name="type" type="string" />
    75         <attribute name="name_template" type="string"/>
    76         <attribute name="name_template_filter" type="string"/>
    77         <attribute name="preset_name_label" type="boolean"/>
     135        <attributeGroup ref="tns:attributes.name" />
     136        <attributeGroup ref="tns:attributes.icon" />
     137        <attribute name="type" type="string">
     138            <annotation>
     139                <documentation>
     140                    When specified, only objects of the given type will work with this tagging preset. Can be "node", "way", "closedway", "multipolygon", "relation" or any comma separated combination of them. Note that "multipolygon" is not included in "relation", so if the preset should apply for multipolygons and other relation types, you need to specify both: "multipolygon,relation". Also used in the &lt;role&gt; tag to specify which object types are allowed for a specific relation member.
     141                </documentation>
     142            </annotation>
     143        </attribute>
     144        <attribute name="name_template" type="string">
     145            <annotation>
     146                <documentation>
     147                    Custom name formatter for OSM primitives matching this preset. See #name_templatedetails for details.
     148                </documentation>
     149            </annotation>
     150        </attribute>
     151        <attribute name="name_template_filter" type="string">
     152            <annotation>
     153                <documentation>
     154                    Name templates can be used to define custom formatting for OSM primitives or GPX waypoints (for example in the Relations or the Selection).
     155                </documentation>
     156            </annotation>
     157        </attribute>
     158        <attribute name="preset_name_label" type="boolean">
     159            <annotation>
     160                <documentation>
     161                    Whether to insert "[preset name]" label in dialog (defaults to "false" for backward-compatibility on external presets).
     162                </documentation>
     163            </annotation>
     164        </attribute>
    78165
    79166        <attribute name="text" use="prohibited" />
     
    82169
    83170    <complexType name="optional">
     171        <annotation>
     172            <documentation>
     173                Used to group some optional elements of an item. The text attribute is optional. If used without text then this is equivalent to &lt;space &gt;&lt;label text="Optional Attributes:" /&gt;&lt;space /&gt;
     174            </documentation>
     175        </annotation>
    84176        <group ref="tns:optional_elements" maxOccurs="unbounded" />
    85         <attribute name="text" type="string" />
    86         <attribute name="text_context" type="string" />
     177        <attributeGroup ref="tns:attributes.text" />
    87178    </complexType>
    88179
    89180    <complexType name="chunk">
     181        <annotation>
     182            <documentation>
     183                To define a template of elements for later (repeated) use. The id attribute is mandatory.
     184            </documentation>
     185        </annotation>
    90186        <choice minOccurs="1" maxOccurs="1">
    91187            <sequence>
     
    107203            </sequence>
    108204        </choice>
    109         <attribute name="id" type="ID" use="required" />
     205        <attribute name="id" type="ID" use="required">
     206            <annotation>
     207                <documentation>
     208                    The unique identifier for this &gt;chunk&lt;.
     209                </documentation>
     210            </annotation>
     211        </attribute>
    110212    </complexType>
    111213
     
    138240
    139241    <complexType name="key">
    140         <attribute name="key" type="string" use="required" />
    141         <attribute name="value" type="string" />
    142         <attribute name="match" type="string" />
     242        <annotation>
     243            <documentation>
     244                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 omitted, the key is removed. The match attribute is optional.
     245            </documentation>
     246        </annotation>
     247        <attribute name="key" type="string" use="required">
     248            <annotation>
     249                <documentation>
     250                    This specifies the property key that will be modified by the item.
     251                </documentation>
     252            </annotation>
     253        </attribute>
     254        <attribute name="value" type="string">
     255            <annotation>
     256                <documentation>
     257                    Specify a value to be entered in the &lt;key&gt; tag.
     258                </documentation>
     259            </annotation>
     260        </attribute>
     261        <attribute name="match" type="tns:match" />
    143262    </complexType>
    144263
    145264    <complexType name="link">
     265        <annotation>
     266            <documentation>
     267                Specify a web link for this feature or to anything else of use. Either the wiki (referring to an OSM wiki page, e.g. "Tag:leisure=park") or the href (full URL) attribute is required. When the wiki attribute is used the link points to the wiki page of the language JOSM is set to. If it doesn't exist the English page is shown.
     268            </documentation>
     269        </annotation>
    146270        <attribute name="wiki" type="string" />
    147271        <attribute name="href" type="string" />
    148         <attribute name="text" type="string" />
    149         <attribute name="text_context" type="string" />
     272        <attributeGroup ref="tns:attributes.text" />
    150273
    151274        <attribute name="name" use="prohibited" />
     
    154277
    155278    <complexType name="preset_link">
    156         <attribute name="preset_name" type="string" use="required" />
    157         <attribute name="text" type="string" />
    158         <attribute name="text_context" type="string" />
     279        <annotation>
     280            <documentation>
     281                Adds a link to an other preset with a label on top. The preset_name attribute is required, text to override the label (default is "Edit also …") and text_context are optional. A sequence of &lt;preset_link /&gt; without text or a identical text value are grouped below one label. Watch out for presets with identical name as it is not predictable to which preset the link will lead to, see #12716.
     282            </documentation>
     283        </annotation>
     284        <attribute name="preset_name" type="string" use="required">
     285            <annotation>
     286                <documentation>
     287                    The exact name of the preset to link to.
     288                </documentation>
     289            </annotation>
     290        </attribute>
     291        <attributeGroup ref="tns:attributes.text" />
    159292        <attribute name="name" use="prohibited" />
    160293    </complexType>
    161294
    162295    <complexType name="label">
    163         <attribute name="text" type="string" use="required" />
    164         <attribute name="text_context" type="string" />
    165         <attribute name="icon" type="string" />
    166         <attribute name="icon_size" type="integer" />
     296        <annotation>
     297            <documentation>
     298                Labels are static texts for display. text is a required attribute, icon and icon_size are optional.
     299            </documentation>
     300        </annotation>
     301        <attributeGroup ref="tns:attributes.text" />
     302        <attributeGroup ref="tns:attributes.icon" />
    167303
    168304        <attribute name="name" use="prohibited" />
     
    170306    </complexType>
    171307
    172     <complexType name="space" />
     308    <complexType name="space">
     309        <annotation>
     310            <documentation>
     311                Add some space (i.e. a newline).
     312            </documentation>
     313        </annotation>
     314    </complexType>
    173315
    174316    <complexType name="text">
    175         <attribute name="key" type="string" use="required" />
    176         <attribute name="text" type="string" />
    177         <attribute name="text_context" type="string" />
    178         <attribute name="default" type="string" />
     317        <attributeGroup ref="tns:attributes.key" />
     318        <attributeGroup ref="tns:attributes.text" />
    179319        <attribute name="use_last_as_default" type="tns:last_default" />
    180         <attribute name="auto_increment" type="string" />
     320        <attribute name="auto_increment" type="string">
     321            <annotation>
     322                <documentation>
     323                    May contain a comma separated list of integer increments or decrements, e.g. "-2,-1,+1,+2". A button will be shown next to the &lt;text /&gt; field for each value, allowing the user to select auto-increment with the given stepping. Auto-increment only happens if the user selects it. There is also a button to deselect auto-increment. Default is no auto-increment. Mutually exclusive with use_last_as_default.
     324                </documentation>
     325            </annotation>
     326        </attribute>
    181327        <attribute name="match" type="tns:match" />
    182         <attribute name="length" type="positiveInteger" />
    183         <attribute name="alternative_autocomplete_keys" type="string" />
     328        <attributeGroup ref="tns:attributes.length" />
     329        <attribute name="alternative_autocomplete_keys" type="string">
     330            <annotation>
     331                <documentation>
     332                    A comma separated list of alternative keys to use for auto completion of &gt;text&lt;.
     333                </documentation>
     334            </annotation>
     335        </attribute>
    184336
    185337        <attribute name="type" use="prohibited" />
     
    191343
    192344    <complexType name="list_entry">
     345        <annotation>
     346            <documentation>
     347                Used in &lt;combo/&gt; and &lt;multiselect/&gt;. More information see short_descriptions below. The attributes are value, display_value, short_description, icon and icon_size.
     348            </documentation>
     349        </annotation>
    193350        <attribute name="value" type="string" use="required" />
    194351        <attribute name="value_context" type="string" />
    195352        <attribute name="display_value" type="string" />
    196         <attribute name="short_description" type="string" />
    197         <attribute name="icon" type="string" />
    198         <attribute name="icon_size" type="integer" />
     353        <attribute name="short_description" type="string">
     354            <annotation>
     355                <documentation>
     356                    A delimiter-separated list of texts to be displayed below each display_value. (Only if it is not possible to describe the entry in 2-3 words.) Instead of a comma separated list using values, display_values and short_descriptions, the following form is also supported: &lt;list_entry value="" display_value="" short_description="" icon="" icon_size="" /&gt;
     357                </documentation>
     358            </annotation>
     359        </attribute>
     360        <attributeGroup ref="tns:attributes.icon" />
    199361        <anyAttribute processContents="skip" />
    200362    </complexType>
    201363
    202364    <complexType name="combo">
     365        <annotation>
     366            <documentation>
     367                <p>
     368                    Displays a multiple choice combo box. key and values are mandatory, text, default, editable, delimiter, values_from, display_values, short_descriptions, use_last_as_default, values_searchable, length, values_no_i18n, values_sort and match is optional.
     369                </p>
     370                <p>
     371                    If editable is "true" (default), combo boxes can be edited as if they were text fields (additional to the drop down menu). Non editable combo boxes can only contain one of the specified values.
     372                </p>
     373                <p>
     374                    If the key is colour or colour:* or *:colour, a color preview and color picker is added on the right (see #8352).
     375                </p>
     376            </documentation>
     377        </annotation>
    203378        <!-- use either list_entry's or a combination of values/display_values -->
    204379        <sequence>
    205380            <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
    206381        </sequence>
    207         <attribute name="key" type="string" use="required" />
    208         <attribute name="text" type="string" />
    209         <attribute name="text_context" type="string" />
    210         <attribute name="values" type="string" />
    211         <attribute name="values_from" type="string" />
    212         <attribute name="values_context" type="string" />
    213         <attribute name="values_no_i18n" type="boolean" />
    214         <attribute name="values_sort" type="boolean" />
    215         <attribute name="display_values" type="string" />
    216         <attribute name="values_searchable" type="boolean" />
    217         <attribute name="default" type="string" />
     382        <attributeGroup ref="tns:attributes.key" />
     383        <attributeGroup ref="tns:attributes.text" />
     384        <attributeGroup ref="tns:attributes.values" />
    218385        <attribute name="use_last_as_default" type="tns:last_default" />
    219         <attribute name="delimiter" type="string" />
    220         <attribute name="editable" type="boolean" />
     386        <attribute name="editable" type="boolean">
     387            <annotation>
     388                <documentation>
     389                    The combo box is read only, which means that the user can only select an item in the list. Default is "true", which means, the user can add other values as text. Feature is broken, see #6157.
     390                </documentation>
     391            </annotation>
     392        </attribute>
    221393        <attribute name="match" type="tns:match" />
    222         <attribute name="length" type="positiveInteger" />
     394        <attributeGroup ref="tns:attributes.length" />
    223395
    224396        <attribute name="type" use="prohibited" />
     
    235407            <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
    236408        </sequence>
    237         <attribute name="key" type="string" use="required" />
    238         <attribute name="text" type="string" />
    239         <attribute name="text_context" type="string" />
    240         <attribute name="values" type="string" />
    241         <attribute name="values_from" type="string" />
    242         <attribute name="values_context" type="string" />
    243         <attribute name="display_values" type="string" />
    244         <attribute name="values_searchable" type="boolean" />
    245         <attribute name="default" type="string" />
     409        <attributeGroup ref="tns:attributes.key" />
     410        <attributeGroup ref="tns:attributes.text" />
     411        <attributeGroup ref="tns:attributes.values" />
    246412        <attribute name="use_last_as_default" type="tns:last_default" />
    247         <attribute name="delimiter" type="string" />
    248413        <attribute name="match" type="tns:match" />
    249414
     
    257422
    258423    <complexType name="checkgroup">
     424        <annotation>
     425            <documentation>
     426                To group checks. The columns attribute is required.
     427            </documentation>
     428        </annotation>
    259429        <sequence>
    260430            <choice minOccurs="1" maxOccurs="unbounded">
     
    262432            </choice>
    263433        </sequence>
    264         <attribute name="columns" type="positiveInteger" />
     434        <attribute name="columns" type="positiveInteger">
     435            <annotation>
     436                <documentation>
     437                    the number of columns of grouped &lt;check /&gt;
     438                </documentation>
     439            </annotation>
     440        </attribute>
    265441        <anyAttribute processContents="skip" />
    266442    </complexType>
    267443
    268444    <complexType name="check">
    269         <attribute name="key" type="string" use="required" />
    270         <attribute name="text" type="string" />
    271         <attribute name="text_context" type="string" />
    272         <attribute name="default" type="tns:check_default" />
    273         <attribute name="value_on" type="string" />
    274         <attribute name="value_off" type="string" />
    275         <attribute name="disable_off" type="boolean" />
     445        <attributeGroup ref="tns:attributes.key" />
     446        <attributeGroup ref="tns:attributes.text" />
     447        <attribute name="value_on" type="string">
     448            <annotation>
     449                <documentation>
     450                    Specify the true value to be entered in the &lt;key /&gt; tag of a checked &lt;check /&gt; (default is "yes").
     451                </documentation>
     452            </annotation>
     453        </attribute>
     454        <attribute name="value_off" type="string">
     455            <annotation>
     456                <documentation>
     457                    Specify the false value to be entered in the &lt;key /&gt; tag of a checked &lt;check /&gt; (default is "no").
     458                </documentation>
     459            </annotation>
     460        </attribute>
     461        <attribute name="disable_off" type="boolean">
     462            <annotation>
     463                <documentation>
     464                    Whether the off value of a &lt;check /&gt; is disabled in the dialog, i.e., only unset or "yes" are provided.
     465                </documentation>
     466            </annotation>
     467        </attribute>
    276468        <attribute name="match" type="tns:match" />
    277         <attribute name="icon" type="string" />
    278         <attribute name="icon_size" type="integer" />
     469        <attributeGroup ref="tns:attributes.icon" />
    279470
    280471        <attribute name="name" use="prohibited" />
     
    292483
    293484    <simpleType name="last_default">
     485        <annotation>
     486            <documentation>
     487                For &lt;combo /&gt;, &lt;multiselect /&gt; or &lt;text /&gt; fields the last used value is used as default. Using "force" enforces this behavior also for already tagged objects. Default is "false".
     488            </documentation>
     489        </annotation>
    294490        <restriction base="string">
    295491            <enumeration value="true" />
     
    300496
    301497    <simpleType name="match">
     498        <annotation>
     499            <documentation>
     500                <p>
     501                    Allows to change the matching process, i.e., determining whether the tags of an OSM object fit into this preset. If a preset fits then it is linked in the Tags/Membership dialog.
     502                </p>
     503
     504                <ul>
     505                    <li>none: neutral, i.e., do not consider this item for matching</li>
     506                    <li>key!: positive if key matches, negative otherwise</li>
     507                    <li>keyvalue: positive if key and value matches, neutral otherwise</li>
     508                    <li>keyvalue!: positive if key and value matches, negative otherwise</li>
     509                </ul>
     510
     511                <p>
     512                    Note: For a match, at least one positive and no negative is required. Default is "keyvalue!" for &lt;key&gt; and "none" for &lt;text />, &lt;combo /&gt;, &lt;multiselect /&gt; and &lt;check /&gt;.
     513                </p>
     514            </documentation>
     515        </annotation>
    302516        <restriction base="string">
    303517            <enumeration value="none" />
     
    321535
    322536    <complexType name="role">
    323         <attribute name="key" type="string" />
    324         <attribute name="text" type="string" />
    325         <attribute name="text_context" type="string" />
     537        <annotation>
     538            <documentation>
     539                To specify possible roles of members in relations. The key attribute is required, text, requisite, count, type and member_expression are optional.
     540            </documentation>
     541        </annotation>
     542        <attribute name="key" type="string">
     543            <annotation>
     544                <documentation>
     545                    The role name used in a relation.
     546                </documentation>
     547            </annotation>
     548        </attribute>
     549        <attributeGroup ref="tns:attributes.text" />
    326550        <attribute name="requisite" type="tns:role_requisite" />
    327551        <attribute name="type" type="string" />
     
    333557
    334558    <simpleType name="role_requisite">
     559        <annotation>
     560            <documentation>
     561                If a relation member is optional or required. Default is "optional".
     562            </documentation>
     563        </annotation>
    335564        <restriction base="string">
    336565            <enumeration value="required" />
     
    339568    </simpleType>
    340569
     570    <!-- Types and documentation for attributes -->
     571
     572    <attributeGroup name="attributes.name">
     573        <attribute name="name" type="string" use="required">
     574            <annotation>
     575                <documentation>
     576                    Specify a name for an item. This name will be used in the GUI to display the tagging preset.
     577                </documentation>
     578            </annotation>
     579        </attribute>
     580        <attribute name="name_context" type="string">
     581            <annotation>
     582                <documentation>
     583                    Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
     584                </documentation>
     585            </annotation>
     586        </attribute>
     587    </attributeGroup>
     588
     589    <attributeGroup name="attributes.key">
     590        <attribute name="key" type="string" use="required">
     591            <annotation>
     592                <documentation>
     593                    This specifies the property key that will be modified by the item.
     594                </documentation>
     595            </annotation>
     596        </attribute>
     597        <attribute name="default" type="string">
     598            <annotation>
     599                <documentation>
     600                    An explicitly declared default value for the item. This value is only applied through a preset when the object the preset is applied to has zero keys. If no value for default is specified, no value is set to the key. Used in &gt;check /&lt;, &gt;text /&lt;, &gt;combo /&lt; and &gt;multiselect /&lt;.
     601                </documentation>
     602            </annotation>
     603        </attribute>
     604    </attributeGroup>
     605
     606    <attributeGroup name="attributes.text">
     607        <attribute name="text" type="string">
     608            <annotation>
     609                <documentation>
     610                    The description, that will be displayed before (after in case of &gt;check /&lt;) the gui element. Also used for &gt;label&lt; and &gt;optional&lt;.
     611                </documentation>
     612            </annotation>
     613        </attribute>
     614        <attribute name="text_context" type="string">
     615            <annotation>
     616                <documentation>
     617                    Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
     618                </documentation>
     619            </annotation>
     620        </attribute>
     621    </attributeGroup>
     622
     623    <attributeGroup name="attributes.values">
     624        <attribute name="values" type="string">
     625            <annotation>
     626                <documentation>
     627                    A list of entries. The list has to be separated by commas (for the combo box) or by the specified delimiter (for the multiselect). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash.
     628                </documentation>
     629            </annotation>
     630        </attribute>
     631        <attribute name="values_from" type="string">
     632            <annotation>
     633                <documentation>
     634                    To use instead of values if the list of values has to be obtained with a Java method of this form: public static String[] getValues(); The value must be: "full.package.name.ClassName#methodName".
     635                </documentation>
     636            </annotation>
     637        </attribute>
     638        <attribute name="values_context" type="string">
     639            <annotation>
     640                <documentation>
     641                    Translation context for values attribute to separate equals words with different meaning (not required for in-file translations).
     642                </documentation>
     643            </annotation>
     644        </attribute>
     645        <attribute name="values_no_i18n" type="boolean">
     646            <annotation>
     647                <documentation>
     648                    Disables internationalisation for value to avoid mistakes, see #11696. Default is "false". (Useful e.g. for opening hours or brand names.)
     649                </documentation>
     650            </annotation>
     651        </attribute>
     652        <attribute name="values_sort" type="boolean">
     653            <annotation>
     654                <documentation>
     655                    Values of are sorted alphabetic in every language. With this attribute you can disable the alphabetic sorting if the values should keep the given order, see #5509 and #11926. (In the JOSM internal preset this is used e.g. for the keys tracktype, direction, network, smoothness, visibility or trail_visibility.) Default is "true".<br />
     656                    Users can globally disable sorting with the preference key taggingpreset.sortvalues.
     657                </documentation>
     658            </annotation>
     659        </attribute>
     660        <attribute name="display_values" type="string">
     661            <annotation>
     662                <documentation>
     663                    A list of entries that is displayed to the user. Must be the same number and order of entries as values and editable must be "false" or not specified. For the delimiter character and escaping, see the remarks at values.
     664                </documentation>
     665            </annotation>
     666        </attribute>
     667        <attribute name="values_searchable" type="boolean">
     668            <annotation>
     669                <documentation>
     670                    Whether to search in (display_)values when searching for presets.
     671                </documentation>
     672            </annotation>
     673        </attribute>
     674        <attribute name="delimiter" type="string">
     675            <annotation>
     676                <documentation>
     677                    The character that separates values. In case of &lt;combo /&gt; the default is comma. In case of &lt;multiselect /&gt; the default is semicolon and this will also be used to separate selected values in the tag.
     678                </documentation>
     679            </annotation>
     680        </attribute>
     681    </attributeGroup>
     682
     683    <attributeGroup name="attributes.icon">
     684        <attribute name="icon" type="string">
     685            <annotation>
     686                <documentation>
     687                    A name or link to an icon. The image will be used as icon to display in the selection list and when adding the preset to the toolbar. Icons can also be used in &gt;item&gt;, &gt;label /&gt; and &gt;list_entry /&gt;. The icon should be quadratic in size. See Icon handling how icons can be specified.
     688                </documentation>
     689            </annotation>
     690        </attribute>
     691        <attribute name="icon_size" type="integer">
     692            <annotation>
     693                <documentation>
     694                    The maximal size of an icon in px. If no value is given, default is 16 for &gt;label /&gt; and the default icon size for &gt;list_entry /&gt; (in &gt;combo&gt; and &gt;multiselect&gt;).
     695                </documentation>
     696            </annotation>
     697        </attribute>
     698    </attributeGroup>
     699
     700    <attributeGroup name="attributes.length">
     701        <attribute name="length" type="positiveInteger">
     702            <annotation>
     703                <documentation>
     704                    The length of a &gt;text /&gt; or &gt;combo /&gt; box (number of characters allowed).
     705                </documentation>
     706            </annotation>
     707        </attribute>
     708    </attributeGroup>
     709
    341710</schema>
Note: See TracChangeset for help on using the changeset viewer.