1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Generalize TimeRenderer and TimeEditor to handle frequencies in grid

This commit is contained in:
Paul Licameli
2016-06-26 19:05:06 -04:00
parent 8943f682f2
commit 9c687f055c
4 changed files with 87 additions and 69 deletions

View File

@@ -163,7 +163,8 @@ LabelDialog::LabelDialog(wxWindow *parent,
// do it for us. (The DecRef() that is needed after GetDefaultEditorForType
// becomes the duty of the wxGridCellAttr objects after we set them in the grid.)
mChoiceEditor = (ChoiceEditor *) mGrid->GetDefaultEditorForType(GRID_VALUE_CHOICE);
mTimeEditor = (TimeEditor *) mGrid->GetDefaultEditorForType(GRID_VALUE_TIME);
mTimeEditor = static_cast<NumericEditor*>
(mGrid->GetDefaultEditorForType(GRID_VALUE_TIME));
// Initialize and set the track name column attributes
wxGridCellAttr *attr;