From 49020e219f4c3db356b599750f053520b5f089b6 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 17 Mar 2012 23:33:54 +0000 Subject: WinGui: (WPF) Added Debug menu (1. Show CLI Query to allow for easier debugging). Wired up most tabs into the EncodeTask object so the parameters are sent to the encode engine. General code tidy-up and fixes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4510 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrakeWPF/Converters/EnumComboConverter.cs | 52 +++++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) (limited to 'win/CS/HandBrakeWPF/Converters') diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs index d5663f2af..635b3bd0c 100644 --- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs @@ -65,16 +65,32 @@ namespace HandBrakeWPF.Converters { return EnumHelper.GetEnumDisplayValues(typeof(Mixdown)); } - if (value is IEnumerable) { return EnumHelper.GetEnumDisplayValues(typeof(AudioEncoder)); } - if (value is IEnumerable) { return EnumHelper.GetEnumDisplayValues(typeof(PresetPictureSettingsMode)); } + if (value is IEnumerable) + { + return EnumHelper.GetEnumDisplayValues(typeof(Decomb)); + } + if (value is IEnumerable) + { + return EnumHelper.GetEnumDisplayValues(typeof(Deinterlace)); + } + if (value is IEnumerable) + { + return EnumHelper.GetEnumDisplayValues(typeof(Detelecine)); + } + if (value is IEnumerable) + { + return EnumHelper.GetEnumDisplayValues(typeof(Denoise)); + } + + // Single Items if (targetType == typeof(x264Preset) || value.GetType() == typeof(x264Preset)) @@ -105,6 +121,22 @@ namespace HandBrakeWPF.Converters { return EnumHelper.GetDisplay((PresetPictureSettingsMode)value); } + if (targetType == typeof(Deinterlace) || value.GetType() == typeof(Deinterlace)) + { + return EnumHelper.GetDisplay((Deinterlace)value); + } + if (targetType == typeof(Detelecine) || value.GetType() == typeof(Detelecine)) + { + return EnumHelper.GetDisplay((Detelecine)value); + } + if (targetType == typeof(Decomb) || value.GetType() == typeof(Decomb)) + { + return EnumHelper.GetDisplay((Decomb)value); + } + if (targetType == typeof(Denoise) || value.GetType() == typeof(Denoise)) + { + return EnumHelper.GetDisplay((Denoise)value); + } return null; } @@ -160,6 +192,22 @@ namespace HandBrakeWPF.Converters { return EnumHelper.GetValue(value.ToString()); } + if (targetType == typeof(Denoise) || value.GetType() == typeof(Denoise)) + { + return EnumHelper.GetValue(value.ToString()); + } + if (targetType == typeof(Decomb) || value.GetType() == typeof(Decomb)) + { + return EnumHelper.GetValue(value.ToString()); + } + if (targetType == typeof(Deinterlace) || value.GetType() == typeof(Deinterlace)) + { + return EnumHelper.GetValue(value.ToString()); + } + if (targetType == typeof(Detelecine) || value.GetType() == typeof(Detelecine)) + { + return EnumHelper.GetValue(value.ToString()); + } return null; } -- cgit v1.2.3