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:
@@ -351,6 +351,50 @@ public sealed partial class EntryWindow
|
||||
Status($"{call.Text} spotted on {where.Kilohertz:0.0}");
|
||||
}
|
||||
|
||||
/// N1MM's Mark button and Alt+M: leaves a mark on our own bandmap saying
|
||||
/// this frequency is busy, so the operator does not come back to it. It
|
||||
/// goes nowhere near the cluster.
|
||||
private void OnMark(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
if (Logging is null)
|
||||
{
|
||||
Status("no contest is open");
|
||||
return;
|
||||
}
|
||||
Spot mark = Spot.Mark(Logging.Frequency, DateTime.UtcNow, session.Settings.Station.Callsign);
|
||||
session.Bandmap.Add(mark);
|
||||
Status($"{mark.Call.Text} on {mark.Frequency.Kilohertz:0.0}");
|
||||
boxes[0].Focus();
|
||||
}
|
||||
|
||||
/// N1MM's Store button and Alt+O: puts the call being typed on our own
|
||||
/// bandmap at this frequency so it can be worked later. Spot It sends the
|
||||
/// same call to the cluster; this one stays here.
|
||||
private void OnStore(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
if (Logging is null)
|
||||
{
|
||||
Status("no contest is open");
|
||||
return;
|
||||
}
|
||||
string typed = Logging.Entry.Call.Trim();
|
||||
if (typed.Length == 0)
|
||||
{
|
||||
Status("nothing to store");
|
||||
return;
|
||||
}
|
||||
Callsign call = Callsign.Parse(typed);
|
||||
session.Bandmap.Add(new Spot(
|
||||
call,
|
||||
Logging.Frequency,
|
||||
DateTime.UtcNow,
|
||||
SpotSource.Operator,
|
||||
session.Settings.Station.Callsign,
|
||||
"Local spot"));
|
||||
Status($"{call.Text} stored on {Logging.Frequency.Kilohertz:0.0}");
|
||||
boxes[0].Focus();
|
||||
}
|
||||
|
||||
private void OnShowLog(object? sender, RoutedEventArgs e) => Show(() => new LogWindow(session));
|
||||
|
||||
private void OnShowCallStack(object? sender, RoutedEventArgs e) =>
|
||||
|
||||
Reference in New Issue
Block a user