1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-26 17:18:41 +02:00

Add Help button to Export Multiple dialog

This commit is contained in:
Steve Daulton 2018-08-09 20:49:20 +01:00
parent 3d6f3f1866
commit 217c1267bd
2 changed files with 8 additions and 1 deletions

View File

@ -81,6 +81,7 @@ BEGIN_EVENT_TABLE(ExportMultiple, wxDialogWrapper)
EVT_BUTTON(ChooseID, ExportMultiple::OnChoose) EVT_BUTTON(ChooseID, ExportMultiple::OnChoose)
EVT_BUTTON(wxID_OK, ExportMultiple::OnExport) EVT_BUTTON(wxID_OK, ExportMultiple::OnExport)
EVT_BUTTON(wxID_CANCEL, ExportMultiple::OnCancel) EVT_BUTTON(wxID_CANCEL, ExportMultiple::OnCancel)
EVT_BUTTON(wxID_HELP, ExportMultiple::OnHelp)
EVT_RADIOBUTTON(LabelID, ExportMultiple::OnLabel) EVT_RADIOBUTTON(LabelID, ExportMultiple::OnLabel)
EVT_RADIOBUTTON(TrackID, ExportMultiple::OnTrack) EVT_RADIOBUTTON(TrackID, ExportMultiple::OnTrack)
EVT_RADIOBUTTON(ByNameAndNumberID, ExportMultiple::OnByName) EVT_RADIOBUTTON(ByNameAndNumberID, ExportMultiple::OnByName)
@ -385,7 +386,7 @@ void ExportMultiple::PopulateOrExchange(ShuttleGui& S)
} }
S.EndHorizontalLay(); S.EndHorizontalLay();
S.AddStandardButtons(); S.AddStandardButtons(eOkButton | eCancelButton | eHelpButton);
mExport = (wxButton *)wxWindow::FindWindowById(wxID_OK, this); mExport = (wxButton *)wxWindow::FindWindowById(wxID_OK, this);
mExport->SetLabel(_("Export")); mExport->SetLabel(_("Export"));
@ -525,6 +526,11 @@ void ExportMultiple::OnCancel(wxCommandEvent& WXUNUSED(event))
EndModal(0); EndModal(0);
} }
void ExportMultiple::OnHelp(wxCommandEvent& WXUNUSED(event))
{
HelpSystem::ShowHelp(this, wxT("Export_Multiple"), true);
}
void ExportMultiple::OnExport(wxCommandEvent& WXUNUSED(event)) void ExportMultiple::OnExport(wxCommandEvent& WXUNUSED(event))
{ {
ShuttleGui S(this, eIsSavingToPrefs); ShuttleGui S(this, eIsSavingToPrefs);

View File

@ -102,6 +102,7 @@ private:
void OnByNumber(wxCommandEvent& event); void OnByNumber(wxCommandEvent& event);
void OnPrefix(wxCommandEvent& event); void OnPrefix(wxCommandEvent& event);
void OnCancel(wxCommandEvent& event); void OnCancel(wxCommandEvent& event);
void OnHelp(wxCommandEvent& event);
void OnExport(wxCommandEvent& event); void OnExport(wxCommandEvent& event);
private: private: