summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-06-01 21:28:05 +0000
committersr55 <[email protected]>2013-06-01 21:28:05 +0000
commit0c65f4f74c61edb71ef7fbb03be0e0b3c932d810 (patch)
tree0e6b847b6861f0d03a0a63cb93b4f7844c868997 /win/CS/HandBrakeWPF/ViewModels
parent0b38ee2d844b915314b9731fd2b2ea4906e6439b (diff)
WinGui: Added option to AutoName functionality to remove common punctuation from filenames (Comma, Period and Dash)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5542 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index ad012db4f..dc9f6806b 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -353,6 +353,11 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
private bool showAdvancedTab;
+ /// <summary>
+ /// The remove punctuation.
+ /// </summary>
+ private bool removePunctuation;
+
#endregion
#region Constructors and Destructors
@@ -722,6 +727,22 @@ namespace HandBrakeWPF.ViewModels
}
}
+ /// <summary>
+ /// Gets or sets a value indicating whether remove punctuation.
+ /// </summary>
+ public bool RemovePunctuation
+ {
+ get
+ {
+ return this.removePunctuation;
+ }
+ set
+ {
+ this.removePunctuation = value;
+ this.NotifyOfPropertyChange(() => RemovePunctuation);
+ }
+ }
+
#endregion
#region Preview
@@ -1521,6 +1542,7 @@ namespace HandBrakeWPF.ViewModels
// Title case
this.ChangeToTitleCase = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.AutoNameTitleCase);
+ this.RemovePunctuation = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.RemovePunctuation);
// #############################
// Picture Tab
@@ -1836,6 +1858,7 @@ namespace HandBrakeWPF.ViewModels
this.userSettingService.SetUserSetting(UserSettingConstants.UseM4v, this.SelectedMp4Extension);
this.userSettingService.SetUserSetting(UserSettingConstants.AutoNameRemoveUnderscore, this.RemoveUnderscores);
this.userSettingService.SetUserSetting(UserSettingConstants.AutoNameTitleCase, this.ChangeToTitleCase);
+ this.userSettingService.SetUserSetting(UserSettingConstants.RemovePunctuation, this.RemovePunctuation);
/* Previews */
this.userSettingService.SetUserSetting(UserSettingConstants.VLC_Path, this.VLCPath);