OptimalCeilingTierEditor.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _OptimalCeilingTierEditor_h_
  2. #define _OptimalCeilingTierEditor_h_
  3. /* OptimalCeilingTierEditor.h
  4. *
  5. * Copyright (C) 2015 David Weenink, 2017 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 "RealTierEditor.h"
  21. #include "OptimalCeilingTier.h"
  22. #include "Sound.h"
  23. Thing_define (OptimalCeilingTierEditor, RealTierEditor) {
  24. void v_createHelpMenuItems (EditorMenu menu)
  25. override;
  26. void v_play (double fromTime, double toTime)
  27. override;
  28. conststring32 v_quantityText ()
  29. override { return U"Frequency (Hz)"; }
  30. conststring32 v_rightTickUnits ()
  31. override { return U" Hz"; }
  32. double v_defaultYmin ()
  33. override { return 4000.0; }
  34. double v_defaultYmax ()
  35. override { return +6000.0; }
  36. conststring32 v_setRangeTitle ()
  37. override { return U"Set frequency range..."; }
  38. conststring32 v_defaultYminText ()
  39. override { return U"4000.0"; }
  40. conststring32 v_defaultYmaxText ()
  41. override { return U"6000.0"; }
  42. conststring32 v_yminText ()
  43. override { return U"Minimum frequency (Hz)"; }
  44. conststring32 v_ymaxText ()
  45. override { return U"Maximum frequency (Hz)"; }
  46. };
  47. autoOptimalCeilingTierEditor OptimalCeilingTierEditor_create (conststring32 title,
  48. OptimalCeilingTier amplitude,
  49. Sound sound, // may be null
  50. bool ownSound);
  51. /* End of file OptimalCeilingTierEditor.h */
  52. #endif