LMMS
Loading...
Searching...
No Matches
Presets.h
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Presets.h - Presets and Clipboard management
5 Copyright (C) 2002-2005 Nasca Octavian Paul
6 Author: Nasca Octavian Paul
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of version 2 of the GNU General Public License
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License (version 2 or later) for more details.
16
17 You should have received a copy of the GNU General Public License (version 2)
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21*/
22
23#ifndef PRESETS_H
24#define PRESETS_H
25
26#include "../Misc/XMLwrapper.h"
27
28#include "PresetsStore.h"
29
32{
33 friend class PresetsArray;
34 public:
35 Presets();
36 virtual ~Presets();
37
38 virtual void copy(const char *name);
39 virtual void paste(int npreset); //npreset==0 for clipboard
40 virtual bool checkclipboardtype();
41 void deletepreset(int npreset);
42
44 //void setelement(int n);
45
46 void rescanforpresets();
47
48 protected:
49 void setpresettype(const char *type);
50 private:
51 virtual void add2XML(XMLwrapper *xml) = 0;
52 virtual void getfromXML(XMLwrapper *xml) = 0;
53 virtual void defaults() = 0;
54};
55
56#endif
#define copy(x)
Definition ADnoteParameters.cpp:1011
#define MAX_PRESETTYPE_SIZE
Definition globals.h:177
Presets()
Definition Presets.cpp:27
virtual void defaults()=0
char type[MAX_PRESETTYPE_SIZE]
Definition Presets.h:43
void deletepreset(int npreset)
Definition Presets.cpp:116
virtual void add2XML(XMLwrapper *xml)=0
void setpresettype(const char *type)
Definition Presets.cpp:35
virtual void getfromXML(XMLwrapper *xml)=0
void rescanforpresets()
Definition Presets.cpp:110
virtual void paste(int npreset)
Definition Presets.cpp:67
virtual bool checkclipboardtype()
Definition Presets.cpp:105
friend class PresetsArray
Definition Presets.h:33
virtual ~Presets()
Definition Presets.cpp:32
static const char * name
Definition pugl.h:1582