diff options
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/VideoScaler.cs | 2 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs | 142 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/SourceSelection.xaml | 18 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/HandBrakeWPF.csproj | 1 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/Resources.Designer.cs | 12 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/Resources.resx | 9 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 148 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 27 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 47 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/OptionsView.xaml | 5 |
10 files changed, 57 insertions, 354 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/VideoScaler.cs b/win/CS/HandBrake.ApplicationServices/Model/VideoScaler.cs index 9772494cf..ded9f06bd 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/VideoScaler.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/VideoScaler.cs @@ -16,7 +16,7 @@ namespace HandBrake.ApplicationServices.Model /// </summary>
public enum VideoScaler
{
- [Display(Name = "Lanczos")]
+ [Display(Name = "Lanczos (default)")]
Lanczos = 0,
// [Display(Name = "Bicubic")]
diff --git a/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs b/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs deleted file mode 100644 index ffe8fe634..000000000 --- a/win/CS/HandBrakeWPF/AttachedProperties/DriveMenu.cs +++ /dev/null @@ -1,142 +0,0 @@ -// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="DriveMenu.cs" company="HandBrake Project (http://handbrake.fr)">
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
-// </copyright>
-// <summary>
-// The drive menu.
-// </summary>
-// --------------------------------------------------------------------------------------------------------------------
-
-namespace HandBrakeWPF.AttachedProperties
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Windows;
- using System.Windows.Controls;
-
- using HandBrake.ApplicationServices.Exceptions;
- using HandBrake.ApplicationServices.Utilities;
-
- using HandBrakeWPF.Commands;
- using HandBrakeWPF.Model;
- using HandBrakeWPF.ViewModels;
-
- /// <summary>
- /// The drive menu.
- /// </summary>
- public class DriveMenu
- {
- /// <summary>
- /// The show available drives property.
- /// </summary>
- public static readonly DependencyProperty ShowAvailableDrivesProperty = DependencyProperty.RegisterAttached(
- "ShowAvailableDrives",
- typeof(bool),
- typeof(DriveMenu),
- new PropertyMetadata(false, OnShowAvailableDrivesChanged));
-
- /// <summary>
- /// The get show available drives.
- /// </summary>
- /// <param name="element">
- /// The element.
- /// </param>
- /// <returns>
- /// The <see cref="bool"/>.
- /// </returns>
- public static Boolean GetShowAvailableDrives(MenuItem element)
- {
- bool result;
- return bool.TryParse(element.GetValue(ShowAvailableDrivesProperty).ToString(), out result) && result;
- }
-
- /// <summary>
- /// The set show available drives.
- /// </summary>
- /// <param name="element">
- /// The element.
- /// </param>
- /// <param name="value">
- /// The value.
- /// </param>
- public static void SetShowAvailableDrives(MenuItem element, Boolean value)
- {
- element.SetValue(ShowAvailableDrivesProperty, value);
- }
-
- /// <summary>
- /// The on show available drives changed.
- /// </summary>
- /// <param name="d">
- /// The d.
- /// </param>
- /// <param name="e">
- /// The e.
- /// </param>
- private static void OnShowAvailableDrivesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
- {
- MenuItem menu = d as MenuItem;
- if (menu != null)
- {
- menu.SubmenuOpened -= MenuMouseDown;
- menu.SubmenuOpened += MenuMouseDown;
- }
- }
-
- /// <summary>
- /// The menu_ mouse down.
- /// </summary>
- /// <param name="sender">
- /// The sender.
- /// </param>
- /// <param name="e">
- /// The e.
- /// </param>
- private static void MenuMouseDown(object sender, RoutedEventArgs e)
- {
- MenuItem menu = sender as MenuItem;
- MenuItem childMenuItem = e.OriginalSource as MenuItem;
- if (childMenuItem != null && "Title Specific Scan".Equals(childMenuItem.Header))
- {
- return; // Skip, it's just a child menu.
- }
-
- if (menu != null)
- {
- MainViewModel mvm = menu.DataContext as MainViewModel;
- if (mvm != null)
- {
- List<SourceMenuItem> remove = mvm.SourceMenu.Where(s => s.IsDrive).ToList();
- foreach (var item in remove)
- {
- mvm.SourceMenu.Remove(item);
- }
-
- foreach (SourceMenuItem menuItem in from item in GeneralUtilities.GetDrives()
- let driveInformation = item
- select new SourceMenuItem
- {
- Text = string.Format("{0} ({1})", item.RootDirectory, item.VolumeLabel),
- Command = new SourceMenuCommand(() => mvm.ProcessDrive(driveInformation)),
- Tag = item,
- IsDrive = true
- })
- {
- mvm.SourceMenu.Add(menuItem);
- }
- }
- else
- {
- throw new GeneralApplicationException(
- "DEBUG - Datacontext wasn't set!", "Please report this on the forum.", null);
- }
- }
- else
- {
- throw new GeneralApplicationException(
- "DEBUG - Source Menu wasn't set!", "Please report this on the forum.", null);
- }
- }
- }
-}
diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml index 437cb1c73..7385f9102 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml @@ -16,27 +16,29 @@ </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="5,10,0,0">
+ <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="5,8,0,0">
<TextBlock Text="Source Selection" FontSize="14" FontWeight="Bold" />
</StackPanel>
<!-- Title Specific Scan -->
- <StackPanel Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Left" Margin="5,10,0,0">
+ <StackPanel Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Left" Margin="5,5,0,0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Optionally choose a specific title: " />
<controls:NumberBox Width="60" Height="24" Margin="10,0,0,0"
- Minimum="0" Maximum="1000" Number="{Binding SelectedTitle, Mode=TwoWay}" />
+ Minimum="0" Maximum="1000" Number="{Binding TitleSpecificScan, Mode=TwoWay}" />
</StackPanel>
<TextBlock Text="Then choose your source: " Margin="0,10,0,0" />
</StackPanel>
<!-- Source Type -->
- <StackPanel Grid.Row="2" Orientation="Vertical" HorizontalAlignment="Left" Margin="5,10,0,0">
+ <StackPanel Grid.Row="2" Orientation="Vertical" HorizontalAlignment="Left" Margin="5,5,0,0">
+ <!-- Ctrl + R -->
<Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FolderScan]"
Margin="0,0,0,7" Padding="8" HorizontalAlignment="Left">
+
<StackPanel Orientation="Horizontal" MinWidth="100">
<Image Source="../Views/Images/folder32.png" Width="32" />
<StackPanel Orientation="Vertical">
@@ -46,6 +48,7 @@ </StackPanel>
</Button>
+ <!--Ctrl + F-->
<Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FileScan]"
Margin="0,0,0,7" Padding="8" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" MinWidth="100">
@@ -82,13 +85,6 @@ <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,10,10">
<Button cal:Message.Attach="[Event Click] = [Action CloseSourceSelection]" Content="Cancel" Padding="8,2" />
</StackPanel>
-
- <StackPanel Grid.Row="4" />
-
- <StackPanel Grid.Row="5" VerticalAlignment="Bottom" Orientation="Vertical">
- <TextBlock Text="This is an experimental replacement for the source selection menu. Feedback welcome on the forum." Margin="10,0,10,0"
- MaxWidth="300" TextWrapping="Wrap" />
- </StackPanel>
</Grid>
</UserControl>
diff --git a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj index 6fd1bf6f9..b7c27048f 100644 --- a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj +++ b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj @@ -121,7 +121,6 @@ <SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="AppArguments.cs" />
- <Compile Include="AttachedProperties\DriveMenu.cs" />
<Compile Include="AttachedProperties\MenuItemExtensions.cs" />
<Compile Include="Commands\CancelScanCommand.cs" />
<Compile Include="Commands\Interfaces\IAdvancedEncoderOptionsCommand.cs" />
diff --git a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs index 61a0bfebc..d0aefd209 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs @@ -206,7 +206,8 @@ namespace HandBrakeWPF.Properties { ///Hexagon: performs a somewhat more effective but slightly slower search using a hexagon pattern.
///
///Uneven Multi-Hex: performs a very wide search using a variety of patterns, more accurately capturing complex motion.
- ///
/// [rest of string was truncated]";.
+ ///
+ /// [rest of string was truncated]";.
/// </summary>
public static string Advanced_MotionEstimationMethodToolTip {
get {
@@ -374,8 +375,8 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
- /// Looks up a localized string similar to Please note, this option is suitable only for slower systems. It will cause a bottleneck on faster systems.
- ///Accelerates H.264, MPEG-4, VC1 and WMV3 only. .
+ /// Looks up a localized string similar to Accelerates H.264, MPEG-4, VC1 and WMV3 only.
+ ///This can provide a small to modest improvement on slow hardware..
/// </summary>
public static string Video_DxvaDecode {
get {
@@ -467,10 +468,7 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
- /// Looks up a localized string similar to Lanczos - This is HandBrakes default scaler. It provides the best quality downscaling.
- ///Bicubic OpenCL - A hardware accelerated version of the CPU based Bicubic scaler.
- /// This can be around 5~7% faster than software bicubic on a fast modern graphics card.
- /// If OpenCL is unavailable, it will fallback to a software scaler. .
+ /// Looks up a localized string similar to OpenCL Scaling is only available for modern graphics cards that support OpenCL 1.1 or later. It will fallback to Lanczos software scaling when it is not available for use. Performance gain up to 5%. Minor decrease in quality in some cases..
/// </summary>
public static string Video_ScalingModes {
get {
diff --git a/win/CS/HandBrakeWPF/Properties/Resources.resx b/win/CS/HandBrakeWPF/Properties/Resources.resx index 9bcd3fac3..388ccc166 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.resx +++ b/win/CS/HandBrakeWPF/Properties/Resources.resx @@ -347,8 +347,8 @@ If you do not use this tab, it can be hidden from: Tools Menu > Options > <value>Placebo Quality |</value>
</data>
<data name="Video_DxvaDecode" xml:space="preserve">
- <value>Please note, this option is suitable only for slower systems. It will cause a bottleneck on faster systems.
-Accelerates H.264, MPEG-4, VC1 and WMV3 only. </value>
+ <value>Accelerates H.264, MPEG-4, VC1 and WMV3 only.
+This can provide a small to modest improvement on slow hardware.</value>
</data>
<data name="Video_QuickSyncNotAvailable" xml:space="preserve">
<value>QuickSync hardware not detected!
@@ -360,9 +360,6 @@ In order to use the QuickSync encoder, you must: - Note that in multi-GPU enviroments, you may need to use 3rd party tools and workarounds to active the hardware.</value>
</data>
<data name="Video_ScalingModes" xml:space="preserve">
- <value>Lanczos - This is HandBrakes default scaler. It provides the best quality downscaling.
-Bicubic OpenCL - A hardware accelerated version of the CPU based Bicubic scaler.
- This can be around 5~7% faster than software bicubic on a fast modern graphics card.
- If OpenCL is unavailable, it will fallback to a software scaler. </value>
+ <value>OpenCL Scaling is only available for modern graphics cards that support OpenCL 1.1 or later. It will fallback to Lanczos software scaling when it is not available for use. Performance gain up to 5%. Minor decrease in quality in some cases.</value>
</data>
</root>
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 632de39ba..355aad73d 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -159,11 +159,6 @@ namespace HandBrakeWPF.ViewModels private EncodeTask queueEditTask;
/// <summary>
- /// The Source Menu Backing Field
- /// </summary>
- private BindingList<SourceMenuItem> sourceMenu;
-
- /// <summary>
/// The last percentage complete value.
/// </summary>
private int lastEncodePercentage;
@@ -353,22 +348,6 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
- /// Gets or sets the source menu.
- /// </summary>
- public BindingList<SourceMenuItem> SourceMenu
- {
- get
- {
- return this.sourceMenu;
- }
- set
- {
- this.sourceMenu = value;
- this.NotifyOfPropertyChange(() => SourceMenu);
- }
- }
-
- /// <summary>
/// Gets or sets Presets.
/// </summary>
public IEnumerable<Preset> Presets { get; set; }
@@ -434,6 +413,11 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
+ /// Gets or sets the title specific scan.
+ /// </summary>
+ public int TitleSpecificScan { get; set; }
+
+ /// <summary>
/// Gets or sets the Source Label
/// This indicates the status of scans.
/// </summary>
@@ -956,6 +940,9 @@ namespace HandBrakeWPF.ViewModels {
this.Drives.Add(menuItem);
}
+
+ this.TitleSpecificScan = 0;
+ this.NotifyOfPropertyChange(() => this.TitleSpecificScan);
}
}
}
@@ -1014,12 +1001,6 @@ namespace HandBrakeWPF.ViewModels this.SelectedPreset = this.presetService.DefaultPreset;
- // Populate the Source menu with drives.
- if (!AppArguments.IsInstantHandBrake)
- {
- this.SourceMenu = new BindingList<SourceMenuItem>(this.GenerateSourceMenu());
- }
-
// Log Cleaning
if (userSettingService.GetUserSetting<bool>(UserSettingConstants.ClearOldLogs))
{
@@ -1249,7 +1230,7 @@ namespace HandBrakeWPF.ViewModels ShowSourceSelection = false;
- this.StartScan(dialog.SelectedPath, 0);
+ this.StartScan(dialog.SelectedPath, this.TitleSpecificScan);
}
/// <summary>
@@ -1262,51 +1243,7 @@ namespace HandBrakeWPF.ViewModels ShowSourceSelection = false;
- this.StartScan(dialog.FileName, 0);
- }
-
- /// <summary>
- /// Folder Scan
- /// </summary>
- public void FolderScanTitleSpecific()
- {
- VistaFolderBrowserDialog dialog = new VistaFolderBrowserDialog { Description = "Please select a folder.", UseDescriptionForTitle = true };
- dialog.ShowDialog();
-
- if (string.IsNullOrEmpty(dialog.SelectedPath))
- {
- return;
- }
-
- ITitleSpecificViewModel titleSpecificView = IoC.Get<ITitleSpecificViewModel>();
- this.WindowManager.ShowDialog(titleSpecificView);
-
- if (titleSpecificView.SelectedTitle.HasValue)
- {
- this.StartScan(dialog.SelectedPath, titleSpecificView.SelectedTitle.Value);
- }
- }
-
- /// <summary>
- /// File Scan
- /// </summary>
- public void FileScanTitleSpecific()
- {
- OpenFileDialog dialog = new OpenFileDialog { Filter = "All files (*.*)|*.*" };
- dialog.ShowDialog();
-
- if (string.IsNullOrEmpty(dialog.FileName))
- {
- return;
- }
-
- ITitleSpecificViewModel titleSpecificView = IoC.Get<ITitleSpecificViewModel>();
- this.WindowManager.ShowDialog(titleSpecificView);
-
- if (titleSpecificView.SelectedTitle.HasValue)
- {
- this.StartScan(dialog.FileName, titleSpecificView.SelectedTitle.Value);
- }
+ this.StartScan(dialog.FileName, this.TitleSpecificScan);
}
/// <summary>
@@ -2103,71 +2040,6 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
- /// The generate source menu.
- /// </summary>
- /// <returns>
- /// The System.Collections.Generic.IEnumerable`1[T -> HandBrakeWPF.Model.SourceMenuItem].
- /// </returns>
- private IList<SourceMenuItem> GenerateSourceMenu()
- {
- List<SourceMenuItem> menuItems = new List<SourceMenuItem>();
-
- SourceMenuItem folderScan = new SourceMenuItem
- {
- IsOpenFolder = true,
- Text = "Open Folder",
- Command = new SourceMenuCommand(this.FolderScan),
- IsDrive = false,
- InputGestureText = "Ctrl + R"
- };
- SourceMenuItem fileScan = new SourceMenuItem
- {
- IsOpenFolder = false,
- Text = "Open File",
- Command = new SourceMenuCommand(this.FileScan),
- IsDrive = false,
- InputGestureText = "Ctrl + F"
- };
-
- SourceMenuItem titleSpecific = new SourceMenuItem { Text = "Title Specific Scan" };
- SourceMenuItem folderScanTitle = new SourceMenuItem
- {
- IsOpenFolder = true,
- Text = "Open Folder",
- Command = new SourceMenuCommand(this.FolderScanTitleSpecific),
- IsDrive = false
- };
- SourceMenuItem fileScanTitle = new SourceMenuItem
- {
- IsOpenFolder = false,
- Text = "Open File",
- Command = new SourceMenuCommand(this.FileScanTitleSpecific),
- IsDrive = false
- };
- titleSpecific.Children.Add(folderScanTitle);
- titleSpecific.Children.Add(fileScanTitle);
-
- menuItems.Add(folderScan);
- menuItems.Add(fileScan);
- menuItems.Add(titleSpecific);
-
- // Drives
- menuItems.AddRange(
- from item in GeneralUtilities.GetDrives()
- let driveInformation = item
- select
- new SourceMenuItem
- {
- Text = string.Format("{0} ({1})", item.RootDirectory, item.VolumeLabel),
- Command = new SourceMenuCommand(() => this.ProcessDrive(driveInformation)),
- Tag = item,
- IsDrive = true
- });
-
- return menuItems;
- }
-
- /// <summary>
/// Allows the main window to respond to setting changes.
/// </summary>
/// <param name="sender">
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index e0fdee4e2..7e717c20e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -379,6 +379,11 @@ namespace HandBrakeWPF.ViewModels /// </summary>
private bool addForeignAudioScanTrack;
+ /// <summary>
+ /// The is cl scaling.
+ /// </summary>
+ private bool isClScaling;
+
#endregion
#region Constructors and Destructors
@@ -1485,6 +1490,7 @@ namespace HandBrakeWPF.ViewModels set
{
this.selectedScalingMode = value;
+ this.IsClScaling = value == VideoScaler.BicubicCl;
}
}
@@ -1509,6 +1515,27 @@ namespace HandBrakeWPF.ViewModels return new BindingList<VideoScaler>(EnumHelper<VideoScaler>.GetEnumList().ToList());
}
}
+
+ /// <summary>
+ /// Gets or sets a value indicating whether is cl scaling.
+ /// </summary>
+ public bool IsClScaling
+ {
+ get
+ {
+ return this.isClScaling;
+ }
+ set
+ {
+ if (value.Equals(this.isClScaling))
+ {
+ return;
+ }
+ this.isClScaling = value;
+ this.NotifyOfPropertyChange(() => this.IsClScaling);
+ }
+ }
+
#endregion
#endregion
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 4ea954437..1fcbd9daa 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -200,52 +200,7 @@ />
</StackPanel>
</Button>
-
-
- <Menu Background="Transparent" Visibility="Collapsed">
- <MenuItem ItemsSource="{Binding SourceMenu}" attachedProperties:DriveMenu.ShowAvailableDrives="true">
- <MenuItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Width="32"
- Height="32"
- Source="Images/Movies.png"
- />
- <Label Margin="8,0,0,0"
- VerticalAlignment="Center"
- Content="Source"
- />
- </StackPanel>
- </MenuItem.Header>
-
- <MenuItem.Resources>
- <Image x:Key="Movie" x:Shared="False" MaxWidth="16" SnapsToDevicePixels="True" Source="Images/file.png" />
- <Image x:Key="Folder" x:Shared="False" MaxWidth="16" SnapsToDevicePixels="True" Source="Images/folder.png" />
- <Image x:Key="Disc" x:Shared="False" MaxWidth="16" SnapsToDevicePixels="True" Source="Images/disc_small.png" />
- </MenuItem.Resources>
- <MenuItem.ItemContainerStyle>
- <Style TargetType="{x:Type MenuItem}" x:Shared="True">
- <Setter Property="Header" Value="{Binding Text}" />
- <Setter Property="Command" Value="{Binding Command}"/>
- <Setter Property="ItemsSource" Value="{Binding Children}" />
- <Setter Property="InputGestureText" Value="{Binding InputGestureText}" />
- <Setter Property="Tag" Value="{Binding}" />
-
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=IsDrive}" Value="true">
- <Setter Property="Icon" Value="{StaticResource Disc}"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding Path=IsOpenFolder}" Value="true">
- <Setter Property="Icon" Value="{StaticResource Folder}"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding Path=IsOpenFile}" Value="true">
- <Setter Property="Icon" Value="{StaticResource Movie}"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </MenuItem.ItemContainerStyle>
- </MenuItem>
- </Menu>
-
+
<Separator />
<Button Name="Start"
diff --git a/win/CS/HandBrakeWPF/Views/OptionsView.xaml b/win/CS/HandBrakeWPF/Views/OptionsView.xaml index 961d31582..aa4ed6a64 100644 --- a/win/CS/HandBrakeWPF/Views/OptionsView.xaml +++ b/win/CS/HandBrakeWPF/Views/OptionsView.xaml @@ -320,7 +320,7 @@ <StackPanel Orientation="Vertical" Margin="20,0,0,0" >
<CheckBox Content="Enable DXVA Hardware Accelerated Decoding" IsChecked="{Binding EnableDxvaDecoding}" />
- <TextBlock Text="{x:Static Properties:Resources.Video_DxvaDecode}" Margin="17,2,0,0" />
+ <TextBlock Text="{x:Static Properties:Resources.Video_DxvaDecode}" Margin="17,2,0,0" />
</StackPanel>
@@ -340,7 +340,8 @@ </StackPanel>
<StackPanel Orientation="Vertical" Margin="26,2,0,0" >
- <TextBlock Text="{x:Static Properties:Resources.Video_ScalingModes}" TextWrapping="Wrap "/>
+ <TextBlock Text="{x:Static Properties:Resources.Video_ScalingModes}" TextWrapping="Wrap "
+ Visibility="{Binding IsClScaling, Converter={StaticResource boolToVisConverter}}" />
</StackPanel>
</StackPanel>
|