Port PhotoCraft preset_store.rs at 19aec5eb44131de44361189d64910e7b3e19e57c. Preserve original primary author and later codec contributions.
Co-authored-by: David Mann <daaavid.mann@gmail.com>
Co-authored-by: FinnNk <finnnk@gmail.com>
Adds Format::SunRaster: 1-, 8- (gray or colour-mapped), 24- and 32-bit
files, uncompressed or byte-encoded (RLE) on read, uncompressed on write.
Closes#1560
- marquee drag: the first move goes past the slop before the sub-pixel moves; the release elsewhere is a move there first
- lasso Alt clicks: Alt stays down across presses and releases, so the trial uses the hand's pointer and keyboard
- magnetic jump: the canvas is wide enough that the jump ends over it
- magnetic close on the start: the pointer reaches the start along the edge
Adds Format::Sgi: 8- and 16-bit gray, gray+alpha, RGB and RGBA, verbatim
and run-length encoded on read, run-length encoded on write.
Palette-mapped files are reported as unsupported.
Closes#1559
ToolHost::inject hands each ToolInput to the window host's injected lane of the
canvas's viewport, one step per pass: presses, moves and releases as egui
pointer events (InjectedPointer), carrying the pen's reading, which the step's
pass reads in place of the tablet's; Hold/LetGo as steps with no event that the
lane holds (WindowHost::inject_hold, inject_let_go, injected_holds). The tool
reads its input from the canvas's press and the pass pointer as for a hand's,
so the Color HUD, hover and egui's button state see injected moves.
Held keys end where the lane drops input (withdrawal, focus loss, cancel, end
of the session). A held key's momentary command applies to the whole pass, as
the real key's does.
Removed: HostState.queued and injected_held, WindowHost::inject_pass and its
trial, the injected gesture path in the host (Active.injected, Run::injected,
pick_momentary), Momentary::press, ToolInput.clicks.
Trials: the injection trials run until injected_idle; new trials for a held
Space ended by a cancel, an injected pen reading, and the Color HUD picking at
an injected move.
Matcher::single matches one press without the double-press state; Matcher::press
builds on it. board.rs's KeyScopes (keymap + scopes around a chain -> Active ->
matcher) is the one lookup for the key stage, binds_scoped and bound_around,
which drop their own copies. bound_around reads the key through the viewport's
layout, routes the command as take_around does (Board::instance_around) and
returns it only when it resolves enabled (gate, modal, live); binds_scoped also
requires an enabled command. Fixture::gate sets the app gate in trials.
- panels-w25: written by an agent
- panels-w25: the drag payload copies the document id into its closure (the payload map is 'static + Sync)
- panels-w25: review fixes (review-1)