PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Application/GUI/Windows/Equalizer.xaml

http://yet-another-music-application.googlecode.com/
XAML | 123 lines | 93 code | 14 blank | 16 comment | 0 complexity | 3a0e007c6f3f10370962b919d8196df0 MD5 | raw file
  1<!--Equalizer.xaml
  2	
  3	The equalizer window.
  4	
  5	= = = = = = = = = =
  6	
  7	This code is part of the Stoffi Music Player Project.
  8	Visit our website at: stoffiplayer.com
  9	
 10	This program is free software; you can redistribute it and/or
 11	modify it under the terms of the GNU General Public License
 12	as published by the Free Software Foundation; either version
 13	3 of the License, or (at your option) any later version.
 14	
 15	See stoffiplayer.com/license for more information.
 16	-->
 17<Window x:Class="Stoffi.Equalizer"
 18		Name="EqualizerDialog"
 19		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 20		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 21		xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
 22		xmlns:Stoffi="clr-namespace:Stoffi"
 23		loc:Translate.Uid="EqualizerTitle"
 24		Title="{loc:Translate Title}"
 25		Icon="../../Stoffi.ico"
 26		ShowInTaskbar="False" MinHeight="230" MinWidth="415"
 27		Height="{Binding Source={StaticResource Settings}, Path=EqualizerHeight, Mode=TwoWay}"
 28		Width="{Binding Source={StaticResource Settings}, Path=EqualizerWidth, Mode=TwoWay}"
 29		SizeChanged="EqualizerDialog_SizeChanged"
 30		LocationChanged="EqualizerDialog_LocationChanged"
 31		WindowStartupLocation="CenterScreen"
 32		WindowStyle="SingleBorderWindow"
 33		ResizeMode="NoResize"
 34		Background="#D4D0C8"
 35		TextOptions.TextFormattingMode="Display">
 36	<Grid Margin="5 5 5 5">
 37		<Grid.ColumnDefinitions>
 38			<ColumnDefinition Width="25"/>
 39			<ColumnDefinition Width="0"/>
 40			<ColumnDefinition Width="0"/>
 41			<ColumnDefinition Width="*"/>
 42			<ColumnDefinition Width="*"/>
 43			<ColumnDefinition Width="*"/>
 44			<ColumnDefinition Width="*"/>
 45			<ColumnDefinition Width="*"/>
 46			<ColumnDefinition Width="*"/>
 47			<ColumnDefinition Width="*"/>
 48			<ColumnDefinition Width="*"/>
 49			<ColumnDefinition Width="*"/>
 50			<ColumnDefinition Width="*"/>
 51			<ColumnDefinition Width="25"/>
 52		</Grid.ColumnDefinitions>
 53		<Grid.RowDefinitions>
 54			<RowDefinition Height="Auto"/>
 55			<RowDefinition Height="Auto"/>
 56			<RowDefinition Height="*"/>
 57			<RowDefinition Height="Auto"/>
 58		</Grid.RowDefinitions>
 59		
 60		<StackPanel Grid.ColumnSpan="14" Grid.Row="0" Orientation="Horizontal" Margin="0 0 0 10">
 61			<TextBlock loc:Translate.Uid="EqualizerProfile" Text="{loc:Translate Text}" VerticalAlignment="Center" Margin="5 0"/>
 62			<ComboBox VerticalAlignment="Center" Name="Profiles" SelectionChanged="Profiles_SelectionChanged"/>
 63			<Button loc:Translate.Uid="ButtonRename" Content="{loc:Translate Content}"   Visibility="Collapsed" MinWidth="70" Margin="5 5" Name="Rename" Click="Rename_Click"/>
 64			<Button loc:Translate.Uid="ButtonRemove" Content="{loc:Translate Content}"   Visibility="Collapsed" MinWidth="70" Margin="0 5" Name="Remove" Click="Remove_Click"/>
 65			<Button loc:Translate.Uid="ButtonNew"    Content="{loc:Translate Content}"   Visibility="Visible"   MinWidth="70" Margin="5 5" Name="New"    Click="New_Click"/>
 66		</StackPanel>
 67
 68		<TextBlock loc:Translate.Uid="EqualizerHertz" Text="{loc:Translate Text}" Grid.Column="0" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 69
 70		<TextBlock Text="125" Grid.Column="3" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 71		<Slider Orientation="Vertical" Grid.Column="3" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="0"
 72				Margin="0 6" Name="F125" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True"/>
 73
 74		<TextBlock Text="250" Grid.Column="4" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 75		<Slider Orientation="Vertical" Grid.Column="4" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="1"
 76				Margin="0 6" Name="F250" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
 77
 78		<TextBlock Text="500" Grid.Column="5" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 79		<Slider Orientation="Vertical" Grid.Column="5" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="2"
 80				Margin="0 6" Name="F500" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
 81
 82		<TextBlock Text="1K" Grid.Column="6" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 83		<Slider Orientation="Vertical" Grid.Column="6" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="3"
 84				Margin="0 6" Name="F1K" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
 85
 86		<TextBlock Text="2K" Grid.Column="7" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 87		<Slider Orientation="Vertical" Grid.Column="7" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="4"
 88				Margin="0 6" Name="F2K" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
 89
 90		<TextBlock Text="4K" Grid.Column="8" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 91		<Slider Orientation="Vertical" Grid.Column="8" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="5"
 92				Margin="0 6" Name="F4K" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
 93
 94		<TextBlock Text="8K" Grid.Column="9" Grid.Row="1" FontSize="10" SnapsToDevicePixels="True"/>
 95		<Slider Orientation="Vertical" Grid.Column="9" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="6"
 96				Margin="0 6" Name="F8K" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
 97
 98		<TextBlock Text="16K" Grid.Column="10" Grid.Row="1" FontSize="10"/>
 99		<Slider Orientation="Vertical" Grid.Column="10" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="50" Tag="7"
100				Margin="0 6" Name="F16K" ValueChanged="Slider_ValueChanged" Maximum="150" Minimum="-150" UseLayoutRounding="True" />
101
102		<DockPanel Grid.Column="11" Grid.Row="2">
103			<Label DockPanel.Dock="Top" Content="+15dB" FontSize="8" SnapsToDevicePixels="True" Padding="0 4"/>
104			<Label DockPanel.Dock="Bottom" Content="-15dB" FontSize="8" VerticalAlignment="Bottom" Padding="0 7" SnapsToDevicePixels="True"/>
105		</DockPanel>
106		<DockPanel Grid.Column="13" Grid.Row="2">
107			<TextBlock DockPanel.Dock="Top"    loc:Translate.Uid="EchoWet" Text="{loc:Translate Text}" TextTrimming="CharacterEllipsis" FontSize="10" SnapsToDevicePixels="True" Padding="0 4"/>
108			<TextBlock DockPanel.Dock="Bottom" loc:Translate.Uid="EchoDry" Text="{loc:Translate Text}" TextTrimming="CharacterEllipsis" FontSize="10" VerticalAlignment="Bottom" Padding="0 7" SnapsToDevicePixels="True"/>
109		</DockPanel>
110
111		<TextBlock loc:Translate.Uid="EqualizerEcho" Text="{loc:Translate Text}" Grid.Column="12" Grid.Row="1" FontSize="10" 
112				   SnapsToDevicePixels="True" Padding="0" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
113		<Slider Orientation="Vertical" Grid.Column="12" Grid.Row="2" TickPlacement="BottomRight" TickFrequency="10" Maximum="100"
114				Margin="0 6" Name="Echo" ValueChanged="Echo_ValueChanged" UseLayoutRounding="True" />
115
116		<StackPanel Grid.ColumnSpan="14" Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right">
117			<Button loc:Translate.Uid="ButtonApply" Content="{loc:Translate Content}"   Visibility="Collapsed" MinWidth="80" Margin="5 5"     Name="Apply"  Click="Apply_Click"/>
118			<Button loc:Translate.Uid="ButtonClose" Content="{loc:Translate Content}"   Visibility="Visible"   MinWidth="80" Margin="0 5"     Name="Cancel" Click="Cancel_Click"/>
119			<Button loc:Translate.Uid="ButtonOK"    Content="{loc:Translate Content}"   Visibility="Collapsed" MinWidth="80" Margin="5 5 0 5" Name="OK"     Click="OK_Click"/>
120		</StackPanel>
121
122	</Grid>
123</Window>