diff options
author | sr55 <[email protected]> | 2010-07-04 17:50:37 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-07-04 17:50:37 +0000 |
commit | 7139bd97551c5f8a521295599f0bf294a00cd3dd (patch) | |
tree | 075518b4ab1565c438fcd41b398263e60be96e99 /win/C#/Presets | |
parent | daec13f6144419aa5efdada8598500f2d48cefac (diff) |
WinGui:
- Next step in the new Add Presets Window. Now added Picture Size modes "None" and "Source Maximum". Note cropping values are stored with "Source Maximum" if custom crop is selected. Also included option to include filter settings.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3425 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Presets')
-rw-r--r-- | win/C#/Presets/Preset.cs | 4 | ||||
-rw-r--r-- | win/C#/Presets/PresetsHandler.cs | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/win/C#/Presets/Preset.cs b/win/C#/Presets/Preset.cs index bf41e4719..024d31667 100644 --- a/win/C#/Presets/Preset.cs +++ b/win/C#/Presets/Preset.cs @@ -5,8 +5,6 @@ namespace Handbrake.Presets
{
- using System.Windows.Controls;
-
/// <summary>
/// A Preset
/// </summary>
@@ -30,7 +28,7 @@ namespace Handbrake.Presets /// <summary>
/// Gets or sets a value indicating whether to use picture Settings in presets.
/// </summary>
- public bool PictureSettings { get; set; }
+ public bool CropSettings { get; set; }
/// <summary>
/// Gets or sets The version number which associates this preset with a HB build
diff --git a/win/C#/Presets/PresetsHandler.cs b/win/C#/Presets/PresetsHandler.cs index 1a47a4dd8..971a47859 100644 --- a/win/C#/Presets/PresetsHandler.cs +++ b/win/C#/Presets/PresetsHandler.cs @@ -46,6 +46,11 @@ namespace Handbrake.Presets private List<Preset> userPresets = new List<Preset>();
/// <summary>
+ /// Last preset added
+ /// </summary>
+ public Preset LastPresetAdded { get; set; }
+
+ /// <summary>
/// Add a new preset to the system
/// </summary>
/// <param name="presetName">
@@ -68,11 +73,12 @@ namespace Handbrake.Presets {
Name = presetName,
Query = query,
- PictureSettings = pictureSettings,
+ CropSettings = pictureSettings,
Version = Properties.Settings.Default.hb_version
};
this.userPresets.Add(newPreset);
this.UpdatePresetFiles();
+ this.LastPresetAdded = newPreset;
return true;
}
return false;
@@ -135,7 +141,7 @@ namespace Handbrake.Presets if (item.Name == presetName)
{
item.Query = query;
- item.PictureSettings = pictureSettings;
+ item.CropSettings = pictureSettings;
MessageBox.Show(
"Changes to \"" + presetName + "\" Saved",
"Success",
@@ -216,7 +222,7 @@ namespace Handbrake.Presets Name = presetName[0].Replace("+", string.Empty).Trim(),
Query = presetName[2],
Version = Properties.Settings.Default.hb_version,
- PictureSettings = pic
+ CropSettings = pic
};
this.presets.Add(newPreset);
}
|