diff options
author | sr55 <[email protected]> | 2009-03-09 11:49:20 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-03-09 11:49:20 +0000 |
commit | 82a445c939dd4d63ee957190dce2de8d594a7782 (patch) | |
tree | 72e2904fd95968e18ed2036085864d86b035192f /win/C#/frmQueue.cs | |
parent | d4a68b10bcfd76631e451a8af7cdfefb9ae1ad72 (diff) |
WinGui
- Removed undeeded activate call for show queue
- Moved re-add job to the toolbar Queue menu.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2246 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r-- | win/C#/frmQueue.cs | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index ceb127fb4..26fd97311 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -165,7 +165,19 @@ namespace Handbrake item.SubItems.Add(queue_item.Source); // Source
item.SubItems.Add(queue_item.Destination); // Destination
item.SubItems.Add(parsed.VideoEncoder); // Video
- item.SubItems.Add(parsed.AudioEncoder1); // Audio
+
+ // Display the first 4 audio tracks.
+ String audio = parsed.AudioEncoder1;
+ if (parsed.AudioEncoder2 != null)
+ audio += ", " + parsed.AudioEncoder2;
+
+ if (parsed.AudioEncoder3 != null)
+ audio += ", " + parsed.AudioEncoder3;
+
+ if (parsed.AudioEncoder4 != null)
+ audio += ", " + parsed.AudioEncoder4;
+
+ item.SubItems.Add(audio); // Audio
list_queue.Items.Add(item);
}
@@ -208,7 +220,17 @@ namespace Handbrake }
lbl_vEnc.Text = parsed.VideoEncoder;
- lbl_aEnc.Text = parsed.AudioEncoder1;
+ String audio = parsed.AudioEncoder1;
+ if (parsed.AudioEncoder2 != null)
+ audio += ", " + parsed.AudioEncoder2;
+
+ if (parsed.AudioEncoder3 != null)
+ audio += ", " + parsed.AudioEncoder3;
+
+ if (parsed.AudioEncoder4 != null)
+ audio += ", " + parsed.AudioEncoder4;
+
+ lbl_aEnc.Text = audio;
}
catch (Exception)
{
@@ -246,15 +268,6 @@ namespace Handbrake }
// Queue Management
- private void btn_re_add_Click(object sender, EventArgs e)
- {
- if (queue.getLastQueryItem() != null)
- {
- queue.add(queue.getLastQueryItem().Query, queue.getLastQueryItem().Source, queue.getLastQueryItem().Destination);
- queue.write2disk("hb_queue_recovery.xml"); // Update the queue recovery file
- updateUIElements();
- }
- }
private void btn_up_Click(object sender, EventArgs e)
{
// If there are selected items and the first item is not selected
@@ -344,6 +357,15 @@ namespace Handbrake queue.recoverQueue(OpenFile.FileName);
updateUIElements();
}
+ private void mnu_readd_Click(object sender, EventArgs e)
+ {
+ if (queue.getLastQueryItem() != null)
+ {
+ queue.add(queue.getLastQueryItem().Query, queue.getLastQueryItem().Source, queue.getLastQueryItem().Destination);
+ queue.write2disk("hb_queue_recovery.xml"); // Update the queue recovery file
+ updateUIElements();
+ }
+ }
// Hide's the window when the user tries to "x" out of the window instead of closing it.
protected override void OnClosing(CancelEventArgs e)
@@ -354,5 +376,6 @@ namespace Handbrake }
+
}
}
|