1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-04 07:40:12 +01:00

Ensure help button works in same way as others in Audacity

Fixed messages in dialogs so times/duration shown in same order
This commit is contained in:
tip2tail
2016-04-07 12:50:25 +01:00
committed by James Crook
parent b71da143b6
commit 4ec3ef8fb4

View File

@@ -31,13 +31,13 @@
#include <wx/timer.h> #include <wx/timer.h>
#include <wx/dynlib.h> //<! For windows.h #include <wx/dynlib.h> //<! For windows.h
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
#include <wx/utils.h> // To allow us to launch help
#include "ShuttleGui.h" #include "ShuttleGui.h"
#include "Project.h" #include "Project.h"
#include "Internat.h" #include "Internat.h"
#include "Prefs.h" #include "Prefs.h"
#include "widgets/NumericTextCtrl.h" #include "widgets/NumericTextCtrl.h"
#include "widgets/HelpSystem.h"
#define TIMER_ID 7000 #define TIMER_ID 7000
@@ -348,11 +348,7 @@ void TimerRecordDialog::OnAutoExportCheckBox_Change(wxCommandEvent& WXUNUSED(eve
void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event)) void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event))
{ {
bool bHelpOpenedOK = wxLaunchDefaultBrowser("http://manual.audacityteam.org/o/man/timer_record.html", wxBROWSER_NEW_WINDOW); HelpSystem::ShowHelpDialog(this, wxT("Timer_Record"));
if (!bHelpOpenedOK) {
// Error
wxMessageBox(_("Unable to open default browser at the manual page for Timer Recording."), _("Error"), wxICON_EXCLAMATION | wxOK);
}
} }
wxString TimerRecordDialog::GetHoursMinsString(int iMinutes) { wxString TimerRecordDialog::GetHoursMinsString(int iMinutes) {
@@ -556,8 +552,8 @@ int TimerRecordDialog::RunWaitDialog()
wxString sPostAction = m_pTimerAfterCompleteChoiceCtrl->GetString(m_pTimerAfterCompleteChoiceCtrl->GetSelection()); wxString sPostAction = m_pTimerAfterCompleteChoiceCtrl->GetString(m_pTimerAfterCompleteChoiceCtrl->GetSelection());
wxString strMsg; wxString strMsg;
strMsg.Printf(_("Recording start:\t\t\t%s\n") + strMsg.Printf(_("Recording start:\t\t\t%s\n") +
_("Recording end:\t\t\t%s\n") + _("Duration:\t\t\t%s\n") +
_("Duration:\t\t\t%s\n\n") + _("Recording end:\t\t\t%s\n\n") +
_("Automatic Save Enabled:\t\t%s\n") + _("Automatic Save Enabled:\t\t%s\n") +
_("Automatic Export Enabled:\t\t%s\n") + _("Automatic Export Enabled:\t\t%s\n") +
_("Post Timer Recording Action:\t%s"), _("Post Timer Recording Action:\t%s"),