summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-03-14 19:47:17 +0000
committersr55 <[email protected]>2008-03-14 19:47:17 +0000
commit7082e5068aeae43e72999249bd63eead0b93ebd7 (patch)
tree78b1b553b242619999f3548d2c7258da99812ee1 /win/C#/Functions
parent990241acf2640730ef43173afe70b11593681b7c (diff)
WinGui:
- Users can now have their own presets appear in the presets bar. They can both add and remove their own presets. - Anamorphic option is now a dropdown menu like the macgui. - Video tab re-arrange to be consistant with the macgui. - Video Framerate dropdown: Changed Automatic to Same as soure (same as the macgui) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1338 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r--win/C#/Functions/Common.cs29
1 files changed, 19 insertions, 10 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index 9b00fdc00..8d70523c3 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -206,21 +206,24 @@ namespace Handbrake.Functions
if (presetQuery.Anamorphic == true)
- mainWindow.CheckPixelRatio.CheckState = CheckState.Checked;
+ mainWindow.drp_anamorphic.SelectedIndex = 1;
else
- mainWindow.CheckPixelRatio.CheckState = CheckState.Unchecked;
+ mainWindow.drp_anamorphic.SelectedIndex = 0;
if (presetQuery.LooseAnamorphic == true)
- mainWindow.check_lAnamorphic.CheckState = CheckState.Checked;
+ mainWindow.drp_anamorphic.SelectedIndex = 2;
else
- mainWindow.check_lAnamorphic.CheckState = CheckState.Unchecked;
+ {
+ if (presetQuery.Anamorphic != true)
+ mainWindow.drp_anamorphic.SelectedIndex = 0;
+ }
+
if (presetQuery.Width != 0)
mainWindow.text_width.Text = presetQuery.Width.ToString();
else
{
mainWindow.text_width.Text = "";
- mainWindow.text_width.BackColor = Color.White;
}
if (presetQuery.Height != 0)
@@ -228,7 +231,6 @@ namespace Handbrake.Functions
else
{
mainWindow.text_height.Text = "";
- mainWindow.text_height.BackColor = Color.White;
}
if (presetQuery.VFR == true)
@@ -268,7 +270,10 @@ namespace Handbrake.Functions
if (presetQuery.LargeMP4 == true)
mainWindow.check_largeFile.CheckState = CheckState.Checked;
else
+ {
mainWindow.check_largeFile.CheckState = CheckState.Unchecked;
+ mainWindow.check_largeFile.BackColor = Color.Transparent;
+ }
@@ -495,8 +500,13 @@ namespace Handbrake.Functions
if (mainWindow.check_grayscale.Checked)
grayscale = " -g ";
- if (mainWindow.CheckPixelRatio.Checked)
+ if (mainWindow.drp_anamorphic.SelectedIndex == 1)
pixelRatio = " -p ";
+ else if (mainWindow.drp_anamorphic.SelectedIndex == 2)
+ pixelRatio = " -P ";
+ else
+ pixelRatio = " ";
+
if (mainWindow.check_deblock.Checked)
deblock = " --deblock";
@@ -507,8 +517,7 @@ namespace Handbrake.Functions
if (mainWindow.check_vfr.Checked)
vfr = " -V ";
- if (mainWindow.check_lAnamorphic.Checked)
- lanamorphic = " -P ";
+
string queryPictureSettings = cropOut + deinterlace + deblock + detelecine + vfr + grayscale + pixelRatio + lanamorphic;
#endregion
@@ -552,7 +561,7 @@ namespace Handbrake.Functions
if (mainWindow.check_2PassEncode.Checked)
twoPassEncoding = " -2 ";
- if (videoFramerate == "Automatic")
+ if (videoFramerate == "Same as source")
vid_frame_rate = "";
else
{