diff options
author | sr55 <[email protected]> | 2010-04-18 16:23:40 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-04-18 16:23:40 +0000 |
commit | a82bdb07077d06ef764a25a66eb04ade46fa12ea (patch) | |
tree | 8b2ddc3f2c1d4b2c2790bd75ba7c73aaf331a6b9 /win/C#/frmMain.cs | |
parent | f0761065a31f0921c289085f3e41e583640cef65 (diff) |
WinGui:
- Queue Edit now only scans the title that was added rather than all titles.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3241 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 42f0cd4ee..6c4a2ed93 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -856,7 +856,7 @@ namespace Handbrake if (overwrite == DialogResult.Yes)
{
if (encodeQueue.Count == 0)
- encodeQueue.Add(query, sourcePath, text_destination.Text, (rtf_query.Text != string.Empty));
+ encodeQueue.Add(query, getTitle(), sourcePath, text_destination.Text, (rtf_query.Text != string.Empty));
queueWindow.SetQueue();
if (encodeQueue.Count > 1)
@@ -895,10 +895,10 @@ namespace Handbrake "There is already a queue item for this destination path. \n\n If you continue, the encode will be overwritten. Do you wish to continue?",
"Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.Yes)
- encodeQueue.Add(query, sourcePath, text_destination.Text, (rtf_query.Text != string.Empty));
+ encodeQueue.Add(query, getTitle(), sourcePath, text_destination.Text, (rtf_query.Text != string.Empty));
}
else
- encodeQueue.Add(query, sourcePath, text_destination.Text, (rtf_query.Text != string.Empty));
+ encodeQueue.Add(query, getTitle(), sourcePath, text_destination.Text, (rtf_query.Text != string.Empty));
lbl_encode.Text = encodeQueue.Count + " encode(s) pending in the queue";
@@ -1436,8 +1436,8 @@ namespace Handbrake double cqStep = Properties.Settings.Default.x264cqstep;
double multiplier = 1.0 / cqStep;
double value = slider_videoQuality.Value * multiplier;
-
- slider_videoQuality.Maximum = (int)(51/Properties.Settings.Default.x264cqstep);
+
+ slider_videoQuality.Maximum = (int)(51 / Properties.Settings.Default.x264cqstep);
if (value < slider_videoQuality.Maximum)
slider_videoQuality.Value = slider_videoQuality.Maximum - (int)value;
@@ -1703,7 +1703,7 @@ namespace Handbrake // Enable the creation of chapter markers if the file is an image of a dvd.
int start, end;
int.TryParse(drop_chapterStart.Items[0].ToString(), out start);
- int.TryParse(drop_chapterFinish.Items[drop_chapterFinish.Items.Count -1].ToString(), out end);
+ int.TryParse(drop_chapterFinish.Items[drop_chapterFinish.Items.Count - 1].ToString(), out end);
if (end > start)
Check_ChapterMarkers.Enabled = true;
else
@@ -1803,8 +1803,7 @@ namespace Handbrake public void RecievingJob(Job job)
{
string query = job.Query;
- StartScan(job.Source, 0);
-
+ StartScan(job.Source, job.Title);
if (query != null)
{
@@ -1938,6 +1937,24 @@ namespace Handbrake treeView_presets.Update();
}
+ /// <summary>
+ /// Get the title from the selected item in the title dropdown.
+ /// </summary>
+ /// <returns>
+ /// The title.
+ /// </returns>
+ private int getTitle()
+ {
+ int title = 0;
+ if (drp_dvdtitle.SelectedItem != null)
+ {
+ string[] titleInfo = drp_dvdtitle.SelectedItem.ToString().Split(' ');
+ int.TryParse(titleInfo[0], out title);
+ }
+
+ return title;
+ }
+
#endregion
#region Overrides
|