diff options
author | sr55 <sr55.hb@outlook.com> | 2012-08-12 10:35:46 +0000 |
---|---|---|
committer | sr55 <sr55.hb@outlook.com> | 2012-08-12 10:35:46 +0000 |
commit | bd2a83d09b07c8e2fa303b6a17bf392811a0b95c (patch) | |
tree | 4240592556f5e7e36089a6f6e3f41d73e7828128 /win/CS/HandBrake.ApplicationServices/Model | |
parent | 833f974cc3b7b4a50f9c4a76686950a9dd395e70 (diff) |
WinGui: Highlight the default preset in italics.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4900 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Model')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/Preset.cs | 60 |
1 files changed, 45 insertions, 15 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs index 448d1a33e..128bf5c21 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs @@ -9,35 +9,59 @@ namespace HandBrake.ApplicationServices.Model
{
+ using Caliburn.Micro;
+
/// <summary>
/// A Preset for encoding with.
/// </summary>
- public class Preset
+ public class Preset : PropertyChangedBase
{
+ #region Constants and Fields
+
+ /// <summary>
+ /// The is default.
+ /// </summary>
+ private bool isDefault;
+
+ #endregion
+
+ #region Properties
+
/// <summary>
/// Gets or sets the category which the preset resides under
/// </summary>
public string Category { get; set; }
/// <summary>
- /// Gets or sets the preset name
+ /// Gets or sets the Description for the preset
/// </summary>
- public string Name { get; set; }
+ public string Description { get; set; }
/// <summary>
- /// Gets or sets The version number which associates this preset with a HB build
+ /// Gets or sets a value indicating whether this is a built in preset
/// </summary>
- public string Version { get; set; }
+ public bool IsBuildIn { get; set; }
/// <summary>
- /// Gets or sets the Description for the preset
+ /// Gets or sets a value indicating whether IsDefault.
/// </summary>
- public string Description { get; set; }
+ public bool IsDefault
+ {
+ get
+ {
+ return this.isDefault;
+ }
+ set
+ {
+ this.isDefault = value;
+ this.NotifyOfPropertyChange(() => this.IsDefault);
+ }
+ }
/// <summary>
- /// Gets or sets a value indicating whether Picture Filters are used with this preset.
+ /// Gets or sets the preset name
/// </summary>
- public bool UsePictureFilters { get; set; }
+ public string Name { get; set; }
/// <summary>
/// Gets or sets PictureSettingsMode.
@@ -46,19 +70,23 @@ namespace HandBrake.ApplicationServices.Model public PresetPictureSettingsMode PictureSettingsMode { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether this is a built in preset
+ /// Gets or sets task.
/// </summary>
- public bool IsBuildIn { get; set; }
+ public EncodeTask Task { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether IsDefault.
+ /// Gets or sets a value indicating whether Picture Filters are used with this preset.
/// </summary>
- public bool IsDefault { get; set; }
+ public bool UsePictureFilters { get; set; }
/// <summary>
- /// Gets or sets task.
+ /// Gets or sets The version number which associates this preset with a HB build
/// </summary>
- public EncodeTask Task { get; set; }
+ public string Version { get; set; }
+
+ #endregion
+
+ #region Public Methods
/// <summary>
/// Override the ToString Method
@@ -70,5 +98,7 @@ namespace HandBrake.ApplicationServices.Model {
return this.Name;
}
+
+ #endregion
}
}
\ No newline at end of file |