Audacity 3.2.0
Public Member Functions | List of all members
SetTrackBase Class Referenceabstract

Base class for the various track modifying command classes, that loops over selected tracks. Subclasses override ApplyInner() to change one track. More...

#include <SetTrackInfoCommand.h>

Inheritance diagram for SetTrackBase:
[legend]
Collaboration diagram for SetTrackBase:
[legend]

Public Member Functions

bool Apply (const CommandContext &context) final
 
virtual bool ApplyInner (const CommandContext &context, Track &t)=0
 
- Public Member Functions inherited from AudacityCommand
 AudacityCommand ()
 
virtual ~AudacityCommand ()
 
PluginPath GetPath () const override
 
VendorSymbol GetVendor () const override
 
wxString GetVersion () const override
 
ComponentInterfaceSymbol GetSymbol () const override=0
 
virtual TranslatableString GetDescription () const override
 
virtual ManualPageID ManualPage ()
 
virtual bool IsBatchProcessing () const
 
virtual void SetBatchProcessing (bool start)
 
virtual bool Apply (const CommandContext &WXUNUSED(context))
 
bool ShowInterface (wxWindow *parent, bool forceModal=false)
 
wxDialog * CreateUI (wxWindow *parent, AudacityCommand *client)
 
bool SaveSettingsAsString (wxString &parms)
 
bool LoadSettingsFromString (const wxString &parms)
 
bool DoAudacityCommand (const CommandContext &context, bool shouldPrompt=true)
 
int MessageBox (const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={})
 
virtual bool Init ()
 
virtual bool PromptUser (AudacityProject &)
 
virtual bool CheckWhetherSkipAudacityCommand ()
 
virtual void End ()
 
virtual void PopulateOrExchange (ShuttleGui &WXUNUSED(S))
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
virtual bool VisitSettings (SettingsVisitor &)
 
virtual bool VisitSettings (ConstSettingsVisitor &)
 
- Public Member Functions inherited from ComponentInterface
virtual ~ComponentInterface ()
 
virtual PluginPath GetPath () const =0
 
virtual ComponentInterfaceSymbol GetSymbol () const =0
 
virtual VendorSymbol GetVendor () const =0
 
virtual wxString GetVersion () const =0
 
virtual TranslatableString GetDescription () const =0
 
TranslatableString GetName () const
 

Additional Inherited Members

- Public Types inherited from AudacityCommand
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
- Protected Attributes inherited from AudacityCommand
ProgressDialogmProgress
 
wxDialog * mUIDialog
 
wxWindow * mUIParent
 

Detailed Description

Base class for the various track modifying command classes, that loops over selected tracks. Subclasses override ApplyInner() to change one track.

Definition at line 25 of file SetTrackInfoCommand.h.

Member Function Documentation

◆ Apply()

bool SetTrackBase::Apply ( const CommandContext context)
final

Definition at line 59 of file SetTrackInfoCommand.cpp.

60{
61 auto &tracks = TrackList::Get(context.project);
62 for (auto t : tracks) {
63 if (t->GetSelected())
64 ApplyInner(context, *t);
65 }
66 return true;
67}
const auto tracks
AudacityProject & project
virtual bool ApplyInner(const CommandContext &context, Track &t)=0
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:314

References ApplyInner(), TrackList::Get(), CommandContext::project, and tracks.

Here is the call graph for this function:

◆ ApplyInner()

virtual bool SetTrackBase::ApplyInner ( const CommandContext context,
Track t 
)
pure virtual

Implemented in SetEnvelopeCommand, SetTrackStatusCommand, SetTrackAudioCommand, SetTrackVisualsCommand, and SetTrackCommand.

Referenced by Apply().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: