SoundEditor.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef _SoundEditor_h_
  2. #define _SoundEditor_h_
  3. /* SoundEditor.h
  4. *
  5. * Copyright (C) 1992-2011,2012,2015 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 "TimeSoundAnalysisEditor.h"
  21. Thing_define (SoundEditor, TimeSoundAnalysisEditor) {
  22. GuiMenuItem cutButton, copyButton, pasteButton, zeroButton, reverseButton;
  23. double maxBuffer;
  24. void v_createMenus ()
  25. override;
  26. void v_createHelpMenuItems (EditorMenu menu)
  27. override;
  28. void v_dataChanged ()
  29. override;
  30. void v_prepareDraw ()
  31. override;
  32. void v_draw ()
  33. override;
  34. void v_play (double tmin, double tmax)
  35. override;
  36. bool v_click (double xWC, double yWC, bool shiftKeyPressed)
  37. override;
  38. void v_highlightSelection (double left, double right, double bottom, double top)
  39. override;
  40. void v_unhighlightSelection (double left, double right, double bottom, double top)
  41. override;
  42. };
  43. void SoundEditor_init (SoundEditor me,
  44. conststring32 title,
  45. Sampled data
  46. );
  47. autoSoundEditor SoundEditor_create (
  48. conststring32 title,
  49. Sampled data // either a Sound or a LongSound
  50. );
  51. /* End of file SoundEditor.h */
  52. #endif