A group or panel taken out of a column collapsed to icons kept the
column's collapsed state in its new column. A group dragged out of an
icon column by its grip floated as a strip with a flyout: the tab names
were cut off and a click on a tab did not switch the panel.
A new column, floating or docked, now stays collapsed only when it holds
the whole column it came from. When other panels stay behind, the new
column is expanded. Groups that join an existing column still keep the
source column's state, so their flyout widths are unchanged.
An icon dragged out of a collapsed column that keeps other panels now
starts a plain group drag, so the float preview and the window rect match
the expanded window that the drop makes.
Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
import goes, since the dock no longer keeps pass frames in memory.
Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
Reviewer finding on #3448: entries in `docs/contract-api.md` ended mid-sentence
(`size_ok` at "a `min` that is", `label_decimals`, and the `WindowSpec`,
`pressed_part` and `icon_ink_on` summaries). The generator lists the first line
of each doc comment only, so each of those doc comments now opens with a
complete sentence and keeps the rest below it: `size_ok` says on its second line
that a `min` that is not a number counts as one unit, `label_decimals` keeps its
cases in the paragraph under the summary, and `WindowSpec`'s first line carries
the whole "what it is for, who draws its frame, where it stands and whether it
has a taskbar entry" sentence.
Regenerated with the branch's own generator; a second run leaves the file byte
for byte as it was. Every entry this branch adds or changes now ends in a full
stop. The rest of the file keeps the entries the base leaves truncated (1273 of
4820 entry lines still end mid-sentence, none of them touched here): sweeping
those, or teaching the generator to join a doc's first sentence, is a separate
change.
The regeneration also picks up two entries the branch's merges added without
regenerating (`Action::restore`, and `floated`'s doc).
A group moved from a floating window or an expanded column into a column
collapsed to icons joined with no flyout width, so its flyout opened at the
column's width and the size the panel was resized to was lost.
The group now takes the width it was shown at as its flyout width: the
floating window's width or the expanded column's. A width equal to the
column's leaves the flyout following the column, and a group from another
collapsed column keeps its own flyout width.
A Ctrl+wheel on Windows and Linux reaches a taker as a zoom factor with no
scroll, and a touchpad's fractional Ctrl+wheel there becomes a pinch step. A
taker that steps a value by notches (VectorCraft's Quick Pen arc size) could
only count them by working the lines back out of the factor with egui's zoom
speed.
- `Wheel::zoom_lines`: the motion that reached the share as `zoom`, in wheel
lines: wheel events under the zoom modifier, measured before the user's
wheel speed, and the Ctrl+wheel steps folded into pinch steps. It travels
with the zoom share. A native pinch carries none.
- `Wheel::zoom_gathered`: the running gesture's `zoom_lines`, gathered the way
`gathered` gathers the scroll.
A floating panel keeps the docked place it left while it is closed, as long
as its hidden record, so after it reopens floating Dock Panel still returns
it there. Dock Panel restores that place with Action::Restore, built on
Layout::restore, so the panel comes back at the split size, sibling subtree
and group state it had instead of a halved frame.
The contract's generator lists a doc comment's first line, so both entries were
cut mid-sentence in docs/contract-api.md. Their first line is now a complete
sentence, and the rest says the same as before.
GridCursor::new raised each Fill column's share to the column's least
width but left the other Fill columns at their shares, so the row was
wider than the grid by the difference even when the least widths fit.
The Fill columns now share their room again: a column whose share by
weight is below its least takes its least, and the other Fill columns
share what is left by weight, down to their own least widths. The row
is wider than the grid only when the least widths together do not fit.
A grid whose shares already cover every least width is unchanged.
Workspace::apply_all recorded a floating panel's docked place only when the
panel had been docked in the layout before the action. A closed panel that
floated by Action::Float alone got no record, so Dock Panel had no place to
return it to. An app that wanted the old place had to open the panel first,
which made it the front tab of its old group before it floated.
Floating a hidden panel now records the location it would reopen at, the same
record that opening it and then floating it gives, without reopening it in its
old group. A panel that would reopen in a floating window gets no record, as a
panel floated from a floating window gets none.
The number reader accepted unit spellings made of letters and unit
symbols only, so the "/in" spelling of UnitKind::PerInch was never
registered. In a field that draws its unit apart from the number, a
typed "40/in" was then read as 40 divided by a quantity with no number,
and the field refused it.
A unit spelling may now start with one "/" followed by letters or unit
symbols. After a number, the reader takes such a spelling when the
letters after the "/" start it, so "40/in", "40 /in" and "40/IN" read
as 40 per inch. Any other "/" still divides: "80/2" is 40, and a field
without a "/in" spelling reads "/in" as before. Only UnitKind::PerInch
has a spelling with a "/", so no other field changes.
A window that continues a panel's drag (DockArea::continue_move, a rail popup
floated by its tab) began its move as a title-row move, which docks only with
DockConfig::title_bar_docks. The handed-over press now says so through the
move: PressStart::handed (set by PressMachine::take_over) and
PlacementChange::continued on the layer move's reports. FloatingGroup starts
its window drag with GroupDrag::title_row only for a press on its title row,
and DockDropTarget refuses only those when title_bar_docks is off.
The Lasso, Polygonal Lasso and Magnetic Lasso showed only their icon, with
the icon box's empty top-left corner on the pointer, so the outline started
at a blank spot beside the lasso. They now show the solid arrow with its tip
on the pointer and the tool's icon below right of it, as the reference
application does and as the Paint Bucket and Ruler pointers already do.
PaintedCursor::PointerTool gains an optional badge, drawn at the icon's lower
right, so the add / subtract / intersect mark stays; pointer_tool_badged
builds it. pointer_tool keeps its signature.
Tests: the three lassos show the arrow with their icon and the operation's
badge (fails on next: the lasso returned PaintedCursor::Tool); a badged arrow
pointer keeps ink on its hotspot at 1x, 1.25x and 2x with the badge at the
icon's lower right.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Pieces a ported app's value rows need, each opt-in with defaults unchanged:
- ScalarKeyPolicy (Slider::key_policy, SliderField::key_policy): Up and Down nudge a
slider row by its own amount, Shift by shift_factor, snapped to model_step, from the
row's caption, track or field, without moving focus; AccessKit increment and
decrement use the same amount.
- DragModifiers (Slider, SliderField, NumberField::pointer_modifiers): which modifier
makes a pointer drag or scrub fine or coarse. pointer_model_step snaps pointer values
on a slider to a zero-origin grid without changing keys or wheel.
- NumberCodec::parse_with: a reader that owns the whole input, for a domain grammar.
SliderField::number_codec passes a codec to its number field.
- SliderScale::Custom: a caller's monotonic projection between values and track
positions; text, steps, wheel and accessibility stay in model units.
- WheelScope::Directional: value controls edit on a horizontal swipe or Shift-wheel
under the pointer, and on a vertical wheel only after a press, until the pointer
leaves; keyboard focus does not re-arm it.