- Anonymous
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
vocx-fc | yorik | master | 2020-06-07 05:43:33 | master d3d904e3 |
Changeset | Draft: combine two types of labels using functions We use smaller functions to return a list of strings corresponding to each basic value of `LabelType`. Then the final `Text` value can be defined as a simple value, or as the concatenation of two smaller lists, depending on the value of `LabelType`. Since we have 8 basic values, we could return up to 8^2 combinations, but at the moment we only return 8 basic values and 5 simple combinations, which are the ones that make the most sense. In the future we could define new properties, say, `LabelType2` and `LabelType3`, to be able to combine two or three types of strings in an arbitrary fashion. At the moment, the possible combinations are hard coded in `LabelType`. |
|||
mod - src/Mod/Draft/draftobjects/label.py | Diff File |