source: josm/trunk/resources/data/tagging-preset.xsd@ 17605

Last change on this file since 17605 was 17605, checked in by simon04, 5 years ago

fix #19554 - Tagging presets: Icons for all preset input boxes

  • Property svn:eol-style set to native
File size: 32.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://josm.openstreetmap.de/tagging-preset-1.0"
3 xmlns:tns="http://josm.openstreetmap.de/tagging-preset-1.0"
4 elementFormDefault="qualified">
5
6 <!-- Localized attributes (for example de.description are not supported
7 by xsd, so every element needs <anyAttribute/> To cover at least some common
8 errors, elements have specified prohibited attributes -->
9
10 <element name="annotations" type="tns:root" />
11 <element name="presets" type="tns:root">
12 <unique name="chunk_id">
13 <selector xpath=".//tns:chunk"/>
14 <field xpath="@id"/>
15 </unique>
16 <keyref name="chunk_ref" refer="tns:chunk_id">
17 <selector xpath=".//tns:reference"/>
18 <field xpath="@ref"/>
19 </keyref>
20 </element>
21
22 <complexType name="root">
23 <annotation>
24 <documentation>
25 Has to be the main tag of the file.
26 </documentation>
27 </annotation>
28 <complexContent>
29 <extension base="tns:group-parent">
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>
78
79 <anyAttribute processContents="skip" />
80 </extension>
81 </complexContent>
82 </complexType>
83
84 <complexType name="group-parent">
85 <sequence>
86 <choice minOccurs="1" maxOccurs="unbounded">
87 <element name="chunk" type="tns:chunk"/>
88 <element name="group" type="tns:group" />
89 <element name="item" type="tns:item" />
90 <element name="separator" type="tns:separator" />
91 </choice>
92 </sequence>
93 <attributeGroup ref="tns:attributes.icon" />
94
95 <attribute name="type" use="prohibited" />
96 <attribute name="text" use="prohibited" />
97 <anyAttribute processContents="skip" />
98 </complexType>
99
100 <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>
106 <complexContent>
107 <extension base="tns:group-parent">
108 <attributeGroup ref="tns:attributes.name" />
109 </extension>
110 </complexContent>
111 </complexType>
112
113 <complexType name="separator">
114 <annotation>
115 <documentation>
116 Insert a line separator into the menu.
117 </documentation>
118 </annotation>
119 </complexType>
120
121 <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>
127 <sequence>
128 <choice minOccurs="0" maxOccurs="unbounded">
129 <group ref="tns:optional_elements" />
130 <element name="key" type="tns:key" />
131 <element name="optional" type="tns:optional" minOccurs="0" />
132 </choice>
133 <element name="roles" type="tns:roles" minOccurs="0" maxOccurs="1" />
134 </sequence>
135 <attributeGroup ref="tns:attributes.name" />
136 <attributeGroup ref="tns:attributes.icon" />
137 <attribute name="type" type="string">
138 <annotation>
139 <documentation><![CDATA[
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 <role> 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>
165
166 <attribute name="text" use="prohibited" />
167 <anyAttribute processContents="skip" />
168 </complexType>
169
170 <complexType name="optional">
171 <annotation>
172 <documentation><![CDATA[
173 Used to group some optional elements of an item. The text attribute is optional. If used without text then this is equivalent to <space ><label text="Optional Attributes:" /><space />
174 ]]></documentation>
175 </annotation>
176 <group ref="tns:optional_elements" maxOccurs="unbounded" />
177 <attributeGroup ref="tns:attributes.text" />
178 </complexType>
179
180 <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>
186 <choice minOccurs="1" maxOccurs="1">
187 <sequence>
188 <choice minOccurs="1" maxOccurs="unbounded">
189 <group ref="tns:optional_elements" />
190 <element name="key" type="tns:key" />
191 <element name="optional" type="tns:optional" minOccurs="0" />
192 <element name="roles" type="tns:roles" minOccurs="0" />
193 </choice>
194 </sequence>
195 <sequence>
196 <!-- Cannot use tns:list_elements here because reference is present both in optional_elements and list_elements
197 so it violates cos-nonambig: Unique Particle Attribution :
198 <group ref="tns:list_elements" minOccurs="1" maxOccurs="unbounded" />-->
199 <element name="list_entry" type="tns:list_entry" minOccurs="1" maxOccurs="unbounded" />
200 </sequence>
201 <sequence>
202 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
203 </sequence>
204 </choice>
205 <attribute name="id" type="ID" use="required">
206 <annotation>
207 <documentation><![CDATA[
208 The unique identifier for this <chunk>.
209 ]]></documentation>
210 </annotation>
211 </attribute>
212 </complexType>
213
214 <complexType name="reference">
215 <attribute name="ref" type="IDREF" use="required" />
216 </complexType>
217
218 <group name="optional_elements">
219 <choice>
220 <element name="label" type="tns:label" />
221 <element name="space" type="tns:space" />
222 <element name="link" type="tns:link" />
223 <element name="preset_link" type="tns:preset_link" />
224 <element name="text" type="tns:text" />
225 <element name="combo" type="tns:combo" />
226 <element name="multiselect" type="tns:multiselect" />
227 <element name="checkgroup" type="tns:checkgroup" />
228 <element name="check" type="tns:check" />
229 <element name="item_separator" type="tns:separator" />
230 <element name="reference" type="tns:reference" />
231 </choice>
232 </group>
233
234 <group name="list_elements">
235 <choice>
236 <element name="list_entry" type="tns:list_entry" />
237 <element name="reference" type="tns:reference" />
238 </choice>
239 </group>
240
241 <complexType name="key">
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><![CDATA[
257 Specify a value to be entered in the <key> tag.
258 ]]></documentation>
259 </annotation>
260 </attribute>
261 <attribute name="match" type="tns:match" />
262 </complexType>
263
264 <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>
270 <attribute name="wiki" type="string" />
271 <attribute name="href" type="string" />
272 <attributeGroup ref="tns:attributes.text" />
273 <attributeGroup ref="tns:attributes.icon" />
274
275 <attribute name="name" use="prohibited" />
276 <anyAttribute processContents="skip" />
277 </complexType>
278
279 <complexType name="preset_link">
280 <annotation>
281 <documentation><![CDATA[
282 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 <preset_link /> 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.
283 ]]></documentation>
284 </annotation>
285 <attribute name="preset_name" type="string" use="required">
286 <annotation>
287 <documentation>
288 The exact name of the preset to link to.
289 </documentation>
290 </annotation>
291 </attribute>
292 <attributeGroup ref="tns:attributes.text" />
293 <attribute name="name" use="prohibited" />
294 </complexType>
295
296 <complexType name="label">
297 <annotation>
298 <documentation>
299 Labels are static texts for display. text is a required attribute, icon and icon_size are optional.
300 </documentation>
301 </annotation>
302 <attributeGroup ref="tns:attributes.text" />
303 <attributeGroup ref="tns:attributes.icon" />
304
305 <attribute name="name" use="prohibited" />
306 <anyAttribute processContents="skip" />
307 </complexType>
308
309 <complexType name="space">
310 <annotation>
311 <documentation>
312 Add some space (i.e. a newline).
313 </documentation>
314 </annotation>
315 </complexType>
316
317 <complexType name="text">
318 <attributeGroup ref="tns:attributes.key" />
319 <attributeGroup ref="tns:attributes.text" />
320 <attributeGroup ref="tns:attributes.icon" />
321 <attribute name="use_last_as_default" type="tns:last_default" />
322 <attribute name="auto_increment" type="string">
323 <annotation>
324 <documentation><![CDATA[
325 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 <text /> 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.
326 ]]></documentation>
327 </annotation>
328 </attribute>
329 <attribute name="match" type="tns:match" />
330 <attributeGroup ref="tns:attributes.length" />
331 <attribute name="alternative_autocomplete_keys" type="string">
332 <annotation>
333 <documentation><![CDATA[
334 A comma separated list of alternative keys to use for auto completion of <text<.
335 ]]></documentation>
336 </annotation>
337 </attribute>
338
339 <attribute name="type" use="prohibited" />
340 <attribute name="name" use="prohibited" />
341 <attribute name="value" use="prohibited" />
342 <attribute name="values" use="prohibited" />
343 <anyAttribute processContents="skip" />
344 </complexType>
345
346 <complexType name="list_entry">
347 <annotation>
348 <documentation><![CDATA[
349 Used in <combo/> and <multiselect/>. More information see short_descriptions below. The attributes are value, display_value, short_description, icon and icon_size.
350 ]]></documentation>
351 </annotation>
352 <attribute name="value" type="string" use="required" />
353 <attribute name="value_context" type="string" />
354 <attribute name="display_value" type="string" />
355 <attribute name="short_description" type="string">
356 <annotation>
357 <documentation><![CDATA[
358 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: <list_entry value="" display_value="" short_description="" icon="" icon_size="" />
359 ]]></documentation>
360 </annotation>
361 </attribute>
362 <attributeGroup ref="tns:attributes.icon" />
363 <anyAttribute processContents="skip" />
364 </complexType>
365
366 <complexType name="combo">
367 <annotation>
368 <documentation>
369 <p>
370 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.
371 </p>
372 <p>
373 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.
374 </p>
375 <p>
376 If the key is colour or colour:* or *:colour, a color preview and color picker is added on the right (see #8352).
377 </p>
378 </documentation>
379 </annotation>
380 <!-- use either list_entry's or a combination of values/display_values -->
381 <sequence>
382 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
383 </sequence>
384 <attributeGroup ref="tns:attributes.key" />
385 <attributeGroup ref="tns:attributes.text" />
386 <attributeGroup ref="tns:attributes.icon" />
387 <attributeGroup ref="tns:attributes.values" />
388 <attribute name="use_last_as_default" type="tns:last_default" />
389 <attribute name="editable" type="boolean">
390 <annotation>
391 <documentation>
392 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.
393 </documentation>
394 </annotation>
395 </attribute>
396 <attribute name="match" type="tns:match" />
397 <attributeGroup ref="tns:attributes.length" />
398
399 <attribute name="type" use="prohibited" />
400 <attribute name="value" use="prohibited" />
401 <attribute name="name" use="prohibited" />
402 <attribute name="delete-if-empty" use="prohibited" />
403 <attribute name="display-values" use="prohibited" />
404 <anyAttribute processContents="skip" />
405 </complexType>
406
407 <complexType name="multiselect">
408 <!-- use either list_entry's or a combination of values/display_values -->
409 <sequence>
410 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
411 </sequence>
412 <attributeGroup ref="tns:attributes.key" />
413 <attributeGroup ref="tns:attributes.text" />
414 <attributeGroup ref="tns:attributes.icon" />
415 <attributeGroup ref="tns:attributes.values" />
416 <attribute name="use_last_as_default" type="tns:last_default" />
417 <attribute name="match" type="tns:match" />
418
419 <attribute name="type" use="prohibited" />
420 <attribute name="value" use="prohibited" />
421 <attribute name="name" use="prohibited" />
422 <attribute name="delete-if-empty" use="prohibited" />
423 <attribute name="display-values" use="prohibited" />
424 <anyAttribute processContents="skip" />
425 </complexType>
426
427 <complexType name="checkgroup">
428 <annotation>
429 <documentation>
430 To group checks. The columns attribute is required.
431 </documentation>
432 </annotation>
433 <sequence>
434 <choice minOccurs="1" maxOccurs="unbounded">
435 <element name="check" type="tns:check" />
436 </choice>
437 </sequence>
438 <attribute name="columns" type="positiveInteger">
439 <annotation>
440 <documentation><![CDATA[
441 the number of columns of grouped <check />
442 ]]></documentation>
443 </annotation>
444 </attribute>
445 <anyAttribute processContents="skip" />
446 </complexType>
447
448 <complexType name="check">
449 <attributeGroup ref="tns:attributes.key" />
450 <attributeGroup ref="tns:attributes.text" />
451 <attribute name="value_on" type="string">
452 <annotation>
453 <documentation><![CDATA[
454 Specify the true value to be entered in the <key /> tag of a checked <check /> (default is "yes").
455 ]]></documentation>
456 </annotation>
457 </attribute>
458 <attribute name="value_off" type="string">
459 <annotation>
460 <documentation><![CDATA[
461 Specify the false value to be entered in the <key /> tag of a checked <check /> (default is "no").
462 ]]></documentation>
463 </annotation>
464 </attribute>
465 <attribute name="disable_off" type="boolean">
466 <annotation>
467 <documentation><![CDATA[
468 Whether the off value of a <check /> is disabled in the dialog, i.e., only unset or "yes" are provided.
469 ]]></documentation>
470 </annotation>
471 </attribute>
472 <attribute name="match" type="tns:match" />
473 <attributeGroup ref="tns:attributes.icon" />
474
475 <attribute name="name" use="prohibited" />
476 <attribute name="type" use="prohibited" />
477 <attribute name="value" use="prohibited" />
478 <anyAttribute processContents="skip" />
479 </complexType>
480
481 <simpleType name="check_default">
482 <restriction base="string">
483 <enumeration value="on" />
484 <enumeration value="off" />
485 </restriction>
486 </simpleType>
487
488 <simpleType name="last_default">
489 <annotation>
490 <documentation><![CDATA[
491 For <combo />, <multiselect /> or <text /> fields the last used value is used as default. Using "force" enforces this behavior also for already tagged objects. Default is "false".
492 ]]></documentation>
493 </annotation>
494 <restriction base="string">
495 <enumeration value="true" />
496 <enumeration value="false" />
497 <enumeration value="force" />
498 </restriction>
499 </simpleType>
500
501 <simpleType name="match">
502 <annotation>
503 <documentation>
504 <p>
505 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.
506 </p>
507
508 <ul>
509 <li>none: neutral, i.e., do not consider this item for matching</li>
510 <li>key!: positive if key matches, negative otherwise</li>
511 <li>keyvalue: positive if key and value matches, neutral otherwise</li>
512 <li>keyvalue!: positive if key and value matches, negative otherwise</li>
513 </ul>
514
515 <p><![CDATA[
516 Note: For a match, at least one positive and no negative is required. Default is "keyvalue!" for <key> and "none" for <text />, <combo />, <multiselect /> and <check />.
517 ]]></p>
518 </documentation>
519 </annotation>
520 <restriction base="string">
521 <enumeration value="none" />
522 <enumeration value="key" />
523 <enumeration value="key!" />
524 <enumeration value="keyvalue" />
525 <enumeration value="keyvalue!" />
526 </restriction>
527 </simpleType>
528
529 <complexType name="roles">
530 <group ref="tns:roles_elements" maxOccurs="unbounded" />
531 </complexType>
532
533 <group name="roles_elements">
534 <choice>
535 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
536 <element name="reference" type="tns:reference" />
537 </choice>
538 </group>
539
540 <complexType name="role">
541 <annotation>
542 <documentation>
543 To specify possible roles of members in relations. The key attribute is required, text, requisite, count, type and member_expression are optional.
544 </documentation>
545 </annotation>
546 <attribute name="key" type="string">
547 <annotation>
548 <documentation>
549 The role name used in a relation.
550 </documentation>
551 </annotation>
552 </attribute>
553 <attributeGroup ref="tns:attributes.text" />
554 <attribute name="requisite" type="tns:role_requisite" />
555 <attribute name="type" type="string" />
556 <attribute name="count" type="integer" />
557 <attribute name="member_expression" type="string" />
558 <attribute name="regexp" type="boolean" />
559 <anyAttribute processContents="skip" />
560 </complexType>
561
562 <simpleType name="role_requisite">
563 <annotation>
564 <documentation>
565 If a relation member is optional or required. Default is "optional".
566 </documentation>
567 </annotation>
568 <restriction base="string">
569 <enumeration value="required" />
570 <enumeration value="optional" />
571 </restriction>
572 </simpleType>
573
574 <!-- Types and documentation for attributes -->
575
576 <attributeGroup name="attributes.name">
577 <attribute name="name" type="string" use="required">
578 <annotation>
579 <documentation>
580 Specify a name for an item. This name will be used in the GUI to display the tagging preset.
581 </documentation>
582 </annotation>
583 </attribute>
584 <attribute name="name_context" type="string">
585 <annotation>
586 <documentation>
587 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
588 </documentation>
589 </annotation>
590 </attribute>
591 </attributeGroup>
592
593 <attributeGroup name="attributes.key">
594 <attribute name="key" type="string" use="required">
595 <annotation>
596 <documentation>
597 This specifies the property key that will be modified by the item.
598 </documentation>
599 </annotation>
600 </attribute>
601 <attribute name="default" type="string">
602 <annotation>
603 <documentation><![CDATA[
604 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 >check /<, >text /<, >combo /< and >multiselect /<.
605 ]]></documentation>
606 </annotation>
607 </attribute>
608 </attributeGroup>
609
610 <attributeGroup name="attributes.text">
611 <attribute name="text" type="string">
612 <annotation>
613 <documentation><![CDATA[
614 The description, that will be displayed before (after in case of <check />) the gui element. Also used for <label> and <optional>.
615 ]]></documentation>
616 </annotation>
617 </attribute>
618 <attribute name="text_context" type="string">
619 <annotation>
620 <documentation>
621 Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
622 </documentation>
623 </annotation>
624 </attribute>
625 </attributeGroup>
626
627 <attributeGroup name="attributes.values">
628 <attribute name="values" type="string">
629 <annotation>
630 <documentation>
631 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.
632 </documentation>
633 </annotation>
634 </attribute>
635 <attribute name="values_from" type="string">
636 <annotation>
637 <documentation>
638 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".
639 </documentation>
640 </annotation>
641 </attribute>
642 <attribute name="values_context" type="string">
643 <annotation>
644 <documentation>
645 Translation context for values attribute to separate equals words with different meaning (not required for in-file translations).
646 </documentation>
647 </annotation>
648 </attribute>
649 <attribute name="values_no_i18n" type="boolean">
650 <annotation>
651 <documentation>
652 Disables internationalisation for value to avoid mistakes, see #11696. Default is "false". (Useful e.g. for opening hours or brand names.)
653 </documentation>
654 </annotation>
655 </attribute>
656 <attribute name="values_sort" type="boolean">
657 <annotation>
658 <documentation>
659 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 />
660 Users can globally disable sorting with the preference key taggingpreset.sortvalues.
661 </documentation>
662 </annotation>
663 </attribute>
664 <attribute name="display_values" type="string">
665 <annotation>
666 <documentation>
667 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.
668 </documentation>
669 </annotation>
670 </attribute>
671 <attribute name="values_searchable" type="boolean">
672 <annotation>
673 <documentation>
674 Whether to search in (display_)values when searching for presets.
675 </documentation>
676 </annotation>
677 </attribute>
678 <attribute name="delimiter" type="string">
679 <annotation>
680 <documentation><![CDATA[
681 The character that separates values. In case of <combo /> the default is comma. In case of <multiselect /> the default is semicolon and this will also be used to separate selected values in the tag.
682 ]]></documentation>
683 </annotation>
684 </attribute>
685 </attributeGroup>
686
687 <attributeGroup name="attributes.icon">
688 <attribute name="icon" type="string">
689 <annotation>
690 <documentation><![CDATA[
691 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 <item>, <label /> and <list_entry />. The icon should be quadratic in size. See Icon handling how icons can be specified.
692 ]]></documentation>
693 </annotation>
694 </attribute>
695 <attribute name="icon_size" type="integer">
696 <annotation>
697 <documentation><![CDATA[
698 The maximal size of an icon in px. If no value is given, default is 16 for <label /> and the default icon size for <list_entry /> (in <combo> and <multiselect>).
699 ]]></documentation>
700 </annotation>
701 </attribute>
702 </attributeGroup>
703
704 <attributeGroup name="attributes.length">
705 <attribute name="length" type="positiveInteger">
706 <annotation>
707 <documentation><![CDATA[
708 The length of a <text /> or <combo /> box (number of characters allowed).
709 ]]></documentation>
710 </annotation>
711 </attribute>
712 </attributeGroup>
713
714</schema>
Note: See TracBrowser for help on using the repository browser.