Skip to main content

egui_pop_model/
lib.rs

1//! The logic of egui-pop applications, without egui (layer L1, see
2//! ADR 0001): tested fast and headless, and untouched by egui bumps.
3//!
4//! - [`ids`]: typed ids, one per namespace, serialized as strings;
5//! - [`diagnostics`]: what registration ignored or changed, said out loud;
6//! - [`registry`]: items tagged with their owner, removable by owner;
7//! - [`when`]: context clauses (`listFocus && !textInputFocus`);
8//! - [`clock`]: where "now" comes from, injected so tests fix it;
9//! - [`commands`]: every action named, run the same way from anywhere;
10//! - [`clipboard`]: the clipboard's pure parts (ADR 0015): formats,
11//!   items, slots, boundaries, the negotiation of a paste;
12//! - [`context`]: the context stack (places and modes, ADR 0012): its
13//!   frames, its state, a pure `apply` and `restore`, its documents;
14//! - [`field`]: a field's state (modified, required, invalid, disabled
15//!   with a reason, read-only, pending);
16//! - [`fuzzy`]: fuzzy matching and ranking for search fields;
17//! - [`links`]: links' pure parts (ADR 0017): a target parsed and
18//!   classified, the request to open it, the policy deciding how and
19//!   whether to confirm;
20//! - [`keymap`]: keys bound to commands in layers, resolved by focus
21//!   depth, with removal, unbinding and a resolution trace;
22//! - [`menus`]: menus declared by id, their items commands;
23//! - [`pointer`](mod@pointer): pointer gesture profiles (the wheel, a pinch, the
24//!   buttons per canvas kind) as keymap bindings, and the table canvases
25//!   read;
26//! - [`mount`]: the mount contract (ADR 0013): what a component needs,
27//!   what a host offers, the rules matching them, and `docs/hosts.md`
28//!   written from them;
29//! - [`panels`] and [`layout`]: declared panels, a saved arrangement and
30//!   its repair;
31//! - [`sections`] (deprecated): how a stack of collapsible sections
32//!   shares a panel; moved to `egui_stack::sections::plan`;
33//! - [`admin`]: the administration app's declarative form tree
34//!   (manifests, value scopes, hooks);
35//! - [`values`]: the value store (descriptors, writes with origins,
36//!   gestures, undo, listeners, settings);
37//! - [`doc`]: versioned documents and their migrations;
38//! - [`job_rows`]: the rows an application adds to the jobs list, its
39//!   row sources, and the list's filter by source and state;
40//! - [`jobs`]: the host's background jobs, folded from its `job.*`
41//!   events, each with an estimated overall fraction;
42//! - [`notice`]: notices, one message for people raised once (an
43//!   error, a warning, a success), their bus points and a bounded store;
44//! - [`order`]: plugin ordering;
45//! - [`tab`]: the Tab order of a focus scope (reading order, indices,
46//!   groups).
47
48pub mod admin;
49pub mod clipboard;
50pub mod clock;
51pub mod commands;
52pub mod context;
53pub mod diagnostics;
54pub mod doc;
55pub mod field;
56pub mod fuzzy;
57pub mod history;
58pub mod ids;
59pub mod job_rows;
60pub mod jobs;
61pub mod keymap;
62pub mod layout;
63pub mod links;
64pub mod menus;
65pub mod mount;
66pub mod notice;
67pub mod order;
68pub mod panels;
69pub mod pointer;
70pub mod registry;
71#[deprecated(
72    since = "0.5.0",
73    note = "moved to egui_stack::sections::plan, re-exported as \
74            egui_pop_core::sections::plan; this copy goes in the next release"
75)]
76pub mod sections;
77pub mod selection;
78pub mod tab;
79pub mod values;
80pub mod when;
81
82/// The `keymap` document's schema.
83pub fn keymap_schema() -> doc::Schema {
84    doc::Schema::new("keymap", 3)
85        .migration(0, doc::same)
86        .migration(1, keymap::drop_placeholder_keys)
87        .migration(2, keymap::pointer_chords)
88}
89
90pub use serde_json;