| 265 | } |
| 266 | |
| 267 | bool MacroCommands::AddMacro(const wxString & macro) |
| 268 | { |
| 269 | // Build the filename |
| 270 | wxFileName name(FileNames::MacroDir(), macro, wxT("txt")); |
| 271 | |
| 272 | // Set the file name |
| 273 | wxTextFile tf(name.GetFullPath()); |
| 274 | |
| 275 | // Create it..Create will display errors |
| 276 | return tf.Create(); |
| 277 | } |
| 278 | |
| 279 | bool MacroCommands::DeleteMacro(const wxString & macro) |
| 280 | { |