mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 23:02:42 +02:00
Time Track scale choice as radio buttons
This commit is contained in:
parent
4375010983
commit
70e0317daa
@ -656,8 +656,8 @@ void TrackPanel::BuildMenus(void)
|
|||||||
/* build the pop-down menu used on time warping tracks */
|
/* build the pop-down menu used on time warping tracks */
|
||||||
mTimeTrackMenu = new wxMenu();
|
mTimeTrackMenu = new wxMenu();
|
||||||
BuildCommonDropMenuItems(mTimeTrackMenu); // does name, up/down etc
|
BuildCommonDropMenuItems(mTimeTrackMenu); // does name, up/down etc
|
||||||
mTimeTrackMenu->Append(OnTimeTrackLinID, _("&Linear"));
|
mTimeTrackMenu->AppendRadioItem(OnTimeTrackLinID, wxT("&Linear scale"));
|
||||||
mTimeTrackMenu->Append(OnTimeTrackLogID, _("L&ogarithmic"));
|
mTimeTrackMenu->AppendRadioItem(OnTimeTrackLogID, _("L&ogarithmic scale"));
|
||||||
mTimeTrackMenu->AppendSeparator();
|
mTimeTrackMenu->AppendSeparator();
|
||||||
mTimeTrackMenu->Append(OnSetTimeTrackRangeID, _("&Range..."));
|
mTimeTrackMenu->Append(OnSetTimeTrackRangeID, _("&Range..."));
|
||||||
mTimeTrackMenu->AppendCheckItem(OnTimeTrackLogIntID, _("Logarithmic &Interpolation"));
|
mTimeTrackMenu->AppendCheckItem(OnTimeTrackLogIntID, _("Logarithmic &Interpolation"));
|
||||||
@ -7567,8 +7567,6 @@ void TrackPanel::OnTrackMenu(Track *t)
|
|||||||
|
|
||||||
TimeTrack *tt = (TimeTrack*) t;
|
TimeTrack *tt = (TimeTrack*) t;
|
||||||
|
|
||||||
theMenu->Enable(OnTimeTrackLinID, tt->GetDisplayLog());
|
|
||||||
theMenu->Enable(OnTimeTrackLogID, !tt->GetDisplayLog());
|
|
||||||
theMenu->Check(OnTimeTrackLogIntID, tt->GetInterpolateLog());
|
theMenu->Check(OnTimeTrackLogIntID, tt->GetInterpolateLog());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user