Skip to main content

Module properties

Module properties 

Source
Expand description

PropertyGrid typed property model — capability groups P1, P2, P4, and P5.

A backend-agnostic, Rust-owned model for hierarchical typed properties: stable PropertyIds, the portable value/editor vocabulary, categories and nested children, expansion state, and categorized / category-free projections, plus the mutation/lookup surface, the staged PropertyEvent::Changing veto protocol with default-deny answers, the ordered PropertyEvent log, and per-node dirty/validation state. No widget, no backend method, and no editor rendering lives here — the future property-grid facade (advanced-control RFC) wraps this model. See docs/widget-expansion-roadmap.md (“PropertyGrid typed property model” and its paragraphs) for the design and evidence rules.

§Edit paths

PropertyModel::set_value is the programmatic path: it applies immediately, is blocked only by read_only, emits exactly one PropertyEvent::Changed per real value change, and emits nothing (and marks nothing dirty) for a no-op set. The user-edit path is two-phase: PropertyModel::request_change stages a PendingChange and emits PropertyEvent::Changing; exactly one of PropertyModel::commit_change (applies, emits Changed) or a denial (PropertyModel::deny_change, PropertyModel::timeout_change, PropertyModel::resolve_change, supersede, or withdrawal) follows, and a denied proposal never touches the stored value.

Structs§

ChangeToken
One-shot handle for a staged PropertyModel::request_change decision (P5).
PendingChange
A staged user edit awaiting a one-shot decision (P5).
PropertyId
Stable identifier for one node in a PropertyModel.
PropertyModel
Hierarchical typed property model (capability groups P1, P2, P4, P5).
PropertyNode
One node in a PropertyModel.
PropertyRow
One projected row produced by PropertyModel::rows.

Enums§

DenialReason
Why a staged change was discarded (P5).
ProjectionMode
How PropertyModel::rows projects the tree.
PropertyEditor
Editor family compatible with a PropertyValue (capability groups P1/P3).
PropertyError
Errors returned by the property model.
PropertyEvent
One ordered model event (P5).
PropertyNodeKind
What a node represents: a group row or an editable property.
PropertyValue
The portable property value set (capability group P1).

Type Aliases§

PropertyResult
Result type for property model operations.