![]() |
Audacity 3.2.0
|
A LabelTrack is a Track that holds labels (LabelStruct). More...
#include <LabelTrack.h>
Classes | |
struct | IntervalData |
Public Types | |
using | Holder = std::shared_ptr< LabelTrack > |
![]() | |
enum class | LinkType : int { None = 0 , Group = 2 , Aligned } |
For two tracks describes the type of the linkage. More... | |
enum | ChannelType { LeftChannel = 0 , RightChannel = 1 , MonoChannel = 2 } |
using | ChannelGroupAttachments = ClientData::Site< ChannelGroupData, ClientData::Cloneable<>, ClientData::DeepCopying > |
Hosting of objects attached by higher level code. More... | |
using | AttachedObjects = ::AttachedTrackObjects |
Alias for my base type. More... | |
using | IntervalData = TrackIntervalData |
using | Interval = TrackInterval |
using | Intervals = std::vector< Interval > |
using | ConstInterval = ConstTrackInterval |
using | ConstIntervals = std::vector< ConstInterval > |
using | Holder = std::shared_ptr< Track > |
template<typename R = void> | |
using | Continuation = std::function< R() > |
Type of arguments passed as optional second parameter to TypeSwitch() cases. More... | |
using | Fallthrough = Continuation<> |
Type of arguments passed as optional second parameter to TypeSwitch<void>() cases. More... | |
![]() | |
using | DataType = ClientData |
using | DataPointer = Pointer< ClientData > |
using | DataFactory = std::function< DataPointer(Host &) > |
Type of function from which RegisteredFactory is constructed; it builds attachments. More... | |
![]() | |
using | message_type = struct LabelTrackEvent |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const struct LabelTrackEvent &) > |
Type of functions that can be connected to the Publisher. More... | |
Public Member Functions | |
LabelTrack () | |
LabelTrack (const LabelTrack &orig, ProtectedCreationArg &&) | |
virtual | ~LabelTrack () |
void | SetLabel (size_t iLabel, const LabelStruct &newLabel) |
void | SetOffset (double dOffset) override |
void | SetSelected (bool s) override |
double | GetOffset () const override |
double | GetStartTime () const override |
double | GetEndTime () const override |
bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) override |
XMLTagHandler * | HandleXMLChild (const std::string_view &tag) override |
void | WriteXML (XMLWriter &xmlFile) const override |
Track::Holder | Cut (double t0, double t1) override |
Track::Holder | Copy (double t0, double t1, bool forClipboard=true) const override |
void | Clear (double t0, double t1) override |
void | Paste (double t, const Track *src) override |
bool | Repeat (double t0, double t1, int n) |
void | SyncLockAdjust (double oldT1, double newT1) override |
void | Silence (double t0, double t1) override |
void | InsertSilence (double t, double len) override |
void | Import (wxTextFile &f) |
Import labels, handling files with or without end-times. More... | |
void | Export (wxTextFile &f) const |
Export labels including label start and end-times. More... | |
int | GetNumLabels () const |
const LabelStruct * | GetLabel (int index) const |
const LabelArray & | GetLabels () const |
void | OnLabelAdded (const wxString &title, int pos) |
int | AddLabel (const SelectedRegion ®ion, const wxString &title) |
void | DeleteLabel (int index) |
bool | PasteOver (double t, const Track *src) |
void | ShiftLabelsOnInsert (double length, double pt) |
void | ChangeLabelsOnReverse (double b, double e) |
void | ScaleLabels (double b, double e, double change) |
double | AdjustTimeStampOnScale (double t, double b, double e, double change) |
void | WarpLabels (const TimeWarper &warper) |
wxString | GetTextOfLabels (double t0, double t1) const |
int | FindNextLabel (const SelectedRegion ¤tSelection) |
int | FindPrevLabel (const SelectedRegion ¤tSelection) |
const TypeInfo & | GetTypeInfo () const override |
Track::Holder | PasteInto (AudacityProject &) const override |
Find or create the destination track for a paste, maybe in a different project. More... | |
ConstInterval | MakeInterval (size_t index) const |
Interval | MakeInterval (size_t index) |
ConstIntervals | GetIntervals () const override |
Report times on the track where important intervals begin and end, for UI to snap to. More... | |
Intervals | GetIntervals () override |
void | SortLabels () |
![]() | |
TrackId | GetId () const |
template<typename Subclass = Track> | |
std::shared_ptr< Subclass > | SharedPointer () |
template<typename Subclass = const Track> | |
auto | SharedPointer () const -> std::enable_if_t< std::is_const_v< Subclass >, std::shared_ptr< Subclass > > |
std::shared_ptr< Track > | SubstitutePendingChangedTrack () |
std::shared_ptr< const Track > | SubstitutePendingChangedTrack () const |
std::shared_ptr< const Track > | SubstituteOriginalTrack () const |
virtual const TypeInfo & | GetTypeInfo () const =0 |
virtual const TypeNames & | GetTypeNames () const |
virtual bool | SupportsBasicEditing () const |
Whether this track type implements cut-copy-paste; by default, true. More... | |
virtual Holder | PasteInto (AudacityProject &) const =0 |
Find or create the destination track for a paste, maybe in a different project. More... | |
virtual ConstIntervals | GetIntervals () const |
Report times on the track where important intervals begin and end, for UI to snap to. More... | |
virtual Intervals | GetIntervals () |
virtual bool | LinkConsistencyFix (bool doFix=true, bool completeList=true) |
Check consistency of channel groups, and maybe fix it. More... | |
bool | LinkConsistencyCheck (bool completeList) |
Do the non-mutating part of consistency fix only and return status. More... | |
bool | HasOwner () const |
std::shared_ptr< TrackList > | GetOwner () const |
LinkType | GetLinkType () const noexcept |
bool | IsAlignedWithLeader () const |
Returns true if the leader track has link type LinkType::Aligned. More... | |
ChannelGroupData & | GetGroupData () |
const ChannelGroupData & | GetGroupData () const |
Track () | |
Track (const Track &orig, ProtectedCreationArg &&) | |
Track & | operator= (const Track &orig)=delete |
virtual | ~Track () |
void | Init (const Track &orig) |
virtual Holder | Duplicate () const |
const wxString & | GetName () const |
Name is always the same for all channels of a group. More... | |
void | SetName (const wxString &n) |
bool | GetSelected () const |
Selectedness is always the same for all channels of a group. More... | |
virtual void | SetSelected (bool s) |
void | EnsureVisible (bool modifyState=false) |
virtual ChannelType | GetChannel () const |
virtual double | GetOffset () const =0 |
void | Offset (double t) |
virtual void | SetOffset (double o) |
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 |
bool | SameKindAs (const Track &track) const |
template<typename R = void, typename ... Functions> | |
R | TypeSwitch (const Functions &...functions) |
Use this function rather than testing track type explicitly and making down-casts. More... | |
template<typename R = void, typename ... Functions> | |
R | TypeSwitch (const Functions &...functions) const |
Use this function rather than testing track type explicitly and making down-casts. More... | |
virtual void | WriteXML (XMLWriter &xmlFile) const =0 |
virtual bool | GetErrorOpening () |
virtual double | GetStartTime () const =0 |
virtual double | GetEndTime () const =0 |
void | Notify (bool allChannels, int code=-1) |
bool | Any () const |
bool | IsSelected () const |
bool | IsLeader () const |
bool | IsSelectedLeader () const |
void | AdjustPositions () |
void | WriteCommonXMLAttributes (XMLWriter &xmlFile, bool includeNameAndSelected=true) const |
bool | HandleCommonXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView) |
![]() | |
XMLTagHandler () | |
virtual | ~XMLTagHandler () |
virtual bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs)=0 |
virtual void | HandleXMLEndTag (const std::string_view &WXUNUSED(tag)) |
virtual void | HandleXMLContent (const std::string_view &WXUNUSED(content)) |
virtual XMLTagHandler * | HandleXMLChild (const std::string_view &tag)=0 |
void | ReadXMLEndTag (const char *tag) |
void | ReadXMLContent (const char *s, int len) |
XMLTagHandler * | ReadXMLChild (const char *tag) |
![]() | |
~Site () | |
Site () | |
Site (const Site &other) | |
Site & | operator= (const Site &other) |
Site (Site &&other) | |
Site & | operator= (Site &&other) |
size_t | size () const |
How many attachment pointers are in the Site. More... | |
template<typename Subclass = ClientData> | |
Subclass & | Get (const RegisteredFactory &key) |
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass. More... | |
template<typename Subclass = const ClientData> | |
auto | Get (const RegisteredFactory &key) const -> std::enable_if_t< std::is_const< Subclass >::value, Subclass & > |
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass. More... | |
template<typename Subclass = ClientData> | |
Subclass * | Find (const RegisteredFactory &key) |
Get a (bare) pointer to an attachment, or null, down-cast it to Subclass *; will not create on demand. More... | |
template<typename Subclass = const ClientData> | |
auto | Find (const RegisteredFactory &key) const -> std::enable_if_t< std::is_const< Subclass >::value, Subclass * > |
Get a (bare) pointer to an attachment, or null, down-cast it to Subclass *; will not create on demand. More... | |
template<typename ReplacementPointer > | |
void | Assign (const RegisteredFactory &key, ReplacementPointer &&replacement) |
Reassign Site's pointer to ClientData. More... | |
![]() | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Static Public Member Functions | |
static wxString | GetDefaultName () |
static LabelTrack * | New (AudacityProject &project) |
static LabelTrack * | Create (TrackList &trackList, const wxString &name) |
Create a new LabelTrack with specified name and append it to the trackList . More... | |
static LabelTrack * | Create (TrackList &trackList) |
Create a new LabelTrack with unique default name and append it to the trackList . More... | |
static const TypeInfo & | ClassTypeInfo () |
![]() | |
template<typename Subclass = Track> | |
static std::shared_ptr< Subclass > | SharedPointer (Track *pTrack) |
template<typename Subclass = const Track> | |
static std::shared_ptr< Subclass > | SharedPointer (const Track *pTrack) |
static const TypeInfo & | ClassTypeInfo () |
static void | FinishCopy (const Track *n, Track *dest) |
template<typename TrackType > | |
static void | checkTrackType () |
template<typename R , typename TrackType , typename... Functions> | |
static R | CallExecutor (R *, std::tuple<> *, TrackType &, const Functions &...) |
template<typename R , typename TrackType , typename... Functions, typename Executor , typename... Executors> | |
static R | CallExecutor (R *, std::tuple< Executor, Executors... > *, TrackType &track, const Functions &...functions) |
template<typename ... Executors> | |
static constexpr unsigned | UsedCases (std::tuple< Executors... > *) |
template<typename Tag , bool IsConst, typename R , typename ... TrackTypes, typename ... Functions> | |
static R | DoTypeSwitch (std::conditional_t< IsConst, const Track, Track > &track, TypeList::List< TrackTypes... >, const Functions &...functions) |
Deduce two packs from arguments. More... | |
![]() | |
static size_t | slots () |
How many static factories have been registered with this specialization of Site. More... | |
Private Member Functions | |
Track::Holder | Clone () const override |
Private Attributes | |
LabelArray | mLabels |
double | mClipLen |
int | miLastLabel |
Additional Inherited Members | |
![]() | |
std::pair< int, int > | vrulerSize |
![]() | |
static constexpr bool | notifies_all |
![]() | |
void | SetLinkType (LinkType linkType, bool completeList=true) |
void | SetChannel (ChannelType c) noexcept |
![]() | |
template<typename Function > | |
void | ForEach (const Function &function) |
Invoke function on each ClientData object that has been created in this . More... | |
template<typename Function > | |
void | ForEach (const Function &function) const |
Invoke function on each ClientData object that has been created in this . More... | |
template<typename Function > | |
ClientData * | FindIf (const Function &function) |
Return pointer to first attachment in this that is not null and satisfies a predicate, or nullptr. More... | |
template<typename Function > | |
const ClientData * | FindIf (const Function &function) const |
Return pointer to first attachment in this that is not null and satisfies a predicate, or nullptr. More... | |
void | BuildAll () |
For each RegisteredFactory, if the corresponding attachment is absent in this , build and store it. More... | |
![]() | |
CallbackReturn | Publish (const struct LabelTrackEvent &message) |
Send a message to connected callbacks. More... | |
![]() | |
std::weak_ptr< TrackList > | mList |
TrackNodePointer | mNode {} |
Holds iterator to self, so that TrackList::Find can be constant-time. More... | |
int | mIndex |
0-based position of this track in its TrackList More... | |
ChannelType | mChannel |
double | mOffset |
A LabelTrack is a Track that holds labels (LabelStruct).
These are used to annotate a waveform. Each label has a start time and an end time. The text of the labels is editable and the positions of the end points are draggable.
Definition at line 84 of file LabelTrack.h.
using LabelTrack::Holder = std::shared_ptr<LabelTrack> |
Definition at line 121 of file LabelTrack.h.
LabelTrack::LabelTrack | ( | ) |
Definition at line 79 of file LabelTrack.cpp.
LabelTrack::LabelTrack | ( | const LabelTrack & | orig, |
ProtectedCreationArg && | a | ||
) |
Definition at line 86 of file LabelTrack.cpp.
References mLabels, and LabelStruct::selectedRegion.
|
virtual |
Definition at line 167 of file LabelTrack.cpp.
int LabelTrack::AddLabel | ( | const SelectedRegion & | region, |
const wxString & | title | ||
) |
Definition at line 944 of file LabelTrack.cpp.
References LabelTrackEvent::Addition, mLabels, Observer::Publisher< struct LabelTrackEvent >::Publish(), SelectedRegion::t0(), and title.
Referenced by VampEffect::AddFeatures(), and EffectFindClipping::ProcessOne().
double LabelTrack::AdjustTimeStampOnScale | ( | double | t, |
double | b, | ||
double | e, | ||
double | change | ||
) |
Definition at line 263 of file LabelTrack.cpp.
Referenced by ScaleLabels().
void LabelTrack::ChangeLabelsOnReverse | ( | double | b, |
double | e | ||
) |
Definition at line 239 of file LabelTrack.cpp.
References mLabels, SortLabels(), and LabelStruct::SURROUNDS_LABEL.
|
static |
Definition at line 108 of file LabelTrack.cpp.
References typeInfo().
|
override |
Definition at line 177 of file LabelTrack.cpp.
References LabelStruct::BEFORE_LABEL, LabelStruct::BEGINS_IN_LABEL, DeleteLabel(), LabelStruct::ENDS_IN_LABEL, mLabels, LabelStruct::SURROUNDS_LABEL, and LabelStruct::WITHIN_LABEL.
Referenced by Cut(), anonymous_namespace{EditMenus.cpp}::OnPaste(), and SyncLockAdjust().
|
overrideprivatevirtual |
Implements Track.
Definition at line 362 of file LabelTrack.cpp.
|
override |
Definition at line 706 of file LabelTrack.cpp.
References LabelStruct::BEGINS_IN_LABEL, LabelStruct::ENDS_IN_LABEL, mLabels, LabelStruct::selectedRegion, LabelStruct::SURROUNDS_LABEL, and LabelStruct::WITHIN_LABEL.
Referenced by Cut(), ModifiedAnalysisTrack::ModifiedAnalysisTrack(), and EffectRepeat::Process().
|
static |
Create a new LabelTrack with unique default name and append it to the trackList
.
Definition at line 74 of file LabelTrack.cpp.
References Create(), GetDefaultName(), and TrackList::MakeUniqueTrackName().
|
static |
Create a new LabelTrack with specified name
and append it to the trackList
.
Definition at line 66 of file LabelTrack.cpp.
References TrackList::Add(), and name.
Referenced by AddedAnalysisTrack::AddedAnalysisTrack(), Create(), anonymous_namespace{LabelMenus.cpp}::DoAddLabel(), anonymous_namespace{DropoutDetector.cpp}::DropoutSubscription::DropoutSubscription(), anonymous_namespace{LabelMenus.cpp}::OnNewLabelTrack(), and anonymous_namespace{LabelMenus.cpp}::OnPasteNewLabel().
|
override |
Definition at line 683 of file LabelTrack.cpp.
References Clear(), and Copy().
void LabelTrack::DeleteLabel | ( | int | index | ) |
Definition at line 963 of file LabelTrack.cpp.
References LabelTrackEvent::Deletion, mLabels, Observer::Publisher< struct LabelTrackEvent >::Publish(), and title.
Referenced by Clear(), and Silence().
void LabelTrack::Export | ( | wxTextFile & | f | ) | const |
Export labels including label start and end-times.
Definition at line 561 of file LabelTrack.cpp.
References mLabels.
int LabelTrack::FindNextLabel | ( | const SelectedRegion & | currentSelection | ) |
Definition at line 1029 of file LabelTrack.cpp.
References miLastLabel, mLabels, and SelectedRegion::t0().
Referenced by anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel().
int LabelTrack::FindPrevLabel | ( | const SelectedRegion & | currentSelection | ) |
Definition at line 1055 of file LabelTrack.cpp.
References miLastLabel, mLabels, and SelectedRegion::t0().
Referenced by anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel().
|
static |
Definition at line 53 of file LabelTrack.cpp.
References _.
Referenced by Create(), and NyquistEffect::ProcessOne().
|
overridevirtual |
Implements Track.
Definition at line 346 of file LabelTrack.cpp.
References PackedArray::end(), and mLabels.
Referenced by ModifiedAnalysisTrack::ModifiedAnalysisTrack(), and SyncLockAdjust().
|
overridevirtual |
Report times on the track where important intervals begin and end, for UI to snap to.
Some intervals may be empty, and no ordering of the intervals is assumed.
Reimplemented from Track.
Definition at line 148 of file LabelTrack.cpp.
|
overridevirtual |
This overload exposes the extra data of the intervals as non-const This overload exposes the extra data of the intervals as non-const
Reimplemented from Track.
Definition at line 153 of file LabelTrack.cpp.
const LabelStruct * LabelTrack::GetLabel | ( | int | index | ) | const |
Definition at line 939 of file LabelTrack.cpp.
References mLabels.
Referenced by LyricsPanel::AddLabels(), LabelDialog::AddLabels(), anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel(), and ExportMultipleDialog::ExportMultipleByLabel().
|
inline |
Definition at line 146 of file LabelTrack.h.
Referenced by LabelTrackView::OverATextBox(), LabelTrackView::OverGlyph(), and GetInfoCommand::SendLabels().
int LabelTrack::GetNumLabels | ( | ) | const |
Definition at line 934 of file LabelTrack.cpp.
References mLabels.
Referenced by LyricsPanel::AddLabels(), LabelDialog::AddLabels(), ExportMultipleDialog::CountTracksAndLabels(), DoMakeIntervals(), and anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel().
|
overridevirtual |
|
overridevirtual |
Implements Track.
Definition at line 338 of file LabelTrack.cpp.
References mLabels.
Referenced by ModifiedAnalysisTrack::ModifiedAnalysisTrack(), and EffectFindClipping::Process().
wxString LabelTrack::GetTextOfLabels | ( | double | t0, |
double | t1 | ||
) | const |
Definition at line 1010 of file LabelTrack.cpp.
References mLabels.
|
overridevirtual |
Implements Track.
Definition at line 103 of file LabelTrack.cpp.
References typeInfo().
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 654 of file LabelTrack.cpp.
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 593 of file LabelTrack.cpp.
References Track::HandleCommonXMLAttribute(), SelectedRegion::HandleXMLAttribute(), mLabels, title, and wxT().
void LabelTrack::Import | ( | wxTextFile & | f | ) |
Import labels, handling files with or without end-times.
Definition at line 569 of file LabelTrack.cpp.
References AudacityMessageBox(), LabelStruct::Import(), mLabels, SortLabels(), and XO().
|
override |
Definition at line 920 of file LabelTrack.cpp.
References mLabels.
auto LabelTrack::MakeInterval | ( | size_t | index | ) |
Definition at line 134 of file LabelTrack.cpp.
auto LabelTrack::MakeInterval | ( | size_t | index | ) | const |
Definition at line 129 of file LabelTrack.cpp.
Referenced by DoMakeIntervals().
|
static |
Definition at line 58 of file LabelTrack.cpp.
References TrackList::Get().
void LabelTrack::OnLabelAdded | ( | const wxString & | title, |
int | pos | ||
) |
|
override |
Definition at line 787 of file LabelTrack.cpp.
References PasteOver(), ShiftLabelsOnInsert(), and Track::TypeSwitch().
Referenced by EffectRepeat::Process().
|
overridevirtual |
Find or create the destination track for a paste, maybe in a different project.
use_count()
can tell whether it is new Implements Track.
Definition at line 113 of file LabelTrack.cpp.
bool LabelTrack::PasteOver | ( | double | t, |
const Track * | src | ||
) |
Definition at line 758 of file LabelTrack.cpp.
References mLabels, LabelStruct::selectedRegion, and Track::TypeSwitch().
Referenced by Paste().
bool LabelTrack::Repeat | ( | double | t0, |
double | t1, | ||
int | n | ||
) |
Definition at line 804 of file LabelTrack.cpp.
References LabelStruct::BEGINS_IN_LABEL, label, mLabels, ShiftLabelsOnInsert(), and LabelStruct::SURROUNDS_LABEL.
Referenced by EffectRepeat::Process().
void LabelTrack::ScaleLabels | ( | double | b, |
double | e, | ||
double | change | ||
) |
Definition at line 254 of file LabelTrack.cpp.
References AdjustTimeStampOnScale(), and mLabels.
void LabelTrack::SetLabel | ( | size_t | iLabel, |
const LabelStruct & | newLabel | ||
) |
|
overridevirtual |
Reimplemented from Track.
Definition at line 171 of file LabelTrack.cpp.
References mLabels.
Referenced by ModifiedAnalysisTrack::ModifiedAnalysisTrack().
|
overridevirtual |
Reimplemented from Track.
Definition at line 324 of file LabelTrack.cpp.
References Track::GetSelected(), Observer::Publisher< struct LabelTrackEvent >::Publish(), LabelTrackEvent::Selection, and Track::SetSelected().
void LabelTrack::ShiftLabelsOnInsert | ( | double | length, |
double | pt | ||
) |
Definition at line 226 of file LabelTrack.cpp.
References LabelStruct::BEFORE_LABEL, mLabels, and LabelStruct::WITHIN_LABEL.
Referenced by anonymous_namespace{EditMenus.cpp}::OnPaste(), Paste(), Repeat(), and SyncLockAdjust().
|
override |
Definition at line 874 of file LabelTrack.cpp.
References LabelStruct::BEGINS_IN_LABEL, DeleteLabel(), LabelStruct::ENDS_IN_LABEL, label, mLabels, SortLabels(), LabelStruct::SURROUNDS_LABEL, and LabelStruct::WITHIN_LABEL.
void LabelTrack::SortLabels | ( | ) |
Sorts the labels in order of their starting times. This function is called often (whilst dragging a label) We expect them to be very nearly in order, so insertion sort (with a linear search) is a reasonable choice.
Definition at line 978 of file LabelTrack.cpp.
References PackedArray::begin(), mLabels, LabelTrackEvent::Permutation, and Observer::Publisher< struct LabelTrackEvent >::Publish().
Referenced by ChangeLabelsOnReverse(), Import(), Silence(), and WarpLabels().
|
overridevirtual |
Reimplemented from Track.
Definition at line 856 of file LabelTrack.cpp.
References Clear(), GetEndTime(), and ShiftLabelsOnInsert().
void LabelTrack::WarpLabels | ( | const TimeWarper & | warper | ) |
Definition at line 282 of file LabelTrack.cpp.
References mLabels, SortLabels(), and TimeWarper::Warp().
Referenced by EffectChangeSpeed::ProcessLabelTrack(), and EffectSBSMS::ProcessLabelTrack().
|
overridevirtual |
Implements Track.
Definition at line 662 of file LabelTrack.cpp.
References Track::WriteCommonXMLAttributes(), and wxT().
|
private |
Definition at line 195 of file LabelTrack.h.
|
private |
Definition at line 197 of file LabelTrack.h.
Referenced by FindNextLabel(), and FindPrevLabel().
|
private |
Definition at line 192 of file LabelTrack.h.
Referenced by AddLabel(), ChangeLabelsOnReverse(), Clear(), Copy(), DeleteLabel(), Export(), FindNextLabel(), FindPrevLabel(), GetEndTime(), GetLabel(), GetNumLabels(), GetStartTime(), GetTextOfLabels(), HandleXMLTag(), Import(), InsertSilence(), LabelTrack(), PasteOver(), Repeat(), ScaleLabels(), GetInfoCommand::SendLabels(), SetLabel(), SetOffset(), ShiftLabelsOnInsert(), Silence(), SortLabels(), and WarpLabels().