Open Help from develop as well as from the grid

The "Controls and shortcuts" sheet was drawn by LibraryGrid, so only the
grid's Help button and its F1 could open it. Develop, where most of the
keys it lists are bound (Ctrl+E, Ctrl+Shift+C, A/D, Z, R, H, [ ]), had no
way to it: a photographer who wanted to look a shortcut up had to leave
the photograph they wanted it for.

The sheet now hangs off the shell beside the export and copy sheets, on a
`help-open` property both views set. The grid's Help button and F1 raise
it through a callback, and its keys stand down through the `sheet-open`
they already honour for the export sheet, so Escape falls through to the
shell, which closes it. Develop gains a Help button beside Settings in
its top bar, as in the library header, and F1 in its key scope; its keys
decline while the sheet is up, as they do for the other two sheets, so
nothing behind it is rated or stepped. The book already begins with the
Develop section, so from develop it opens where the reader wants it.

Tests hold the shape: the sheet is drawn by the shell and not the grid,
and develop's opening guard names all three sheets and its F1 opens this
one. The new GESTURE: block puts the develop route in the book.
This commit is contained in:
2026-09-25 23:24:52 -04:00
parent 19dd3257e3
commit d9f259656a
7 changed files with 224 additions and 127 deletions
+60 -50
View File
@@ -5,7 +5,7 @@
Every entry here is extracted from the comment beside the code that implements it, so this file cannot describe a gesture the application does not have. Add one by writing a `GESTURE:` block next to the implementation; there is nowhere else to write it.
67 gestures, in 5 places.
68 gestures, in 5 places.
## Develop
@@ -28,7 +28,7 @@ Sampling a neutral is the first move of the tonal pass — every colour judgemen
Anchored on the fingers' midpoint, and on the pointer, so the gesture reads as magnifying the picture rather than sliding it about. Double-tap is the way to an exact 1:1; this is the way to everything in between. Past 1:1 the pixels are shown as they are, square and unsmoothed; below it, filtered.
<sub>`ui/dr-ui/ui/app.slint:1885`</sub>
<sub>`ui/dr-ui/ui/app.slint:1895`</sub>
### Move a magnified photograph about
@@ -39,7 +39,7 @@ Anchored on the fingers' midpoint, and on the pointer, so the gesture reads as m
Only once there is something outside the viewport to reach, which is why the cursor becomes a hand exactly then. The view is clamped to the frame: panning past the edge would show undefined area beside the photograph, and that reads as a rendering fault rather than as the end of the picture.
<sub>`ui/dr-ui/ui/app.slint:1981`</sub>
<sub>`ui/dr-ui/ui/app.slint:1991`</sub>
### Paint a mask by hand
@@ -49,7 +49,17 @@ Only once there is something outside the viewport to reach, which is why the cur
A model's mask stops inside a shoulder and leaks into the hair, and no single edge control fixes two errors that go opposite ways. The whole stroke is one step in the history, so taking a mark back costs one press however long it took to make.
<sub>`ui/dr-ui/ui/app.slint:2072`</sub>
<sub>`ui/dr-ui/ui/app.slint:2082`</sub>
### Open this list
- **Touch** — Press Help in the top bar, and Done to put it away
- **Pointer** — Press Help in the top bar, and Done to put it away
- **Keyboard** — `F1`; the key that closes any sheet puts it away
Most of the keys are develop's, and a reference that could only be opened from the grid had to be looked up before opening the photograph they were wanted for.
<sub>`ui/dr-ui/ui/app.slint:2308`</sub>
### Take back the last change
@@ -60,7 +70,7 @@ A model's mask stops inside a shoulder and leaks into the hair, and no single ed
A whole drag is one step, so undo takes back a decision rather than a frame of a gesture. The list is there because arriving six steps back costs what arriving from one does.
<sub>`ui/dr-ui/ui/app.slint:2306`</sub>
<sub>`ui/dr-ui/ui/app.slint:2338`</sub>
### Do it again after taking it back
@@ -69,7 +79,7 @@ A whole drag is one step, so undo takes back a decision rather than a frame of a
- **Keyboard** — `Ctrl+Shift+Z`, or `Ctrl+Y`
- **See it** — [in the manual](manual/README.md#history-snapshots-presets)
<sub>`ui/dr-ui/ui/app.slint:2320`</sub>
<sub>`ui/dr-ui/ui/app.slint:2352`</sub>
### Remove a repair
@@ -77,7 +87,7 @@ A whole drag is one step, so undo takes back a decision rather than a frame of a
- **Pointer** — Click it, then Delete Repair
- **Keyboard** — `Delete` or `Backspace`, while repairing
<sub>`ui/dr-ui/ui/app.slint:2340`</sub>
<sub>`ui/dr-ui/ui/app.slint:2372`</sub>
### Copy the settings from this photograph
@@ -88,7 +98,7 @@ A whole drag is one step, so undo takes back a decision rather than a frame of a
The button is the copy that has to work: a tablet has no modifier key to hold and no menu bar to hang the action from. The shortcut is an accelerator for a control that is on screen either way.
<sub>`ui/dr-ui/ui/app.slint:2359`</sub>
<sub>`ui/dr-ui/ui/app.slint:2391`</sub>
### Paste the settings onto this photograph
@@ -99,7 +109,7 @@ The button is the copy that has to work: a tablet has no modifier key to hold an
The button names what would be pasted — "3 adjustments", and whether the crop is coming with it — which the shortcut cannot say. Both paste the same scope.
<sub>`ui/dr-ui/ui/app.slint:2372`</sub>
<sub>`ui/dr-ui/ui/app.slint:2404`</sub>
### Choose which kinds of edit a copy carries
@@ -110,7 +120,7 @@ The button names what would be pasted — "3 adjustments", and whether the crop
Lightroom's Copy Settings. Pasting a look across a shoot usually means leaving each frame's crop and rotation alone, and that is a choice to make at the moment of copying.
<sub>`ui/dr-ui/ui/app.slint:2390`</sub>
<sub>`ui/dr-ui/ui/app.slint:2422`</sub>
### Export this photograph as the last one was
@@ -121,7 +131,7 @@ Lightroom's Copy Settings. Pasting a look across a shoot usually means leaving e
Every export runs on the defaults in Settings, so "as the last one was" is what the button already does. The chord is Lightroom's and darktable's, kept so hands that learned it there need not learn it again.
<sub>`ui/dr-ui/ui/app.slint:2415`</sub>
<sub>`ui/dr-ui/ui/app.slint:2447`</sub>
### Choose how to export, then export
@@ -132,7 +142,7 @@ Every export runs on the defaults in Settings, so "as the last one was" is what
The export sheet is the export defaults alone with an Export button. What is chosen there is kept, so it is also what the next Ctrl+Shift+E uses.
<sub>`ui/dr-ui/ui/app.slint:2428`</sub>
<sub>`ui/dr-ui/ui/app.slint:2460`</sub>
### Keep a crop that leaves a mask outside
@@ -140,7 +150,7 @@ The export sheet is the export defaults alone with an Export button. What is cho
- **Pointer** — Press "Keep crop" on the notice, or "Undo crop" to take it back
- **Keyboard** — `Enter` keeps it; `Ctrl+Z` takes the crop back, like any other step
<sub>`ui/dr-ui/ui/app.slint:2493`</sub>
<sub>`ui/dr-ui/ui/app.slint:2525`</sub>
### Go back to the grid
@@ -150,7 +160,7 @@ The export sheet is the export defaults alone with an Export button. What is cho
Lightroom's key for the grid. Escape gets there too, but a step at a time — out of a mode, then out of a zoom — where this goes straight back.
<sub>`ui/dr-ui/ui/app.slint:2510`</sub>
<sub>`ui/dr-ui/ui/app.slint:2542`</sub>
### Nudge the control last moved
@@ -160,7 +170,7 @@ Lightroom's key for the grid. Escape gets there too, but a step at a time — ou
Lightroom's keys for the selected slider. There is no focus ring on a slider here, so "selected" is the last one moved — the same control `R` puts back — which covers the framing sliders, perspective included, as well as the adjustments.
<sub>`ui/dr-ui/ui/app.slint:2539`</sub>
<sub>`ui/dr-ui/ui/app.slint:2571`</sub>
### Change which group of adjustments is on screen
@@ -171,7 +181,7 @@ Lightroom's keys for the selected slider. There is no focus ring on a slider her
The groups are whatever the operation set declares itself to be about, so there are as many as the pipeline has and no key can be assigned to one of them by name. Stepping is the binding that survives a node being added.
<sub>`ui/dr-ui/ui/app.slint:2567`</sub>
<sub>`ui/dr-ui/ui/app.slint:2599`</sub>
### Look at the photograph at 1:1
@@ -182,7 +192,7 @@ The groups are whatever the operation set declares itself to be about, so there
Noise reduction and capture sharpening are judgements about single pixels, and a fitted view averages several of the file's into each one on screen — so the frame looks softer than it is and the correction goes too far. The point and the magnification survive opening the next photograph, which is what makes checking the same eye across forty portraits forty keystrokes rather than forty pans. From 1:1 on the photograph is drawn as its own pixels, each a hard-edged square, rather than smoothed into a blur.
<sub>`ui/dr-ui/ui/app.slint:2603`</sub>
<sub>`ui/dr-ui/ui/app.slint:2635`</sub>
### Rate this photograph
@@ -190,7 +200,7 @@ Noise reduction and capture sharpening are judgements about single pixels, and a
- **Pointer** — Click a star in the top bar
- **Keyboard** — `0`–`5`
<sub>`ui/dr-ui/ui/app.slint:2660`</sub>
<sub>`ui/dr-ui/ui/app.slint:2692`</sub>
### Pick or reject this photograph
@@ -200,7 +210,7 @@ Noise reduction and capture sharpening are judgements about single pixels, and a
The grid's keys, on the photograph that is open (FR-UI-5, 2026-09-19). Judging here does not move on to the next frame: that belongs to culling, and in develop the photograph in front of you is the one being worked on.
<sub>`ui/dr-ui/ui/app.slint:2666`</sub>
<sub>`ui/dr-ui/ui/app.slint:2698`</sub>
### Give this photograph a colour label
@@ -211,7 +221,7 @@ The grid's keys, on the photograph that is open (FR-UI-5, 2026-09-19). Judging h
The grid's keys, on the photograph that is open, so labelling while stepping through a folder is one hand's work. The bar names the label in words beside its mark.
<sub>`ui/dr-ui/ui/app.slint:2696`</sub>
<sub>`ui/dr-ui/ui/app.slint:2728`</sub>
### Move to the next or previous photograph
@@ -222,7 +232,7 @@ The grid's keys, on the photograph that is open, so labelling while stepping thr
The edit on screen is saved on the way out, so stepping through a folder is as much a departure as going back to the grid and loses nothing. A and D as well as the arrows, so the left hand steps along the roll while the right stays on the mouse.
<sub>`ui/dr-ui/ui/app.slint:2721`</sub>
<sub>`ui/dr-ui/ui/app.slint:2753`</sub>
### See the photograph before you edited it
@@ -233,7 +243,7 @@ The edit on screen is saved on the way out, so stepping through a folder is as m
Held rather than toggled, and no split screen: a split halves the working image on the tablet the column was sized for, and the comparison photographers describe making is a flick back and forth. It takes no history step, so checking whether a frame is overcooked costs nothing to undo afterwards.
<sub>`ui/dr-ui/ui/app.slint:2851`</sub>
<sub>`ui/dr-ui/ui/app.slint:2883`</sub>
### Put one control back to its default
@@ -317,7 +327,7 @@ The question a correction raises is whether it did what it was for — whether t
One key for "up one", innermost first: a question before the sheet under it, a sheet before the view, a view before the library. Nothing is left behind a dialogue that the key walked straight past.
<sub>`ui/dr-ui/ui/app.slint:975`</sub>
<sub>`ui/dr-ui/ui/app.slint:981`</sub>
### Do what a sheet offers
@@ -325,7 +335,7 @@ One key for "up one", innermost first: a question before the sheet under it, a s
- **Pointer** — Press its button — Export, or Copy
- **Keyboard** — `Enter`, on the export and copy sheets
<sub>`ui/dr-ui/ui/app.slint:985`</sub>
<sub>`ui/dr-ui/ui/app.slint:991`</sub>
## Collections sidebar
@@ -440,7 +450,7 @@ The right match confidence is a property of your library, not of the model. "Wha
Touch has no ctrl, so without a mode there is no way to select a second photograph — the first tap would open it. The hold is the fast way in and the button is the one that can be found.
<sub>`ui/dr-ui/ui/library.slint:1705`</sub>
<sub>`ui/dr-ui/ui/library.slint:1701`</sub>
### Add or remove one photograph
@@ -450,7 +460,7 @@ Touch has no ctrl, so without a mode there is no way to select a second photogra
While selecting, a tap never opens. That is the whole point of the mode: one meaning per gesture at a time. Press Done to get tap-to-open back.
<sub>`ui/dr-ui/ui/library.slint:1715`</sub>
<sub>`ui/dr-ui/ui/library.slint:1711`</sub>
### Leave selecting
@@ -459,7 +469,7 @@ While selecting, a tap never opens. That is the whole point of the mode: one mea
- **Keyboard** — `Escape`, or `Back`; an open sheet closes first
- **See it** — [in the manual](manual/README.md#selecting-several)
<sub>`ui/dr-ui/ui/library.slint:1724`</sub>
<sub>`ui/dr-ui/ui/library.slint:1720`</sub>
### Pick a photograph up to drag it
@@ -469,7 +479,7 @@ While selecting, a tap never opens. That is the whole point of the mode: one mea
A finger on a photograph might be starting a scroll, and for the first half-second the grid assumes it is. Holding says otherwise, and the ring is the grid saying it heard — from there the drag cannot be lost to a scroll. A mouse never waits: the cursor is precise enough that a sideways drag is unambiguous from the first pixel.
<sub>`ui/dr-ui/ui/library.slint:1755`</sub>
<sub>`ui/dr-ui/ui/library.slint:1751`</sub>
### Select a range
@@ -480,7 +490,7 @@ A finger on a photograph might be starting a scroll, and for the first half-seco
This replaced a double tap, which had no visible state and could take forty photographs by accident. The run is resolved by the catalog rather than by what is on screen, so the grid can scroll between the two taps — the ranges that hurt on a tablet are longer than a screenful, which is exactly where a finger sweep runs out.
<sub>`ui/dr-ui/ui/library.slint:1821`</sub>
<sub>`ui/dr-ui/ui/library.slint:1817`</sub>
### Take the blinks out of a burst
@@ -490,7 +500,7 @@ This replaced a double tap, which had no visible state and could take forty phot
Face indexing reads each face's eyes. The chip drops frames where the chosen people are caught blinking, and leaves sunglasses and eyes it could not read alone.
<sub>`ui/dr-ui/ui/library.slint:2538`</sub>
<sub>`ui/dr-ui/ui/library.slint:2534`</sub>
### Find photographs with two people in them
@@ -500,7 +510,7 @@ Face indexing reads each face's eyes. The chip drops frames where the chosen peo
"Any of them" is a union and "all of them" is an intersection. The tray is where both terms and the choice between them live, because a filter belongs on the filter bar.
<sub>`ui/dr-ui/ui/library.slint:2568`</sub>
<sub>`ui/dr-ui/ui/library.slint:2564`</sub>
### Show only photographs with one colour label
@@ -510,7 +520,7 @@ Face indexing reads each face's eyes. The chip drops frames where the chosen peo
Each chip is the label's mark and its name, so the one you want is found by reading it; tap the lit chip again to show every label.
<sub>`ui/dr-ui/ui/library.slint:2692`</sub>
<sub>`ui/dr-ui/ui/library.slint:2688`</sub>
### Export the selection as the last export was
@@ -521,7 +531,7 @@ Each chip is the label's mark and its name, so the one you want is found by read
Lightroom's and darktable's chords. Every export runs on the saved defaults, so the plain chord opens them beside an Export button and the shifted one skips straight to exporting.
<sub>`ui/dr-ui/ui/library.slint:3175`</sub>
<sub>`ui/dr-ui/ui/library.slint:3158`</sub>
### Paste copied settings onto the selection
@@ -530,7 +540,7 @@ Lightroom's and darktable's chords. Every export runs on the saved defaults, so
- **Keyboard** — `Ctrl+V`
- **See it** — [in the manual](manual/README.md#copying-settings)
<sub>`ui/dr-ui/ui/library.slint:3199`</sub>
<sub>`ui/dr-ui/ui/library.slint:3182`</sub>
### Keyword the selection
@@ -540,7 +550,7 @@ Lightroom's and darktable's chords. Every export runs on the saved defaults, so
Lightroom's keywording chord. The sheet opens with its field ready for typing, so the keys that judge in the grid are out of the way until it closes.
<sub>`ui/dr-ui/ui/library.slint:3228`</sub>
<sub>`ui/dr-ui/ui/library.slint:3211`</sub>
### Show only photographs with some number of stars
@@ -551,7 +561,7 @@ Lightroom's keywording chord. The sheet opens with its field ready for typing, s
The chips say "this many or more". A range with a ceiling — the twos and threes still to be decided — is the keyboard's alone, and the bar says so in words while it holds.
<sub>`ui/dr-ui/ui/library.slint:3262`</sub>
<sub>`ui/dr-ui/ui/library.slint:3245`</sub>
### Give photographs a colour label
@@ -562,7 +572,7 @@ The chips say "this many or more". A range with a ceiling — the twos and three
Lightroom's keys, so hands that learned them there need not learn them again. Purple has no key there either, and is on the bar. Every mark carries its label's initial, so the label is read without telling the colours apart.
<sub>`ui/dr-ui/ui/library.slint:3312`</sub>
<sub>`ui/dr-ui/ui/library.slint:3295`</sub>
### Pick or reject a photograph
@@ -572,7 +582,7 @@ Lightroom's keys, so hands that learned them there need not learn them again. Pu
The keys every culling tool uses, so muscle memory built elsewhere works here.
<sub>`ui/dr-ui/ui/library.slint:3336`</sub>
<sub>`ui/dr-ui/ui/library.slint:3319`</sub>
### Move photographs to the trash
@@ -582,7 +592,7 @@ The keys every culling tool uses, so muscle memory built elsewhere works here.
The bin acts on one photograph, so a stray click cannot trash a selection; the key acts on the selection because that is what every file manager's Delete does. Both are undone from the trash view.
<sub>`ui/dr-ui/ui/library.slint:3363`</sub>
<sub>`ui/dr-ui/ui/library.slint:3346`</sub>
### Open this list
@@ -590,7 +600,7 @@ The bin acts on one photograph, so a stray click cannot trash a selection; the k
- **Pointer** — Press Help in the header, and Done to put it away
- **Keyboard** — `F1`, and `Escape` to put it away
<sub>`ui/dr-ui/ui/library.slint:3388`</sub>
<sub>`ui/dr-ui/ui/library.slint:3371`</sub>
### Rename the collection the grid is showing
@@ -598,7 +608,7 @@ The bin acts on one photograph, so a stray click cannot trash a selection; the k
- **Pointer** — Double-click it in the sidebar
- **Keyboard** — `F2`
<sub>`ui/dr-ui/ui/library.slint:3396`</sub>
<sub>`ui/dr-ui/ui/library.slint:3379`</sub>
### Move through the grid
@@ -608,7 +618,7 @@ The bin acts on one photograph, so a stray click cannot trash a selection; the k
The cursor selects what it lands on, so walking and judging are one hand's work.
<sub>`ui/dr-ui/ui/library.slint:3416`</sub>
<sub>`ui/dr-ui/ui/library.slint:3399`</sub>
### Resize the thumbnails
@@ -619,7 +629,7 @@ The cursor selects what it lands on, so walking and judging are one hand's work.
There is no wheel on a tablet, so without the pinch the cell size could only be changed by a control a finger cannot reach.
<sub>`ui/dr-ui/ui/library.slint:3543`</sub>
<sub>`ui/dr-ui/ui/library.slint:3526`</sub>
### File photographs in a collection
@@ -629,7 +639,7 @@ There is no wheel on a tablet, so without the pinch the cell size could only be
The selection is what the drag carries, which is why selecting several is worth the mode: forty photographs file in one gesture.
<sub>`ui/dr-ui/ui/library.slint:3742`</sub>
<sub>`ui/dr-ui/ui/library.slint:3725`</sub>
### Open a photograph
@@ -640,7 +650,7 @@ The selection is what the drag carries, which is why selecting several is worth
A tap opens; a tap that *moved* does not. Travel is what separates a deliberate tap from a hand brushing past, and it is the only thing that does: the two are the same length. An earlier version required the finger to dwell 120 ms instead, and that rejected ordinary taps — a real tap is often quicker than a brush.
<sub>`ui/dr-ui/ui/library.slint:4047`</sub>
<sub>`ui/dr-ui/ui/library.slint:4030`</sub>
### Rate a photograph without opening it
@@ -651,7 +661,7 @@ A tap opens; a tap that *moved* does not. Travel is what separates a deliberate
A star has to take the press without it also reaching the cell, or every rating throws the user into develop.
<sub>`ui/dr-ui/ui/library.slint:4170`</sub>
<sub>`ui/dr-ui/ui/library.slint:4153`</sub>
### Choose the frame a folded burst shows
@@ -661,7 +671,7 @@ A star has to take the press without it also reaching the cell, or every rating
A folded burst draws its earliest frame, which is a fact about the clock and not a judgement about the photograph — nothing in this application ranks a frame (FR-CULL-5). But the point of a burst is that one of the twelve is better than the other eleven, and the photographer is the only one who knows which. So the choice is offered on the frames themselves, while they are open and side by side, which is the one moment the alternatives are on screen to be compared.
<sub>`ui/dr-ui/ui/library.slint:4303`</sub>
<sub>`ui/dr-ui/ui/library.slint:4286`</sub>
### Drop the selection but keep selecting
@@ -672,7 +682,7 @@ A folded burst draws its earliest frame, which is a fact about the clock and not
Distinct from Done, which leaves the mode entirely. Clearing keeps it, so the next selection can start straight away.
<sub>`ui/dr-ui/ui/library.slint:4980`</sub>
<sub>`ui/dr-ui/ui/library.slint:4963`</sub>
### Select everything the grid is showing
@@ -683,7 +693,7 @@ Distinct from Done, which leaves the mode entirely. Clearing keeps it, so the ne
A scoped grid of two hundred frames is two hundred taps otherwise, and "all of them, except those three" is a far more common shape than the taps it took to say it.
<sub>`ui/dr-ui/ui/library.slint:4999`</sub>
<sub>`ui/dr-ui/ui/library.slint:4982`</sub>
### Take photographs out of a collection
@@ -693,4 +703,4 @@ A scoped grid of two hundred frames is two hundred taps otherwise, and "all of t
The badge on a cell says a photograph is filed in three collections and never which. This is the sheet that names them, and the only way out of one the grid is not currently scoped to.
<sub>`ui/dr-ui/ui/library.slint:5180`</sub>
<sub>`ui/dr-ui/ui/library.slint:5163`</sub>