diff --git a/doc/function/combined_editor.txt b/doc/function/combined_editor.txt index 8a9f775c..6438505b 100644 --- a/doc/function/combined_editor.txt +++ b/doc/function/combined_editor.txt @@ -13,16 +13,18 @@ When the field changes the underlying values are updated and vice versa. Note: @forward_editor@ and @combined_editor@ are the same function. --Parameters-- -! Parameter Type Description -| @field@ [[type:value#text|text value]] Text value to edit -| @field1@ [[type:value#text|text value]] Another text value to edit -| @field2@ [[type:value#text|text value]] ''etc.'' -| @separator@ [[type:string]] Separator between field 1 and 2 -| @separator1@ [[type:string]] Multiple separators -| @separator2@ [[type:string]] Next separator, ''etc.'' -| @hide when empty@ [[type:boolean]] Don't include separators if the entire value is empty. -| @soft before empty@ [[type:boolean]] Make separators 'soft' when the value folowing it is empty. - Soft separators are hidden by default and shown grayed when the field is selected. +! Parameter Type Default Description +| @field@ [[type:value#text|text value]] Text value to edit +| @field1@ [[type:value#text|text value]] Another text value to edit +| @field2@ [[type:value#text|text value]] ''etc.'' +| @separator@ [[type:string]] Separator between field 1 and 2 +| @separator1@ [[type:string]] Multiple separators +| @separator2@ [[type:string]] Next separator, ''etc.'' +| @prefix@ [[type:string]] ''optional'' Prefix before the combined editor; like a separtor between the start and the first field. +| @suffix@ [[type:string]] ''optional'' Suffix after the combined editor; like a separtor between the last field and the end. +| @hide when empty@ [[type:boolean]] @false@ Don't include separators if the entire value is empty. +| @soft before empty@ [[type:boolean]] @false@ Make separators 'soft' when the value folowing it is empty. + Soft separators are hidden by default and shown grayed when the field is selected. --Examples-- >card field: diff --git a/doc/type/style.txt b/doc/type/style.txt index c8459e9b..4a81609d 100644 --- a/doc/type/style.txt +++ b/doc/type/style.txt @@ -55,7 +55,8 @@ The rest of the properties depend on the type of [[type:field]] this style is fo ! Type Property Type Default Description | @"text"@ @font@ [[type:font]] ''Required'' Font to render the text. | ^^^ @symbol font@ [[type:symbol font]] Font to render symbols in the text (optional). -| ^^^ @always symbol@ [[type:boolean]] @false@ Should all text be rendered with symbols?
If set, @font@ is not needed. +| ^^^ @always symbol@ [[type:boolean]] @false@ Should all text be rendered with symbols?
+ Text that is not supported by the symbol font is still rendered as normal text. | ^^^ @allow formating@ [[type:boolean]] @true@ Is custom formating (bold, italic) allowed? | ^^^ @alignment@ [[type:scriptable]] [[type:alignment]] @top left@ Alignment of the text. | ^^^ @angle@ [[type:scriptable]] [[type:int]] @0@ Rotation of the text inside the box, in degrees. @@ -72,6 +73,9 @@ The rest of the properties depend on the type of [[type:field]] this style is fo A line height of @0@ means all lines are in the same position, @1@ is normal behaviour, @2@ skips a line, etc. | ^^^ @line height hard@ [[type:double]] @1@ Multiplier for the line height of 'hard' line breaks. These are breaks caused by the enter key. | ^^^ @line height line@ [[type:double]] @1@ Multiplier for the line height of 'soft' line breaks. These are breaks caused by @"\n"@ tags. +| ^^^ @line height soft max@ ^^^ ''disabled'' When there is still vertical room in the text box, increase the line heights to at most these values to spread the text more evenly. +| ^^^ @line height hard max@ ^^^ ^^^ ^^^ +| ^^^ @line height line max@ ^^^ ^^^ ^^^ | ^^^ @mask@ [[type:filename]] ''none'' A mask that indicates where in the box text can be placed.
Text is never put in black areas of the box:
diff --git a/doc/type/tagged_string.txt b/doc/type/tagged_string.txt index fbc569b0..7815d9e4 100644 --- a/doc/type/tagged_string.txt +++ b/doc/type/tagged_string.txt @@ -36,6 +36,8 @@ This is written as the character with code 1 in files. | @""@ A separator between fields. This tag is automatically inserted by the [[fun:combined_editor]] function.
Inserting this tag manually will confuse that function!
This tag can never be selected, and its contents can not be edited. +| @""@ At the beginning of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function. +| @""@ At the end of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function. | @""@ Like @""@, only hidden. This is inserted by [[fun:combined_editor]] | @""@ Text who's width is ignored for alignment, similair to @""@, but not a separator. | @""@ Indicate that the text inside the tag should be selected from a [[type:word list]]. diff --git a/src/data/set.cpp b/src/data/set.cpp index d6a8634e..db958fae 100644 --- a/src/data/set.cpp +++ b/src/data/set.cpp @@ -13,6 +13,7 @@ #include #include #include // for 0.2.7 fix +#include #include // for 0.2.7 fix #include #include