/* SubtitleTrack.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace HandBrake.ApplicationServices.Model.Encoding { using System.Windows.Forms; /// /// Subtitle Information /// public class SubtitleTrack { /// /// Gets or sets Track. /// public string Track { get; set; } /// /// Gets or sets a value indicating whether Forced. /// public bool Forced { get; set; } /// /// Gets or sets a value indicating whether Burned. /// public bool Burned { get; set; } /// /// Gets or sets a value indicating whether Default. /// public bool Default { get; set; } #region SRT Specific Options /// /// Gets or sets the SRT Language /// public string SrtLang { get; set; } /// /// Gets or sets the SRT Character Code /// public string SrtCharCode { get; set; } /// /// Gets or sets the SRT Offset /// public int SrtOffset { get; set; } /// /// Gets or sets the Path to the SRT file /// public string SrtPath { get; set; } /// /// Gets or sets the SRT Filename /// public string SrtFileName { get; set; } /// /// Gets a value indicating whether this is an SRT subtitle. /// public bool IsSrtSubtitle { get { return this.SrtFileName != "-"; } } #endregion /// /// Gets or sets the type of the subtitle /// public SubtitleType SubtitleType { get; set; } /// /// Gets A ListViewItem Containing information about this subitlte /// public ListViewItem ListView { get { var listTrack = new ListViewItem(this.Track); listTrack.SubItems.Add(this.Forced ? "Yes" : "No"); listTrack.SubItems.Add(this.Burned ? "Yes" : "No"); listTrack.SubItems.Add(this.Default ? "Yes" : "No"); listTrack.SubItems.Add(this.SrtLang); listTrack.SubItems.Add(this.SrtCharCode); listTrack.SubItems.Add(this.SrtOffset.ToString()); return listTrack; } } } }