Add N1MM's Mark and Store buttons

Both put something on our own bandmap and nothing on the cluster, which is
what separates them from Spot It.

Mark, Alt+M, leaves a mark where the radio is to say the frequency is busy.
The label is N1MM's, Busy@ and the time. It is not a station, so Spot carries
IsStation: nothing judges it, the check window does not offer it as a call,
available mults and Qs leaves it out, space does not take it into the callsign
box, and the bandmap paints it like a station already worked, which is how
N1MM marks it. The station count under the bandmap counts stations.

Store, Alt+O, puts the call being typed on the bandmap at this frequency so it
can be worked later. N1MM writes "Local spot" in the comment and this does the
same.

The action row now holds the eight buttons N1MM has, in N1MM's order and at
N1MM's widths: 23 per cent to Esc: Stop and 11 to each of the rest.

Left out of Store: N1MM also adds the call to what the check window's Master
column offers for the rest of the session. The call is on the bandmap, which
the check window already reads, so it is offered either way.

Driven under Xvfb: Alt+M leaving BUSY@22:32:27 on 14000, Alt+O storing
SP9XYZ there, and both drawn on the bandmap in the worked colour.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
This commit is contained in:
2026-08-30 22:34:32 +00:00
parent ec8cdb88d7
commit 9b84b103ac
11 changed files with 135 additions and 16 deletions

View File

@@ -79,6 +79,19 @@ public class BandmapTests
Assert.Single(map.All());
}
/// N1MM's Mark button leaves this where the radio is, to say the frequency
/// is busy.
[Fact]
public void AMarkIsLabelledWithTheTimeAndIsNotAStation()
{
Spot mark = Spot.Mark(
Frequency.FromKilohertz(14_030),
new DateTime(2026, 1, 1, 22, 31, 5, DateTimeKind.Utc));
Assert.Equal("BUSY@22:31:05", mark.Call.Text);
Assert.False(mark.IsStation);
}
[Fact]
public void TheNearestSpotInsideTheWindowIsFound()
{