20#include <wx/checkbox.h>
21#include <wx/stattext.h>
26#include "../widgets/valnum.h"
40 mUIParent =
S.GetParent();
43 S.StartVerticalLay(0);
45 S.StartMultiColumn(2, wxALIGN_CENTER);
47 S.StartVerticalLay(
false);
49 mDCCheckBox =
S.Validator<wxGenericValidator>(&mDC)
50 .AddCheckBox(
XXO(
"&Remove DC offset (center on 0.0 vertically)"),
53 S.StartHorizontalLay(wxALIGN_LEFT,
false);
57 .Validator<wxGenericValidator>(&mGain)
58 .AddCheckBox(
XXO(
"&Normalize peak amplitude to "),
62 .Name(
XO(
"Peak amplitude dB"))
63 .
Validator<FloatingPointValidator<double>>(
66 NumValidatorStyle::ONE_TRAILING_ZERO,
69 .AddTextBox( {}, L
"", 10);
70 mLeveldB =
S.AddVariableText(
XO(
"dB"),
false,
71 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
72 mWarning =
S.AddVariableText( {},
false,
73 wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT);
77 mStereoIndCheckBox =
S
78 .Validator<wxGenericValidator>(&mStereoInd)
79 .AddCheckBox(
XXO(
"N&ormalize stereo channels independently"),
123 if (!
mUIParent->TransferDataFromWindow())
XXO("&Cut/Copy/Paste Toolbar")
static bool EnableApply(wxWindow *parent, bool enable=true)
Enable or disable the Apply button of the dialog that contains parent.
Performs effect computation.
bool TransferDataFromWindow(EffectSettings &settings) override
bool TransferDataToWindow(const EffectSettings &settings) override
wxWeakRef< wxWindow > mUIParent
void OnUpdateUI(wxCommandEvent &evt)
wxTextCtrl * mLevelTextCtrl
wxCheckBox * mStereoIndCheckBox
Hold values to send to effect output meters.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
A Validator is an object which checks whether a wxVariant satisfies a certain criterion....
BuiltinEffectsModule::Registration< EffectNormalize > reg
Externalized state of a plug-in.