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

Add "Help" button to Noise Reduction.

This commit is contained in:
James Crook 2018-04-04 15:16:04 +01:00
parent c0e1c82be9
commit 68b4cb919f

View File

@ -42,6 +42,7 @@
#include "EffectManager.h"
#include "../ShuttleGui.h"
#include "../widgets/HelpSystem.h"
#include "../Prefs.h"
#include "../WaveTrack.h"
@ -388,6 +389,7 @@ private:
void OnPreview(wxCommandEvent &event);
void OnReduceNoise( wxCommandEvent &event );
void OnCancel( wxCommandEvent &event );
void OnHelp( wxCommandEvent &event );
void OnText(wxCommandEvent &event);
void OnSlider(wxCommandEvent &event);
@ -1492,6 +1494,7 @@ BEGIN_EVENT_TABLE(EffectNoiseReduction::Dialog, wxDialogWrapper)
EVT_BUTTON(wxID_CANCEL, EffectNoiseReduction::Dialog::OnCancel)
EVT_BUTTON(ID_EFFECT_PREVIEW, EffectNoiseReduction::Dialog::OnPreview)
EVT_BUTTON(ID_BUTTON_GETPROFILE, EffectNoiseReduction::Dialog::OnGetProfile)
EVT_BUTTON(wxID_HELP, EffectNoiseReduction::Dialog::OnHelp)
EVT_RADIOBUTTON(ID_RADIOBUTTON_KEEPSIGNAL, EffectNoiseReduction::Dialog::OnNoiseReductionChoice)
#ifdef ISOLATE_CHOICE
@ -1533,7 +1536,7 @@ EffectNoiseReduction::Dialog::Dialog
(EffectNoiseReduction *effect,
EffectNoiseReduction::Settings *settings,
wxWindow *parent, bool bHasProfile, bool bAllowTwiddleSettings)
: EffectDialog( parent, _("Noise Reduction"), EffectTypeProcess)
: EffectDialog( parent, _("Noise Reduction"), EffectTypeProcess,wxDEFAULT_DIALOG_STYLE, eHelpButton )
, m_pEffect(effect)
, m_pSettings(settings) // point to
, mTempSettings(*settings) // copy
@ -1678,6 +1681,11 @@ void EffectNoiseReduction::Dialog::OnCancel(wxCommandEvent & WXUNUSED(event))
EndModal(0);
}
void EffectNoiseReduction::Dialog::OnHelp(wxCommandEvent & WXUNUSED(event))
{
HelpSystem::ShowHelp(this, "Noise_Reduction", true);
}
void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
{
S.StartStatic(_("Step 1"));