Audacity  2.2.2
Public Member Functions | List of all members
AudioTrack Class Reference

A Track that can load/save audio data to/from XML. More...

#include <Track.h>

Inheritance diagram for AudioTrack:
Track CommonTrackPanelCell XMLTagHandler TrackPanelCell PlayableTrack WaveTrack

Public Member Functions

 AudioTrack (const std::shared_ptr< DirManager > &projDirManager)
 AudioTrack (const Track &orig)
void WriteXMLAttributes (XMLWriter &WXUNUSED(xmlFile)) const
bool HandleXMLAttribute (const wxChar *, const wxChar *)
- Public Member Functions inherited from Track
TrackId GetId () const
std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &, const AudacityProject *pProject) finaloverride
virtual std::vector< UIHandlePtrDetailedHitTest (const TrackPanelMouseState &, const AudacityProject *pProject, int currentTool, bool bMultiTool)=0
std::shared_ptr< TrackPanelCellGetTrackControl ()
std::shared_ptr< TrackPanelCellGetVRulerControl ()
std::shared_ptr< TrackPanelCellGetResizer ()
virtual int GetMinimizedHeight () const
int GetActualHeight () const
int GetIndex () const
void SetIndex (int index)
int GetY () const
int GetHeight () const
void SetHeight (int h)
bool GetMinimized () const
void SetMinimized (bool isMinimized)
TrackGetLink () const
 Track (const std::shared_ptr< DirManager > &projDirManager)
 Track (const Track &orig)
virtual ~Track ()
void Init (const Track &orig)
virtual Holder Duplicate () const =0
virtual void Merge (const Track &orig)
wxString GetName () const
void SetName (const wxString &n)
wxString GetDefaultName () const
void SetDefaultName (const wxString &n)
bool GetSelected () const
virtual void SetSelected (bool s)
bool GetLinked () const
void SetLinked (bool l)
virtual int GetChannel () const
virtual double GetOffset () const =0
void Offset (double t)
virtual void SetOffset (double o)
void SetChannel (int c)
virtual void SetPan (float)
virtual void SetPanFromChannelType ()
const std::shared_ptr
< DirManager > & 
GetDirManager () const
virtual Holder Cut (double WXUNUSED(t0), double WXUNUSED(t1))=0
virtual Holder Copy (double WXUNUSED(t0), double WXUNUSED(t1), bool forClipboard=true) const =0
virtual void Clear (double WXUNUSED(t0), double WXUNUSED(t1))=0
virtual void Paste (double WXUNUSED(t), const Track *WXUNUSED(src))=0
virtual void SyncLockAdjust (double oldT1, double newT1)
virtual void Silence (double WXUNUSED(t0), double WXUNUSED(t1))=0
virtual void InsertSilence (double WXUNUSED(t), double WXUNUSED(len))=0
virtual int GetKind () const
virtual void WriteXML (XMLWriter &xmlFile) const =0
virtual bool GetErrorOpening ()
virtual double GetStartTime () const =0
virtual double GetEndTime () const =0
bool IsSyncLockSelected () const
- Public Member Functions inherited from CommonTrackPanelCell
 CommonTrackPanelCell ()
virtual ~CommonTrackPanelCell ()=0
- Public Member Functions inherited from TrackPanelCell
virtual ~TrackPanelCell ()=0
virtual unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, wxPoint *pPosition)
virtual unsigned CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
virtual unsigned KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
virtual unsigned KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
virtual unsigned Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent)
- Public Member Functions inherited from XMLTagHandler
 XMLTagHandler ()
virtual ~XMLTagHandler ()
virtual bool HandleXMLTag (const wxChar *tag, const wxChar **attrs)=0
virtual void HandleXMLEndTag (const wxChar *WXUNUSED(tag))
virtual void HandleXMLContent (const wxString &WXUNUSED(content))
virtual XMLTagHandlerHandleXMLChild (const wxChar *tag)=0
bool ReadXMLTag (const char *tag, const char **attrs)
void ReadXMLEndTag (const char *tag)
void ReadXMLContent (const char *s, int len)
XMLTagHandlerReadXMLChild (const char *tag)

Additional Inherited Members

- Public Types inherited from Track
enum  { LeftChannel = 0, RightChannel = 1, MonoChannel = 2 }
enum  TrackKindEnum {
  None, Wave, Label, Time,
enum  : unsigned { DefaultHeight = 150 }
using Holder = std::unique_ptr< Track >
- Static Public Member Functions inherited from Track
template<typename Subclass = Track>
static std::shared_ptr< Subclass > Pointer (Track *t)
template<typename Subclass = const Track>
static std::shared_ptr< Subclass > Pointer (const Track *t)
- Public Attributes inherited from Track
wxSize vrulerSize
- Protected Member Functions inherited from Track
virtual void DoSetHeight (int h)
virtual void DoSetMinimized (bool isMinimized)
std::shared_ptr< TrackFindTrack () override
virtual std::shared_ptr
< TrackControls
GetControls ()=0
virtual std::shared_ptr
< TrackVRulerControls
GetVRulerControls ()=0
- Protected Member Functions inherited from CommonTrackPanelCell
unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
- Protected Attributes inherited from Track
std::weak_ptr< TrackListmList
TrackNodePointer mNode {}
int mIndex
int mY
int mHeight
wxString mName
wxString mDefaultName
bool mSelected
bool mLinked
bool mMinimized
int mChannel
double mOffset
std::shared_ptr< DirManagermDirManager
std::shared_ptr< TrackControlsmpControls
< TrackVRulerControls
< TrackPanelResizerCell
std::weak_ptr< SelectHandlemSelectHandle
std::weak_ptr< TimeShiftHandlemTimeShiftHandle

Detailed Description

A Track that can load/save audio data to/from XML.

Definition at line 360 of file Track.h.

Constructor & Destructor Documentation

AudioTrack::AudioTrack ( const std::shared_ptr< DirManager > &  projDirManager)

Definition at line 363 of file Track.h.

364  : Track{ projDirManager } {}
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:101
AudioTrack::AudioTrack ( const Track orig)

Definition at line 365 of file Track.h.

365 : Track{ orig } {}
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:101

Member Function Documentation

bool AudioTrack::HandleXMLAttribute ( const wxChar *  ,
const wxChar *   

Definition at line 371 of file Track.h.

Referenced by PlayableTrack::HandleXMLAttribute().

372  { return false; }
void AudioTrack::WriteXMLAttributes ( XMLWriter WXUNUSEDxmlFile) const

Definition at line 368 of file Track.h.

Referenced by PlayableTrack::WriteXMLAttributes().

368 {}

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