diff options
author | sr55 <[email protected]> | 2009-04-14 22:41:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-04-14 22:41:45 +0000 |
commit | a1365b1285c50c34e58172289330c089125c6f93 (patch) | |
tree | 5164c3395abac68d2293996569b233e3ad403fa3 /win/C#/Functions/PresetLoader.cs | |
parent | 7d4c044ebd62fdeac7a5665ec8fcd2548611ff51 (diff) |
WinGui:
- Patch by ExDeus - http://forum.handbrake.fr/viewtopic.php?f=4&t=9642&start=25#p54267
- Few redundant code functions removed, code layout tweaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2328 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r-- | win/C#/Functions/PresetLoader.cs | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs index 21bd5f974..53cc363aa 100644 --- a/win/C#/Functions/PresetLoader.cs +++ b/win/C#/Functions/PresetLoader.cs @@ -14,13 +14,12 @@ namespace Handbrake.Functions /// <param name="presetQuery">The Parsed CLI Query</param>
/// <param name="name">Name of the preset</param>
/// <param name="pictureSettings">Save picture settings in the preset</param>
- public static void presetLoader(frmMain mainWindow, Functions.QueryParser presetQuery, string name, Boolean pictureSettings)
+ public static void presetLoader(frmMain mainWindow, QueryParser presetQuery, string name, Boolean pictureSettings)
{
// ---------------------------
// Setup the GUI
// ---------------------------
- // Source tab
#region source
// Reset some vaules to stock first to prevent errors.
mainWindow.check_iPodAtom.CheckState = CheckState.Unchecked;
@@ -37,7 +36,6 @@ namespace Handbrake.Functions #endregion
- // Destination tab
#region destination
mainWindow.drp_videoEncoder.Text = presetQuery.VideoEncoder;
@@ -59,9 +57,12 @@ namespace Handbrake.Functions mainWindow.check_optimiseMP4.CheckState = presetQuery.OptimizeMP4 ? CheckState.Checked : CheckState.Unchecked;
+ mainWindow.check_largeFile.CheckState = presetQuery.LargeMP4 ? CheckState.Checked : CheckState.Unchecked;
+
+ mainWindow.setContainerOpts(); // select the container options according to the selected format
+
#endregion
- // Picture Settings Tab
#region Picture
mainWindow.check_autoCrop.Checked = true;
if (presetQuery.CropBottom == "0" && presetQuery.CropTop == "0")
@@ -122,7 +123,6 @@ namespace Handbrake.Functions #endregion
- // Filters Tab
#region Filters
mainWindow.ctl_decomb.setOption(presetQuery.Decomb);
@@ -147,8 +147,7 @@ namespace Handbrake.Functions }
#endregion
- // Video Settings Tab
- #region video
+ #region Video
if (presetQuery.AverageVideoBitrate != null)
{
mainWindow.radio_avgBitrate.Checked = true;
@@ -209,16 +208,8 @@ namespace Handbrake.Functions mainWindow.check_turbo.CheckState = presetQuery.TurboFirstPass ? CheckState.Checked : CheckState.Unchecked;
- if (presetQuery.LargeMP4)
- mainWindow.check_largeFile.CheckState = CheckState.Checked;
- else
- {
- mainWindow.check_largeFile.CheckState = CheckState.Unchecked;
- mainWindow.check_largeFile.BackColor = Color.Transparent;
- }
#endregion
- // Chapter Markers Tab
#region Chapter Markers
if (presetQuery.ChapterMarkers)
@@ -231,7 +222,6 @@ namespace Handbrake.Functions #endregion
- // Audio Settings Tab
#region Audio
// Clear the audio listing
mainWindow.lv_audioList.Items.Clear();
@@ -295,8 +285,7 @@ namespace Handbrake.Functions #endregion
- // H264 Tab & Preset Name
- #region other
+ #region Other
mainWindow.x264Panel.x264Query = presetQuery.H264Query;
// Set the preset name
|