24#include <wx/stattext.h>
27#include "../widgets/NumericTextCtrl.h"
28#include "../widgets/valnum.h"
45 mUIParent =
S.GetParent();
46 S.StartHorizontalLay(wxCENTER,
false);
48 mRepeatCount =
S.Validator<IntegerValidator<int>>(
49 &repeatCount, NumValidatorStyle::DEFAULT,
50 Count.min, 2147483647 / mProjectRate )
51 .AddTextBox(
XXO(
"&Number of repeats to add:"), L
"", 12);
55 S.StartMultiColumn(1, wxCENTER);
57 mCurrentTime =
S.AddVariableText(
58 XO(
"Current selection length: dd:hh:mm:ss"));
59 mTotalTime =
S.AddVariableText(
XO(
"New selection length: dd:hh:mm:ss"));
101 str = wxString::Format(
_(
"Current selection length: %s"), nc.
GetString() );
111 str = wxString::Format(
_(
"New selection length: %s"), nc.
GetString() );
114 str =
_(
"Warning: No repeats.");
XXO("&Cut/Copy/Paste Toolbar")
const NumericConverterType & NumericConverterType_TIME()
static bool EnableApply(wxWindow *parent, bool enable=true)
Enable or disable the Apply button of the dialog that contains parent.
virtual NumericFormatID GetSelectionFormat()
Performs effect computation.
Hold values to send to effect output meters.
An Effect that repeats audio several times over.
wxStaticText * mTotalTime
wxWeakRef< wxWindow > mUIParent
wxTextCtrl * mRepeatCount
bool TransferDataToWindow(const EffectSettings &settings) override
void OnRepeatTextChange(wxCommandEvent &evt)
bool TransferDataFromWindow(EffectSettings &settings) override
wxStaticText * mCurrentTime
static FormatterContext SampleRateContext(double sampleRate)
NumericConverter provides the advanced formatting control used in the selection bar of Audacity.
void SetValue(double newValue)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
size_t Count(const Ptr< Type, BaseDeleter > &p)
Find out how many elements were allocated with a Ptr.
BuiltinEffectsModule::Registration< EffectRepeat > reg
Externalized state of a plug-in.