/* Subtitle.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.Model { using System.Windows.Forms; /// /// Subtitle Information /// public class SubtitleInfo { /// /// Gets or sets the Subtitle Track /// public string Track { get; set; } /// /// Gets or sets the Forced Subtitle /// public string Forced { get; set; } /// /// Gets or sets the Burned In Subtitle /// public string Burned { get; set; } /// /// Gets or sets the Default Subtitle Track /// public string Default { get; set; } /// /// 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 != "-"; } } /// /// Gets A ListViewItem Containing information about this subitlte /// public ListViewItem ListView { get { var listTrack = new ListViewItem(this.Track); listTrack.SubItems.Add(this.Forced); listTrack.SubItems.Add(this.Burned); listTrack.SubItems.Add(this.Default); listTrack.SubItems.Add(this.SrtLang); listTrack.SubItems.Add(this.SrtCharCode); listTrack.SubItems.Add(this.SrtOffset.ToString()); return listTrack; } } } }