From 8ce01f3f60df3e2065e44bdf2629f81b7b10b2b6 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 6 Feb 2016 15:29:34 +0000 Subject: WinGui: - Refractor the Audio and Subtitle Defaults into their own View/ViewModel - Add a new PopupWindow container system. - Add "Edit Defaults" for Audio and Subtitles on the Add Preset Pane to make the feature more discoverable. (Note, this does not change the existing settings on the Audio/Subtitle Tabs) --- win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 177 ++--------------------- 1 file changed, 12 insertions(+), 165 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index 05a904d5f..9e86506fa 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -54,16 +54,6 @@ namespace HandBrakeWPF.ViewModels /// private bool showAudioDefaultsPanel; - /// - /// The available languages. - /// - private BindingList availableLanguages; - - /// - /// The audio behaviours. - /// - private AudioBehaviours audioBehaviours; - #region Constructors and Destructors /// @@ -77,6 +67,7 @@ namespace HandBrakeWPF.ViewModels /// public AudioViewModel(IWindowManager windowManager, IUserSettingService userSettingService) { + this.AudioDefaultsViewModel = new AudioDefaultsViewModel(); this.Task = new EncodeTask(); this.SampleRates = new ObservableCollection { "Auto" }; @@ -88,12 +79,6 @@ namespace HandBrakeWPF.ViewModels this.AudioEncoders = EnumHelper.GetEnumList(); this.AudioMixdowns = EnumHelper.GetEnumList(); this.SourceTracks = new List