39#include "../CommonCommandFlags.h"
43#include "../TrackPanel.h"
63 {
wxT(
"ProjectStart"),
XO(
"Project Start") },
65 {
wxT(
"ProjectEnd"),
XO(
"Project End") },
66 {
wxT(
"SelectionStart"),
XO(
"Selection Start") },
68 {
wxT(
"SelectionEnd"),
XO(
"Selection End") }
75 S.OptionalY(
bHasT0 ).Define(
mT0,
wxT(
"Start"), 0.0, -100.0, (
double)FLT_MAX);
76 S.OptionalY(
bHasT1 ).Define(
mT1,
wxT(
"End"), 0.0, -100.0, (
double)FLT_MAX);
82 {
return VisitSettings<false>(
S); }
85 {
return VisitSettings<true>(
S); }
91 S.StartMultiColumn(3, wxEXPAND);
93 S.SetStretchyCol( 2 );
140 t0 =
mT0 + selectedRegion.t0();
141 t1 =
mT1 + selectedRegion.t0();
144 t0 =
mT0 + selectedRegion.t0();
145 t1 =
mT1 + selectedRegion.t1();
148 t0 = selectedRegion.t1() -
mT0;
149 t1 = selectedRegion.t1() -
mT1;
153 selectedRegion.setTimes( t0, t1 );
158{
XO(
"Select Frequencies") };
164 S.OptionalN(
bHasTop ).Define(
mTop,
wxT(
"High"), 0.0, 0.0, (
double)FLT_MAX);
170 {
return VisitSettings<false>(
S); }
173 {
return VisitSettings<true>(
S); }
179 S.StartMultiColumn(3, wxEXPAND);
181 S.SetStretchyCol( 2 );
205{
XO(
"Select Tracks") };
230 {
return VisitSettings<false>(
S); }
233 {
return VisitSettings<true>(
S); }
239 S.StartMultiColumn(3, wxEXPAND);
241 S.SetStretchyCol( 2 );
246 S.StartMultiColumn(2, wxALIGN_CENTER);
274 const bool sel = first <= index && index < last;
277 else if(
mMode == 1 && sel)
279 else if(
mMode == 2 && sel)
280 t->SetSelected(!sel);
302 return VisitSettings<false>(
S);
307 return VisitSettings<true>(
S);
323 Command(
wxT(
"SelectFrequencies"),
XXO(
"Select Frequencies..."),
328 wxT(
"Optional/Extra/Part2/Scriptables1")
338 wxT(
"Optional/Extra/Part2/Scriptables2")
AttachedItem sAttachment1
AttachedItem sAttachment2
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
static const EnumValueSymbol kRelativeTo[nRelativeTos]
static const EnumValueSymbol kModes[nModes]
Declarations for SelectCommand and SelectCommandType classes.
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
declares abstract base class Track, TrackList, and iterators over TrackList
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
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,...
static void IncEffectCounter()
void ModifySpectralSelection(double nyquist, double &bottom, double &top, bool done)
static ProjectSelectionManager & Get(AudacityProject &project)
Generates classes whose instances register items at construction.
bool VisitSettings(SettingsVisitorBase< Const > &S)
SelectFrequenciesCommand mSelFreq
SelectTracksCommand mSelTracks
static const ComponentInterfaceSymbol Symbol
SelectTimeCommand mSelTime
bool Apply(const CommandContext &context) override
void PopulateOrExchange(ShuttleGui &S) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
static const ComponentInterfaceSymbol Symbol
bool Apply(const CommandContext &context) override
void PopulateOrExchange(ShuttleGui &S) override
static const ComponentInterfaceSymbol Symbol
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool VisitSettings(SettingsVisitorBase< Const > &S)
static const ComponentInterfaceSymbol Symbol
bool Apply(const CommandContext &context) override
void PopulateOrExchange(ShuttleGui &S) override
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.
double GetEndTime() const
Return the greatest end time of the tracks, or 0 when no tracks.
static TrackList & Get(AudacityProject &project)
static TrackPanel & Get(AudacityProject &project)
NotifyingSelectedRegion selectedRegion
static ViewInfo & Get(AudacityProject &project)
static double ProjectNyquistFrequency(const AudacityProject &project)
AUDACITY_DLL_API void OnAudacityCommand(const CommandContext &ctx)
BuiltinCommandsModule::Registration< SelectTracksCommand > reg3
BuiltinCommandsModule::Registration< SelectTimeCommand > reg
BuiltinCommandsModule::Registration< SelectFrequenciesCommand > reg2
BuiltinCommandsModule::Registration< SelectCommand > reg4
const char * end(const char *str) noexcept