imsd-messages/interfaces
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 20e687452f
Ui, main: the new-conversation screen and the long-press sheets
The + opens a screen with a number field (its placeholder "Number", a
parameter of the compose field now) and Start; the number becomes a
conversation key through Number's ConversationKey, as an sms: link's
does (E.164 through the country code, a short code as digits), anything
else is refused in place. A long press on a conversation row offers to
delete the conversation, on a message to copy its text to the clipboard
or delete it; only those two have one: App tells the recogniser before
each press whether what it lands on has a long press (GestureDetector's
longPress), and without one a press held as long — on a button, a field,
a sheet's row — stays a tap at its release, so a slow finger presses the
button all the same. A sheet draws on the overlay layer over a scrim and
pushes its regions last, so they win the hit test, and the wheel scrolls
nothing under it; Escape, the back arrow and a tap outside dismiss it.
Deleting a conversation also closes its notification and drops its
draft; the + keeps the draft of the conversation it leaves, as Back
does, and so does a view that closes because its last message was
deleted. The deletes go through Sync (Erase, EraseConversation: the
commit before, which keeps a deleted text deleted). The number field's
box is drawn by its screen, as the send bar's is by the bar: the shared
field drawing paints no background of its own. Opening a conversation,
from a notification or a link, leaves the new-conversation screen and
any sheet, and the + leaves any sheet. A key whose press changed the
screen acts once: held, its repeats are not the new screen's — Enter,
which started the conversation, would type line breaks into its field,
and Escape would go on back, from a sheet through the conversation and
its draft. A sheet that asks to delete a conversation goes when a text
arrives for it: a yes would delete that text unread. A press on the
conversation's row opens no such sheet either while the row it aimed at
had not shown the text — the regions are a frame's: the press that is
down when the text arrives, and one that comes down before the next
frame is drawn, have no long press; a release before the long-press time
is still the row's tap, while the row stays under the finger.

--new and --bench-sheet put either on screen for the bench
(--bench-sheet conversation or message, each on the screen a long press
opens it over: another value is refused, and one that finds nothing to
press says so in the log), and are window flags as --screenshot is.

Tested: the screens and the sheets by the bench (--new, --bench-sheet)
and the phone step's screenshots; the deletes' logic with the commit
before, in tests/Store and tests/Sync; the press without a long press in
tests/Gesture (the timer gives no long press and a move within the slop
nothing; the release is the tap, however late; a slide off the control
is a drag); a deleted conversation's draft dropped, in tests/Edit. The
press on a row a text arrived for has no bench: none holds a finger on a
row.
2026-11-18 01:12:27 +01:00
..
ImsdMessages-Edit.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00
ImsdMessages-Gesture.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00
ImsdMessages-Model.cppm Ui: the compose field and the send bar 2026-11-18 01:12:27 +01:00
ImsdMessages-Number.cppm main: show the window; --screenshot and --quit-after 2026-11-18 01:12:27 +01:00
ImsdMessages-Store.cppm Store, Sync, main: a deleted text stays deleted 2026-11-18 01:12:27 +01:00
ImsdMessages-Sync.cppm Store, Sync, main: a deleted text stays deleted 2026-11-18 01:12:27 +01:00
ImsdMessages-Time.cppm Time: ISO 8601 stamps, civil dates and the captions 2026-11-17 06:14:18 +01:00
ImsdMessages-Wrap.cppm Wrap: word wrap and ellipsis over a measure function 2026-11-17 06:14:18 +01:00
ImsdMessages.Bus-Client.cppm Bus: the GDBus client, imsd's dictionaries, the notifier and the owned name 2026-11-18 01:12:27 +01:00
ImsdMessages.Bus-Instance.cppm Bus: the GDBus client, imsd's dictionaries, the notifier and the owned name 2026-11-18 01:12:27 +01:00
ImsdMessages.Bus-Notifier.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00
ImsdMessages.Bus-Variant.cppm Bus: the GDBus client, imsd's dictionaries, the notifier and the owned name 2026-11-18 01:12:27 +01:00
ImsdMessages.Bus.cppm Bus: the GDBus client, imsd's dictionaries, the notifier and the owned name 2026-11-18 01:12:27 +01:00
ImsdMessages.cppm Ui: the compose field and the send bar 2026-11-18 01:12:27 +01:00
ImsdMessages.Ui-App.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00
ImsdMessages.Ui-Canvas.cppm Ui: the compose field and the send bar 2026-11-18 01:12:27 +01:00
ImsdMessages.Ui-Compose.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00
ImsdMessages.Ui-Loop.cppm Ui: the window on Crafter.Graphics, driven from the GLib main loop 2026-11-18 01:12:27 +01:00
ImsdMessages.Ui-Screens.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00
ImsdMessages.Ui.cppm Ui, main: the new-conversation screen and the long-press sheets 2026-11-18 01:12:27 +01:00