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
10 using HandBrake.ApplicationServices.Model;
\r
13 /// Subtitle Information
\r
15 public class SubtitleInfo
\r
18 /// Gets or sets the Subtitle Track
\r
20 public string Track { get; set; }
\r
23 /// Gets or sets the Forced Subtitle
\r
25 public bool Forced { get; set; }
\r
28 /// Gets or sets the Burned In Subtitle
\r
30 public bool Burned { get; set; }
\r
33 /// Gets or sets the Default Subtitle Track
\r
35 public bool Default { get; set; }
\r
38 /// Gets or sets the SRT Language
\r
40 public string SrtLang { get; set; }
\r
43 /// Gets or sets the SRT Character Code
\r
45 public string SrtCharCode { get; set; }
\r
48 /// Gets or sets the SRT Offset
\r
50 public int SrtOffset { get; set; }
\r
53 /// Gets or sets the Path to the SRT file
\r
55 public string SrtPath { get; set; }
\r
58 /// Gets or sets the SRT Filename
\r
60 public string SrtFileName { get; set; }
\r
63 /// Gets a value indicating whether this is an SRT subtitle.
\r
65 public bool IsSrtSubtitle
\r
67 get { return this.SrtFileName != "-"; }
\r
71 /// Gets or sets the type of the subtitle
\r
73 public SubtitleType SubtitleType { get; set; }
\r
76 /// Gets A ListViewItem Containing information about this subitlte
\r
78 public ListViewItem ListView
\r
82 var listTrack = new ListViewItem(this.Track);
\r
83 listTrack.SubItems.Add(this.Forced ? "Yes" : "No");
\r
84 listTrack.SubItems.Add(this.Burned ? "Yes" : "No");
\r
85 listTrack.SubItems.Add(this.Default ? "Yes" : "No");
\r
86 listTrack.SubItems.Add(this.SrtLang);
\r
87 listTrack.SubItems.Add(this.SrtCharCode);
\r
88 listTrack.SubItems.Add(this.SrtOffset.ToString());
\r