-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
800 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.ObjectModel; | ||
|
||
namespace SenhaixFreqWriter.Constants.Shx8800Pro; | ||
|
||
public class DtmfChoice | ||
{ | ||
public static ObservableCollection<string> Time = new() | ||
{ | ||
"50 ms", "100 ms", "200 ms", "300 ms", "500 ms" | ||
}; | ||
|
||
public static ObservableCollection<string> SendID = new() | ||
{ | ||
"关", "按下PPT", "松开PPT", "两者" | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
using System.Collections.ObjectModel; | ||
|
||
namespace SenhaixFreqWriter.Constants.Shx8800Pro; | ||
|
||
public class FunctionChoice | ||
{ | ||
public static ObservableCollection<string> Sql = new() | ||
{ | ||
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9" | ||
}; | ||
|
||
public static ObservableCollection<string> TxTimeout = new() | ||
{ | ||
"关", "30s", "60s", "90s", "120s", "150s", "180s", "210s", "240s" | ||
}; | ||
|
||
public static ObservableCollection<string> SaveMode = new() | ||
{ | ||
"关", "普通省电","超级省电","深度省电" | ||
}; | ||
|
||
public static ObservableCollection<string> Vox = new() | ||
{ | ||
"高灵敏度", "中灵敏度", "低灵敏度" | ||
}; | ||
|
||
public static ObservableCollection<string> VoiceSW = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> VoxDelay = new() | ||
{ | ||
"0.5s", "0.6s", "0.7s", "0.8s", "0.9s", "1.0s", "1.1s", "1.2s", "1.3s", "1.4s", | ||
"1.5s", "1.6s", "1.7s", "1.8s", "1.9s", "2.0s" | ||
}; | ||
|
||
public static ObservableCollection<string> DoubleWait = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> Tone = new() | ||
{ | ||
"1000Hz", "1450Hz", "1750Hz", "2100Hz" | ||
}; | ||
|
||
public static ObservableCollection<string> SideTone = new() | ||
{ | ||
"关", "按键侧音","身份码侧音","两者" | ||
}; | ||
|
||
public static ObservableCollection<string> TailClear = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> PowerOnDisplay = new() | ||
{ | ||
"LOGO", "电池电压" | ||
}; | ||
|
||
public static ObservableCollection<string> Beep = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> Roger = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> BtMicGain = new() | ||
{ | ||
"1", "2", "3", "4", "5" | ||
}; | ||
|
||
public static ObservableCollection<string> MicGain = new() | ||
{ | ||
"低增益", "中增益", "高增益" | ||
}; | ||
|
||
public static ObservableCollection<string> ScanMode = new() | ||
{ | ||
"时间扫描", "载波扫描", "搜索扫描" | ||
}; | ||
|
||
public static ObservableCollection<string> Sos = new() | ||
{ | ||
"现场报警", "发射报警音", "发射报警码" | ||
}; | ||
|
||
public static ObservableCollection<string> SosVoice = new() | ||
{ | ||
"关","开" | ||
}; | ||
|
||
public static ObservableCollection<string> KeyLock = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> Fm = new() | ||
{ | ||
"允许", "禁止" | ||
}; | ||
|
||
public static ObservableCollection<string> AutoLock = new() | ||
{ | ||
"关", "5 s", "10 s", "15 s" | ||
}; | ||
|
||
public static ObservableCollection<string> AutoQuit = new() | ||
{ | ||
"5 s", "10 s", "15 s", "20 s", "25 s", "30 s", "35 s", "40 s", "45 s", "50 s", | ||
"60 s" | ||
}; | ||
|
||
public static ObservableCollection<string> BackgroundLightTime = new() | ||
{ | ||
"常开", "5 s", "10 s", "15 s", "20 s", "30 s", "1 min", "2 min", "3 min" | ||
}; | ||
|
||
public static ObservableCollection<string> SendCodeDelay = new() | ||
{ | ||
"0 ms", "100 ms", "200 ms", "400 ms", "600 ms", "800 ms" | ||
}; | ||
|
||
public static ObservableCollection<string> DisplayType = new() | ||
{ | ||
"信道名称", "频率", "信道号" | ||
}; | ||
|
||
public static ObservableCollection<string> WorkMode = new() | ||
{ | ||
"频率模式", "信道模式" | ||
}; | ||
|
||
public static ObservableCollection<string> KeyFunc = new() | ||
{ | ||
"收音机", "监听", "扫描", "扫频", "天气预报" | ||
}; | ||
|
||
public static ObservableCollection<string> RptTailClear = new() | ||
{ | ||
"0", "100 ms", "200 ms", "300 ms", "400 ms", "500 ms", "600 ms", "700 ms", "800 ms", "900 ms", "1000 ms" | ||
}; | ||
|
||
public static ObservableCollection<string> RptDetectTail = new() | ||
{ | ||
"0", "100 ms", "200 ms", "300 ms", "400 ms", "500 ms", "600 ms", "700 ms", "800 ms", "900 ms", "1000 ms" | ||
}; | ||
|
||
public static ObservableCollection<string> VoxSwitch = new() | ||
{ | ||
"关", "开" | ||
}; | ||
|
||
public static ObservableCollection<string> PowerUpDisplayTime = new() | ||
{ | ||
"0.2 s", "0.4 s", "0.6 s", "0.8 s", "1.0 s", "1.2 s", "1.4 s", "1.6 s", "1.8 s", "2.0 s", | ||
"2.2 s", "2.4 s", "2.6 s", "2.8 s", "3.0 s" | ||
}; | ||
|
||
public static ObservableCollection<string> BtGain = new() | ||
{ | ||
"1", "2", "3", "4", "5" | ||
}; | ||
|
||
public static ObservableCollection<string> CurBank = new() | ||
{ | ||
"1", "2", "3", "4", "5", | ||
"6", "7", "8" | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<Window xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Width="400" Height="550" | ||
WindowStartupLocation="CenterScreen" | ||
CanResize="False" | ||
x:Class="SenhaixFreqWriter.Views.Shx8800Pro.DtmfWindow" | ||
xmlns:vm="using:SenhaixFreqWriter.Views.Shx8800Pro" | ||
x:DataType="vm:DtmfWindow" | ||
xmlns:constants="clr-namespace:SenhaixFreqWriter.Constants.Shx8800Pro" | ||
Title="DTMF设置"> | ||
<Canvas> | ||
<DataGrid Margin="20" Name="FMDataGrid" | ||
GridLinesVisibility="All" | ||
BorderThickness="1" BorderBrush="Gray" | ||
CanUserSortColumns="False" | ||
CanUserResizeColumns="True" | ||
CanUserReorderColumns="True" | ||
ItemsSource="{Binding Dtmfs}" | ||
Height="400" | ||
Width="350" | ||
RowBackground="{DynamicResource dgBackgroundBrush}"> | ||
<DataGrid.Columns> | ||
<DataGridTextColumn Header="序号" IsReadOnly="True" Width="*" Binding="{Binding Id }" /> | ||
<DataGridTemplateColumn Header="码" IsReadOnly="False" | ||
Width="*"> | ||
<DataGridTemplateColumn.CellTemplate> | ||
<DataTemplate> | ||
<TextBox Text="{Binding Group}" TextChanged="GroupCodeInputElement_OnLostFocus" /> | ||
<!-- LostFocus="rxFreq_OnLostFocus" /> --> | ||
</DataTemplate> | ||
</DataGridTemplateColumn.CellTemplate> | ||
</DataGridTemplateColumn> | ||
</DataGrid.Columns> | ||
</DataGrid> | ||
<Label Content="本机id" Canvas.Bottom="90" Canvas.Left="15" /> | ||
<TextBox Canvas.Bottom="85" Canvas.Left="90" Text="{Binding MyId}" | ||
TextChanged="GroupCodeInputElement_OnLostFocus" /> | ||
|
||
<Label Content="发送本机id" Canvas.Bottom="50" Canvas.Left="15" /> | ||
<ComboBox Canvas.Bottom="45" Canvas.Left="90" ItemsSource="{x:Static constants:DtmfChoice.SendID}" | ||
SelectedIndex="{Binding PttID}" /> | ||
|
||
<Label Content="DTMF码持续时间" Canvas.Bottom="90" Canvas.Left="160" /> | ||
<ComboBox Canvas.Bottom="85" Canvas.Left="290" ItemsSource="{x:Static constants:DtmfChoice.Time}" | ||
SelectedIndex="{Binding WordTime}" /> | ||
|
||
<Label Content="DTMF码间断时间" Canvas.Bottom="50" Canvas.Left="160" /> | ||
<ComboBox Canvas.Bottom="45" Canvas.Left="290" ItemsSource="{x:Static constants:DtmfChoice.Time}" | ||
SelectedIndex="{Binding IdleTime}" /> | ||
</Canvas> | ||
</Window> |
Oops, something went wrong.