25#include "../CommonCommandFlags.h"
27#include "../tracks/playabletrack/wavetrack/ui/WaveformAppearance.h"
52 {
wxT(
"Color0"),
XO(
"Color 0") },
53 {
wxT(
"Color1"),
XO(
"Color 1") },
54 {
wxT(
"Color2"),
XO(
"Color 2") },
55 {
wxT(
"Color3"),
XO(
"Color 3") },
65 S.OptionalN(
bHasT0 ).Define(
mT0,
wxT(
"Start"), 0.0, -5.0, 1000000.0);
69 {
return VisitSettings<false>(
S); }
72 {
return VisitSettings<true>(
S); }
78 S.StartMultiColumn(3, wxALIGN_CENTER);
93 if(!track->GetSelected())
97 track->TypeSwitch([&](
WaveTrack &waveTrack) {
98 for (
const auto &interval : waveTrack.
Intervals()) {
99 if(!bHasContainsTime ||
100 (interval->Start() <= mContainsTime &&
101 interval->End() >= mContainsTime ))
105 for (const auto channel : interval->Channels())
106 WaveColorAttachment::Get(*channel).SetColorIndex(mColour);
110 interval->SetPlayStartTime(mT0);
113 interval->SetName(mName);
133 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