/* 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. */ using System.Windows.Forms; namespace Handbrake.Model { /// /// Subtitle Information /// public class SubtitleInfo { /// /// Subtitle Track /// public string Track { get; set; } /// /// Forced Subtitle /// public string Forced { get; set; } /// /// Burned In Subtitle /// public string Burned { get; set; } /// /// Default Subtitle Track /// public string Default { get; set; } /// /// SRT Language /// public string SrtLang { get; set; } /// /// SRT Character Code /// public string SrtCharCode { get; set; } /// /// SRT Offset /// public int SrtOffset { get; set; } /// /// Path to the SRT file /// public string SrtPath { get; set; } /// /// SRT Filename /// public string SrtFileName { get; set; } /// /// Returns if this is an SRT subtitle. /// public bool IsSrtSubtitle { get { return SrtFileName != "-"; } } /// /// A ListViewItem Containing information about this subitlte /// public ListViewItem ListView { get { ListViewItem listTrack = new ListViewItem(Track); listTrack.SubItems.Add(Forced); listTrack.SubItems.Add(Burned); listTrack.SubItems.Add(Default); listTrack.SubItems.Add(SrtLang); listTrack.SubItems.Add(SrtCharCode); listTrack.SubItems.Add(SrtOffset.ToString()); return listTrack; } } } }