praat_TimeFunction.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _praat_TimeFunction_h_
  2. #define _praat_TimeFunction_h_
  3. /* praat_TimeFunction.h
  4. *
  5. * Copyright (C) 2016 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. /*
  21. Interface functions for time-based subclasses of Function.
  22. */
  23. #include "Function.h"
  24. #include "praat.h"
  25. /*
  26. Prompting for fromTime and toTime on one row with two fields.
  27. */
  28. #define praat_TimeFunction_RANGE(fromTime,toTime) \
  29. REAL (fromTime, U"left Time range (s)", U"0.0") \
  30. REAL (toTime, U"right Time range (s)", U"0.0 (= all)")
  31. /*
  32. Action buttons.
  33. */
  34. void praat_TimeFunction_query_init (ClassInfo klas); // Query buttons for end points and duration
  35. void praat_TimeFunction_modify_init (ClassInfo klas); // Modify buttons for time shifting and time scaling
  36. /* End of file praat_TimeFunction.h */
  37. #endif