diff options
author | sr55 <[email protected]> | 2012-01-14 18:46:17 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-01-14 18:46:17 +0000 |
commit | 01c8ab3532c0c30748fd3e7a0376e3f32928c72f (patch) | |
tree | 84778f7508a83d66ee229d142f5478f29a6d25a7 /win/CS/Functions | |
parent | e5d16119f267eca2d9e294541aa6e9307c021d19 (diff) |
WinGui: Add an option to hide the Allowed Passthru checkboxes. (Hidden by default). Fixed an issue where the ScannedTrack was getting overwritten when switching between presets.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4407 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Functions')
-rw-r--r-- | win/CS/Functions/QueryGenerator.cs | 51 |
1 files changed, 48 insertions, 3 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs index 85640c3bd..8ffdb888e 100644 --- a/win/CS/Functions/QueryGenerator.cs +++ b/win/CS/Functions/QueryGenerator.cs @@ -6,7 +6,6 @@ namespace Handbrake.Functions
{
using System;
- using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.IO;
@@ -17,7 +16,6 @@ namespace Handbrake.Functions using HandBrake.ApplicationServices.Functions;
using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Model.Encoding;
- using HandBrake.ApplicationServices.Services;
using HandBrake.ApplicationServices.Services.Interfaces;
using HandBrake.Interop.Model;
using HandBrake.Interop.Model.Encoding;
@@ -25,13 +23,15 @@ namespace Handbrake.Functions using Handbrake.Model;
using OutputFormat = HandBrake.ApplicationServices.Model.Encoding.OutputFormat;
- using UserSettingConstants = Handbrake.UserSettingConstants;
/// <summary>
/// Generate a CLI Query for HandBrakeCLI
/// </summary>
public class QueryGenerator
{
+ /// <summary>
+ /// Backing field for the user setting service.
+ /// </summary>
private static readonly IUserSettingService UserSettingService = ServiceManager.UserSettingService;
/// <summary>
@@ -39,6 +39,27 @@ namespace Handbrake.Functions /// </summary>
private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
+ /// <summary>
+ /// Generate a CLI Query (Usable by the preset system)
+ /// </summary>
+ /// <param name="mainWindow">
+ /// The main window.
+ /// </param>
+ /// <param name="mode">
+ /// The mode.
+ /// </param>
+ /// <param name="filters">
+ /// The filters.
+ /// </param>
+ /// <param name="width">
+ /// The width.
+ /// </param>
+ /// <param name="height">
+ /// The height.
+ /// </param>
+ /// <returns>
+ /// A CLI Query as a string.
+ /// </returns>
public static string GenerateQueryForPreset(frmMain mainWindow, QueryPictureSettingsMode mode, bool filters, int width, int height)
{
string query = string.Empty;
@@ -48,6 +69,21 @@ namespace Handbrake.Functions return query;
}
+ /// <summary>
+ /// Generate a CLI Query for a preview.
+ /// </summary>
+ /// <param name="mainWindow">
+ /// The main window.
+ /// </param>
+ /// <param name="duration">
+ /// The duration.
+ /// </param>
+ /// <param name="preview">
+ /// The preview.
+ /// </param>
+ /// <returns>
+ /// Preview CLI Query
+ /// </returns>
public static string GeneratePreviewQuery(frmMain mainWindow, int duration, string preview)
{
string query = string.Empty;
@@ -61,6 +97,15 @@ namespace Handbrake.Functions return query;
}
+ /// <summary>
+ /// Generate a QueueTask ready for Queuing.
+ /// </summary>
+ /// <param name="mainWindow">
+ /// The main window
+ /// </param>
+ /// <returns>
+ /// A QueueTask object.
+ /// </returns>
public static QueueTask GenerateFullQuery(frmMain mainWindow)
{
// Create the CLI Query
|