2 This file is part of the HandBrake source code.
\r
3 Homepage: <http://handbrake.fr>.
\r
4 It may be used under the terms of the GNU General Public License. */
\r
6 namespace Handbrake.Model
\r
8 using System.Windows.Forms;
\r
11 /// Subtitle Information
\r
13 public class SubtitleInfo
\r
16 /// Gets or sets the Subtitle Track
\r
18 public string Track { get; set; }
\r
21 /// Gets or sets the Forced Subtitle
\r
23 public string Forced { get; set; }
\r
26 /// Gets or sets the Burned In Subtitle
\r
28 public string Burned { get; set; }
\r
31 /// Gets or sets the Default Subtitle Track
\r
33 public string Default { get; set; }
\r
36 /// Gets or sets the SRT Language
\r
38 public string SrtLang { get; set; }
\r
41 /// Gets or sets the SRT Character Code
\r
43 public string SrtCharCode { get; set; }
\r
46 /// Gets or sets the SRT Offset
\r
48 public int SrtOffset { get; set; }
\r
51 /// Gets or sets the Path to the SRT file
\r
53 public string SrtPath { get; set; }
\r
56 /// Gets or sets the SRT Filename
\r
58 public string SrtFileName { get; set; }
\r
61 /// Gets a value indicating whether this is an SRT subtitle.
\r
63 public bool IsSrtSubtitle
\r
65 get { return this.SrtFileName != "-"; }
\r
69 /// Gets A ListViewItem Containing information about this subitlte
\r
71 public ListViewItem ListView
\r
75 var listTrack = new ListViewItem(this.Track);
\r
76 listTrack.SubItems.Add(this.Forced);
\r
77 listTrack.SubItems.Add(this.Burned);
\r
78 listTrack.SubItems.Add(this.Default);
\r
79 listTrack.SubItems.Add(this.SrtLang);
\r
80 listTrack.SubItems.Add(this.SrtCharCode);
\r
81 listTrack.SubItems.Add(this.SrtOffset.ToString());
\r