Add the name, comment and lights from N1MM's entry window
Three more things off the screenshot of N1MM's entry window. A Name box and a Comment box beside the exchange. Neither is part of the exchange, so an empty one does not hold up a contact and ESM does not wait for it; both fill the log columns of those names, and a contest that exchanges a name keeps what was exchanged. Tab now walks the callsign, the exchange, the name and the comment before coming round again, which is what the boxes being there implies. The name is filled from the call history file, and what that file says in its UserText column is written under the entry boxes, where N1MM writes it. Two lights beside the run switch: green while a radio is answering, red while something is going out on the air. The transmit light follows the keyer, so with cwdaemon it goes out when the message has actually finished rather than when the text was handed over. The window is wider to fit the two new boxes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -382,4 +382,35 @@ public class RadioPositionTests
|
||||
|
||||
Assert.Equal("CT", session.Entry.ValueOf(ExchangeSlot.Section));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheNameAndCommentBoxesReachTheLog()
|
||||
{
|
||||
RadioPosition session = Session();
|
||||
session.Entry.Call = "JA1XYZ";
|
||||
session.Entry.Set(ExchangeSlot.ReceivedReport, "599");
|
||||
session.Entry.Set(ExchangeSlot.Zone, "25");
|
||||
session.OtherName = "Ken";
|
||||
session.Comment = "up 2";
|
||||
|
||||
Qso logged = session.LogContact();
|
||||
|
||||
Assert.Equal("Ken", logged.Name);
|
||||
Assert.Equal("up 2", logged.Comment);
|
||||
Assert.Equal("", session.OtherName);
|
||||
Assert.Equal("", session.Comment);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WipingClearsTheNameAndTheComment()
|
||||
{
|
||||
RadioPosition session = Session();
|
||||
session.OtherName = "Ken";
|
||||
session.Comment = "up 2";
|
||||
|
||||
session.Wipe();
|
||||
|
||||
Assert.Equal("", session.OtherName);
|
||||
Assert.Equal("", session.Comment);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user