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

Method Clear

src/Clipboard.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Clipboard::Clear()
41{
42 mT0 = 0.0;
43 mT1 = 0.0;
44 mProject.reset();
45 mTracks->Clear();
46
47 if (this == &Get())
48 // Delayed message at idle time
49 // Don't need to capture a weak pointer to the global object
50 BasicUI::CallAfter([this]{ Publish({}); });
51}
52
53void Clipboard::Assign( TrackList && newContents,
54 double t0, double t1, const std::weak_ptr<AudacityProject> &pProject )

Callers 15

ImportMethod · 0.45
SavePresetMethod · 0.45
OnLoadPresetMethod · 0.45
OnImportPresetsMethod · 0.45
OnAllFormatsMethod · 0.45
OnAllCodecsMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
OnNewMethod · 0.45
OnClearMethod · 0.45

Calls 3

GetFunction · 0.85
CallAfterFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected