Tile All Vertically and Horizontally dock every document first and give each its own cell, as Tile does, instead of floating every document into its own window.
When one apply_all batch closes several tabs of a group (Close Tab Group, or a
preset that closes panels one at a time), each closed panel's Location records
the set in closed_with. Reopening any of them restores the set in group order,
each by its own record, with the requested one in front. A tab closed in a
batch of its own stays closed: the set only counts members whose records name
each other.
- A panel's grid is read only through DockSizes::stepped, in the dock's own sizes, so
DockGrid::rail is converted in one place; ToolRail counts its columns in its scope's
style (DockSizes::of_scope), and ToolRail::dock_grid is gone.
- A layout's window counter starts above every id it is built or loaded with; a dock
area raises a workspace an undo brings back above every id it has shown
(Workspace::raise_window_floor). A saved u64::MAX id loads without overflow.
- Floating::id and DockArea::new docs say how ids are given and why to keep one Arc.
Part of #2336.
- `Workspace` fields are private. `revision()` moves with every write (a clone is a
new source); `generation()` moves only on `replace` and ends drags as the old
revision did. A trial walks every `&mut self` method, read from the source.
- Panel specs and permissions leave `DockPanels` for `PanelSpecs`, a plain-data model
the host keeps in a `Tracked`. `DockArea` binds `Arc<Workspace>` and derives specs,
permissions and keys from the workspace revision, the specs revision and the lock:
an idle pass reads no spec, read-only docks included.
- `DockGrid::rail(cells)` is sized by the dock from its own tokens.
- Floating window ids come from a counter the layout owns; `replace` gives incoming
windows ids the replaced layout never gave out. The dock's global id counter and its
`no-global-state` allowlist entry are gone.
Part of #2336.
`Permissions::docks_outside_columns` (on in `ALL`): without it a panel docks
only in dock columns or floats. Any action that leaves it in a frame of the
docked tree (a split beside the canvas, an edge of the docked area) is a
column-rights breach, so the model refuses it and a drag's dry run shows no
drop mark there. Reconcile moves a saved one out of a frame into a dock
column. A toolbar sets it so it never lies across the window.
Collapse is kept when a column or its groups float and decided by the
joined column; a floating window takes Top, Bottom and Center drops and
nothing beside it; collapses and shares_column refuse their placements
in both directions and reconcile repairs them; a stepped column keeps
its count through JSON and refuses widths; v3 floating trees load as
one column window per side-by-side part.
A floating window holds one Column, the type a dock holds, so collapse to
icons (Column.iconic) is the one collapsed state of every column, docked or
floating. PanelPlace::Floating names a group of the window's column, and
column(), group(), take, insert and every column action work the same for
both places. Groups taken out of a column carry its state into any new
column they make, so an icon group floated out of a collapsed column stays
icons; groups that join a column take that column's state. A floating
anchor takes Top, Bottom and Center drops only.
Column.steps and SetColumnSteps size a grid panel's column in its own
content columns; ResizeColumn refuses a stepped column. Permissions gain
collapses and shares_column, checked on the result of every apply (so dry
runs refuse alike), and reconcile repairs saved layouts that break them.
Workspace format v4: v3 floating trees load as columns, a tree split side
by side becoming one window per part at its share of the saved rect.
Floating.minimized and ResizeWindowSplit are removed.
202 upstream commits since 6cb00467a. Resolutions:
- craft-window, craft-platform: ours. Upstream's frame policy v2, restore
store and GNOME light/wait_first are the versions carried on 28 Oct;
ours moved place() to craft-behavior and kept LayoutWatch and the
appearance/portal.rs split.
- craft-timeline: ours. craft-time (crates/time) lands as upstream wrote
it and is not yet used by craft-timeline.
- Old crates/ui modules stay removed. Upstream's frosted backdrops, shape
gallery, dialog tabs and the iconic flyout top-edge rendering are not
carried. The #1094 model half is in craft-behavior's dock:
Group::flyout_offset and Action::MoveFlyoutTop.
- craft-update: #586 Save and Update, the install probe on the check
thread and quiet per-user MSI self-updates, carried into updater.rs,
stack_dialogs.rs, install/windows.rs and self_update/helper.rs.
- craft-jpeg: progressive Huffman decoding, carried into huffman.rs,
parse.rs and scan.rs.
- craft-print: the driver settings dialog's new tests and the bounded
XML parse's tests, as trials.
- Test-only conflicts: upstream tests from before the base that our side
cut stay cut; tests new upstream are kept.