Audacity 3.2.0
Normalize.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Normalize.h
6
7 Dominic Mazzoni
8 Vaughan Johnson (Preview)
9
10**********************************************************************/
11
12#ifndef __AUDACITY_EFFECT_NORMALIZE__
13#define __AUDACITY_EFFECT_NORMALIZE__
14
15#include "NormalizeBase.h"
17#include <wx/weakref.h>
18#include <functional>
19
20class wxCheckBox;
21class wxStaticText;
22class wxTextCtrl;
23class ShuttleGui;
24
25class EffectNormalize final :
26 public NormalizeBase,
28{
29public:
30 std::unique_ptr<EffectEditor> PopulateOrExchange(
32 const EffectOutputs* pOutputs) override;
33 bool TransferDataToWindow(const EffectSettings& settings) override;
35
36 DECLARE_EVENT_TABLE()
37
38private:
39 void OnUpdateUI(wxCommandEvent & evt);
40 void UpdateUI();
41
42 wxWeakRef<wxWindow> mUIParent{};
43
44 wxCheckBox *mGainCheckBox;
45 wxCheckBox *mDCCheckBox;
46 wxTextCtrl *mLevelTextCtrl;
47 wxStaticText *mLeveldB;
48 wxStaticText *mWarning;
49 wxCheckBox *mStereoIndCheckBox;
51};
52
53#endif
#define S(N)
Definition: ToChars.cpp:64
static Settings & settings()
Definition: TrackInfo.cpp:51
Performs effect computation.
bool TransferDataFromWindow(EffectSettings &settings) override
Definition: Normalize.cpp:103
wxStaticText * mWarning
Definition: Normalize.h:48
wxStaticText * mLeveldB
Definition: Normalize.h:47
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
Definition: Normalize.cpp:36
bool TransferDataToWindow(const EffectSettings &settings) override
Definition: Normalize.cpp:91
wxWeakRef< wxWindow > mUIParent
Definition: Normalize.h:42
wxCheckBox * mGainCheckBox
Definition: Normalize.h:44
wxCheckBox * mDCCheckBox
Definition: Normalize.h:45
void OnUpdateUI(wxCommandEvent &evt)
Definition: Normalize.cpp:115
wxTextCtrl * mLevelTextCtrl
Definition: Normalize.h:46
wxCheckBox * mStereoIndCheckBox
Definition: Normalize.h:49
Hold values to send to effect output meters.
An Effect to bring the peak level up to a chosen level.
Definition: NormalizeBase.h:19
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Externalized state of a plug-in.