20#include <wx/textctrl.h>
25#include "../widgets/valnum.h"
26#include "../widgets/NumericTextCtrl.h"
38 S.StartMultiColumn(2, wxCENTER);
40 S.Validator<wxGenericValidator>(&
mType)
44 .Validator<FloatingPointValidator<double>>(
46 .AddTextBox(
XXO(
"&Amplitude (0-1):"), L
"", 12);
48 S.AddPrompt(
XXO(
"&Duration:"));
52 S.GetParent(), wxID_ANY,
54 extra.GetDurationFormat(),
58 S.Name(
XO(
"Duration"))
59 .Position(wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL)
XXO("&Cut/Copy/Paste Toolbar")
const NumericConverterType & NumericConverterType_TIME()
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
static Settings & settings()
Performs effect computation.
bool TransferDataFromWindow(EffectSettings &settings) override
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
NumericTextCtrl * mNoiseDurationT
wxWeakRef< wxWindow > mUIParent
bool TransferDataToWindow(const EffectSettings &settings) override
Hold values to send to effect output meters.
virtual const EffectSettings & Get()=0
static FormatterContext SampleRateContext(double sampleRate)
static const EnumValueSymbol kTypeStrings[nTypes]
static constexpr EffectParameter Amp
void SetValue(double newValue)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
BuiltinEffectsModule::Registration< EffectNoise > reg
const Type min
Minimum value.
const Type max
Maximum value.
Externalized state of a plug-in.
EffectSettingsExtra extra
Options & AutoPos(bool enable)