diff options
author | Scott <[email protected]> | 2015-10-24 22:34:31 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2015-10-24 22:34:31 +0100 |
commit | 054b9d9faf5334cb6c47b31784c87406b51e19fa (patch) | |
tree | 8a831aeedf1e9584730095f45ead8966a1ae1b10 /win/CS/HandBrakeWPF/Converters | |
parent | cf1ebbc2087abe9ac9ac14c2284397db754b597c (diff) |
Improving the Deinterlace / Decomb Filters Tab UI. Now uses the same "presets / custom" format that the other UI's do.
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs index 2f92db92c..b154c4dce 100644 --- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs @@ -91,6 +91,10 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<OutputFormat>.GetEnumDisplayValues(typeof(OutputFormat));
}
+ if (value is IEnumerable<DeinterlaceFilter>)
+ {
+ return EnumHelper<DeinterlaceFilter>.GetEnumDisplayValues(typeof(DeinterlaceFilter));
+ }
// Single Items
if (targetType == typeof(VideoEncoder) || value.GetType() == typeof(VideoEncoder))
@@ -136,7 +140,12 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<OutputFormat>.GetDisplay((OutputFormat)value);
}
-
+
+ if (targetType == typeof(DeinterlaceFilter) || value.GetType() == typeof(DeinterlaceFilter))
+ {
+ return EnumHelper<DeinterlaceFilter>.GetDisplay((DeinterlaceFilter)value);
+ }
+
return null;
}
@@ -201,6 +210,11 @@ namespace HandBrakeWPF.Converters return EnumHelper<OutputFormat>.GetValue(value.ToString());
}
+ if (targetType == typeof(DeinterlaceFilter) || value.GetType() == typeof(DeinterlaceFilter))
+ {
+ return EnumHelper<DeinterlaceFilter>.GetValue(value.ToString());
+ }
+
return null;
}
}
|