Reading the source again after this was tried turned up several things it had
wrong or left out.
The TU message went out only when reading a series out. N1MM sends it whichever
way the traffic went, and lets it name the series: {QTC} in it stands for the
header, so TU {QTC} 73 goes out as TU QTC 3/10 73.
The RX Ready button was hidden while sending and sent nothing on CW. It is
N1MM's QRV button: reading out it says R U QRV and keys QRV?, taking down it
says QRV and keys QRV.
The fields were asked for again with shift and Enter, which was made up. N1MM
uses the number keys, and writes them under the lines: 1, 2, 3 and 4 send the
time, call, serial or header of the last line again while reading out, and
shift with 1, 2 or 3 asks for that field while taking down.
The buttons now carry N1MM's names for the direction the traffic is going —
R U QRV, Snd Hdr, Snd1 to Snd10, Exit reading out; QRV, Hdr Agn, Agn1 to Agn10,
Exit taking down — and the Cfm column and Clear are hidden while reading out,
as N1MM hides them. The separate Send Hdr button is gone: N1MM has one button
there that sends the header one way and asks for it the other.
The log window gained N1MM's QTC? column for a contest that carries QTC
traffic. It holds the series, so a QTC row can be told from a contact; before
this a QTC row read as an ordinary one with odd values in the report columns.
Driven under Xvfb against a fake cwdaemon. Reading out: QRV?, QTC 3/2,
2319 DL7GGG 03, then 2319 and QTC 3/2 from the number keys, and
TU QTC 3/2 73 on Exit. Taking down: QRV, AGN TIME, AGN CALL.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
37 lines
2.1 KiB
XML
37 lines
2.1 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="Nonemm.App.Windows.QtcWindow"
|
|
Title="QTC" SizeToContent="WidthAndHeight" CanResize="False"
|
|
WindowStartupLocation="CenterOwner">
|
|
<!-- the background is what makes the panel hit-testable, so the right-click
|
|
menu comes up over the whole window rather than only over a control -->
|
|
<StackPanel Margin="10" Spacing="4" Background="Transparent">
|
|
<StackPanel.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="Setup…" Click="OnSetup" />
|
|
</ContextMenu>
|
|
</StackPanel.ContextMenu>
|
|
<StackPanel Name="DirectionPanel" Orientation="Horizontal" Spacing="8" Margin="0,0,0,4">
|
|
<RadioButton Name="ReceiveButton" Content="Receive" GroupName="direction" IsChecked="True" />
|
|
<RadioButton Name="SendButton" Content="Send" GroupName="direction" />
|
|
</StackPanel>
|
|
<TextBlock Text="QTC Header :" FontSize="11" Opacity="0.7" />
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
<TextBox Name="HeaderBox" Width="170" />
|
|
<Button Name="ReadyButton" Content="RX Ready" Click="OnReady" />
|
|
<Button Name="HeaderAgainButton" Content="Hdr Agn" Click="OnHeaderAgain" />
|
|
<Button Name="HeaderCfmButton" Content="Cfm" Click="OnHeaderConfirm" />
|
|
</StackPanel>
|
|
<Grid Name="Lines" Margin="0,6,0,0" />
|
|
<TextBlock Name="KeysText" FontSize="11" Opacity="0.7" Margin="0,6,0,0" />
|
|
<TextBlock FontSize="11" Opacity="0.7" TextWrapping="Wrap" MaxWidth="420"
|
|
Text="Enter, Tab move forward — space moves within a QTC line. Green = saved, red = not filled, yellow = format error." />
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="6" Margin="0,6,0,0">
|
|
<TextBlock Name="StatusText" VerticalAlignment="Center" FontSize="11" Opacity="0.7" />
|
|
<Button Name="ClearButton" Content="Clear" Click="OnClear" />
|
|
<Button Name="CloseButton" Content="Close" Click="OnClose" IsDefault="True" />
|
|
<Button Content="Cancel" Click="OnCancel" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Window>
|