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

Method SetAudioTimeFormat

src/toolbars/TimeToolBar.cpp:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void TimeToolBar::SetAudioTimeFormat(const NumericFormatID & format)
208{
209 // Set the format if it's different from previous
210 if (mAudioTime->SetFormatName(format)) {
211 // Simulate an update since the format has changed.
212 wxCommandEvent e;
213 e.SetString(format.GET());
214 OnUpdate(e);
215 }
216}
217
218// The intention of this is to get the resize handle in the
219// correct position, after we've let go in dragging.

Callers 2

ImportMethod · 0.45
OnUpdateMethod · 0.45

Calls 2

SetStringMethod · 0.80
SetFormatNameMethod · 0.45

Tested by

no test coverage detected