Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4KB

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. PresetsArray.h - PresetsArray and Clipboard management
  4. Copyright (C) 2002-2005 Nasca Octavian Paul
  5. Author: Nasca Octavian Paul
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10. */
  11. #ifndef PRESETSARRAY_H
  12. #define PRESETSARRAY_H
  13. #include "../Misc/XMLwrapper.h"
  14. #include "Presets.h"
  15. namespace zyncarla {
  16. /**PresetsArray and Clipboard management*/
  17. class PresetsArray:public Presets
  18. {
  19. public:
  20. PresetsArray();
  21. virtual ~PresetsArray();
  22. void copy(PresetsStore &ps, const char *name); /**<if name==NULL, the clipboard is used*/
  23. void copy(PresetsStore &ps, int elm, const char *name); /**<if name==NULL, the clipboard is used*/
  24. //void paste(PresetsStore &ps, int npreset); //npreset==0 for clipboard
  25. //bool checkclipboardtype(PresetsStore &ps);
  26. //void setelement(int n);
  27. protected:
  28. void setpresettype(const char *type);
  29. private:
  30. virtual void add2XMLsection(XMLwrapper& xml, int n) = 0;
  31. //virtual void getfromXMLsection(XMLwrapper *xml, int n) = 0;
  32. //virtual void defaults() = 0;
  33. //virtual void defaults(int n) = 0;
  34. };
  35. }
  36. #endif