19#include "../widgets/valnum.h"
40 mUIParent =
S.GetParent();
44 S.StartMultiColumn(3, wxEXPAND);
49 .Validator<IntegerValidator<int>>(
50 &mThresholdLevel, NumValidatorStyle::DEFAULT,
51 Threshold.min, Threshold.max )
52 .AddTextBox(
XXO(
"&Threshold (lower is more sensitive):"),
57 .Name(
XO(
"Threshold"))
58 .Style(wxSL_HORIZONTAL)
59 .Validator<wxGenericValidator>(&mThresholdLevel)
60 .MinSize( { 150, -1 } )
61 .AddSlider( {}, mThresholdLevel, Threshold.max, Threshold.min);
65 .Validator<IntegerValidator<int>>(
66 &mClickWidth, NumValidatorStyle::DEFAULT, Width.min, Width.max)
67 .AddTextBox(
XXO(
"Max &Spike Width (higher is more sensitive):"),
72 .Name(
XO(
"Max Spike Width"))
73 .Style(wxSL_HORIZONTAL)
74 .Validator<wxGenericValidator>(&mClickWidth)
75 .MinSize( { 150, -1 } )
76 .AddSlider( {}, mClickWidth, Width.max, Width.min);
105 mWidthT->GetValidator()->TransferFromWindow();
106 mWidthS->GetValidator()->TransferToWindow();
111 mThreshT->GetValidator()->TransferFromWindow();
112 mThreshS->GetValidator()->TransferToWindow();
117 mWidthS->GetValidator()->TransferFromWindow();
118 mWidthT->GetValidator()->TransferToWindow();
123 mThreshS->GetValidator()->TransferFromWindow();
124 mThreshT->GetValidator()->TransferToWindow();
XXO("&Cut/Copy/Paste Toolbar")
void OnWidthSlider(wxCommandEvent &evt)
wxWeakRef< wxWindow > mUIParent
void OnThreshSlider(wxCommandEvent &evt)
bool TransferDataToWindow(const EffectSettings &settings) override
void OnWidthText(wxCommandEvent &evt)
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.
BuiltinEffectsModule::Registration< EffectClickRemoval > reg
Externalized state of a plug-in.