diff options
author | sr55 <[email protected]> | 2011-04-03 17:49:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-04-03 17:49:44 +0000 |
commit | a6fbb52b6c9f4b639101e6e4d37e670ca2840c84 (patch) | |
tree | 5bf6b9a4d945365ba07dd07ba77fd05019d0e086 /win/CS/Functions/PresetLoader.cs | |
parent | 80ebbf6f36a9084dd19e04e1cbfbd9ec93bfb6b6 (diff) |
WinGui:
- Move all user settings for the Services library into the services library.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3899 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Functions/PresetLoader.cs')
-rw-r--r-- | win/CS/Functions/PresetLoader.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/Functions/PresetLoader.cs b/win/CS/Functions/PresetLoader.cs index 373d30ff8..7b36ab92f 100644 --- a/win/CS/Functions/PresetLoader.cs +++ b/win/CS/Functions/PresetLoader.cs @@ -8,14 +8,19 @@ namespace Handbrake.Functions using System.Drawing;
using System.Windows.Forms;
+ using HandBrake.ApplicationServices;
using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Model.Encoding;
+ using HandBrake.ApplicationServices.Services;
+ using HandBrake.ApplicationServices.Services.Interfaces;
/// <summary>
/// Load a preset into the main Window
/// </summary>
public class PresetLoader
{
+ private static readonly IUserSettingService UserSettingService = new UserSettingService();
+
/// <summary>
/// This function takes in a Query which has been parsed by QueryParser and
/// set's all the GUI widgets correctly.
@@ -300,7 +305,7 @@ namespace Handbrake.Functions sliderValue = 32 - (int)value;
break;
case VideoEncoder.X264:
- double cqStep = Properties.Settings.Default.x264cqstep;
+ double cqStep = UserSettingService.GetUserSettingDouble(UserSettingConstants.X264Step);
sliderValue = (int)((51.0 / cqStep) - (value / cqStep));
break;
case VideoEncoder.Theora:
|