NoulliGridEditor.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef _NoulliGridEditor_h_
  2. #define _NoulliGridEditor_h_
  3. /* NoulliGridEditor.h
  4. *
  5. * Copyright (C) 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 "TimeSoundEditor.h"
  21. #include "NoulliGrid.h"
  22. #include "NoulliGridEditor_enums.h"
  23. Thing_define (NoulliGridEditor, TimeSoundEditor) {
  24. void v_draw ()
  25. override;
  26. void v_play (double tmin, double tmax)
  27. override;
  28. void v_prefs_addFields (EditorCommand cmd)
  29. override;
  30. void v_prefs_setValues (EditorCommand cmd)
  31. override;
  32. void v_prefs_getValues (EditorCommand cmd)
  33. override;
  34. void v_drawSelectionViewer ()
  35. override;
  36. void v_drawRealTimeSelectionViewer (int phase, double time)
  37. override;
  38. #include "NoulliGridEditor_prefs.h"
  39. };
  40. void NoulliGridEditor_init (NoulliGridEditor me, conststring32 title, NoulliGrid data, Sound sound, bool ownSound);
  41. autoNoulliGridEditor NoulliGridEditor_create (conststring32 title, NoulliGrid grid, Sound sound, bool ownSound);
  42. /*
  43. `sound` may be null;
  44. if `ownSound` is `true`, the editor will contain a deep copy of the Sound,
  45. which the editor will destroy when the editor is destroyed.
  46. */
  47. /* End of file NoulliGridEditor.h */
  48. #endif