diff options
author | sr55 <[email protected]> | 2008-09-06 17:00:09 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-09-06 17:00:09 +0000 |
commit | 5f50b5a9fbdaa90f638fb8731f25f3bc810f3b94 (patch) | |
tree | 7442f7fa088608a0f8e62c1d062a4d31c03c1e75 /win/C#/frmMain.cs | |
parent | 88b4851b757a6276f4b717127a5463005b6a868f (diff) |
WinGui:
- Minor UI tweak to the Crop controls. Now uses radio buttons
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1669 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 59 |
1 files changed, 18 insertions, 41 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 7cd0784f3..7e673f1e1 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -90,7 +90,6 @@ namespace Handbrake lblStatus.Text = "Setting up the GUI ...";
Application.DoEvents();
setupH264Panel(); // Initalize the H.264 Panel
- drp_crop.SelectedIndex = 0; // Set the default Cropping Option
loadPresetPanel(); // Load the Preset Panel
// Load the user's default settings or Normal Preset
if (Properties.Settings.Default.defaultSettings == "Checked")
@@ -738,56 +737,34 @@ namespace Handbrake text_height.BackColor = Color.LightGreen;
}
}
- private void drp_crop_SelectedIndexChanged(object sender, EventArgs e)
+ private void check_customCrop_CheckedChanged(object sender, EventArgs e)
{
- if ((string)drp_crop.SelectedItem == "Custom")
+ text_left.Enabled = true;
+ text_right.Enabled = true;
+ text_top.Enabled = true;
+ text_bottom.Enabled = true;
+ if (selectedTitle != null)
{
- text_left.Enabled = true;
- text_right.Enabled = true;
- text_top.Enabled = true;
- text_bottom.Enabled = true;
- text_left.Text = "0";
- text_right.Text = "0";
- text_top.Text = "0";
- text_bottom.Text = "0";
- }
-
- if ((string)drp_crop.SelectedItem == "Automatic")
- {
- text_left.Enabled = false;
- text_right.Enabled = false;
- text_top.Enabled = false;
- text_bottom.Enabled = false;
-
- if ((drp_dvdtitle.Text != "Automatic") && (selectedTitle != null))
- {
- text_top.Text = selectedTitle.AutoCropDimensions[0].ToString();
- text_bottom.Text = selectedTitle.AutoCropDimensions[1].ToString();
- text_left.Text = selectedTitle.AutoCropDimensions[2].ToString();
- text_right.Text = selectedTitle.AutoCropDimensions[3].ToString();
- }
- else
- {
- text_left.Text = "";
- text_right.Text = "";
- text_top.Text = "";
- text_bottom.Text = "";
- }
-
+ text_top.Text = selectedTitle.AutoCropDimensions[0].ToString();
+ text_bottom.Text = selectedTitle.AutoCropDimensions[1].ToString();
+ text_left.Text = selectedTitle.AutoCropDimensions[2].ToString();
+ text_right.Text = selectedTitle.AutoCropDimensions[3].ToString();
}
-
- if ((string)drp_crop.SelectedItem == "No Crop")
+ else
{
- text_left.Enabled = false;
- text_right.Enabled = false;
- text_top.Enabled = false;
- text_bottom.Enabled = false;
text_left.Text = "0";
text_right.Text = "0";
text_top.Text = "0";
text_bottom.Text = "0";
}
}
+ private void check_autoCrop_CheckedChanged(object sender, EventArgs e)
+ {
+ text_left.Enabled = false;
+ text_right.Enabled = false;
+ text_top.Enabled = false;
+ text_bottom.Enabled = false;
+ }
private void check_vfr_CheckedChanged(object sender, EventArgs e)
{
if (check_vfr.CheckState == CheckState.Checked)
|