-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
322 lines (286 loc) · 20 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<Window
x:Class="Netytar.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Netytar" WindowStyle="None" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen" WindowState="Maximized" Width="1537" Height="865" Loaded="Window_Loaded" Unloaded="Window_Unloaded">
<!-- MAIN GRID -->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Grid.Background>
<ImageBrush ImageSource="Images/Backgrounds/DarkWood.png" TileMode="Tile" />
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="70" />
<RowDefinition Height="20*" />
</Grid.RowDefinitions>
<!-- HEADBAR -->
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal" FlowDirection="LeftToRight">
<Label Content="Netytar" HorizontalAlignment="Left" VerticalAlignment="Center" FontFamily="{StaticResource TitleFont}" FontSize="35" Foreground="White" Width="200"/>
<Border Style="{StaticResource LCDBorder}" Height="50" Width="100">
<TextBlock Name="txtNoteName" Text="n" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Border Style="{StaticResource LCDBorder}" Height="50" Width="100">
<TextBlock Name="txtPitch" Text="p" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Border Style="{StaticResource LCDBorder}" Height="50" Width="100">
<TextBlock Name="txtIsBlowing" Text="b" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Border Width="200" Height="50" CornerRadius="15" Background="Black">
<ProgressBar Name="prbBreathSensor" Margin="5,5,5,5" Background="Black" Foreground="White" BorderThickness="0" Orientation="Horizontal" Maximum="100" Minimum="0"/>
</Border>
<Border Visibility="Hidden" Style="{StaticResource LCDBorder}" Height="50" Width="100">
<TextBlock Name="txtTestIndicator" Text="val" Style="{StaticResource LCDText}" FontSize="7">
</TextBlock>
</Border>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" FlowDirection="RightToLeft" Grid.ColumnSpan="1">
<Button Name="btnExit" Style="{StaticResource RWood}" Click="BtnExit_Click" HorizontalContentAlignment="Center">
<Image Source="/Images/Icons/Cross.png" Margin="10,10,10,10" />
</Button>
<Button Name="btnSettings" Style="{StaticResource MWood}" Click="btnSettings_Click" HorizontalContentAlignment="Center">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0" FlowDirection="LeftToRight">
<Border Name="indSettings" Style="{StaticResource Indicator}" />
<Image Source="/Images/Icons/Settings.png" Margin="10,8,0,8" />
</StackPanel>
</Button>
<Button Name="btnToggleAutoScroll" Style="{StaticResource MWood}" Click="btnToggleAutoScroll_Click" HorizontalContentAlignment="Center">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0" FlowDirection="LeftToRight">
<Border Name="indToggleAutoScroll" Style="{StaticResource Indicator}" />
<Image Source="/Images/Icons/AutoScroll.png" Margin="10,5,0,5" />
</StackPanel>
</Button>
<Button Name="btnToggleEyeTracker" Style="{StaticResource MWood}" Click="btnToggleEyeTracker_Click" HorizontalContentAlignment="Center">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0" FlowDirection="LeftToRight">
<Border Name="indToggleEyeTracker" Style="{StaticResource Indicator}" />
<Image Source="/Images/Icons/EyeTracker.png" Margin="10,5,0,5" />
</StackPanel>
</Button>
<Button Name="btnToggleCursor" Style="{StaticResource MWood}" Click="btnNoCursor_Click" HorizontalContentAlignment="Center">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0" FlowDirection="LeftToRight">
<Border Name="indToggleCursor" Style="{StaticResource Indicator}" />
<Image Source="/Images/Icons/NoCursor.png" Margin="10,8,0,8" />
</StackPanel>
</Button>
</StackPanel>
</Grid>
<!-- LAYOUT -->
<TabControl Grid.Row="1" x:Name="tabSolo" BorderBrush="Transparent" Background="Black" Grid.ColumnSpan="2">
<TabItem x:Name="tabNetytar" Header="Netytar" Visibility="Collapsed" BorderBrush="Transparent">
<Grid Background="Black">
<ScrollViewer x:Name="scrlNetytar" Width="Auto" Height="Auto" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" BorderBrush="Transparent">
<Canvas x:Name="canvasNetytar" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" Width="2000" Height="2000">
<Canvas.Background>
<SolidColorBrush Color="Black" />
</Canvas.Background>
</Canvas>
</ScrollViewer>
</Grid>
</TabItem>
</TabControl>
<!-- SETTINGS panel -->
<Border Name="brdSettings" Grid.Row="1" HorizontalAlignment="Left" Width="760" Height="Auto" Margin="5,5,5,5" CornerRadius="10" Visibility="Visible">
<Border.Background>
<ImageBrush ImageSource="Images/Backgrounds/LightWood.jpg" TileMode="Tile" />
</Border.Background>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<!-- Left Stackpanel -->
<StackPanel Grid.Column="0" Orientation="Vertical" Margin="5,5,5,5">
<!-- Midi port selector -->
<Label Content="Midi port" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
</Grid.ColumnDefinitions>
<Button x:Name="btnMIDIchMinus" Content="⮜" Click="BtnMIDIchMinus_Click" Style="{StaticResource DWood}" />
<Border Grid.Column="1" Name="brdMIDIch" Style="{StaticResource LCDBorder}">
<TextBlock Name="txtMIDIch" Text="MP-" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Button Grid.Column="2" x:Name="btnMIDIchPlus" Content="⮞" Click="BtnMIDIchPlus_Click" Style="{StaticResource DWood}" />
</Grid>
<!-- Com port selector -->
<Label Content="Sensor port" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Name="btnSensorPortMinus" Content="⮜" Click="BtnSensorPortMinus_Click" Style="{StaticResource DWood}" />
<Border Grid.Column="1" Style="{StaticResource LCDBorder}">
<TextBlock Name="txtSensorPort" Text="COM" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Button Grid.Column="2" Name="btnSensorPortPlus" Content="⮞" Click="BtnSensorPortPlus_Click" Style="{StaticResource DWood}" HorizontalAlignment="Left" Margin="5,5,0,5" Width="115" />
</Grid>
<!-- Sensing intensity -->
<Label Content="Sensing intensity" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Name="btnSensingIntensityMinus" Content="⮜" Click="BtnSensingIntensityMinus_OnClick" Style="{StaticResource DWood}" />
<Border Grid.Column="1" Style="{StaticResource LCDBorder}">
<TextBlock Name="txtSensingIntensity" Text="1.0" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Button Grid.Column="2" Name="btnSensingIntensityPlus" Content="⮞" Click="BtnSensingIntensityPlus_OnClick" Style="{StaticResource DWood}" HorizontalAlignment="Left" Margin="5,5,0,5" Width="115" />
</Grid>
<!-- Root note selector -->
<Label Content="Scale selection" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Name="btnRootNoteMinus" Content="⮜" Click="btnRootNoteMinus_Click" Style="{StaticResource DWood}" />
<Border Grid.Column="1" Style="{StaticResource LCDBorder}">
<UniformGrid Columns="2">
<TextBlock Name="txtRootNote" Text="N" Style="{StaticResource LCDText}" />
<Border Name="indRootNoteColor" Style="{StaticResource Indicator}" Background="white" />
</UniformGrid>
</Border>
<Button Grid.Column="2" Name="btnRootNotePlus" Content="⮞" Click="btnRootNotePlus_Click" Style="{StaticResource DWood}" />
</Grid>
<!-- Scale type selector -->
<UniformGrid Columns="2" Rows="1">
<Button Name="btnScaleMajor" Style="{StaticResource DWoodLeft}" Click="btnScaleMajor_Click">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indScaleMajor" Style="{StaticResource Indicator}" />
<Label Content="Major" VerticalAlignment="Center" FontSize="18" Foreground="LightCoral" />
</StackPanel>
</Button>
<Button Name="btnScaleMinor" Style="{StaticResource DWoodLeft}" Click="btnScaleMinor_Click">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indScaleMinor" Style="{StaticResource Indicator}" />
<Label Content="Minor" VerticalAlignment="Center" FontSize="18" Foreground="LightBlue"/>
</StackPanel>
</Button>
</UniformGrid>
<!-- Keys spacing -->
<Label Content="Keys spacing" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
<ColumnDefinition Width = "1*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Name="btnSpacingMinus" Content="⮜" Click="btnSpacingMinus_Click" Style="{StaticResource DWood}" />
<Border Grid.Column="1" Style="{StaticResource LCDBorder}">
<TextBlock Name="txtSpacing" Text="-" Style="{StaticResource LCDText}">
</TextBlock>
</Border>
<Button Grid.Column="2" Name="btnSpacingPlus" Content="⮞" Click="btnSpacingPlus_Click" Style="{StaticResource DWood}" />
</Grid>
</StackPanel>
<!-- Right Stackpanel -->
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="5,5,5,5">
<!-- ============ Switchable settings -->
<Label Content="Interaction settings"/>
<UniformGrid Columns="2" Rows="3">
<!-- Mod -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Name="btnMod" Style="{StaticResource DWood}" Width="{StaticResource HG}" Click="btnMod_Click">
<Border Name="indMod" Style="{StaticResource Indicator}" />
</Button>
<Label VerticalAlignment="Center" Content="Modul." />
</StackPanel>
<!-- Breath switch -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Name="btnBSwitch" Style="{StaticResource DWood}" Width="{StaticResource HG}" Click="btnBSwitch_Click">
<Border Name="indBSwitch" Style="{StaticResource Indicator}" />
</Button>
<Label VerticalAlignment="Center" Content="B. switch" />
</StackPanel>
<!-- Sharp notes -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Name="btnSharpNotes" Style="{StaticResource DWood}" Width="{StaticResource HG}" Click="btnSharpNotes_Click">
<Border Name="indSharpNotes" Style="{StaticResource Indicator}" />
</Button>
<Label VerticalAlignment="Center" Content="Accid." />
</StackPanel>
<!-- Slide play -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Name="btnSlidePlay" Style="{StaticResource DWood}" Width="{StaticResource HG}" Click="btnSlidePlay_Click">
<Border Name="indSlidePlay" Style="{StaticResource Indicator}" />
</Button>
<Label VerticalAlignment="Center" Content="Legato" />
</StackPanel>
<!-- Note names -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Name="btnNoteNames" Style="{StaticResource DWood}" Width="{StaticResource HG}" Click="btnNoteNames_Click">
<Border Name="indNoteNames" Style="{StaticResource Indicator}" />
</Button>
<Label VerticalAlignment="Center" Content="Names" />
</StackPanel>
<!-- Blink play (HIDDEN) -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Name="btnBlinkPlay" Style="{StaticResource DWood}" Width="{StaticResource HG}" Click="btnBlinkPlay_Click">
<Border Name="indBlinkPlay" Style="{StaticResource Indicator}" />
</Button>
<Label VerticalAlignment="Center" Content="Blink p." />
</StackPanel>
</UniformGrid>
<!-- Control selector -->
<Label Content="Interaction method" />
<UniformGrid Columns="2" Rows="3">
<Button Name="btnKeyboard" Style="{StaticResource DWoodLeft}" Click="btnKeyboard_Click">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indKeyboard" Style="{StaticResource Indicator}" />
<Label Content="Keys" VerticalAlignment="Center" FontSize="18" Style="{StaticResource ButtonLabel}"/>
</StackPanel>
</Button>
<Button Name="btnBreath" Style="{StaticResource DWoodLeft}" Click="btnBreath_Click">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indBreath" Style="{StaticResource Indicator}" />
<Label Content="Breath" VerticalAlignment="Center" FontSize="18" Style="{StaticResource ButtonLabel}"/>
</StackPanel>
</Button>
<Button Name="btnTeeth" Style="{StaticResource DWoodLeft}" Click="btnTeeth_Click">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indTeeth" Style="{StaticResource Indicator}" />
<Label Content="Teeth" VerticalAlignment="Center" FontSize="18" Style="{StaticResource ButtonLabel}"/>
</StackPanel>
</Button>
<Button Name="btnHeadYaw" Style="{StaticResource DWoodLeft}" Click="btnHeadYaw_Click">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indHeadYaw" Style="{StaticResource Indicator}" />
<Label Content="Head (yaw)" VerticalAlignment="Center" FontSize="18" Style="{StaticResource ButtonLabel}"/>
</StackPanel>
</Button>
<Button Name="btnMouthAperture" Style="{StaticResource DWoodLeft}" Click="BtnMouthAperture_OnClick">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="4,0,0,0">
<Border Name="indMouthAperture" Style="{StaticResource Indicator}" />
<Label Content="Mouth" VerticalAlignment="Center" FontSize="18" Style="{StaticResource ButtonLabel}"/>
</StackPanel>
</Button>
</UniformGrid>
</StackPanel>
</Grid>
</Border>
<!-- OLD ___________________________________________ OLD __________________ -->
<!-- MODULATION AND SWITCHES -->
</Grid>
</Window>