From aa24522a3739ba995cb0890004e448c4d741b292 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 31 Jan 2010 14:40:06 +0000 Subject: WinGui: - More refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3092 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Model/Subtitle.cs | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 win/C#/Model/Subtitle.cs (limited to 'win/C#/Model/Subtitle.cs') diff --git a/win/C#/Model/Subtitle.cs b/win/C#/Model/Subtitle.cs new file mode 100644 index 000000000..69ddbbdd7 --- /dev/null +++ b/win/C#/Model/Subtitle.cs @@ -0,0 +1,78 @@ +/* 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; } + + /// + /// 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; + } + } + } +} -- cgit v1.2.3