Audacity  2.2.2
Classes | Typedefs | Functions
Track.h File Reference
#include "Audacity.h"
#include "MemoryX.h"
#include <vector>
#include <list>
#include <functional>
#include <wx/event.h>
#include <wx/gdicmn.h>
#include <wx/longlong.h>
#include <wx/string.h>
#include "Experimental.h"
#include "SampleFormat.h"
#include "tracks/ui/CommonTrackPanelCell.h"
#include "xml/XMLTagHandler.h"

Go to the source code of this file.

Classes

class  TrackId
 
class  Track
 Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the WaveTrack, NoteTrack, LabelTrack and TimeTrack. More...
 
class  AudioTrack
 A Track that can load/save audio data to/from XML. More...
 
class  PlayableTrack
 An AudioTrack that can be played and stopped. More...
 
class  TrackListIterator
 An iterator for a TrackList. More...
 
class  TrackListConstIterator
 
class  TrackListCondIterator
 
class  TrackListOfKindIterator
 
class  SelectedTrackListOfKindIterator
 
class  VisibleTrackIterator
 
class  SyncLockedTracksIterator
 
struct  TrackListEvent
 TrackList is a flat linked list of tracks supporting Add, Remove, Clear, and Contains, plus serialization of the list of tracks. More...
 
class  TrackList
 A list of TrackListNode items. More...
 
class  TrackFactory
 Used to create a WaveTrack, or a LabelTrack.. Implementation of the functions of this class are dispersed through the different Track classes. More...
 

Typedefs

using WaveTrackArray = std::vector< std::shared_ptr< WaveTrack > >
 
using WaveTrackConstArray = std::vector< std::shared_ptr< const WaveTrack > >
 
using NoteTrackArray = std::vector< std::shared_ptr< NoteTrack > >
 
using ListOfTracks = std::list< std::shared_ptr< Track > >
 
using TrackNodePointer = std::pair< ListOfTracks::iterator, ListOfTracks * >
 

Functions

 WX_DEFINE_USER_EXPORTED_ARRAY (Track *, TrackArray, class AUDACITY_DLL_API)
 
bool operator== (const TrackNodePointer &a, const TrackNodePointer &b)
 
bool operator!= (const TrackNodePointer &a, const TrackNodePointer &b)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_TRACKLIST_PERMUTED, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_TRACKLIST_RESIZING, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_TRACKLIST_DELETION, wxCommandEvent)
 

Typedef Documentation

using ListOfTracks = std::list< std::shared_ptr< Track > >

Definition at line 61 of file Track.h.

using NoteTrackArray = std::vector < std::shared_ptr < NoteTrack > >

Definition at line 53 of file Track.h.

using TrackNodePointer = std::pair< ListOfTracks::iterator, ListOfTracks* >

Definition at line 64 of file Track.h.

using WaveTrackArray = std::vector < std::shared_ptr< WaveTrack > >

Definition at line 51 of file Track.h.

using WaveTrackConstArray = std::vector < std::shared_ptr < const WaveTrack > >

Definition at line 52 of file Track.h.

Function Documentation

bool operator!= ( const TrackNodePointer a,
const TrackNodePointer b 
)
inline

Definition at line 69 of file Track.h.

70 { return !(a == b); }
bool operator== ( const TrackNodePointer a,
const TrackNodePointer b 
)
inline

Definition at line 66 of file Track.h.

67 { return a.second == b.second && a.first == b.first; }
WX_DEFINE_USER_EXPORTED_ARRAY ( Track ,
TrackArray  ,
class AUDACITY_DLL_API   
)
wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_TRACKLIST_PERMUTED  ,
wxCommandEvent   
)
wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_TRACKLIST_RESIZING  ,
wxCommandEvent   
)
wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_TRACKLIST_DELETION  ,
wxCommandEvent   
)