| 863 | } |
| 864 | |
| 865 | wxArrayString MacroCommands::GetNames() |
| 866 | { |
| 867 | MigrateLegacyChains(); |
| 868 | |
| 869 | wxArrayString names; |
| 870 | FilePaths files; |
| 871 | wxDir::GetAllFiles(FileNames::MacroDir(), &files, wxT("*.txt"), wxDIR_FILES); |
| 872 | size_t i; |
| 873 | |
| 874 | wxFileName ff; |
| 875 | for (i = 0; i < files.size(); i++) { |
| 876 | ff = (files[i]); |
| 877 | names.push_back(ff.GetName()); |
| 878 | } |
| 879 | |
| 880 | std::sort( names.begin(), names.end() ); |
| 881 | |
| 882 | return names; |
| 883 | } |
| 884 | |
| 885 | bool MacroCommands::IsFixed(const wxString & name) |
| 886 | { |