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.

44 lines
1.2KB

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. Presets.h - Presets 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 PRESETS_H
  12. #define PRESETS_H
  13. #include "../globals.h"
  14. class PresetsStore;
  15. /**Presets and Clipboard management*/
  16. class Presets
  17. {
  18. friend class PresetsArray;
  19. public:
  20. Presets();
  21. virtual ~Presets();
  22. virtual void copy(PresetsStore &ps, const char *name); /**<if name==NULL, the clipboard is used*/
  23. //virtual void paste(PresetsStore &ps, int npreset); //npreset==0 for clipboard
  24. virtual bool checkclipboardtype(PresetsStore &ps);
  25. void deletepreset(PresetsStore &ps, int npreset);
  26. char type[MAX_PRESETTYPE_SIZE];
  27. //void setelement(int n);
  28. protected:
  29. void setpresettype(const char *type);
  30. private:
  31. virtual void add2XML(XMLwrapper& xml) = 0;
  32. //virtual void getfromXML(XMLwrapper *xml) = 0;
  33. //virtual void defaults() = 0;
  34. };
  35. #endif