diff options
author | sr55 <[email protected]> | 2010-01-30 23:52:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-01-30 23:52:47 +0000 |
commit | 377768a2a90f5b470a1c047a02f4c998a8b348b4 (patch) | |
tree | 90ce0b844e17f6525a75805811555bde12cb6bcd /win/C#/Functions/QueryGenerator.cs | |
parent | 971ab73d6af6d07838922a667648c97e2f07c041 (diff) |
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
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r-- | win/C#/Functions/QueryGenerator.cs | 30 |
1 files changed, 24 insertions, 6 deletions
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 /// <summary>
/// Generates a full CLI query for either encoding or previe encoeds if duration and preview are defined.
/// </summary>
- /// <param name="mainWindow"></param>
- /// <param name="mode"></param>
- /// <param name="duration"></param>
- /// <param name="preview"></param>
- /// <returns></returns>
- public string GenerateCLIQuery(frmMain mainWindow, int mode, int duration, string preview)
+ /// <param name="mainWindow">The Main Window</param>
+ /// <param name="mode">What Mode. (Point to Point Encoding) Chapters, Seconds, Frames OR Preview Encode</param>
+ /// <param name="duration">time in seconds for preview mode</param>
+ /// <param name="preview"> --start-at-preview (int) </param>
+ /// <returns>CLI Query </returns>
+ public static string GenerateCLIQuery(frmMain mainWindow, int mode, int duration, string preview)
{
string query = "";
@@ -542,6 +542,11 @@ namespace Handbrake.Functions return query;
}
+ /// <summary>
+ /// Return the CLI Mixdown name
+ /// </summary>
+ /// <param name="selectedAudio">GUI mixdown name</param>
+ /// <returns>CLI mixdown name</returns>
private static string GetMixDown(string selectedAudio)
{
switch (selectedAudio)
@@ -562,6 +567,12 @@ namespace Handbrake.Functions return "auto";
}
}
+
+ /// <summary>
+ /// Get the CLI Audio Encoder name
+ /// </summary>
+ /// <param name="selectedEncoder">string The GUI Encode name</param>
+ /// <returns>string CLI encoder name</returns>
private static string GetAudioEncoder(string selectedEncoder)
{
switch (selectedEncoder)
@@ -580,6 +591,13 @@ namespace Handbrake.Functions return "";
}
}
+
+ /// <summary>
+ /// Create a CSV file with the data from the Main Window Chapters tab
+ /// </summary>
+ /// <param name="mainWindow">Main Window</param>
+ /// <param name="filePathName">Path to save the csv file</param>
+ /// <returns>True if successful </returns>
private static Boolean ChapterCSVSave(frmMain mainWindow, string filePathName)
{
try
|