diff options
author | sr55 <[email protected]> | 2007-12-07 22:03:24 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-12-07 22:03:24 +0000 |
commit | f23b40d16b3a9dec9b5d420e402e7c4fb988ae4a (patch) | |
tree | 0bd82a1f6b9fbb58b2b0ab2ba627f70f7c141eee /win/C#/frmOptions.cs | |
parent | 00e6db9ff1c1d2b2ec0999f71e9795da18c24155 (diff) |
WinGui:
- Implemented Auto File naming option. Can be enabled from Tools > Options
- Implemented Auto Select Subtitle feature for Forced Subtitles.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1107 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r-- | win/C#/frmOptions.cs | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index 75796ddd2..7d12e1d97 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -44,17 +44,23 @@ namespace Handbrake check_tooltip.CheckState = CheckState.Checked;
}
- if (Properties.Settings.Default.hidePresets == "Checked")
+ if (Properties.Settings.Default.updatePresets == "Checked")
{
- check_showPreset.CheckState = CheckState.Checked;
+ check_updatePresets.CheckState = CheckState.Checked;
}
- if (Properties.Settings.Default.updatePresets == "Checked")
+ if (Properties.Settings.Default.autoNaming == "Checked")
{
- check_updatePresets.CheckState = CheckState.Checked;
+ check_autoNaming.CheckState = CheckState.Checked;
}
+
+ if (Properties.Settings.Default.autoNamePath != "")
+ text_an_path.Text = Properties.Settings.Default.autoNamePath;
+ else
+ text_an_path.Text = "Click 'Browse' to set the default location";
}
+ #region Options
private void check_updateCheck_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.updateStatus = check_updateCheck.CheckState.ToString();
@@ -101,16 +107,36 @@ namespace Handbrake Properties.Settings.Default.CompletionOption = drp_completeOption.Text;
}
- private void check_showPreset_CheckedChanged(object sender, EventArgs e)
+ private void check_updatePresets_CheckedChanged(object sender, EventArgs e)
{
- Properties.Settings.Default.hidePresets = check_showPreset.CheckState.ToString();
+ Properties.Settings.Default.updatePresets = check_updatePresets.CheckState.ToString();
}
- private void check_updatePresets_CheckedChanged(object sender, EventArgs e)
+ private void check_autoNaming_CheckedChanged(object sender, EventArgs e)
{
- Properties.Settings.Default.updatePresets = check_updatePresets.CheckState.ToString();
+ Properties.Settings.Default.autoNaming = check_autoNaming.CheckState.ToString();
}
+ private void btn_browse_Click(object sender, EventArgs e)
+ {
+ pathFinder.ShowDialog();
+ text_an_path.Text = pathFinder.SelectedPath;
+ }
+
+ private void text_an_path_TextChanged(object sender, EventArgs e)
+ {
+ if (text_an_path.Text == "")
+ Properties.Settings.Default.autoNamePath = null;
+ else
+ Properties.Settings.Default.autoNamePath = text_an_path.Text;
+ }
+ #endregion
+
+
+
+
+
+
}
}
\ No newline at end of file |