Audacity 3.2.0
Functions | Variables
LabelTrack.cpp File Reference
#include "LabelTrack.h"
#include <algorithm>
#include <limits.h>
#include <float.h>
#include <wx/log.h>
#include <wx/tokenzr.h>
#include "Prefs.h"
#include "Project.h"
#include "prefs/ImportExportPrefs.h"
#include "TimeWarper.h"
#include "widgets/AudacityMessageBox.h"
Include dependency graph for LabelTrack.cpp:

Go to the source code of this file.

Functions

static const Track::TypeInfotypeInfo ()
 
template<typename IntervalType >
static IntervalType DoMakeInterval (const LabelStruct &label, size_t index)
 
template<typename Container , typename LabelTrack >
static Container DoMakeIntervals (LabelTrack &track)
 

Variables

static ProjectFileIORegistry::ObjectReaderEntry readerEntry
 

Function Documentation

◆ DoMakeInterval()

template<typename IntervalType >
static IntervalType DoMakeInterval ( const LabelStruct label,
size_t  index 
)
static

Definition at line 122 of file LabelTrack.cpp.

123{
124 return {
125 label.getT0(), label.getT1(),
126 std::make_unique<LabelTrack::IntervalData>( index ) };
127}
TranslatableString label
Definition: TagsEditor.cpp:164

References label.

◆ DoMakeIntervals()

template<typename Container , typename LabelTrack >
static Container DoMakeIntervals ( LabelTrack track)
static

Definition at line 140 of file LabelTrack.cpp.

141{
142 Container result;
143 for (size_t ii = 0, nn = track.GetNumLabels(); ii < nn; ++ii)
144 result.emplace_back( track.MakeInterval( ii ) );
145 return result;
146}
int GetNumLabels() const
Definition: LabelTrack.cpp:934
ConstInterval MakeInterval(size_t index) const
Definition: LabelTrack.cpp:129

References LabelTrack::GetNumLabels(), and LabelTrack::MakeInterval().

Here is the call graph for this function:

◆ typeInfo()

static const Track::TypeInfo & typeInfo ( )
static

Definition at line 96 of file LabelTrack.cpp.

97{
98 static Track::TypeInfo info{
99 { "label", "label", XO("Label Track") }, true, &Track::ClassTypeInfo() };
100 return info;
101}
XO("Cut/Copy/Paste")
static const TypeInfo & ClassTypeInfo()
Definition: Track.cpp:1251

References Track::ClassTypeInfo(), and XO().

Referenced by LabelTrack::ClassTypeInfo(), and LabelTrack::GetTypeInfo().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ readerEntry

Initial value:
{
"labeltrack",
}
static LabelTrack * New(AudacityProject &project)
Definition: LabelTrack.cpp:58

Definition at line 48 of file LabelTrack.cpp.