Put the QTC window's settings on its right-click menu

N1MM keeps them on a Setup tab inside the window; here they are a dialog behind
a right-click, which suits a window this size better. Four of them, with N1MM's
own defaults: how many QTCs a series carries, whether the RX Ready and Cfm steps
are stopped at on the way through, and whether Hdr Agn and Agn clear what they
are asking for again.

Each one changes what the window does. The series count is passed to the search
for contacts worth reporting, the two skip settings are the focus order, and the
two clear settings are what the Agn buttons do. The Cfm buttons also disappear
when a RTTY station is reading its own log out, which is what N1MM does with
them.

N1MM's remaining QTC settings are all about putting traffic on the air — the CW
messages for Agn and TU, the field spacing, the four SSB recordings, the RTTY
templates — and nothing here transmits, so they are left out rather than shown
as settings that do nothing. The dialog says so where the operator will look.

The right-click menu needed a background on the panel to come up anywhere but
over a control: a panel with no background is not hit-tested.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-28 00:10:39 +00:00
parent 9ae5078c84
commit 648da1918a
8 changed files with 146 additions and 17 deletions

View File

@@ -3,14 +3,21 @@
x:Class="Nonemm.App.Windows.QtcWindow"
Title="QTC" SizeToContent="WidthAndHeight" CanResize="False"
WindowStartupLocation="CenterOwner">
<StackPanel Margin="10" Spacing="4">
<!-- 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="110" />
<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" />