summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/AudioView.xaml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-04-12 20:42:17 +0000
committersr55 <[email protected]>2012-04-12 20:42:17 +0000
commit62ee548526fb578b9027ef0d9deac02e509872f8 (patch)
treec14d4687c3a0346950726051249abd91d90e370c /win/CS/HandBrakeWPF/Views/AudioView.xaml
parent8dfb6d1874dbdac2754882b62e1e023af0c515a5 (diff)
WinGui: (WPF) Audio Panel Auto Passthru implementation.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4597 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/AudioView.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Views/AudioView.xaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/AudioView.xaml b/win/CS/HandBrakeWPF/Views/AudioView.xaml
index a27c02085..450d463e5 100644
--- a/win/CS/HandBrakeWPF/Views/AudioView.xaml
+++ b/win/CS/HandBrakeWPF/Views/AudioView.xaml
@@ -11,6 +11,7 @@
<UserControl.Resources>
<Conveters:EnumComboConverter x:Key="enumComboConverter" />
+ <Conveters:BooleanToVisibilityConverter x:Key="boolToVisConverter" />
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
@@ -24,9 +25,24 @@
<Grid Grid.Row="1" Margin="10,5,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Button Content="Add Track" cal:Message.Attach="[Event Click] = [Action Add]" Grid.Column="0" Width="75" Margin="0,0,10,0" />
+
+ <StackPanel Orientation="Horizontal" Grid.Column="2" Visibility="{Binding ShowPassthruOptions, Converter={StaticResource boolToVisConverter}}" >
+ <TextBlock Text="Auto Passthru:" Margin="5,0,5,0" />
+ <CheckBox Content="MP3" Margin="0,0,5,0" IsChecked="{Binding Task.AllowedPassthruOptions.AudioAllowMP3Pass}" />
+ <CheckBox Content="AAC" Margin="0,0,5,0" IsChecked="{Binding Task.AllowedPassthruOptions.AudioAllowAACPass}" />
+ <CheckBox Content="AC3" Margin="0,0,5,0" IsChecked="{Binding Task.AllowedPassthruOptions.AudioAllowAC3Pass}" />
+ <CheckBox Content="DTS" Margin="0,0,5,0" IsChecked="{Binding Task.AllowedPassthruOptions.AudioAllowDTSPass}" />
+ <CheckBox Content="DTSHD" Margin="0,0,5,0" IsChecked="{Binding Task.AllowedPassthruOptions.AudioAllowDTSHDPass}" />
+ <TextBlock Text="Fallback:" Margin="5,0,5,0" />
+ <ComboBox Width="100" Grid.Column="3" Margin="10,0,5,0" Height="22"
+ ItemsSource="{Binding DataContext.AudioEncoders, Converter={StaticResource enumComboConverter}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
+ SelectedItem="{Binding Task.AllowedPassthruOptions.AudioEncoderFallback, Converter={StaticResource enumComboConverter}}"/>
+ </StackPanel>
+
</Grid>
<ListBox Grid.Row="2" ItemsSource="{Binding Task.AudioTracks}"