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

Method GetNames

src/BatchCommands.cpp:865–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865wxArrayString 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
885bool MacroCommands::IsFixed(const wxString & name)
886{

Callers 1

PopulateMacrosMethod · 0.80

Calls 5

sizeMethod · 0.45
push_backMethod · 0.45
GetNameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected