25#include "../CommonCommandFlags.h"
36{
XO(
"Set Envelope") };
47 S.OptionalY(
bHasT ).Define(
mT,
wxT(
"Time"), 0.0, 0.0, 100000.0);
48 S.OptionalY(
bHasV ).Define(
mV,
wxT(
"Value"), 1.0, 0.0, 2.0);
54 {
return VisitSettings<false>(
S); }
57 {
return VisitSettings<true>(
S); }
63 S.StartMultiColumn(3, wxALIGN_CENTER);
65 S.Optional(
bHasT ).TieNumericTextBox(
XXO(
"Time:"),
mT );
66 S.Optional(
bHasV ).TieNumericTextBox(
XXO(
"Value:"),
mV );
79 for(
auto it = ptrs.begin(); (it != ptrs.end()); it++ ){
90 bool didSomething =
false;
92 pEnv->
Clear(), didSomething =
true;
101 XO(
"Edited Envelope"),
XO(
"Envelope"),
116 wxT(
"Optional/Extra/Part2/Scriptables1"),
AttachedItem sAttachment1
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
Declarations of SetEnvelopeCommand class.
std::vector< WaveClip * > WaveClipPointers
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AudacityProject & project
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Piecewise linear or piecewise exponential function from double to double.
int InsertOrReplace(double when, double value)
Add a point at a particular absolute time coordinate.
double ClampValue(double value)
void PushState(const TranslatableString &desc, const TranslatableString &shortDesc)
static ProjectHistory & Get(AudacityProject &project)
bool ApplyInner(const CommandContext &context, Track *t) override
static const ComponentInterfaceSymbol Symbol
void PopulateOrExchange(ShuttleGui &S) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Abstract base class for an object holding data associated with points on a time axis.
R TypeSwitch(const Functions &...functions)
Use this function rather than testing track type explicitly and making down-casts.
This allows multiple clips to be a part of one WaveTrack.
double GetPlayStartTime() const noexcept
double GetPlayEndTime() const
A Track that contains audio waveform data.
WaveClipPointers SortedClipArray()
AUDACITY_DLL_API void OnAudacityCommand(const CommandContext &ctx)
BuiltinCommandsModule::Registration< SetEnvelopeCommand > reg