25#include "../CommonCommandFlags.h"
51 {
wxT(
"Color0"),
XO(
"Color 0") },
52 {
wxT(
"Color1"),
XO(
"Color 1") },
53 {
wxT(
"Color2"),
XO(
"Color 2") },
54 {
wxT(
"Color3"),
XO(
"Color 3") },
64 S.OptionalN(
bHasT0 ).Define(
mT0,
wxT(
"Start"), 0.0, -5.0, 1000000.0);
68 {
return VisitSettings<false>(
S); }
71 {
return VisitSettings<true>(
S); }
77 S.StartMultiColumn(3, wxALIGN_CENTER);
92 if(!track->GetSelected())
96 track->TypeSwitch([&](
WaveTrack &waveTrack) {
97 for(
const auto& interval : waveTrack.
Intervals())
99 if(!bHasContainsTime ||
100 (interval->Start() <= mContainsTime &&
101 interval->End() >= mContainsTime ))
105 interval->SetColorIndex(mColour);
108 interval->SetPlayStartTime(mT0);
111 interval->SetName(mName);
131 wxT(
"Optional/Extra/Part2/Scriptables1")
AttachedItem sAttachment1
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
static const EnumValueSymbol kColourStrings[nColours]
Declarations of SetClipCommand and SetClipCommandType classes.
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
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,...
Generates classes whose instances register items at construction.
void PopulateOrExchange(ShuttleGui &S) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
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.
static TrackList & Get(AudacityProject &project)
A Track that contains audio waveform data.
AUDACITY_DLL_API void OnAudacityCommand(const CommandContext &ctx)
BuiltinCommandsModule::Registration< SetClipCommand > reg