summaryrefslogtreecommitdiffstats
path: root/win/CS/frmAddPreset.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-04-21 13:09:09 +0000
committersr55 <[email protected]>2011-04-21 13:09:09 +0000
commit167db7faade45f00b16843bd5469fdbb7e5a53ca (patch)
treea5f50ecc0e686464ca1252ef6dcb147d6c3e0b16 /win/CS/frmAddPreset.cs
parent4c783fb39de446352e20ce75a28ce7d331b9ebb8 (diff)
WinGui:
- Added "Custom" option to the Add Preset Window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3946 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/frmAddPreset.cs')
-rw-r--r--win/CS/frmAddPreset.cs27
1 files changed, 25 insertions, 2 deletions
diff --git a/win/CS/frmAddPreset.cs b/win/CS/frmAddPreset.cs
index bfc804cd5..67bfcaf5f 100644
--- a/win/CS/frmAddPreset.cs
+++ b/win/CS/frmAddPreset.cs
@@ -70,6 +70,9 @@ namespace Handbrake
pictureSettingsMode = QueryPictureSettingsMode.None;
break;
case 1:
+ pictureSettingsMode = QueryPictureSettingsMode.Custom;
+ break;
+ case 2:
pictureSettingsMode = QueryPictureSettingsMode.SourceMaximum;
break;
default:
@@ -77,8 +80,7 @@ namespace Handbrake
break;
}
- string query = QueryGenerator.GenerateQueryForPreset(mainWindow, pictureSettingsMode, check_useFilters.Checked, 0, 0);
-
+ string query = QueryGenerator.GenerateQueryForPreset(mainWindow, pictureSettingsMode, check_useFilters.Checked, Convert.ToInt32(maxWidth.Value), Convert.ToInt32(maxHeight.Value));
Preset preset = new Preset
{
@@ -112,5 +114,26 @@ namespace Handbrake
this.DialogResult = DialogResult.Cancel;
this.Close();
}
+
+ /// <summary>
+ /// Picutre Settings option changed.
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The Event Args</param>
+ private void cb_usePictureSettings_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (cb_usePictureSettings.SelectedItem.ToString().Contains("Custom"))
+ {
+ maxWidth.Visible = true;
+ maxHeight.Visible = true;
+ lbl_x.Visible = true;
+ }
+ else
+ {
+ maxWidth.Visible = false;
+ maxHeight.Visible = false;
+ lbl_x.Visible = false;
+ }
+ }
}
} \ No newline at end of file