bool BatchCommands::ApplyCommand(const wxString & command, const wxString & params) { unsigned int i; // Test for a special command. // CLEANSPEECH remnant for(i=0;i<sizeof(SpecialCommands)/sizeof(SpecialCommands[0]);i++) { if( command == SpecialCommands[i] ) return ApplySpecialCommand( i, command, params ); } // end CLEANSPEECH remnant // Test for an effect. const PluginID & ID = EffectManager::Get().GetEffectByIdentifier( command ); if (!ID.empty()) { return ApplyEffectCommand(ID, command, params); } wxMessageBox( wxString::Format( _("Your batch command of %s was not recognized."), command.c_str() )); return false; }
bool BatchCommands::ApplyCommand(const wxString command, const wxString params) { unsigned int i; // Test for a special command. for(i=0;i<sizeof(SpecialCommands)/sizeof(SpecialCommands[0]);i++) { if( command == SpecialCommands[i] ) return ApplySpecialCommand( i, command, params ); } // Test for an effect. Effect * f; f=GetEffectFromCommandName( command ); if( f!=NULL ) return ApplyEffectCommand( f, command, params ); // return ApplyMenuCommand( command, params ); wxMessageBox( wxString::Format( _("Your batch command of %s was not recognised."), command.c_str() )); return false; }