From 83066a7d99a5988673c5edb5561d047167f94a47 Mon Sep 17 00:00:00 2001 From: Jaex Date: Fri, 30 May 2014 10:41:32 +0300 Subject: [PATCH] Added help button to FFmpeg options window --- HelpersLib/Links.cs | 1 - ScreenCaptureLib/Enums.cs | 2 +- ScreenCaptureLib/Screencast/FFmpegOptionsForm.Designer.cs | 2 ++ ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs | 7 ++++++- UploadersLib/GUI/UploadersConfigForm.cs | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/HelpersLib/Links.cs b/HelpersLib/Links.cs index 1d3cd34be..dc4f03f34 100644 --- a/HelpersLib/Links.cs +++ b/HelpersLib/Links.cs @@ -37,6 +37,5 @@ public static class Links public const string URL_BERK_STEAM = "http://steamcommunity.com/id/ww"; public const string URL_MIKE = "https://github.com/McoreD"; public const string URL_MIKE_STEAM = "http://steamcommunity.com/profiles/76561198018560325"; - public const string URL_DOCS_CUSTOM_UPLOADER = "https://docs.google.com/document/d/1TSttAfH-1970JNsu3i9tl6UY0a8KNbUCeGri0Fs-jcU/edit?usp=sharing"; } } \ No newline at end of file diff --git a/ScreenCaptureLib/Enums.cs b/ScreenCaptureLib/Enums.cs index 19383c8e7..1664bd950 100644 --- a/ScreenCaptureLib/Enums.cs +++ b/ScreenCaptureLib/Enums.cs @@ -63,7 +63,7 @@ public enum FFmpegVideoCodec libx264, [Description("VP8")] libvpx, - [Description("XviD")] + [Description("Xvid")] libxvid } diff --git a/ScreenCaptureLib/Screencast/FFmpegOptionsForm.Designer.cs b/ScreenCaptureLib/Screencast/FFmpegOptionsForm.Designer.cs index 231ff5a1b..f8f8a1b6c 100644 --- a/ScreenCaptureLib/Screencast/FFmpegOptionsForm.Designer.cs +++ b/ScreenCaptureLib/Screencast/FFmpegOptionsForm.Designer.cs @@ -686,12 +686,14 @@ private void InitializeComponent() this.Controls.Add(this.gbFFmpegExe); this.Controls.Add(this.gbCommandLineArgs); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.HelpButton = true; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FFmpegOptionsForm"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "FFmpegGUI"; + this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FFmpegOptionsForm_HelpButtonClicked); ((System.ComponentModel.ISupportInitialize)(this.nudx264CRF)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudQscale)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudVPxCRF)).EndInit(); diff --git a/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs b/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs index 2d36daab8..4608933e6 100644 --- a/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs +++ b/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs @@ -83,7 +83,7 @@ private void SettingsLoad() // VPx nudVPxCRF.Value = Options.FFmpeg.VPx_CRF.Between((int)nudVPxCRF.Minimum, (int)nudVPxCRF.Maximum); - // XviD + // Xvid nudQscale.Value = Options.FFmpeg.XviD_qscale.Between((int)nudQscale.Minimum, (int)nudQscale.Maximum); // AAC @@ -335,5 +335,10 @@ private void btnCopyPreview_Click(object sender, EventArgs e) { ClipboardHelpers.CopyText(txtCommandLinePreview.Text); } + + private void FFmpegOptionsForm_HelpButtonClicked(object sender, System.ComponentModel.CancelEventArgs e) + { + Helpers.OpenURL("https://docs.google.com/document/d/1aKLSqsouoeC5Tjf-Z3P880V3rpzvQU0A2Clayn9ElZo/edit?usp=sharing"); + } } } \ No newline at end of file diff --git a/UploadersLib/GUI/UploadersConfigForm.cs b/UploadersLib/GUI/UploadersConfigForm.cs index 97ad538bc..223ddeba2 100644 --- a/UploadersLib/GUI/UploadersConfigForm.cs +++ b/UploadersLib/GUI/UploadersConfigForm.cs @@ -1383,7 +1383,7 @@ private void btnCustomUploaderURLShortenerTest_Click(object sender, EventArgs e) private void btnCustomUploaderHelp_Click(object sender, EventArgs e) { - Helpers.OpenURL(Links.URL_DOCS_CUSTOM_UPLOADER); + Helpers.OpenURL("https://docs.google.com/document/d/1TSttAfH-1970JNsu3i9tl6UY0a8KNbUCeGri0Fs-jcU/edit?usp=sharing"); } private void btnCustomUploaderShowLastResponse_Click(object sender, EventArgs e)