diff options
author | sr55 <[email protected]> | 2016-12-13 19:35:02 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-13 19:35:10 +0000 |
commit | 35130882b828ff6af96fafa2a24a8b9afc898f0d (patch) | |
tree | 2a96438e8fe0c3ba915b447847829bef1f862ac7 /win/CS/HandBrakeWPF/Commands | |
parent | 1f418c2cf9e74f907311b0f5e77d84342e570e35 (diff) |
WinGui: Advanced Tab Changes
1. Strip out a lot of the old advanced tab infrastructure as it is no longer needed. Only the deprecated X264 Advacned Panel is left. All other encoders use the Video tab now.
2. Changed Option to "Allow use of 'Advanced Tab'" and only show the tab if the checkbox on the video tab is checked. It will no longer show based on the perference alone.
3. Fix the one-way communication from Video Tab to X264 Tab so preset options are reflected ont he X264 Tab. The reverse is not supported but it will retain the previous options.
Diffstat (limited to 'win/CS/HandBrakeWPF/Commands')
-rw-r--r-- | win/CS/HandBrakeWPF/Commands/AdvancedEncoderOptionsCommand.cs | 40 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Commands/Interfaces/IAdvancedEncoderOptionsCommand.cs | 27 |
2 files changed, 0 insertions, 67 deletions
diff --git a/win/CS/HandBrakeWPF/Commands/AdvancedEncoderOptionsCommand.cs b/win/CS/HandBrakeWPF/Commands/AdvancedEncoderOptionsCommand.cs deleted file mode 100644 index bb78e1c3c..000000000 --- a/win/CS/HandBrakeWPF/Commands/AdvancedEncoderOptionsCommand.cs +++ /dev/null @@ -1,40 +0,0 @@ -// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="AdvancedEncoderOptionsCommand.cs" company="HandBrake Project (http://handbrake.fr)">
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
-// </copyright>
-// <summary>
-// A Command for resetting the video / advnaced tabs encoder options.
-// </summary>
-// --------------------------------------------------------------------------------------------------------------------
-
-namespace HandBrakeWPF.Commands
-{
- using Caliburn.Micro;
-
- using HandBrakeWPF.Commands.Interfaces;
- using HandBrakeWPF.ViewModels.Interfaces;
-
- /// <summary>
- /// A Command for resetting the video / advnaced tabs encoder options.
- /// </summary>
- public class AdvancedEncoderOptionsCommand : IAdvancedEncoderOptionsCommand
- {
- /// <summary>
- /// Clear out the advanced options
- /// </summary>
- public void ExecuteClearAdvanced()
- {
- IAdvancedViewModel advancedViewModel = IoC.Get<IAdvancedViewModel>();
- advancedViewModel.Clear();
- }
-
- /// <summary>
- /// Clear the advanced encoder options out on the video tab.
- /// </summary>
- public void ExecuteClearVideo()
- {
- IVideoViewModel videoViewModel = IoC.Get<IVideoViewModel>();
- videoViewModel.ClearAdvancedSettings();
- }
- }
-}
diff --git a/win/CS/HandBrakeWPF/Commands/Interfaces/IAdvancedEncoderOptionsCommand.cs b/win/CS/HandBrakeWPF/Commands/Interfaces/IAdvancedEncoderOptionsCommand.cs deleted file mode 100644 index 5f0c96fb2..000000000 --- a/win/CS/HandBrakeWPF/Commands/Interfaces/IAdvancedEncoderOptionsCommand.cs +++ /dev/null @@ -1,27 +0,0 @@ -// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="IAdvancedEncoderOptionsCommand.cs" company="HandBrake Project (http://handbrake.fr)">
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
-// </copyright>
-// <summary>
-// The AdvancedEncoderOptionsCommand interface.
-// </summary>
-// --------------------------------------------------------------------------------------------------------------------
-
-namespace HandBrakeWPF.Commands.Interfaces
-{
- /// <summary>
- /// The AdvancedEncoderOptionsCommand interface.
- /// </summary>
- public interface IAdvancedEncoderOptionsCommand
- {
- /// <summary>
- /// Clear out the advanced options
- /// </summary>
- void ExecuteClearAdvanced();
-
- /// <summary>
- /// Clear the advanced encoder options out on the video tab.
- /// </summary>
- void ExecuteClearVideo();
- }
-}
\ No newline at end of file |