Skip to content

Commit

Permalink
#81 : Help buttons linking to wiki added to forms
Browse files Browse the repository at this point in the history
  • Loading branch information
clechasseur committed Sep 4, 2019
1 parent d4c62ca commit 5baa583
Show file tree
Hide file tree
Showing 13 changed files with 125 additions and 31 deletions.
1 change: 1 addition & 0 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Version 17.0 (20??-??-??)
- Improved tooltips in Settings application
- Can now copy paths of .url (internet shortcut) and .website (pinned website) files [https://github.com/clechasseur/pathcopycopy/issues/77]
- New Expert Mode for editing custom commands [https://github.com/clechasseur/pathcopycopy/issues/5]
- Settings application now has Help buttons linking to the wiki [https://github.com/clechasseur/pathcopycopy/issues/81]


Version 16.0.1 (2018-11-30)
Expand Down
27 changes: 27 additions & 0 deletions PathCopyCopySettings/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions PathCopyCopySettings/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,13 @@ Control-click to avoid displaying an icon for this command.</value>
<data name="PipelineElement_RemoveExt_HelpText" xml:space="preserve">
<value>Remove any extension from the file at the end of the path</value>
</data>
<data name="WikiLink_CustomCommands" xml:space="preserve">
<value>https://github.com/clechasseur/pathcopycopy/wiki/Custom-Commands</value>
</data>
<data name="WikiLink_CustomCommandsExpertMode" xml:space="preserve">
<value>https://github.com/clechasseur/pathcopycopy/wiki/Custom-Commands-:-Expert-Mode</value>
</data>
<data name="WikiLink_Settings" xml:space="preserve">
<value>https://github.com/clechasseur/pathcopycopy/wiki/Settings</value>
</data>
</root>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions PathCopyCopySettings/UI/Forms/AdvancedPipelinePluginForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ namespace PathCopyCopy.Settings.UI.Forms
/// </summary>
public partial class AdvancedPipelinePluginForm : Form
{
/// URL to navigate to to get help about Expert Mode.
private const string EXPERT_MODE_HELP_URL = "https://github.com/clechasseur/pathcopycopy/wiki/Custom-Commands-:-Expert-Mode";

/// Plugin info for the plugin we're editing.
private PipelinePluginInfo pluginInfo;

Expand Down Expand Up @@ -391,14 +388,17 @@ private void MoveElementDownBtn_Click(object sender, EventArgs e)
}

/// <summary>
/// Called when the user presses the button to get help.
/// We navigate to the proper help page.
/// Called when the user presses the Help button in the form's caption bar.
/// We navigate to the wiki to show help in such a case.
/// </summary>
/// <param name="sender">Event sender.</param>
/// <param name="e">Event arguments.</param>
private void HelpBtn_Click(object sender, EventArgs e)
private void AdvancedPipelinePluginForm_HelpButtonClicked(object sender, CancelEventArgs e)
{
Process.Start(EXPERT_MODE_HELP_URL);
// Open wiki link to Expert Mode page, then cancel the event to avoid
// displaying a help mouse pointer like the default behavior.
Process.Start(Resources.WikiLink_CustomCommandsExpertMode);
e.Cancel = true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
<metadata name="AdvancedPipelinePluginToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="AdvancedPipelinePluginToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ElementsImageList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>240, 17</value>
</metadata>
Expand All @@ -128,7 +131,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABs
CgAAAk1TRnQBSQFMAgEBBAEAATABAAEwAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CgAAAk1TRnQBSQFMAgEBBAEAATgBAAE4AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down
2 changes: 2 additions & 0 deletions PathCopyCopySettings/UI/Forms/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions PathCopyCopySettings/UI/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1337,5 +1337,19 @@ private void MainForm_SizeChanged(object sender, EventArgs e)
settings.SettingsFormSizeHeight = this.Size.Height;
}
}

/// <summary>
/// Called when the user presses the Help button in the form's caption bar.
/// We navigate to the wiki to show help in such a case.
/// </summary>
/// <param name="sender">Event sender.</param>
/// <param name="e">Event arguments.</param>
private void MainForm_HelpButtonClicked(object sender, CancelEventArgs e)
{
// Open wiki link to Settings page, then cancel the event to avoid
// displaying a help mouse pointer like the default behavior.
Process.Start(Resources.WikiLink_Settings);
e.Cancel = true;
}
}
}
15 changes: 15 additions & 0 deletions PathCopyCopySettings/UI/Forms/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,21 @@
<metadata name="PluginsDataGridBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>15, 39</value>
</metadata>
<metadata name="IconCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PluginCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="InMainMenuCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="InSubmenuCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PluginsDataGridBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>15, 39</value>
</metadata>
<metadata name="CtrlKeyPluginComboBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>209, 40</value>
</metadata>
Expand Down
2 changes: 2 additions & 0 deletions PathCopyCopySettings/UI/Forms/PipelinePluginForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions PathCopyCopySettings/UI/Forms/PipelinePluginForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
Expand Down Expand Up @@ -414,5 +415,19 @@ private void BasePluginLst_SelectedIndexChanged(object sender, EventArgs e)
OKBtn.Enabled = BasePluginLst.SelectedIndex >= 0 &&
!(((Plugin) BasePluginLst.SelectedItem) is SeparatorPlugin);
}

/// <summary>
/// Called when the user presses the Help button in the form's caption bar.
/// We navigate to the wiki to show help in such a case.
/// </summary>
/// <param name="sender">Event sender.</param>
/// <param name="e">Event arguments.</param>
private void PipelinePluginForm_HelpButtonClicked(object sender, CancelEventArgs e)
{
// Open wiki link to Custom Commands page, then cancel the event to avoid
// displaying a help mouse pointer like the default behavior.
Process.Start(Resources.WikiLink_CustomCommands);
e.Cancel = true;
}
}
}
2 changes: 2 additions & 0 deletions PathCopyCopySettings/UI/Forms/RegexTesterForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5baa583

Please sign in to comment.