diff options
author | sr55 <[email protected]> | 2012-07-23 16:57:39 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-07-23 16:57:39 +0000 |
commit | 6c8108e0760796e153f62de9b08325f433105bff (patch) | |
tree | f584e99a9ace46b1bce9af6f9136f67375cb1226 /win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs | |
parent | daafb500d527e3e5d1a1790bba6dd287c28eedbb (diff) |
WinGui: Fix up the Audio Passthru selection options.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4872 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs | 107 |
1 files changed, 94 insertions, 13 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs index 7b407f297..36c4febab 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AllowedPassthru.cs @@ -9,13 +9,44 @@ namespace HandBrake.ApplicationServices.Model.Encoding
{
- using Interop.Model.Encoding;
+ using HandBrake.Interop.Model.Encoding;
/// <summary>
/// Allowed Passthru Options
/// </summary>
public class AllowedPassthru
{
+ #region Constants and Fields
+
+ /// <summary>
+ /// The audio allow aac pass.
+ /// </summary>
+ private bool? audioAllowAACPass;
+
+ /// <summary>
+ /// The audio allow a c 3 pass.
+ /// </summary>
+ private bool? audioAllowAC3Pass;
+
+ /// <summary>
+ /// The audio allow dtshd pass.
+ /// </summary>
+ private bool? audioAllowDTSHDPass;
+
+ /// <summary>
+ /// The audio allow dts pass.
+ /// </summary>
+ private bool? audioAllowDTSPass;
+
+ /// <summary>
+ /// The audio allow m p 3 pass.
+ /// </summary>
+ private bool? audioAllowMP3Pass;
+
+ #endregion
+
+ #region Constructors and Destructors
+
/// <summary>
/// Initializes a new instance of the <see cref="AllowedPassthru"/> class.
/// </summary>
@@ -35,7 +66,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding /// <param name="initialValue">
/// The initial Value.
/// </param>
- public AllowedPassthru(bool initialValue)
+ public AllowedPassthru(bool? initialValue)
{
this.AudioAllowAACPass = initialValue;
this.AudioAllowAC3Pass = initialValue;
@@ -62,40 +93,90 @@ namespace HandBrake.ApplicationServices.Model.Encoding this.AudioEncoderFallback = initialValue.AudioEncoderFallback;
}
- /// <summary>
- /// Gets or sets a value indicating whether IsEnabled.
- /// Temp Measure until forms gui is retired.
- /// </summary>
- public bool IsEnabled { get; set; }
+ #endregion
+
+ #region Properties
/// <summary>
/// Gets or sets a value indicating whether AudioAllowAACPass.
/// </summary>
- public bool AudioAllowAACPass { get; set; }
+ public bool? AudioAllowAACPass
+ {
+ get
+ {
+ return this.audioAllowAACPass ?? true;
+ }
+ set
+ {
+ this.audioAllowAACPass = value;
+ }
+ }
/// <summary>
/// Gets or sets a value indicating whether AudioAllowAC3Pass.
/// </summary>
- public bool AudioAllowAC3Pass { get; set; }
+ public bool? AudioAllowAC3Pass
+ {
+ get
+ {
+ return this.audioAllowAC3Pass ?? true;
+ }
+ set
+ {
+ this.audioAllowAC3Pass = value;
+ }
+ }
/// <summary>
/// Gets or sets a value indicating whether AudioAllowDTSHDPass.
/// </summary>
- public bool AudioAllowDTSHDPass { get; set; }
+ public bool? AudioAllowDTSHDPass
+ {
+ get
+ {
+ return this.audioAllowDTSHDPass ?? true;
+ }
+ set
+ {
+ this.audioAllowDTSHDPass = value;
+ }
+ }
/// <summary>
/// Gets or sets a value indicating whether AudioAllowDTSPass.
/// </summary>
- public bool AudioAllowDTSPass { get; set; }
+ public bool? AudioAllowDTSPass
+ {
+ get
+ {
+ return this.audioAllowDTSPass ?? true;
+ }
+ set
+ {
+ this.audioAllowDTSPass = value;
+ }
+ }
/// <summary>
/// Gets or sets a value indicating whether AudioAllowMP3Pass.
/// </summary>
- public bool AudioAllowMP3Pass { get; set; }
+ public bool? AudioAllowMP3Pass
+ {
+ get
+ {
+ return this.audioAllowMP3Pass ?? true;
+ }
+ set
+ {
+ this.audioAllowMP3Pass = value;
+ }
+ }
/// <summary>
/// Gets or sets AudioEncoderFallback.
/// </summary>
public AudioEncoder AudioEncoderFallback { get; set; }
+
+ #endregion
}
-}
+}
\ No newline at end of file |