16#include <wx/checkbox.h>
21#include "../widgets/valnum.h"
35 mUIParent =
S.GetParent();
36 wxASSERT(nActions == WXSIZEOF(kActionStrings));
40 S.StartStatic(
XO(
"Detect Silence"));
42 S.StartMultiColumn(3, wxALIGN_CENTER_HORIZONTAL);
46 .Validator<FloatingPointValidator<double>>(
47 3, &mThresholdDB, NumValidatorStyle::NO_TRAILING_ZEROES,
48 Threshold.min, Threshold.max )
50 .AddTextBox(
XXO(
"&Threshold:"),
wxT(
""), 0);
54 mInitialAllowedSilenceT =
S.Validator<FloatingPointValidator<double>>(
55 3, &mInitialAllowedSilence,
56 NumValidatorStyle::NO_TRAILING_ZEROES,
57 Minimum.min, Minimum.max)
58 .NameSuffix(
XO(
"seconds"))
59 .AddTextBox(
XXO(
"&Duration:"),
wxT(
""), 12);
60 S.AddUnits(
XO(
"seconds"));
66 S.StartStatic(
XO(
"Action"));
68 S.StartHorizontalLay();
71 auto actionChoices =
Msgids( kActionStrings, nActions );
73 .Validator<wxGenericValidator>(&mActionIndex)
74 .MinSize( { -1, -1 } )
75 .AddChoice( {}, actionChoices );
78 S.StartMultiColumn(3, wxALIGN_CENTER_HORIZONTAL);
82 mTruncLongestAllowedSilenceT =
S.Validator<FloatingPointValidator<double>>(
83 3, &mTruncLongestAllowedSilence,
84 NumValidatorStyle::NO_TRAILING_ZEROES,
85 Truncate.min, Truncate.max )
86 .NameSuffix(
XO(
"seconds"))
87 .AddTextBox(
XXO(
"Tr&uncate to:"),
wxT(
""), 12);
88 S.AddUnits(
XO(
"seconds"));
90 mSilenceCompressPercentT =
S.Validator<FloatingPointValidator<double>>(
91 3, &mSilenceCompressPercent,
92 NumValidatorStyle::NO_TRAILING_ZEROES,
93 Compress.min, Compress.max )
95 .AddTextBox(
XXO(
"C&ompress to:"),
wxT(
""), 12);
100 S.StartMultiColumn(2, wxALIGN_CENTER_HORIZONTAL);
102 mIndependent =
S.AddCheckBox(
XXO(
"Trunc&ate tracks independently"),
Toolkit-neutral facade for basic user interface services.
XXO("&Cut/Copy/Paste Toolbar")
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
static bool EnableApply(wxWindow *parent, bool enable=true)
Enable or disable the Apply button of the dialog that contains parent.
Performs effect computation.
Hold values to send to effect output meters.
bool TransferDataToWindow(const EffectSettings &settings) override
wxWeakRef< wxWindow > mUIParent
void OnControlChange(wxCommandEvent &evt)
wxCheckBox * mIndependent
bool TransferDataFromWindow(EffectSettings &settings) override
wxTextCtrl * mTruncLongestAllowedSilenceT
wxTextCtrl * mSilenceCompressPercentT
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
BuiltinEffectsModule::Registration< EffectTruncSilence > reg
Externalized state of a plug-in.