The program stored an operator's window positions but never used them at startup: the entry window was not placed and no window was reopened. It now restores the whole screen both at startup and on a change of operator: the windows that operator had open, where he had them, and the ones he did not have closed. The second radio's entry window no longer saves the layout. It has none of the other windows open, so saving from it dropped every window the first one had. Ctrl+O gets six buttons for the operators last at the radio, newest first. One click changes to that operator. The recordings folder is no longer asked for. It is `Wav/<callsign>` under the data folder, which is where N1MM plays them from, so `StoredOperator.WavPath` is gone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0157i7PiZyqBkquxS9A6FTdQ
36 lines
1.6 KiB
XML
36 lines
1.6 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="Nonemm.App.Dialogs.OperatorDialog"
|
|
Title="Operator" Width="420" SizeToContent="Height"
|
|
WindowStartupLocation="CenterOwner" CanResize="False">
|
|
<Window.Styles>
|
|
<Style Selector="TextBlock.label">
|
|
<Setter Property="FontSize" Value="11" />
|
|
<Setter Property="Opacity" Value="0.7" />
|
|
<Setter Property="Margin" Value="0,8,0,1" />
|
|
</Style>
|
|
</Window.Styles>
|
|
<DockPanel Margin="14">
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Center"
|
|
Spacing="20" Margin="0,14,0,0">
|
|
<Button Content="Ok" Width="85" HorizontalContentAlignment="Center"
|
|
Click="OnOk" IsDefault="True" />
|
|
<Button Content="Remove" Width="85" HorizontalContentAlignment="Center" Click="OnRemove" />
|
|
<Button Content="Cancel" Width="85" HorizontalContentAlignment="Center"
|
|
Click="OnCancel" IsCancel="True" />
|
|
</StackPanel>
|
|
<StackPanel Spacing="2">
|
|
<TextBlock Name="RecentLabel" Classes="label" Text="Recent" />
|
|
<UniformGrid Name="RecentPanel" Columns="3" />
|
|
<TextBlock Classes="label" Text="Operator callsign" />
|
|
<Grid ColumnDefinitions="*,6,150">
|
|
<TextBox Name="CallBox" />
|
|
<ComboBox Name="KnownBox" Grid.Column="2" HorizontalAlignment="Stretch"
|
|
SelectionChanged="OnPickedKnown" PlaceholderText="known" />
|
|
</Grid>
|
|
<TextBlock Name="AboutText" FontSize="11" Opacity="0.75" Margin="0,10,0,0"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</Window>
|