| 465 | } |
| 466 | |
| 467 | void 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 | |
| 487 | void LabelDialog::FindInitialRow() |
| 488 | { |
nothing calls this directly
no test coverage detected