praat_script.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _praat_script_h_
  2. #define _praat_script_h_
  3. /* praat_script.h
  4. *
  5. * Copyright (C) 1992-2005,2007,2009-2016,2018 Paul Boersma
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include "Interpreter.h"
  21. int praat_executeCommand (Interpreter me, char32 *command);
  22. void praat_executeCommandFromStandardInput (conststring32 programName);
  23. void praat_executeScriptFromFile (MelderFile file, conststring32 arguments);
  24. void praat_executeScriptFromFileName (conststring32 fileName, integer narg, Stackel args);
  25. void praat_executeScriptFromFileNameWithArguments (conststring32 nameAndArguments);
  26. void praat_executeScriptFromText (conststring32 text);
  27. void praat_executeScriptFromDialog (UiForm dia);
  28. extern "C" void praatlib_executeScript (const char *text8);
  29. void DO_praat_runScript (UiForm sendingForm, integer narg, Stackel args, conststring32 sendingString, Interpreter interpreter_dummy, conststring32 invokingButtonTitle, bool modified, void *dummy);
  30. void DO_RunTheScriptFromAnyAddedMenuCommand (UiForm sendingForm_dummy, integer narg, Stackel args, conststring32 scriptPath, Interpreter interpreter_dummy, conststring32 invokingButtonTitle, bool modified, void *dummy);
  31. void DO_RunTheScriptFromAnyAddedEditorCommand (Editor editor, conststring32 script);
  32. /* End of file praat_script.h */
  33. #endif