summaryrefslogtreecommitdiffstats
path: root/win/C#/Model
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-01-31 14:40:06 +0000
committersr55 <[email protected]>2010-01-31 14:40:06 +0000
commitaa24522a3739ba995cb0890004e448c4d741b292 (patch)
tree87b6d611617f6a3f34c7d960e0dc63ed36d8228c /win/C#/Model
parent138ea1180443c3b73b81e47da016a54bf133f133 (diff)
WinGui:
- More refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3092 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Model')
-rw-r--r--win/C#/Model/Subtitle.cs78
1 files changed, 78 insertions, 0 deletions
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: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
+using System.Windows.Forms;
+
+namespace Handbrake.Model
+{
+ /// <summary>
+ /// Subtitle Information
+ /// </summary>
+ public class SubtitleInfo
+ {
+ /// <summary>
+ /// Subtitle Track
+ /// </summary>
+ public string Track { get; set; }
+
+ /// <summary>
+ /// Forced Subtitle
+ /// </summary>
+ public string Forced { get; set; }
+
+ /// <summary>
+ /// Burned In Subtitle
+ /// </summary>
+ public string Burned { get; set; }
+
+ /// <summary>
+ /// Default Subtitle Track
+ /// </summary>
+ public string Default { get; set; }
+
+ /// <summary>
+ /// SRT Language
+ /// </summary>
+ public string SrtLang { get; set; }
+
+ /// <summary>
+ /// SRT Character Code
+ /// </summary>
+ public string SrtCharCode { get; set; }
+
+ /// <summary>
+ /// SRT Offset
+ /// </summary>
+ public int SrtOffset { get; set; }
+
+ /// <summary>
+ /// Path to the SRT file
+ /// </summary>
+ public string SrtPath { get; set; }
+
+ /// <summary>
+ /// SRT Filename
+ /// </summary>
+ public string SrtFileName { get; set; }
+
+ /// <summary>
+ /// A ListViewItem Containing information about this subitlte
+ /// </summary>
+ 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;
+ }
+ }
+ }
+}