From 6605ac07e2731ce152f89d9f12615ca118a3be73 Mon Sep 17 00:00:00 2001 From: "RichardAsh1981@gmail.com" Date: Mon, 9 Jun 2014 19:56:25 +0000 Subject: [PATCH] redirect Help button to Audacity documentation, using new infrastructure. Based on a patch from Steve the Fiddle --- src/effects/Contrast.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/effects/Contrast.cpp b/src/effects/Contrast.cpp index 24717f4e6..c896556bf 100644 --- a/src/effects/Contrast.cpp +++ b/src/effects/Contrast.cpp @@ -21,6 +21,7 @@ #include "../Project.h" #include "../FileNames.h" #include "../widgets/LinkingHtmlWindow.h" +#include "../widgets/HelpSystem.h" #include "FileDialog.h" #include @@ -353,7 +354,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id, S.StartMultiColumn(3, wxEXPAND); { S.SetStretchyCol(1); - m_pButton_GetURL = S.Id(ID_BUTTON_GETURL).AddButton(_("WCAG 2 &Help")); + m_pButton_GetURL = S.Id(ID_BUTTON_GETURL).AddButton(_("&Help")); S.AddFixedText(wxT(" ")); // spacer m_pButton_Close = S.Id(ID_BUTTON_CLOSE).AddButton(_("&Close")); } @@ -392,8 +393,9 @@ void ContrastDialog::OnGetBackgroundDB( wxCommandEvent & WXUNUSED(event)) void ContrastDialog::OnGetURL(wxCommandEvent & WXUNUSED(event)) { - wxString page = wxT("http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm"); - ::OpenInDefaultBrowser(page); + // Original help page now a dead link. + // http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm + HelpSystem::ShowHelpDialog(this, wxT("Contrast")); } void ContrastDialog::OnClose(wxCommandEvent & WXUNUSED(event))