From 4ec3ef8fb4916e51a99f5d3132008a7667c57338 Mon Sep 17 00:00:00 2001 From: tip2tail Date: Thu, 7 Apr 2016 12:50:25 +0100 Subject: [PATCH] Ensure help button works in same way as others in Audacity Fixed messages in dialogs so times/duration shown in same order --- src/TimerRecordDialog.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/TimerRecordDialog.cpp b/src/TimerRecordDialog.cpp index a4343e46c..6e6a0521c 100644 --- a/src/TimerRecordDialog.cpp +++ b/src/TimerRecordDialog.cpp @@ -31,13 +31,13 @@ #include #include // -#include // To allow us to launch help #include "ShuttleGui.h" #include "Project.h" #include "Internat.h" #include "Prefs.h" #include "widgets/NumericTextCtrl.h" +#include "widgets/HelpSystem.h" #define TIMER_ID 7000 @@ -348,11 +348,7 @@ void TimerRecordDialog::OnAutoExportCheckBox_Change(wxCommandEvent& WXUNUSED(eve void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event)) { - bool bHelpOpenedOK = wxLaunchDefaultBrowser("http://manual.audacityteam.org/o/man/timer_record.html", wxBROWSER_NEW_WINDOW); - if (!bHelpOpenedOK) { - // Error - wxMessageBox(_("Unable to open default browser at the manual page for Timer Recording."), _("Error"), wxICON_EXCLAMATION | wxOK); - } + HelpSystem::ShowHelpDialog(this, wxT("Timer_Record")); } wxString TimerRecordDialog::GetHoursMinsString(int iMinutes) { @@ -556,8 +552,8 @@ int TimerRecordDialog::RunWaitDialog() wxString sPostAction = m_pTimerAfterCompleteChoiceCtrl->GetString(m_pTimerAfterCompleteChoiceCtrl->GetSelection()); wxString strMsg; strMsg.Printf(_("Recording start:\t\t\t%s\n") + - _("Recording end:\t\t\t%s\n") + - _("Duration:\t\t\t%s\n\n") + + _("Duration:\t\t\t%s\n") + + _("Recording end:\t\t\t%s\n\n") + _("Automatic Save Enabled:\t\t%s\n") + _("Automatic Export Enabled:\t\t%s\n") + _("Post Timer Recording Action:\t%s"),