diff options
author | sr55 <[email protected]> | 2012-03-24 16:17:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-24 16:17:04 +0000 |
commit | 1befa4f1a72a9e8b0277b4ff04b0200dd884f6bc (patch) | |
tree | da3b0dbfd3c474dc8075b569a9d688051c70ca91 /win/CS/HandBrakeWPF/ViewModels | |
parent | 1732654a808c3b0326dd475217abbbe6908cc015 (diff) |
WinGui: (WPF) Fixes to the Audio and Subtitle panels. Add pdb's to installer.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4532 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 3 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 3 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 33 |
3 files changed, 37 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index dbe32a813..b8485be40 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -134,6 +134,9 @@ namespace HandBrakeWPF.ViewModels {
this.AddTracksFromPreset(preset);
}
+
+ this.Task.AllowedPassthruOptions.IsEnabled =
+ this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.ShowAdvancedAudioPassthruOpts);
}
/// <summary>
diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index 2c7b47c95..e3fddb827 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -477,8 +477,7 @@ namespace HandBrakeWPF.ViewModels public void SetPreset(Preset preset, EncodeTask task)
{
this.Task = task;
-
-
+
// TODO: These all need to be handled correctly.
this.SelectedAnamorphicMode = preset.Task.Anamorphic;
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index 9595855bc..3be51ec05 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -177,6 +177,39 @@ namespace HandBrakeWPF.ViewModels this.Task.SubtitleTracks.Remove(track);
}
+ /// <summary>
+ /// Select the default subtitle track.
+ /// </summary>
+ /// <param name="subtitle">
+ /// The subtitle.
+ /// </param>
+ public void SelectDefaultTrack(SubtitleTrack subtitle)
+ {
+ foreach (SubtitleTrack track in this.Task.SubtitleTracks)
+ {
+ track.Default = false;
+ }
+ subtitle.Default = true;
+
+ this.NotifyOfPropertyChange(() => this.Task);
+ }
+
+ /// <summary>
+ /// Select the burned in track.
+ /// </summary>
+ /// <param name="subtitle">
+ /// The subtitle.
+ /// </param>
+ public void SelectBurnedInTrack(SubtitleTrack subtitle)
+ {
+ foreach (SubtitleTrack track in this.Task.SubtitleTracks)
+ {
+ track.Burned = false;
+ }
+ subtitle.Burned = true;
+ this.NotifyOfPropertyChange(() => this.Task);
+ }
+
#endregion
#region Implemented Interfaces
|