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

Method ApplyMacroToProject

src/BatchProcessDialog.cpp:255–264  ·  view source on GitHub ↗

Apply macro, given its ID. Does nothing if not found, rather than returning an error.

Source from the content-addressed store, hash-verified

253// Apply macro, given its ID.
254// Does nothing if not found, rather than returning an error.
255void ApplyMacroDialog::ApplyMacroToProject( const CommandID & MacroID, bool bHasGui )
256{
257 for( int i=0;i<mMacros->GetItemCount();i++){
258 wxString name = mMacros->GetItemText(i);
259 if( MacroIdOfName( name ) == MacroID ){
260 ApplyMacroToProject( i, bHasGui );
261 return;
262 }
263 }
264}
265
266// Apply macro, given its number in the list.
267void ApplyMacroDialog::ApplyMacroToProject( int iMacro, bool bHasGui )

Callers 1

Calls 13

StartStaticMethod · 0.80
AddFixedTextMethod · 0.80
EndStaticMethod · 0.80
MoveMethod · 0.80
ReadMacroMethod · 0.80
ApplyMacroMethod · 0.80
emptyMethod · 0.45
SetNameMethod · 0.45
LayoutMethod · 0.45
FitMethod · 0.45
ShowMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected