You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
267 lines
15 KiB
267 lines
15 KiB
<Window x:Class="dvmconsole.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:dvmconsole.Controls"
|
|
Title="Digital Voice Modem - Desktop Dispatch Console" Height="600" Width="875" MinHeight="600" MinWidth="875" Background="#FFF2F2F2" Icon="/Assets/AppIcon.ico">
|
|
<Grid Background="#FFF2F2F2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="497*"/>
|
|
<ColumnDefinition Width="3*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="52" />
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border BorderBrush="#FFB7B7B7" BorderThickness="1" Grid.Row="1" Grid.ColumnSpan="2">
|
|
<Border.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="White"/>
|
|
<GradientStop Color="#FFDFDFDF" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
</Border>
|
|
|
|
<Menu VerticalAlignment="Center" Height="25" Background="White" Grid.ColumnSpan="2">
|
|
<MenuItem Header="File">
|
|
<MenuItem Header="_Open Codeplug" Click="OpenCodeplug_Click"/>
|
|
<Separator />
|
|
<MenuItem Header="_Exit" Click="Exit_Click" />
|
|
</MenuItem>
|
|
<MenuItem Header="Edit">
|
|
<MenuItem Header="_Audio Settings" Click="AudioSettings_Click" />
|
|
<MenuItem Header="_Reset Settings" Click="ResetSettings_Click"/>
|
|
<Separator />
|
|
<MenuItem Header="_Enable Edit Mode" IsCheckable="True" Checked="ToggleEditMode_Click" Unchecked="ToggleEditMode_Click" />
|
|
<Separator />
|
|
<MenuItem Header="_Select Widgets to Display" Click="SelectWidgets_Click"/>
|
|
<MenuItem Header="Alerts">
|
|
<MenuItem Header="Add Alert Tone" Click="AddAlertTone_Click"/>
|
|
</MenuItem>
|
|
</MenuItem>
|
|
<MenuItem Header="Page">
|
|
<MenuItem Header="_Page Subscriber" Click="P25Page_Click" />
|
|
<MenuItem Header="_QuickCall II" Click="ManualPage_Click" />
|
|
</MenuItem>
|
|
</Menu>
|
|
|
|
<!-- Channel Widget Canvas -->
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Grid.Row="2" Grid.ColumnSpan="2" VerticalAlignment="Stretch">
|
|
<Canvas x:Name="ChannelsCanvas" Background="#FFF2F2F2" VerticalAlignment="Top"/>
|
|
</ScrollViewer>
|
|
|
|
<!-- Application Banner -->
|
|
<Image Height="50" Grid.Row="1" VerticalAlignment="Center" Source="/Assets/DvmLogo.png" Stretch="UniformToFill" Margin="0,0,634,0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Right" Width="231">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform AngleY="-0.164"/>
|
|
<RotateTransform/>
|
|
<TranslateTransform Y="-0.247"/>
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
|
|
<!-- Open Codeplug -->
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="238,0,0,0" VerticalAlignment="Center" Height="46" Width="45" x:Name="OpenCodeplug_Click2" Click="OpenCodeplug_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Open Codeplug">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="41" Source="/Assets/config2.png" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.598" Height="46"/>
|
|
</Button>
|
|
|
|
<!-- Global PTT -->
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" x:Name="btnGlobalPtt" VerticalAlignment="Center" Height="46" Width="82" Click="btnGlobalPtt_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial" Margin="285,0,0,0"
|
|
ToolTip="Global PTT">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Center" Width="62" Source="/Assets/instantptt.png" IsHitTestVisible="False" Height="45" >
|
|
<Image.OpacityMask>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="Black"/>
|
|
<GradientStop Color="White" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Image.OpacityMask>
|
|
</Image>
|
|
</Button>
|
|
|
|
<!-- Alert Tone 1, 2 and 3 -->
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="369,0,0,0" VerticalAlignment="Center" Height="46" Width="45" x:Name="btnAlert1" Click="btnAlert1_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Alert Tone 1">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<StackPanel>
|
|
<Image HorizontalAlignment="Center" Width="37" Source="/Assets/alerttone2.png" IsHitTestVisible="False" Height="34"/>
|
|
<TextBlock TextAlignment="Center">1</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="416,0,0,0" VerticalAlignment="Center" Height="46" Width="45" x:Name="btnAlert2" Click="btnAlert2_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Alert Tone 2">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<StackPanel>
|
|
<Image HorizontalAlignment="Center" Width="37" Source="/Assets/alerttone2.png" IsHitTestVisible="False" Height="34"/>
|
|
<TextBlock TextAlignment="Center">2</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="463,0,0,0" VerticalAlignment="Center" x:Name="btnAlert3" Height="46" Width="45" Click="btnAlert3_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Alert Tone 3">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<StackPanel>
|
|
<Image HorizontalAlignment="Center" Width="37" Source="/Assets/alerttone2.png" IsHitTestVisible="False" Height="34"/>
|
|
<TextBlock TextAlignment="Center">3</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
<!-- Page Subscriber -->
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="510,0,0,0" VerticalAlignment="Center" Height="46" Width="44" Click="P25Page_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Page Subscriber">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="38" Source="/Assets/page.png" IsHitTestVisible="False" Height="46"/>
|
|
</Button>
|
|
|
|
<!-- Clear Emergency (disabled) -->
|
|
<Button VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="559,0,0,0" VerticalAlignment="Center" Height="46" Width="45" Click="ClearEmergency_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Clear Emergency" Visibility="Hidden">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="37" Source="/Assets/clearemerg.png" IsHitTestVisible="False" Height="46"/>
|
|
</Button>
|
|
|
|
<!-- Select/Unselect All -->
|
|
<Button VerticalContentAlignment="Center" HorizontalAlignment="Left" Margin="609,0,0,0" VerticalAlignment="Center" Height="46" Click="SelectAll_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" FontSize="10" FontFamily="Arial" Grid.Row="1"
|
|
ToolTip="Select All/Unselect All">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="41" Source="/Assets/select.png" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.598" Height="46"/>
|
|
</Button>
|
|
|
|
<!-- Encryption Key Information -->
|
|
<Button VerticalContentAlignment="Center" HorizontalAlignment="Left" Margin="656,0,0,0" VerticalAlignment="Center" Height="46" Width="44" Click="KeyStatus_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" FontSize="10" FontFamily="Arial" Grid.Row="1"
|
|
ToolTip="Encryption Key Information">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="41" Source="/Assets/key.png" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.598" Height="46"/>
|
|
</Button>
|
|
|
|
<!-- Call History -->
|
|
<Button VerticalContentAlignment="Center" HorizontalAlignment="Left" Margin="703,0,0,0" VerticalAlignment="Center" Height="46" Width="44" Click="CallHist_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" FontSize="10" FontFamily="Arial" Grid.Row="1"
|
|
ToolTip="Call History">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="41" Source="/Assets/history.png" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.598" Height="46"/>
|
|
</Button>
|
|
|
|
<!-- Audio Settings -->
|
|
<Button VerticalContentAlignment="Bottom" VerticalAlignment="Center" Height="46" Click="AudioSettings_Click" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" Grid.Row="1" FontSize="10" FontFamily="Arial"
|
|
ToolTip="Audio Settings" HorizontalAlignment="Left" Width="54" Margin="800,0,0,0">
|
|
<Button.Resources>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="CornerRadius" Value="2"/>
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFF0F0F0" Offset="0.485"/>
|
|
<GradientStop Color="#FFDBDBDB" Offset="0.517"/>
|
|
</LinearGradientBrush>
|
|
</Button.Background>
|
|
<Image HorizontalAlignment="Left" Width="42" Source="/Assets/audio.png" IsHitTestVisible="False" Height="46"/>
|
|
</Button>
|
|
</Grid>
|
|
</Window>
|