diff options
author | sr55 <[email protected]> | 2011-04-15 20:01:00 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-04-15 20:01:00 +0000 |
commit | 70fee546acaf4db3efb690ac4aaa09e0f4cb65e8 (patch) | |
tree | 3f53a1b58bbe70ca017f487313b847c8f248bc80 /win/CS/frmOptions.cs | |
parent | 463b2127304a4701fcfff7f499d4dfc31828075c (diff) |
WinGui:
- Add "Send to" option. This will pass the encoded output file name of each completed job on the queue to a 3rd party application with optional arguments passed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3928 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/frmOptions.cs')
-rw-r--r-- | win/CS/frmOptions.cs | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/win/CS/frmOptions.cs b/win/CS/frmOptions.cs index e5d3da2e8..1bdb894b3 100644 --- a/win/CS/frmOptions.cs +++ b/win/CS/frmOptions.cs @@ -9,6 +9,7 @@ namespace Handbrake using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
+ using System.IO;
using System.Windows.Forms;
using HandBrake.ApplicationServices;
@@ -76,7 +77,15 @@ namespace Handbrake if (userSettingService.GetUserSettingBoolean(UserSettingConstants.GrowlQueue))
check_GrowlQueue.CheckState = CheckState.Checked;
- // Enable auto naming feature.
+ check_sendFileTo.Checked = this.userSettingService.GetUserSettingBoolean(UserSettingConstants.SendFile);
+ lbl_sendFileTo.Text = Path.GetFileNameWithoutExtension(this.userSettingService.GetUserSettingString(UserSettingConstants.SendFileTo));
+ txt_SendFileArgs.Text = this.userSettingService.GetUserSettingString(UserSettingConstants.SendFileToArgs);
+
+ // #############################
+ // Output Settings
+ // #############################
+
+ // Enable auto naming feature.)
if (Properties.Settings.Default.autoNaming)
check_autoNaming.CheckState = CheckState.Checked;
@@ -248,6 +257,29 @@ namespace Handbrake userSettingService.SetUserSetting(UserSettingConstants.GrowlEncode, check_growlEncode.Checked);
}
+ private void btn_SendFileToPath_Click(object sender, EventArgs e)
+ {
+ openExecutable.ShowDialog();
+ if (!string.IsNullOrEmpty(openExecutable.FileName))
+ {
+ this.userSettingService.SetUserSetting(UserSettingConstants.SendFileTo, openExecutable.FileName);
+ lbl_sendFileTo.Text = Path.GetFileNameWithoutExtension(openExecutable.FileName);
+ }
+ }
+
+ private void check_sendFileTo_CheckedChanged(object sender, EventArgs e)
+ {
+ this.userSettingService.SetUserSetting(UserSettingConstants.SendFile, check_sendFileTo.Checked);
+ }
+
+ private void txt_SendFileArgs_TextChanged(object sender, EventArgs e)
+ {
+ this.userSettingService.SetUserSetting(UserSettingConstants.SendFileToArgs, txt_SendFileArgs.Text);
+ }
+
+ #endregion
+
+ #region Output File
private void check_autoNaming_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.autoNaming = check_autoNaming.Checked;
@@ -309,9 +341,9 @@ namespace Handbrake private void btn_vlcPath_Click(object sender, EventArgs e)
{
- openFile_vlc.ShowDialog();
- if (openFile_vlc.FileName != string.Empty)
- txt_vlcPath.Text = openFile_vlc.FileName;
+ openExecutable.ShowDialog();
+ if (openExecutable.FileName != string.Empty)
+ txt_vlcPath.Text = openExecutable.FileName;
}
private void txt_vlcPath_TextChanged(object sender, EventArgs e)
|