Changes between Version 88 and Version 89 of TaggingPresets
- Timestamp:
- 2014-11-06T00:25:16+01:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v88 v89 96 96 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. 97 97 '''<check>''':: 98 A checkbox which the user can only select or deselect. The ''key'' attribute is mandatory. ''text'', ''default'', ''match'' and''required''isoptional.98 A checkbox which the user can only select or deselect (or set as unset). The ''key'' attribute is mandatory. ''text'', ''default'', ''match'', ''required'', ''value_on'' , ''value_off'' and ''disable_off'' are optional. 99 99 ==== Templates ==== 100 100 '''<chunk>''':: … … 122 122 Translation context for text attribute to separate equals words with different meaning (not required for in-file translations). 123 123 '''default="default_value"''':: 124 The default value for the item. If not specified, the current value of the key is chosen as default (if applicable). 124 The default value for the item. If not specified, the current value of the key is chosen as default (if applicable). In case of <check> whether the checkbox is ticked on or off by default (default is "off"). 125 125 '''values="entry1,entry2,entry3"''':: 126 126 A list of entries (for the combo box and multiselect). 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. … … 132 132 Specify a value to be entered in the <key> tag. 133 133 '''value_on="foobar"''':: 134 Specify the true value to be entered in the <key> tag (default is "yes"). 134 Specify the true value to be entered in the <key> tag of a checked <check> (default is "yes"). 135 135 '''value_off="foobar"''':: 136 Specify the false value to be entered in the <key> tag (default is "no"). 136 Specify the false value to be entered in the <key> tag of a unchecked <check> (default is "no"). 137 '''disable_off="true"''':: 138 Whether the off value of a <check> is disabled in the dialog, i.e., only unset or yes are provided. 137 139 '''editable="false"''':: 138 140 The combo box is readonly, which means that the user can only select an item in the list. … … 233 235 values_searchable: true/false (whether to search in multiselect (display_)values when searching for presets) 234 236 235 check: checkbox236 key: key to set237 text: fixed label to display238 default: ticked on/off (default is "off")239 value_on: the value to set when checked (default is "yes")240 value_off: the value to set when unchecked (default is "no")241 disable_off: whether the off value is disabled in the dialog, i.e., only unset or yes are provided242 243 237 }}} 244 238
