Audacity 3.2.0
ClickRemoval.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 ClickRemoval.h
6
7 Craig DeForest
8
9**********************************************************************/
10
11#ifndef __AUDACITY_EFFECT_CLICK_REMOVAL__
12#define __AUDACITY_EFFECT_CLICK_REMOVAL__
13
14#include "ClickRemovalBase.h"
16#include <wx/weakref.h>
17
18class wxSlider;
19class wxTextCtrl;
20class ShuttleGui;
21
22class EffectClickRemoval final :
23 public ClickRemovalBase,
25{
26public:
27 std::unique_ptr<EffectEditor> PopulateOrExchange(
29 const EffectOutputs* pOutputs) override;
30 bool TransferDataToWindow(const EffectSettings& settings) override;
32
33 DECLARE_EVENT_TABLE()
34
35private:
36 void OnWidthText(wxCommandEvent & evt);
37 void OnThreshText(wxCommandEvent & evt);
38 void OnWidthSlider(wxCommandEvent & evt);
39 void OnThreshSlider(wxCommandEvent & evt);
40
41private:
42 wxWeakRef<wxWindow> mUIParent{};
43
44 wxSlider* mWidthS;
45 wxSlider* mThreshS;
46 wxTextCtrl* mWidthT;
47 wxTextCtrl* mThreshT;
48};
49
50#endif
#define S(N)
Definition: ToChars.cpp:64
static Settings & settings()
Definition: TrackInfo.cpp:51
An Effect for removing clicks.
wxTextCtrl * mThreshT
Definition: ClickRemoval.h:47
void OnWidthSlider(wxCommandEvent &evt)
wxWeakRef< wxWindow > mUIParent
Definition: ClickRemoval.h:42
void OnThreshSlider(wxCommandEvent &evt)
wxTextCtrl * mWidthT
Definition: ClickRemoval.h:46
bool TransferDataToWindow(const EffectSettings &settings) override
wxSlider * mThreshS
Definition: ClickRemoval.h:45
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
void OnWidthText(wxCommandEvent &evt)
wxSlider * mWidthS
Definition: ClickRemoval.h:44
void OnThreshText(wxCommandEvent &evt)
bool TransferDataFromWindow(EffectSettings &settings) override
Performs effect computation.
Hold values to send to effect output meters.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Externalized state of a plug-in.