diff options
author | sr55 <[email protected]> | 2009-07-17 23:37:33 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-07-17 23:37:33 +0000 |
commit | 8094592a533ca931ee4c409d7870b158ca9a1592 (patch) | |
tree | ef74d7eb3c3debe661cfa4278161183ea8ac97c9 /win/C#/frmOptions.cs | |
parent | f067608af197f3c6ebc47685274486854bb04a77 (diff) |
WinGui:
- Added new options: preferred language, "Dub Foreign language audio" and "Use Foreign language audio and Subtitles"
- Changed built-in language list to native spellings.
- Fixes to CLI Scan Parser AudioTrack.\
- Note: Subtitles panel is not hooked up for this yet.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2709 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r-- | win/C#/frmOptions.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs index 174b8601c..66adf04e4 100644 --- a/win/C#/frmOptions.cs +++ b/win/C#/frmOptions.cs @@ -5,6 +5,7 @@ It may be used under the terms of the GNU General Public License. */
using System;
+using System.Collections.Generic;
using System.Globalization;
using System.Windows.Forms;
using Handbrake.Functions;
@@ -16,6 +17,9 @@ namespace Handbrake public frmOptions()
{
InitializeComponent();
+ IDictionary<string, string> langList = Main.mapLanguages();
+ foreach (string item in langList.Keys)
+ drop_preferredLang.Items.Add(item);
// #############################
// General
@@ -63,6 +67,18 @@ namespace Handbrake txt_vlcPath.Text = Properties.Settings.Default.VLC_Path;
// #############################
+ // Audio and Subtitles Tab
+ // #############################
+
+ drop_preferredLang.SelectedItem = Properties.Settings.Default.NativeLanguage;
+
+ if (Properties.Settings.Default.DubAudio)
+ radio_dub.Checked = true;
+ else
+ radio_foreignAndSubs.Checked = true;
+
+
+ // #############################
// CLI
// #############################
@@ -212,6 +228,23 @@ namespace Handbrake }
#endregion
+ #region Audio and Subtitles
+ private void drop_preferredLang_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Properties.Settings.Default.NativeLanguage = drop_preferredLang.SelectedItem.ToString();
+ }
+ private void radio_dub_CheckedChanged(object sender, EventArgs e)
+ {
+ if (radio_dub.Checked)
+ Properties.Settings.Default.DubAudio = true;
+ }
+ private void radio_foreignAndSubs_CheckedChanged(object sender, EventArgs e)
+ {
+ if (radio_foreignAndSubs.Checked)
+ Properties.Settings.Default.DubAudio = false;
+ }
+ #endregion
+
#region CLI
private void check_cli_minimized_CheckedChanged(object sender, EventArgs e)
{
@@ -362,5 +395,6 @@ namespace Handbrake Properties.Settings.Default.Save(); // Small hack for Vista. Seems to work fine on XP without this
this.Close();
}
+
}
}
\ No newline at end of file |