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

Function SelectAllIfNone

src/SelectUtilities.cpp:89–96  ·  view source on GitHub ↗

Select the full time range, if no time range is selected.

Source from the content-addressed store, hash-verified

87// Select the full time range, if no
88// time range is selected.
89void SelectAllIfNone( AudacityProject &project )
90{
91 auto &viewInfo = ViewInfo::Get( project );
92 auto flags = CommandManager::Get( project ).GetUpdateFlags();
93 if((flags & EditableTracksSelectedFlag()).none() ||
94 viewInfo.selectedRegion.isPoint())
95 DoSelectAllAudio( project );
96}
97
98// Select the full time range, if no time range is selected and
99// selecting is allowed. Returns "false" selecting not allowed.

Callers 2

DoEffectMethod · 0.85
ApplyMethod · 0.85

Calls 3

GetFunction · 0.85
DoSelectAllAudioFunction · 0.85
GetUpdateFlagsMethod · 0.80

Tested by

no test coverage detected