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/SubtitlesViewModel.cs | |
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/SubtitlesViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 33 |
1 files changed, 33 insertions, 0 deletions
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
|