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§
- Change
Token - One-shot handle for a staged
PropertyModel::request_changedecision (P5). - Pending
Change - A staged user edit awaiting a one-shot decision (P5).
- Property
Id - Stable identifier for one node in a
PropertyModel. - Property
Model - Hierarchical typed property model (capability groups P1, P2, P4, P5).
- Property
Node - One node in a
PropertyModel. - Property
Row - One projected row produced by
PropertyModel::rows.
Enums§
- Denial
Reason - Why a staged change was discarded (P5).
- Projection
Mode - How
PropertyModel::rowsprojects the tree. - Property
Editor - Editor family compatible with a
PropertyValue(capability groups P1/P3). - Property
Error - Errors returned by the property model.
- Property
Event - One ordered model event (P5).
- Property
Node Kind - What a node represents: a group row or an editable property.
- Property
Value - The portable property value set (capability group P1).
Type Aliases§
- Property
Result - Result type for property model operations.