diff --git a/EditTools/EditingTools.csproj b/EditTools/EditingTools.csproj index d4654d2..9507d57 100644 --- a/EditTools/EditingTools.csproj +++ b/EditTools/EditingTools.csproj @@ -363,6 +363,11 @@ + + + Always + + 10.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) diff --git a/EditTools/Ribbon1.Designer.cs b/EditTools/Ribbon1.Designer.cs index 144c190..5bc555e 100644 --- a/EditTools/Ribbon1.Designer.cs +++ b/EditTools/Ribbon1.Designer.cs @@ -42,16 +42,19 @@ private void InitializeComponent() this.group2 = this.Factory.CreateRibbonGroup(); this.dd_Langs = this.Factory.CreateRibbonDropDown(); this.btn_FixLang = this.Factory.CreateRibbonButton(); + this.btn_SingData = this.Factory.CreateRibbonButton(); this.group3 = this.Factory.CreateRibbonGroup(); this.btn_WordList = this.Factory.CreateRibbonButton(); + this.btn_WordFreq = this.Factory.CreateRibbonButton(); this.btn_ProperNouns = this.Factory.CreateRibbonButton(); - this.btn_SingData = this.Factory.CreateRibbonButton(); this.grp_Finishing = this.Factory.CreateRibbonGroup(); this.btn_AcceptFormatting = this.Factory.CreateRibbonButton(); this.group4 = this.Factory.CreateRibbonGroup(); this.dd_Boilerplate = this.Factory.CreateRibbonDropDown(); this.btn_ApplyBoilerplate = this.Factory.CreateRibbonButton(); - this.btn_WordFreq = this.Factory.CreateRibbonButton(); + this.lbl_Version = this.Factory.CreateRibbonLabel(); + this.btn_Help = this.Factory.CreateRibbonButton(); + this.lbl_Spacer1 = this.Factory.CreateRibbonLabel(); this.EditingTools.SuspendLayout(); this.group1.SuspendLayout(); this.group2.SuspendLayout(); @@ -72,6 +75,9 @@ private void InitializeComponent() // // group1 // + this.group1.Items.Add(this.lbl_Version); + this.group1.Items.Add(this.btn_Help); + this.group1.Items.Add(this.lbl_Spacer1); this.group1.Items.Add(this.btn_Settings); this.group1.Items.Add(this.btn_Export); this.group1.Items.Add(this.btn_Import); @@ -125,6 +131,13 @@ private void InitializeComponent() "ters"; this.btn_FixLang.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_FixLang_Click); // + // btn_SingData + // + this.btn_SingData.Label = "Find Singular Data"; + this.btn_SingData.Name = "btn_SingData"; + this.btn_SingData.ScreenTip = "Find \"data\" used as a singular noun"; + this.btn_SingData.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_SingData_Click); + // // group3 // this.group3.Items.Add(this.btn_WordList); @@ -140,6 +153,12 @@ private void InitializeComponent() this.btn_WordList.ScreenTip = "Generate a list of all the unique words in the document"; this.btn_WordList.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_WordList_Click); // + // btn_WordFreq + // + this.btn_WordFreq.Label = "Word Frequency List"; + this.btn_WordFreq.Name = "btn_WordFreq"; + this.btn_WordFreq.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_WordFreq_Click); + // // btn_ProperNouns // this.btn_ProperNouns.Label = "Check Proper Nouns"; @@ -148,13 +167,6 @@ private void InitializeComponent() ""; this.btn_ProperNouns.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_ProperNouns_Click); // - // btn_SingData - // - this.btn_SingData.Label = "Find Singular Data"; - this.btn_SingData.Name = "btn_SingData"; - this.btn_SingData.ScreenTip = "Find \"data\" used as a singular noun"; - this.btn_SingData.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_SingData_Click); - // // grp_Finishing // this.grp_Finishing.Items.Add(this.btn_AcceptFormatting); @@ -190,11 +202,21 @@ private void InitializeComponent() "o add/remove/edit boilerplate"; this.btn_ApplyBoilerplate.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_ApplyBoilerplate_Click); // - // btn_WordFreq + // lbl_Version // - this.btn_WordFreq.Label = "Word Frequency List"; - this.btn_WordFreq.Name = "btn_WordFreq"; - this.btn_WordFreq.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_WordFreq_Click); + this.lbl_Version.Label = "Version 1.3.0"; + this.lbl_Version.Name = "lbl_Version"; + // + // btn_Help + // + this.btn_Help.Label = "Help!"; + this.btn_Help.Name = "btn_Help"; + this.btn_Help.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btn_Help_Click); + // + // lbl_Spacer1 + // + this.lbl_Spacer1.Label = " "; + this.lbl_Spacer1.Name = "lbl_Spacer1"; // // Ribbon1 // @@ -238,6 +260,9 @@ private void InitializeComponent() internal Microsoft.Office.Tools.Ribbon.RibbonGroup grp_Finishing; internal Microsoft.Office.Tools.Ribbon.RibbonButton btn_AcceptFormatting; internal Microsoft.Office.Tools.Ribbon.RibbonButton btn_WordFreq; + internal Microsoft.Office.Tools.Ribbon.RibbonLabel lbl_Version; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btn_Help; + internal Microsoft.Office.Tools.Ribbon.RibbonLabel lbl_Spacer1; } partial class ThisRibbonCollection diff --git a/EditTools/Ribbon1.cs b/EditTools/Ribbon1.cs index d02c294..f130676 100644 --- a/EditTools/Ribbon1.cs +++ b/EditTools/Ribbon1.cs @@ -656,5 +656,20 @@ private void btn_WordFreq_Click(object sender, RibbonControlEventArgs e) watch.Stop(); d.Hide(); } + + private void btn_Help_Click(object sender, RibbonControlEventArgs e) + { + System.Reflection.Assembly assemblyInfo = System.Reflection.Assembly.GetExecutingAssembly(); + string assemblyLocation = assemblyInfo.Location; + Debug.WriteLine(assemblyLocation); + + //CodeBase is the location of the ClickOnce deployment files + Uri uriCodeBase = new Uri(assemblyInfo.CodeBase); + string ClickOnceLocation = Path.GetDirectoryName(uriCodeBase.LocalPath.ToString()); + Debug.WriteLine(ClickOnceLocation); + + string loc = ClickOnceLocation + Path.DirectorySeparatorChar + "help.html"; + System.Diagnostics.Process.Start(@"file:///" + loc); + } } } diff --git a/EditTools/help.html b/EditTools/help.html new file mode 100644 index 0000000..acda9df --- /dev/null +++ b/EditTools/help.html @@ -0,0 +1,74 @@ + + + Editing Tools Help + + +

Editing Tools Help

+

+ This is the help file for version 1.3.0 of the editing tools. +

+

+ For general information about this tool, or to download the latest version, visit the project's GitHub page. If you have suggestions for new tools, or if you are having problems using the tool, either file an issue on GitHub or feel free to email me directly. +

+

+ The various tools are grouped into five categories: +

+

+ + +

Settings

+

This is where you configure the the tool generally. There are five features:

+ + + +

Editing

+ + + +

Proofing

+ + + +

Finishing

+

This is for tools you run at the end of an editing pass.

+ + + +

Boilerplate

+

For me this is the second-most-used feature, next only to "Check Proper Nouns." If you find yourself typing similar comments over and over again, then this can save you tons of time. To add/remove/edit boilerplate, see the "Settings" section.

+ + + diff --git a/deploy/helpfile/help.html b/deploy/helpfile/help.html new file mode 100644 index 0000000..acda9df --- /dev/null +++ b/deploy/helpfile/help.html @@ -0,0 +1,74 @@ + + + Editing Tools Help + + +

Editing Tools Help

+

+ This is the help file for version 1.3.0 of the editing tools. +

+

+ For general information about this tool, or to download the latest version, visit the project's GitHub page. If you have suggestions for new tools, or if you are having problems using the tool, either file an issue on GitHub or feel free to email me directly. +

+

+ The various tools are grouped into five categories: +

+

+ + +

Settings

+

This is where you configure the the tool generally. There are five features:

+ + + +

Editing

+ + + +

Proofing

+ + + +

Finishing

+

This is for tools you run at the end of an editing pass.

+ + + +

Boilerplate

+

For me this is the second-most-used feature, next only to "Check Proper Nouns." If you find yourself typing similar comments over and over again, then this can save you tons of time. To add/remove/edit boilerplate, see the "Settings" section.

+ + + diff --git a/deploy/make-installer.iss b/deploy/make-installer.iss index 4fc4187..3683e18 100644 --- a/deploy/make-installer.iss +++ b/deploy/make-installer.iss @@ -34,10 +34,10 @@ ; The version number. It is suggested to use the semantic versionin ; scheme (http://semver.org), but this is not a must. This version ; information may contain text. -#define SEMANTIC_VERSION "1.2.1" +#define SEMANTIC_VERSION "1.3.0" ; The version in four-number format -#define FOUR_NUMBER_VERSION "1.2.1.0" +#define FOUR_NUMBER_VERSION "1.3.0.0" ; The year(s) of publication (e.g., "2014-2017") #define PUB_YEARS "2017" diff --git a/screen-capture.jpg b/screen-capture.jpg index 2d3b4a6..1281aa3 100644 Binary files a/screen-capture.jpg and b/screen-capture.jpg differ