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

Method SetMaxList

libraries/lib-menus/CommandManager.cpp:218–235  ·  view source on GitHub ↗

CommandManager needs to know which defaults are standard and which are in the full (max) list.

Source from the content-addressed store, hash-verified

216// CommandManager needs to know which defaults are standard and which are in the
217// full (max) list.
218void CommandManager::Populator::SetMaxList()
219{
220 // This list is a DUPLICATE of the list in
221 // KeyConfigPrefs::OnImportDefaults(wxCommandEvent & event)
222
223 // TODO: At a later date get rid of the maxList entirely and
224 // instead use flags in the menu entries to indicate whether the default
225 // shortcut is standard or full.
226
227 mMaxListOnly.clear();
228
229 // if the full list, don't exclude any.
230 bool bFull = gPrefs->ReadBool(wxT("/GUI/Shortcuts/FullDefaults"),false);
231 if( bFull )
232 return;
233
234 mMaxListOnly = ExcludedList();
235}
236
237
238void CommandManager::PurgeData()

Callers

nothing calls this directly

Calls 2

ReadBoolMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected