TemplateChanged

data class TemplateChanged(val path: List<Int>, val names: List<String>, val before: Topology.ChildTemplate, val after: Topology.ChildTemplate) : TopologyChange

The group's template went from before to after. A new template weight restarts the share of every attached child; a new ceiling keeps their history. The same holds a level down for a nested template: a new weight there restarts every child attached beneath an attached one, and a nested template going closes them all, while one arriving turns each attached leaf into a group and keeps its history.

Constructors

Link copied to clipboard
constructor(path: List<Int>, names: List<String>, before: Topology.ChildTemplate, after: Topology.ChildTemplate)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val names: List<String>

the names along path, starting with the root's, so it always holds one more entry than path. None is empty.

Link copied to clipboard
open override val path: List<Int>

the child indices from the root to the node this change concerns; [] only for RootRenamed. Every index is >= 0.

Link copied to clipboard

What LocalHeddle.apply does to fairness history when it lands this change: SaveEffect.LOST for a change that costs a group its history, the one to warn about before saving; SaveEffect.KEPT for one that costs nobody any; and SaveEffect.NEW_TREE for the one apply throws on, which an editor refuses to save rather than warns about.