Audacity 3.2.0
Loudness.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Loudness.h
6
7 Max Maisel (based on Normalize effect)
8
9**********************************************************************/
10
11#ifndef __AUDACITY_EFFECT_LOUDNESS__
12#define __AUDACITY_EFFECT_LOUDNESS__
13
14#include <wx/checkbox.h>
15#include <wx/choice.h>
16#include <wx/stattext.h>
17#include <wx/textctrl.h>
18#include <wx/weakref.h>
19
20#include "LoudnessBase.h"
22
23class wxChoice;
24class wxSimplebook;
25class ShuttleGui;
26
27class EffectLoudness final :
28 public LoudnessBase,
30{
31public:
32 bool TransferDataToWindow(const EffectSettings& settings) override;
34 std::unique_ptr<EffectEditor> PopulateOrExchange(
36 const EffectOutputs* pOutputs) override;
37
38 DECLARE_EVENT_TABLE()
39private:
40 void OnChoice(wxCommandEvent& evt);
41 void OnUpdateUI(wxCommandEvent& evt);
42 void UpdateUI();
43
44 wxWeakRef<wxWindow> mUIParent {};
45
46 wxSimplebook* mBook;
47 wxChoice* mChoice;
48 wxStaticText* mWarning;
49 wxCheckBox* mStereoIndCheckBox;
50 wxCheckBox* mDualMonoCheckBox;
51};
52
53#endif
#define S(N)
Definition: ToChars.cpp:64
static Settings & settings()
Definition: TrackInfo.cpp:51
Performs effect computation.
wxCheckBox * mDualMonoCheckBox
Definition: Loudness.h:50
wxSimplebook * mBook
Definition: Loudness.h:46
wxCheckBox * mStereoIndCheckBox
Definition: Loudness.h:49
wxWeakRef< wxWindow > mUIParent
Definition: Loudness.h:44
wxChoice * mChoice
Definition: Loudness.h:47
void UpdateUI()
Definition: Loudness.cpp:171
void OnUpdateUI(wxCommandEvent &evt)
Definition: Loudness.cpp:166
bool TransferDataToWindow(const EffectSettings &settings) override
Definition: Loudness.cpp:136
bool TransferDataFromWindow(EffectSettings &settings) override
Definition: Loudness.cpp:149
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
Definition: Loudness.cpp:36
wxStaticText * mWarning
Definition: Loudness.h:48
void OnChoice(wxCommandEvent &evt)
Definition: Loudness.cpp:158
Hold values to send to effect output meters.
An Effect to bring the loudness level up to a chosen level.
Definition: LoudnessBase.h:21
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Externalized state of a plug-in.