MCPcopy Create free account
hub / github.com/audacity/audacity / AddLabels

Method AddLabels

src/LabelDialog.cpp:467–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void LabelDialog::AddLabels(const LabelTrack *t)
468{
469 wxString lab;
470 int tndx = 0;
471 int i;
472
473 // Add a NEW track name
474 TrackName(tndx, t->GetName());
475
476 // If editor was invoked for one label, add that one only, else add all.
477 if (!mSelectedTrack || mSelectedTrack == t) {
478 for (i = 0; i < t->GetNumLabels(); i++) {
479 const LabelStruct *ls = t->GetLabel(i);
480
481 if (mIndex < 0 || mIndex == i)
482 mData.push_back(RowData(tndx, ls->title, ls->selectedRegion));
483 }
484 }
485}
486
487void LabelDialog::FindInitialRow()
488{

Callers

nothing calls this directly

Calls 5

GetNumLabelsMethod · 0.80
RowDataClass · 0.70
GetNameMethod · 0.45
GetLabelMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected