From 377768a2a90f5b470a1c047a02f4c998a8b348b4 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 30 Jan 2010 23:52:47 +0000 Subject: WinGui: - Added some code to allow direct execution of the CLI rather than using CMD. This may be useful later on. - Re-factoring. Added Many code comments / Cleaned up some code style issues. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3088 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/QueryGenerator.cs | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'win/C#/Functions/QueryGenerator.cs') diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index 3c15f7352..050e9b76c 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -17,12 +17,12 @@ namespace Handbrake.Functions /// /// Generates a full CLI query for either encoding or previe encoeds if duration and preview are defined. /// - /// - /// - /// - /// - /// - public string GenerateCLIQuery(frmMain mainWindow, int mode, int duration, string preview) + /// The Main Window + /// What Mode. (Point to Point Encoding) Chapters, Seconds, Frames OR Preview Encode + /// time in seconds for preview mode + /// --start-at-preview (int) + /// CLI Query + public static string GenerateCLIQuery(frmMain mainWindow, int mode, int duration, string preview) { string query = ""; @@ -542,6 +542,11 @@ namespace Handbrake.Functions return query; } + /// + /// Return the CLI Mixdown name + /// + /// GUI mixdown name + /// CLI mixdown name private static string GetMixDown(string selectedAudio) { switch (selectedAudio) @@ -562,6 +567,12 @@ namespace Handbrake.Functions return "auto"; } } + + /// + /// Get the CLI Audio Encoder name + /// + /// string The GUI Encode name + /// string CLI encoder name private static string GetAudioEncoder(string selectedEncoder) { switch (selectedEncoder) @@ -580,6 +591,13 @@ namespace Handbrake.Functions return ""; } } + + /// + /// Create a CSV file with the data from the Main Window Chapters tab + /// + /// Main Window + /// Path to save the csv file + /// True if successful private static Boolean ChapterCSVSave(frmMain mainWindow, string filePathName) { try -- cgit v1.2.3