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

Method OnTimelineFormatChange

src/AdornedRulerPanel.cpp:2310–2322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2308}
2309
2310void AdornedRulerPanel::OnTimelineFormatChange(wxCommandEvent& event)
2311{
2312 int id = event.GetId();
2313 TimeDisplayMode changeFlag = mTimeDisplayMode;
2314 wxASSERT(id == OnMinutesAndSecondsID || id == OnBeatsAndMeasuresID);
2315 mTimeDisplayMode = id == OnBeatsAndMeasuresID ? TimeDisplayMode::BeatsAndMeasures :
2316 TimeDisplayMode::MinutesAndSeconds;
2317
2318 TimeDisplayModePreference.WriteEnum(mTimeDisplayMode);
2319
2320 if (changeFlag != mTimeDisplayMode)
2321 Refresh();
2322}
2323
2324void AdornedRulerPanel::OnSyncSelToQuickPlay(wxCommandEvent&)
2325{

Callers

nothing calls this directly

Calls 2

GetIdMethod · 0.80
WriteEnumMethod · 0.45

Tested by

no test coverage detected