Lay the menu bar out the way N1MM lays it out, and fill in the Edit menu
The menu tree comes from N1MM's EntryWindow.Designer.cs: File, Edit, View, Tools, Config, Window, with the items under the names N1MM gives them. The window list moved out of View into Window; the call history file moved from Config into File > Import. Ctrl+W, Ctrl+L and Ctrl+M now work, so the keys printed in the menu are real. Two commands that had no menu item before: the CW and SSB function key definitions, and the QTC setup area. The rest of the Edit menu: - Ctrl+N asks for a note and puts it in the comment of the contact in the boxes, or of the last logged contact when nothing is typed. - Edit Current Contact opens the Edit Contact form over what is typed but not logged. Update hands the values back to the entry boxes. - Ctrl+Q and Ctrl+A load a logged contact into the boxes and paint them pale yellow. Enter writes the change back, Esc puts back what was being typed, and stepping forward past the newest contact leaves quick edit. - Ctrl+U raises the received serial, or a numeric exchange box when the contest has no serial. - Ctrl+F shows the call being typed in the log window, then the next contact with that call. RadioPosition is now OperatingPosition: it is the operator at one radio, not a place on a band. Looked at under Xvfb on a 3775-contact log: quick edit back and forward, Esc, the note dialog, find, and Edit Current Contact putting a zone back into the entry boxes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,7 @@ public class QtcTrafficTests
|
||||
CountryPrefix = "K",
|
||||
};
|
||||
|
||||
private static (RadioPosition Position, QtcTraffic Traffic) Station(
|
||||
private static (OperatingPosition Position, QtcTraffic Traffic) Station(
|
||||
ModeCategory mode,
|
||||
StationInfo? me = null)
|
||||
{
|
||||
@@ -49,12 +49,12 @@ public class QtcTrafficTests
|
||||
});
|
||||
ContestSession session = new(
|
||||
store, new Wae(mode), instance, me ?? Slovakia, CountryFile.Parse(Countries));
|
||||
RadioPosition position = new(session);
|
||||
OperatingPosition position = new(session);
|
||||
return (position, new QtcTraffic(position));
|
||||
}
|
||||
|
||||
private static Qso Contact(
|
||||
RadioPosition position,
|
||||
OperatingPosition position,
|
||||
string call,
|
||||
int receivedNumber,
|
||||
int sentNumber,
|
||||
@@ -111,7 +111,7 @@ public class QtcTrafficTests
|
||||
[Fact]
|
||||
public void TenLinesIsAllAnyStationGets()
|
||||
{
|
||||
(RadioPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
(OperatingPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
for (int at = 1; at <= 10; at++)
|
||||
{
|
||||
position.Session.Add(new WaeQtc(
|
||||
@@ -127,7 +127,7 @@ public class QtcTrafficTests
|
||||
[Fact]
|
||||
public void WhatIsSentIsTheContactsNotReportedYetOldestFirst()
|
||||
{
|
||||
(RadioPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
(OperatingPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
Contact(position, "DL1AAA", receivedNumber: 16, sentNumber: 1, minute: 46);
|
||||
Contact(position, "DL2BBB", receivedNumber: 40, sentNumber: 2, minute: 47);
|
||||
Contact(position, "JA1XYZ", receivedNumber: 7, sentNumber: 3, minute: 48);
|
||||
@@ -143,7 +143,7 @@ public class QtcTrafficTests
|
||||
[Fact]
|
||||
public void AContactAlreadyReportedIsNotReportedAgain()
|
||||
{
|
||||
(RadioPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
(OperatingPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
Contact(position, "DL1AAA", receivedNumber: 16, sentNumber: 1, minute: 46);
|
||||
Contact(position, "DL2BBB", receivedNumber: 40, sentNumber: 2, minute: 47);
|
||||
WaeQtc first = traffic.ToSend(Callsign.Parse("JA1XYZ"))[0];
|
||||
@@ -157,7 +157,7 @@ public class QtcTrafficTests
|
||||
[Fact]
|
||||
public void SeriesAreNumberedAcrossTheContest()
|
||||
{
|
||||
(RadioPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
(OperatingPosition position, QtcTraffic traffic) = Station(ModeCategory.Digital);
|
||||
Assert.Equal(1, traffic.NextSeries());
|
||||
|
||||
position.Session.Add(new WaeQtc(
|
||||
|
||||
Reference in New Issue
Block a user