summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs35
1 files changed, 34 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 822e8a734..4d45b7fcc 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -88,7 +88,7 @@ namespace Handbrake
treeView_presets.ExpandAll();
lbl_encode.Text = "";
drop_mode.SelectedIndex = 0;
- queueWindow = new frmQueue(encodeQueue); // Prepare the Queue
+ queueWindow = new frmQueue(encodeQueue, this); // Prepare the Queue
if (!Properties.Settings.Default.QueryEditorTab)
tabs_panel.TabPages.RemoveAt(7); // Remove the query editor tab if the user does not want it enabled.
@@ -1817,6 +1817,39 @@ namespace Handbrake
}
#endregion
+ public void RecievingJob(Job job)
+ {
+ string query = job.Query;
+ StartScan(job.Source, 0);
+
+
+ if (query != null)
+ {
+ //Ok, Reset all the H264 widgets before changing the preset
+ x264Panel.reset2Defaults();
+
+ // Send the query from the file to the Query Parser class
+ QueryParser presetQuery = QueryParser.Parse(query);
+
+ // Now load the preset
+ PresetLoader.presetLoader(this, presetQuery, "Load Back From Queue", true);
+
+ // The x264 widgets will need updated, so do this now:
+ x264Panel.X264_StandardizeOptString();
+ x264Panel.X264_SetCurrentSettingsInPanel();
+
+ // Finally, let this window have a copy of the preset settings.
+ CurrentlySelectedPreset = null;
+ PictureSettings.SetPresetCropWarningLabel(null);
+ }
+
+ }
+
+ private void UpdateGuiWithQueueItemAfterScan()
+ {
+
+ }
+
// This is the END of the road ****************************************
}
} \ No newline at end of file