summaryrefslogtreecommitdiffstats
path: root/win/CS/Controls/AudioPanel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-07-31 18:57:31 +0000
committersr55 <[email protected]>2011-07-31 18:57:31 +0000
commit7f0a86bd7811b82cb5b086ea960ef7ccc054d3bd (patch)
treea3c87cb0a2054d7b1362e13d70c26af305f51cf2 /win/CS/Controls/AudioPanel.cs
parent0ec1780ee70bb9e1270aaaa7cf1fcc40e78a0aa8 (diff)
WinGui: Usability Improvements on the Audio and Subtitle tabs.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4145 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Controls/AudioPanel.cs')
-rw-r--r--win/CS/Controls/AudioPanel.cs28
1 files changed, 22 insertions, 6 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs
index fe56bfbdd..338cbb550 100644
--- a/win/CS/Controls/AudioPanel.cs
+++ b/win/CS/Controls/AudioPanel.cs
@@ -460,15 +460,15 @@ namespace Handbrake.Controls
}
/// <summary>
- /// The Remove Track button event handler
+ /// Remove an Audio Track
/// </summary>
/// <param name="sender">
- /// The sender.
+ /// The Sender
/// </param>
/// <param name="e">
- /// The e.
+ /// The Event Args
/// </param>
- private void RemoveAudioTrack_Click(object sender, EventArgs e)
+ private void Btn_remove_track_click(object sender, EventArgs e)
{
RemoveTrack();
@@ -479,6 +479,20 @@ namespace Handbrake.Controls
}
}
+ /// <summary>
+ /// Clear all audio tracks
+ /// </summary>
+ /// <param name="sender">
+ /// The Sender
+ /// </param>
+ /// <param name="e">
+ /// The Event Args
+ /// </param>
+ private void Mnu_clear_all_click(object sender, EventArgs e)
+ {
+ this.ClearAudioList();
+ }
+
#endregion
#region Audio List Menu
@@ -617,7 +631,7 @@ namespace Handbrake.Controls
if (!elementFound)
mode = 2;
}
-
+
switch (mode)
{
case 1: // Adding all audio tracks
@@ -672,6 +686,8 @@ namespace Handbrake.Controls
{
this.AudioTracks.Clear();
+ drp_audioMix.Enabled = drp_audioBitrate.Enabled = drp_audioSample.Enabled = btn_AdvancedAudio.Enabled = true;
+
if (this.AudioListChanged != null)
this.AudioListChanged(this, new EventArgs());
}
@@ -782,7 +798,7 @@ namespace Handbrake.Controls
case "AAC (ffmpeg)":
max = drp_audioMix.Text.Contains("6 Channel") ? 768 : 320;
defaultRate = "160";
- break;
+ break;
case "MP3 (lame)":
max = 320;
defaultRate = "160";