summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-30 11:44:44 +0000
committersr55 <[email protected]>2012-06-30 11:44:44 +0000
commit4d6d9e007cbfadd9f63860038a8048a2c8da390a (patch)
tree68218fbd35e257586b867c4ce8f34380a7fe05fb /win
parente70e64944b220f988415013772af1473a290a02a (diff)
WinGui: Update the behaviour of the Burned / Default check boxes to make them mutually exclusive.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4798 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs42
1 files changed, 37 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs
index 92eb55b73..334d636d6 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/SubtitleTrack.cs
@@ -42,6 +42,11 @@ namespace HandBrake.ApplicationServices.Model.Encoding
/// </summary>
private string srtFileName;
+ /// <summary>
+ /// Backing field for Forced Subs
+ /// </summary>
+ private bool forced;
+
#endregion
#region Constructors and Destructors
@@ -91,8 +96,16 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
- this.burned = value;
- this.NotifyOfPropertyChange(() => this.Burned);
+ if (!object.Equals(this.burned, value))
+ {
+ this.burned = value;
+ this.NotifyOfPropertyChange(() => this.Burned);
+
+ if (value)
+ {
+ this.Default = false;
+ }
+ }
}
}
@@ -108,15 +121,34 @@ namespace HandBrake.ApplicationServices.Model.Encoding
set
{
- this.isDefault = value;
- this.NotifyOfPropertyChange(() => this.Default);
+ if (!object.Equals(this.isDefault, value))
+ {
+ this.isDefault = value;
+ this.NotifyOfPropertyChange(() => this.Default);
+
+ if (value)
+ {
+ this.Burned = false;
+ }
+ }
}
}
/// <summary>
/// Gets or sets a value indicating whether Forced.
/// </summary>
- public bool Forced { get; set; }
+ public bool Forced
+ {
+ get
+ {
+ return this.forced;
+ }
+ set
+ {
+ this.forced = value;
+ this.NotifyOfPropertyChange(() => this.Forced);
+ }
+ }
/// <summary>
/// Gets a value indicating whether this is an SRT subtitle.