| 292 | } |
| 293 | |
| 294 | bool 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. |
| 305 | MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project ) |