summaryrefslogtreecommitdiffstats
path: root/win/CS/Controls
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-09-11 17:18:41 +0000
committersr55 <[email protected]>2011-09-11 17:18:41 +0000
commit7129aebff7254512f7319b059c507db6f9c77ca2 (patch)
tree68abd7e8eabe84de84281de5f68f6372f3b776dc /win/CS/Controls
parent42cf765a1ac9c9e05ab0c64535ebd9753281d9e8 (diff)
WinGui: Some further work to enable libhb encode support.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4218 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Controls')
-rw-r--r--win/CS/Controls/Filters.cs115
-rw-r--r--win/CS/Controls/Subtitles.cs12
2 files changed, 127 insertions, 0 deletions
diff --git a/win/CS/Controls/Filters.cs b/win/CS/Controls/Filters.cs
index e4c9bf226..698077f35 100644
--- a/win/CS/Controls/Filters.cs
+++ b/win/CS/Controls/Filters.cs
@@ -8,6 +8,7 @@ namespace Handbrake.Controls
using System;
using System.Windows.Forms;
+ using HandBrake.ApplicationServices.Functions;
using HandBrake.ApplicationServices.Model.Encoding;
using HandBrake.Interop.Model.Encoding;
@@ -34,6 +35,120 @@ namespace Handbrake.Controls
drop_detelecine.SelectedIndex = 0;
}
+ #region Properties
+
+ /// <summary>
+ /// Gets Decomb.
+ /// </summary>
+ public Decomb Decomb
+ {
+ get
+ {
+ return EnumHelper<Decomb>.GetValue(drop_decomb.Text);
+ }
+ }
+
+ /// <summary>
+ /// Gets CustomDecombValue.
+ /// </summary>
+ public string CustomDecombValue
+ {
+ get
+ {
+ return text_customDC.Text;
+ }
+ }
+
+ /// <summary>
+ /// Gets Deinterlace.
+ /// </summary>
+ public Deinterlace Deinterlace
+ {
+ get
+ {
+ return EnumHelper<Deinterlace>.GetValue(drop_deinterlace.Text);
+ }
+ }
+
+ /// <summary>
+ /// Gets CustomDeInterlaceValue.
+ /// </summary>
+ public string CustomDeInterlaceValue
+ {
+ get
+ {
+ return text_customDI.Text;
+ }
+ }
+
+ /// <summary>
+ /// Gets Detelecine.
+ /// </summary>
+ public Detelecine Detelecine
+ {
+ get
+ {
+ return EnumHelper<Detelecine>.GetValue(drop_detelecine.Text);
+ }
+ }
+
+ /// <summary>
+ /// Gets CustomDeTelecineValue.
+ /// </summary>
+ public string CustomDeTelecineValue
+ {
+ get
+ {
+ return text_customDT.Text;
+ }
+ }
+
+ /// <summary>
+ /// Gets Denoise.
+ /// </summary>
+ public Denoise Denoise
+ {
+ get
+ {
+ return EnumHelper<Denoise>.GetValue(drop_denoise.Text);
+ }
+ }
+
+ /// <summary>
+ /// Gets CustomDenoiseValue.
+ /// </summary>
+ public string CustomDenoiseValue
+ {
+ get
+ {
+ return text_customDN.Text;
+ }
+ }
+
+ /// <summary>
+ /// Gets Deblock.
+ /// </summary>
+ public int Deblock
+ {
+ get
+ {
+ return slider_deblock.Value;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether GrayScale.
+ /// </summary>
+ public bool GrayScale
+ {
+ get
+ {
+ return check_grayscale.Checked;
+ }
+ }
+
+ #endregion
+
/// <summary>
/// Gets the CLI query for the query generator.
/// </summary>
diff --git a/win/CS/Controls/Subtitles.cs b/win/CS/Controls/Subtitles.cs
index 35b05aa26..654c99fdc 100644
--- a/win/CS/Controls/Subtitles.cs
+++ b/win/CS/Controls/Subtitles.cs
@@ -9,6 +9,7 @@ namespace Handbrake.Controls
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
+ using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Windows.Forms;
@@ -62,6 +63,17 @@ namespace Handbrake.Controls
srt_lang.SelectedIndex = 40;
}
+ /// <summary>
+ /// Gets SubtitlesList.
+ /// </summary>
+ public List<SubtitleTrack> SubtitlesList
+ {
+ get
+ {
+ return subList;
+ }
+ }
+
#region Public Methods
/// <summary>
/// Gets the CLI Query for this panel