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.

43 lines
1.3KB

  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. /**PresetsArray and Clipboard management*/
  16. class PresetsArray:public Presets
  17. {
  18. public:
  19. PresetsArray();
  20. virtual ~PresetsArray();
  21. void copy(PresetsStore &ps, const char *name); /**<if name==NULL, the clipboard is used*/
  22. void copy(PresetsStore &ps, int elm, const char *name); /**<if name==NULL, the clipboard is used*/
  23. //void paste(PresetsStore &ps, int npreset); //npreset==0 for clipboard
  24. //bool checkclipboardtype(PresetsStore &ps);
  25. //void setelement(int n);
  26. protected:
  27. void setpresettype(const char *type);
  28. private:
  29. virtual void add2XMLsection(XMLwrapper& xml, int n) = 0;
  30. //virtual void getfromXMLsection(XMLwrapper *xml, int n) = 0;
  31. //virtual void defaults() = 0;
  32. //virtual void defaults(int n) = 0;
  33. };
  34. #endif