diff options
author | sr55 <[email protected]> | 2009-02-05 21:52:07 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-02-05 21:52:07 +0000 |
commit | adaec0754c7c57be772c4deb070d337c12b2454d (patch) | |
tree | 583a122fe31acd0f818fb617fec893423e184b8f /win/C#/frmMain/PresetLoader.cs | |
parent | b10c9cec2dd0426e6df05894d7888c0cea874a89 (diff) |
WinGui:
- Picture filters now have their own tab.
- Deinterlace, Decomb, Denoise and Detelecine are now custom controls with optional passthru string values
- Preset system updated to handle new controls and custom string values for filters.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2121 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain/PresetLoader.cs')
-rw-r--r-- | win/C#/frmMain/PresetLoader.cs | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/win/C#/frmMain/PresetLoader.cs b/win/C#/frmMain/PresetLoader.cs index 7080f92d4..1d7472358 100644 --- a/win/C#/frmMain/PresetLoader.cs +++ b/win/C#/frmMain/PresetLoader.cs @@ -107,30 +107,6 @@ namespace Handbrake mainWindow.text_height.Text = presetQuery.Height.ToString();
}
- mainWindow.drp_deInterlace_option.Text = presetQuery.DeInterlace;
- mainWindow.drp_deNoise.Text = presetQuery.DeNoise;
-
- if (presetQuery.Decomb != "False")
- mainWindow.check_decomb.CheckState = CheckState.Checked;
- else
- mainWindow.check_decomb.CheckState = CheckState.Unchecked;
-
- if (presetQuery.DeTelecine != "False")
- mainWindow.check_detelecine.CheckState = CheckState.Checked;
- else
- mainWindow.check_detelecine.CheckState = CheckState.Unchecked;
-
- if (presetQuery.DeBlock != 0)
- {
- mainWindow.slider_deblock.Value = presetQuery.DeBlock;
- mainWindow.lbl_deblockVal.Text = presetQuery.DeBlock.ToString();
- }
- else
- {
- mainWindow.slider_deblock.Value = 4;
- mainWindow.lbl_deblockVal.Text = "Off";
- }
-
if (presetQuery.Anamorphic)
mainWindow.drp_anamorphic.SelectedIndex = 1;
else
@@ -161,6 +137,31 @@ namespace Handbrake #endregion
+ // Filters Tab
+ #region Filters
+
+ mainWindow.ctl_decomb.setOption(presetQuery.Decomb);
+
+ if (mainWindow.ctl_decomb.getDropValue == "Off")
+ mainWindow.ctl_deinterlace.setOption(presetQuery.DeInterlace);
+ else
+ mainWindow.ctl_deinterlace.setOption("None"); // Don't want decomb and deinterlace on at the same time
+
+ mainWindow.ctl_denoise.setOption(presetQuery.DeNoise);
+ mainWindow.ctl_detelecine.setOption(presetQuery.DeTelecine);
+
+ if (presetQuery.DeBlock != 0)
+ {
+ mainWindow.slider_deblock.Value = presetQuery.DeBlock;
+ mainWindow.lbl_deblockVal.Text = presetQuery.DeBlock.ToString();
+ }
+ else
+ {
+ mainWindow.slider_deblock.Value = 4;
+ mainWindow.lbl_deblockVal.Text = "Off";
+ }
+ #endregion
+
// Video Settings Tab
#region video
mainWindow.text_bitrate.Text = presetQuery.AverageVideoBitrate;
|