-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
91 lines (91 loc) · 7.88 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<Window x:Class="upSidetone.MainWindow"
xmlns="http:https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http:https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http:https://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http:https://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:upSidetone"
mc:Ignorable="d"
Title="upSidetone by Pengo Wray" Height="595" Width="760" ResizeMode="CanMinimize">
<Grid PreviewKeyDown="Grid_PreviewKeyDown" PreviewKeyUp="Grid_PreviewKeyUp" LostFocus="Grid_LostFocus">
<ComboBox Name="AudioOutputSelect" HorizontalAlignment="Left" Margin="25,45,0,0" VerticalAlignment="Top" Width="360" RenderTransformOrigin="-0.042,0.457" Height="32" SelectionChanged="AudioOutputSelect_SelectionChanged"/>
<Button Content="Key" HorizontalAlignment="Left" Height="70" Margin="25,459,0,0" VerticalAlignment="Top" Width="360" Click="Button_Click" PreviewMouseLeftButtonDown="Button_MouseDown" PreviewMouseLeftButtonUp="Button_MouseUp" MouseDown="Button_MouseDown" MouseUp="Button_MouseUp" MouseLeave="Button_MouseLeave" MouseEnter="Button_MouseEnter"/>
<Label Content="Audio output device" HorizontalAlignment="Left" Height="30" Margin="25,10,0,0" VerticalAlignment="Top" Width="245"/>
<TextBox Name ="DeviceInfoText" Height="72" Margin="25,82,415,0" VerticalAlignment="Top">
<TextBox.Style>
<Style TargetType="TextBox">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</TextBox.Style>
</TextBox>
<Label Content="Midi input (in background):" HorizontalAlignment="Left" Height="30" Margin="25,164,0,0" VerticalAlignment="Top" Width="245"/>
<ComboBox Name="MidiSelect" HorizontalAlignment="Left" Margin="25,194,0,0" VerticalAlignment="Top" Width="360" Height="33" SelectionChanged="MidiSelect_SelectionChanged" />
<TextBox Name ="MidiPianoText" Height="30" Margin="25,232,335,0" VerticalAlignment="Top">
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</TextBox.Style>
</TextBox>
<Button Name="AudioOutputOptionsButton" Content="Options" HorizontalAlignment="Left" Height="30" Margin="325,82,0,0" VerticalAlignment="Top" Width="60" Click="AudioOutOptions_Button_Click"/>
<Button Name="AsioOutputOptionsButton" Content="ASIO" HorizontalAlignment="Left" Height="30" Margin="325,117,0,0" VerticalAlignment="Top" Width="60" Click="AsioOutputOptionsButton_Click" Grid.RowSpan="2"/>
<TextBox Name="DebugText" Visibility="Hidden" HorizontalAlignment="Left" Height="211" Margin="400,299,0,0" TextWrapping="Wrap" Text="Debug log" VerticalAlignment="Top" Width="370" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/>
<Label Content="Mouse button input (in background):" HorizontalAlignment="Left" Height="30" Margin="25,266,0,0" VerticalAlignment="Top" Width="245"/>
<ComboBox Name="MouseSelect" HorizontalAlignment="Left" Margin="25,296,0,0" VerticalAlignment="Top" Width="360" Height="33" SelectionChanged="MouseSelect_SelectionChanged" />
<TextBox Name ="MousePianoText" Height="30" Margin="25,334,335,0" VerticalAlignment="Top">
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</TextBox.Style>
</TextBox>
<Label Content="Keyer mode" HorizontalAlignment="Left" Height="30" Margin="25,356,0,0" VerticalAlignment="Top" Width="245"/>
<ComboBox Name="KeyerModeSelect" HorizontalAlignment="Left" Margin="25,386,0,0" VerticalAlignment="Top" Width="360" Height="33" SelectionChanged="KeyerModeSelect_SelectionChanged" />
<TextBox Name ="KeyerPianoText" Height="30" Margin="25,424,335,0" VerticalAlignment="Top">
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</TextBox.Style>
</TextBox>
<Label Content="Volume:" HorizontalAlignment="Left" Margin="425,45,0,0" VerticalAlignment="Top" Height="32" Width="80"/>
<TextBox Name="Volume" HorizontalAlignment="Left" Height="32" Margin="510,45,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="90" TextChanged="Volume_TextChanged"/>
<Label Content="Tone:" HorizontalAlignment="Left" Margin="425,97,0,0" VerticalAlignment="Top" Height="32" Width="80"/>
<TextBox Name="Frequency" HorizontalAlignment="Left" Height="32" Margin="510,97,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="90" TextChanged="Frequency_TextChanged"/>
<Label Content="WPM:" HorizontalAlignment="Left" Margin="425,154,0,0" VerticalAlignment="Top" Height="32" Width="80"/>
<TextBox Name="WPM" HorizontalAlignment="Left" Height="32" Margin="510,154,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="90" TextChanged="WPM_TextChanged"/>
<CheckBox Name="Flipped" Content="Flip left/right" HorizontalAlignment="Left" Height="20" Margin="510,210,0,0" VerticalAlignment="Top" Width="135" Checked="Flipped_Checked" Unchecked="Flipped_Checked"/>
<Label Content="Inputs:" HorizontalAlignment="Left" Margin="425,203,0,0" VerticalAlignment="Top" Height="32" Width="80"/>
<Label Content="Hz" HorizontalAlignment="Left" Margin="605,97,0,0" VerticalAlignment="Top" Height="32" Width="80"/>
<Label Content="Serial port input: (CTS/DSR)" HorizontalAlignment="Left" Height="30" Margin="425,266,0,0" VerticalAlignment="Top" Width="245"/>
<ComboBox Name="SerialPorts" HorizontalAlignment="Left" Margin="425,296,0,0" VerticalAlignment="Top" Width="275" Height="33" SelectionChanged="SerialPorts_SelectionChanged" />
<TextBox x:Name ="SerialPortPianoText" Height="30" Margin="425,334,20,0" VerticalAlignment="Top">
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</TextBox.Style>
</TextBox>
<Label Content="Virtual paddles pass-thru:" HorizontalAlignment="Left" Height="30" Margin="428,425,0,0" VerticalAlignment="Top" Width="175"/>
<ComboBox Name="VSerialPorts" HorizontalAlignment="Left" Margin="428,455,0,0" VerticalAlignment="Top" Width="275" Height="33" SelectionChanged="VSerialPorts_SelectionChanged" />
<TextBox Name ="VSerialPortPianoText" Height="30" Margin="428,493,20,0" VerticalAlignment="Top">
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</TextBox.Style>
</TextBox>
<CheckBox Name="RTSHighCheckbox" Content="RTS High" HorizontalAlignment="Left" Margin="617,431,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.21,0.003" Checked="RTSHighCheckbox_Checked"/>
</Grid>
</Window>