From be495c77c554e0ec10dfd81e53fe8b4c170ba6b7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 10 Mar 2016 20:44:49 +0000 Subject: WinGui: Initial commit supporting separated interlace detection. Not tested yet. --- win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'win/CS/HandBrakeWPF/ViewModels') diff --git a/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs index 4dd88f6be..7cb50ac37 100644 --- a/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs @@ -215,6 +215,17 @@ namespace HandBrakeWPF.ViewModels } } + /// + /// Comb Detection Presets + /// + public IEnumerable CombDetectPresets + { + get + { + return EnumHelper.GetEnumList(); + } + } + /// /// Gets or sets a value indicating whether Grayscale. /// @@ -256,6 +267,48 @@ namespace HandBrakeWPF.ViewModels } } + public CombDetect SelectedCombDetectPreset + { + get + { + return this.CurrentTask.CombDetect; + } + + set + { + this.CurrentTask.CombDetect = value; + this.NotifyOfPropertyChange(() => this.SelectedCombDetectPreset); + + // Show / Hide the Custom Control + this.NotifyOfPropertyChange(() => this.ShowCombDetectCustom); + } + } + + /// + /// Show the CombDetect Custom Box. + /// + public bool ShowCombDetectCustom + { + get + { + return this.SelectedCombDetectPreset == CombDetect.Custom; + } + } + + public string CustomCombDetect + { + get + { + return this.CurrentTask.CustomCombDetect; + } + + set + { + this.CurrentTask.CustomCombDetect = value; + this.NotifyOfPropertyChange(() => this.CustomCombDetect); + } + } + /// /// Gets or sets SelectedDecomb. /// -- cgit v1.2.3