From b07bb66a24127135b5b921db6486f1cad45f42cc Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 1 Apr 2012 17:07:05 +0000 Subject: WinGui: (WPF) Bug fixes to the advanced panel git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4578 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/Helpers/AdvancedChoicesHelper.cs | 4 +++- win/CS/HandBrakeWPF/ViewModels/AdvancedViewModel.cs | 14 ++++++++++++++ win/CS/HandBrakeWPF/Views/AdvancedView.xaml | 8 +++++--- win/CS/frmMain.cs | 2 -- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/win/CS/HandBrakeWPF/Helpers/AdvancedChoicesHelper.cs b/win/CS/HandBrakeWPF/Helpers/AdvancedChoicesHelper.cs index 8c521d9e7..68d64eca3 100644 --- a/win/CS/HandBrakeWPF/Helpers/AdvancedChoicesHelper.cs +++ b/win/CS/HandBrakeWPF/Helpers/AdvancedChoicesHelper.cs @@ -145,8 +145,9 @@ namespace HandBrakeWPF.Helpers analysis = new List { + new AdvancedChoice { Label = "Most (Default)", IsDefault = true }, new AdvancedChoice { Label = "None", Value = "none" }, - new AdvancedChoice { Label = "Some (Default)", IsDefault = true }, + new AdvancedChoice { Label = "Some", Value = "i4x4,i8x8", }, new AdvancedChoice { Label = "All", Value = "all" } }; @@ -351,6 +352,7 @@ namespace HandBrakeWPF.Helpers /// The default number. /// /// + /// List of Advanced Choices Options. /// private static List CreateNumberList(int lower, int upper, int defaultNumber) { diff --git a/win/CS/HandBrakeWPF/ViewModels/AdvancedViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AdvancedViewModel.cs index 0d65ff5be..39861bce7 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AdvancedViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AdvancedViewModel.cs @@ -523,6 +523,19 @@ namespace HandBrakeWPF.ViewModels } } + /// + /// Gets a value indicating whether PsychovisualRateDistortionVisible. + /// + public bool PsychovisualRateDistortionVisible + { + get + { + int value; + int.TryParse(this.SubpixelMotionEstimation.Value.Trim(), out value); + return value >= 6; + } + } + /// /// Gets or sets PyramidalBFrames. /// @@ -584,6 +597,7 @@ namespace HandBrakeWPF.ViewModels { this.subpixelMotionEstimation = value; this.NotifyOfPropertyChange(() => this.SubpixelMotionEstimation); + this.NotifyOfPropertyChange(() => this.PsychovisualRateDistortionVisible); this.UpdateOptionsString(); } } diff --git a/win/CS/HandBrakeWPF/Views/AdvancedView.xaml b/win/CS/HandBrakeWPF/Views/AdvancedView.xaml index 4221a8e5d..92923f6c8 100644 --- a/win/CS/HandBrakeWPF/Views/AdvancedView.xaml +++ b/win/CS/HandBrakeWPF/Views/AdvancedView.xaml @@ -231,10 +231,12 @@ -