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

Method RenameMacro

src/BatchCommands.cpp:294–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294bool MacroCommands::RenameMacro(const wxString & oldmacro, const wxString & newmacro)
295{
296 // Build the filenames
297 wxFileName oname(FileNames::MacroDir(), oldmacro, wxT("txt"));
298 wxFileName nname(FileNames::MacroDir(), newmacro, wxT("txt"));
299
300 // Rename it...wxRenameFile will display errors
301 return wxRenameFile(oname.GetFullPath(), nname.GetFullPath());
302}
303
304// Gets all commands that are valid for this mode.
305MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project )

Callers 1

OnMacrosEndEditMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected