1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

Add Help button for Advanced Mixing Options

This commit is contained in:
Steve Daulton 2018-08-09 21:25:29 +01:00
parent 217c1267bd
commit 5dab364f15
2 changed files with 10 additions and 2 deletions

View File

@ -69,6 +69,7 @@
#include "../AColor.h"
#include "../Dependencies.h"
#include "../FileNames.h"
#include "../widgets/HelpSystem.h"
//----------------------------------------------------------------------------
// ExportPlugin
@ -916,7 +917,7 @@ void Exporter::CreateUserPane(wxWindow *parent)
{
mBook = safenew wxSimplebook(S.GetParent());
S.AddWindow(mBook, wxEXPAND);
for (const auto &pPlugin : mPlugins)
{
for (int j = 0; j < pPlugin->GetFormatCount(); j++)
@ -1275,6 +1276,7 @@ enum
BEGIN_EVENT_TABLE( ExportMixerDialog, wxDialogWrapper )
EVT_BUTTON( wxID_OK, ExportMixerDialog::OnOk )
EVT_BUTTON( wxID_CANCEL, ExportMixerDialog::OnCancel )
EVT_BUTTON( wxID_HELP, ExportMixerDialog::OnMixerPanelHelp )
EVT_SIZE( ExportMixerDialog::OnSize )
EVT_SLIDER( ID_SLIDER_CHANNEL, ExportMixerDialog::OnSlider )
END_EVENT_TABLE()
@ -1351,7 +1353,7 @@ ExportMixerDialog::ExportMixerDialog( const TrackList *tracks, bool selectedOnly
vertSizer->Add(horSizer.release(), 0, wxALIGN_CENTRE | wxALL, 5);
}
vertSizer->Add(CreateStdButtonSizer(this, eCancelButton | eOkButton).release(), 0, wxEXPAND);
vertSizer->Add(CreateStdButtonSizer(this, eCancelButton | eOkButton | eHelpButton).release(), 0, wxEXPAND);
SetAutoLayout(true);
SetSizer(uVertSizer.release());
@ -1399,3 +1401,8 @@ void ExportMixerDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
EndModal( wxID_CANCEL );
}
void ExportMixerDialog::OnMixerPanelHelp(wxCommandEvent & WXUNUSED(event))
{
HelpSystem::ShowHelp(this, wxT("Advanced_Mixing_Options"), true);
}

View File

@ -292,6 +292,7 @@ private:
private:
void OnOk( wxCommandEvent &event );
void OnCancel( wxCommandEvent &event );
void OnMixerPanelHelp( wxCommandEvent &event );
void OnSlider( wxCommandEvent &event );
void OnSize( wxSizeEvent &event );