Put the QTC window's settings on its right-click menu

N1MM keeps them on a Setup tab inside the window; here they are a dialog behind
a right-click, which suits a window this size better. Four of them, with N1MM's
own defaults: how many QTCs a series carries, whether the RX Ready and Cfm steps
are stopped at on the way through, and whether Hdr Agn and Agn clear what they
are asking for again.

Each one changes what the window does. The series count is passed to the search
for contacts worth reporting, the two skip settings are the focus order, and the
two clear settings are what the Agn buttons do. The Cfm buttons also disappear
when a RTTY station is reading its own log out, which is what N1MM does with
them.

N1MM's remaining QTC settings are all about putting traffic on the air — the CW
messages for Agn and TU, the field spacing, the four SSB recordings, the RTTY
templates — and nothing here transmits, so they are left out rather than shown
as settings that do nothing. The dialog says so where the operator will look.

The right-click menu needed a background on the panel to come up anywhere but
over a control: a panel with no background is not hit-tested.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-28 00:10:39 +00:00
co-authored by Claude Opus 5
parent 9ae5078c84
commit 648da1918a
8 changed files with 146 additions and 17 deletions
+5 -4
View File
@@ -100,11 +100,12 @@ public sealed class QtcTraffic
}
/// The contacts to report to this station: the ones not reported to anybody
/// yet, oldest first, and never the station itself. Ten at a time, fewer
/// when it has already had some.
public IReadOnlyList<WaeQtc> ToSend(Callsign other)
/// yet, oldest first, and never the station itself. Ten at a time unless
/// the operator asks for a shorter series, and fewer when the station has
/// already had some.
public IReadOnlyList<WaeQtc> ToSend(Callsign other, int mostPerSeries = WaeQtc.MostPerSeries)
{
int room = Math.Min(WaeQtc.MostPerSeries, Remaining(other));
int room = Math.Min(Math.Clamp(mostPerSeries, 1, WaeQtc.MostPerSeries), Remaining(other));
if (room <= 0)
{
return [];