ERPWindow.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _ERPWindow_h_
  2. #define _ERPWindow_h_
  3. /* ERPWindow.h
  4. *
  5. * Copyright (C) 2012-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 "SoundEditor.h"
  21. #include "ERP.h"
  22. Thing_define (ERPWindow, SoundEditor) {
  23. conststring32 v_getChannelName (integer channelNumber)
  24. override {
  25. ERP erp = (ERP) our data;
  26. return erp -> channelNames [channelNumber].get();
  27. }
  28. void v_drawSelectionViewer ()
  29. override;
  30. bool v_hasPitch ()
  31. override { return false; }
  32. bool v_hasIntensity ()
  33. override { return false; }
  34. bool v_hasFormants ()
  35. override { return false; }
  36. bool v_hasPulses ()
  37. override { return false; }
  38. void v_prefs_addFields (EditorCommand cmd)
  39. override;
  40. void v_prefs_setValues (EditorCommand cmd)
  41. override;
  42. void v_prefs_getValues (EditorCommand cmd)
  43. override;
  44. #include "ERPWindow_prefs.h"
  45. };
  46. /**
  47. Create an ERPWindow.
  48. */
  49. autoERPWindow ERPWindow_create (conststring32 title, ERP data);
  50. /* End of file ERPWindow.h */
  51. #endif