From c95258591c92e571c25db7a611ae9f3a942b74c2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 23 Nov 2014 21:32:18 +0000 Subject: WinGui: Move the preset model object into the presets package. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6547 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/Model/Preset/Preset.cs | 151 ----------------------------- 1 file changed, 151 deletions(-) delete mode 100644 win/CS/HandBrakeWPF/Model/Preset/Preset.cs (limited to 'win/CS/HandBrakeWPF/Model') diff --git a/win/CS/HandBrakeWPF/Model/Preset/Preset.cs b/win/CS/HandBrakeWPF/Model/Preset/Preset.cs deleted file mode 100644 index d7c93838b..000000000 --- a/win/CS/HandBrakeWPF/Model/Preset/Preset.cs +++ /dev/null @@ -1,151 +0,0 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. -// -// -// A Preset for encoding with. -// -// -------------------------------------------------------------------------------------------------------------------- - -namespace HandBrakeWPF.Model.Preset -{ - using Caliburn.Micro; - - using HandBrake.ApplicationServices.Model; - using HandBrake.ApplicationServices.Model.Audio; - using HandBrake.ApplicationServices.Model.Subtitle; - - /// - /// A Preset for encoding with. - /// - public class Preset : PropertyChangedBase - { - #region Constants and Fields - - /// - /// The is default. - /// - private bool isDefault; - - #endregion - - #region Properties - - /// - /// Gets or sets the category which the preset resides under - /// - public string Category { get; set; } - - /// - /// Gets or sets the Description for the preset - /// - public string Description { get; set; } - - /// - /// Gets or sets a value indicating whether this is a built in preset - /// - public bool IsBuildIn { get; set; } - - /// - /// Gets or sets a value indicating whether IsDefault. - /// - public bool IsDefault - { - get - { - return this.isDefault; - } - set - { - this.isDefault = value; - this.NotifyOfPropertyChange(() => this.IsDefault); - } - } - - /// - /// Gets or sets the preset name - /// - public string Name { get; set; } - - /// - /// Gets or sets PictureSettingsMode. - /// Source Maximum, Custom or None - /// - public PresetPictureSettingsMode PictureSettingsMode { get; set; } - - /// - /// Gets or sets a value indicating whether use deinterlace. - /// - public bool UseDeinterlace { get; set; } - - /// - /// Gets or sets task. - /// - public EncodeTask Task { get; set; } - - /// - /// Gets or sets a value indicating whether Picture Filters are used with this preset. - /// - public bool UsePictureFilters { get; set; } - - /// - /// Gets or sets The version number which associates this preset with a HB build - /// - public string Version { get; set; } - - /// - /// Gets or sets the audio track behaviours. - /// - public AudioBehaviours AudioTrackBehaviours { get; set; } - - /// - /// Gets or sets the subtitle track behaviours. - /// - public SubtitleBehaviours SubtitleTrackBehaviours { get; set; } - - #endregion - - #region Public Methods - - /// - /// Update this preset. - /// The given parameters should be copy-constructed. - /// - /// - /// The task. - /// - /// - /// The audio behaviours. - /// - /// - /// The subtitle behaviours. - /// - public void Update(EncodeTask task, AudioBehaviours audioBehaviours, SubtitleBehaviours subtitleBehaviours) - { - // Copy over Max Width / Height for the following picture settings modes. - if (this.PictureSettingsMode == PresetPictureSettingsMode.Custom - || this.PictureSettingsMode == PresetPictureSettingsMode.SourceMaximum) - { - task.MaxWidth = this.Task.MaxWidth; - task.MaxHeight = this.Task.MaxHeight; - } - - this.Task = task; - this.AudioTrackBehaviours = audioBehaviours; - this.SubtitleTrackBehaviours = subtitleBehaviours; - } - - /// - /// Override the ToString Method - /// - /// - /// The Preset Name - /// - public override string ToString() - { - return this.Name; - } - - #endregion - } -} \ No newline at end of file -- cgit v1.2.3