diff options
author | sr55 <[email protected]> | 2012-03-17 23:33:54 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-17 23:33:54 +0000 |
commit | 49020e219f4c3db356b599750f053520b5f089b6 (patch) | |
tree | 65ea075b87420521642868aab7d4a1e942466484 /win/CS/HandBrakeWPF/Converters | |
parent | 65ef5bf0ec869d50feadff71739c7d472c4be953 (diff) |
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
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs | 52 |
1 files changed, 50 insertions, 2 deletions
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<Mixdown>.GetEnumDisplayValues(typeof(Mixdown));
}
-
if (value is IEnumerable<AudioEncoder>)
{
return EnumHelper<AudioEncoder>.GetEnumDisplayValues(typeof(AudioEncoder));
}
-
if (value is IEnumerable<PresetPictureSettingsMode>)
{
return EnumHelper<PresetPictureSettingsMode>.GetEnumDisplayValues(typeof(PresetPictureSettingsMode));
}
+ if (value is IEnumerable<Decomb>)
+ {
+ return EnumHelper<Decomb>.GetEnumDisplayValues(typeof(Decomb));
+ }
+ if (value is IEnumerable<Deinterlace>)
+ {
+ return EnumHelper<Deinterlace>.GetEnumDisplayValues(typeof(Deinterlace));
+ }
+ if (value is IEnumerable<Detelecine>)
+ {
+ return EnumHelper<Detelecine>.GetEnumDisplayValues(typeof(Detelecine));
+ }
+ if (value is IEnumerable<Denoise>)
+ {
+ return EnumHelper<Denoise>.GetEnumDisplayValues(typeof(Denoise));
+ }
+
+
// Single Items
if (targetType == typeof(x264Preset) || value.GetType() == typeof(x264Preset))
@@ -105,6 +121,22 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<PresetPictureSettingsMode>.GetDisplay((PresetPictureSettingsMode)value);
}
+ if (targetType == typeof(Deinterlace) || value.GetType() == typeof(Deinterlace))
+ {
+ return EnumHelper<Deinterlace>.GetDisplay((Deinterlace)value);
+ }
+ if (targetType == typeof(Detelecine) || value.GetType() == typeof(Detelecine))
+ {
+ return EnumHelper<Detelecine>.GetDisplay((Detelecine)value);
+ }
+ if (targetType == typeof(Decomb) || value.GetType() == typeof(Decomb))
+ {
+ return EnumHelper<Decomb>.GetDisplay((Decomb)value);
+ }
+ if (targetType == typeof(Denoise) || value.GetType() == typeof(Denoise))
+ {
+ return EnumHelper<Denoise>.GetDisplay((Denoise)value);
+ }
return null;
}
@@ -160,6 +192,22 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<PresetPictureSettingsMode>.GetValue(value.ToString());
}
+ if (targetType == typeof(Denoise) || value.GetType() == typeof(Denoise))
+ {
+ return EnumHelper<Denoise>.GetValue(value.ToString());
+ }
+ if (targetType == typeof(Decomb) || value.GetType() == typeof(Decomb))
+ {
+ return EnumHelper<Decomb>.GetValue(value.ToString());
+ }
+ if (targetType == typeof(Deinterlace) || value.GetType() == typeof(Deinterlace))
+ {
+ return EnumHelper<Deinterlace>.GetValue(value.ToString());
+ }
+ if (targetType == typeof(Detelecine) || value.GetType() == typeof(Detelecine))
+ {
+ return EnumHelper<Detelecine>.GetValue(value.ToString());
+ }
return null;
}
|