mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 08:01:19 +02:00
redirect Help button to Audacity documentation, using new infrastructure. Based on a patch from Steve the Fiddle
This commit is contained in:
parent
894b955ac5
commit
6605ac07e2
@ -21,6 +21,7 @@
|
|||||||
#include "../Project.h"
|
#include "../Project.h"
|
||||||
#include "../FileNames.h"
|
#include "../FileNames.h"
|
||||||
#include "../widgets/LinkingHtmlWindow.h"
|
#include "../widgets/LinkingHtmlWindow.h"
|
||||||
|
#include "../widgets/HelpSystem.h"
|
||||||
#include "FileDialog.h"
|
#include "FileDialog.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -353,7 +354,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
S.StartMultiColumn(3, wxEXPAND);
|
S.StartMultiColumn(3, wxEXPAND);
|
||||||
{
|
{
|
||||||
S.SetStretchyCol(1);
|
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
|
S.AddFixedText(wxT(" ")); // spacer
|
||||||
m_pButton_Close = S.Id(ID_BUTTON_CLOSE).AddButton(_("&Close"));
|
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))
|
void ContrastDialog::OnGetURL(wxCommandEvent & WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxString page = wxT("http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm");
|
// Original help page now a dead link.
|
||||||
::OpenInDefaultBrowser(page);
|
// http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm
|
||||||
|
HelpSystem::ShowHelpDialog(this, wxT("Contrast"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContrastDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
void ContrastDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user