1
//=========================================================
6
// (C) Copyright 2002 Jotsif Lindman H�rnlund (jotsif@linux.nu)
8
// This program is free software; you can redistribute it and/or
9
// modify it under the terms of the GNU General Public License
10
// as published by the Free Software Foundation; either version 2
11
// of the License, or (at your option) any later version.
13
// This program is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
18
// You should have received a copy of the GNU General Public License
19
// along with this program; if not, write to the Free Software
20
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21
// 02111-1307, USA or point your web browser to http://www.gnu.org.
22
//=========================================================
27
#include "vamguibase.h"
28
#include "driver/midirawin.h"
39
enum EditorType { SLIDER, COMBOBOX, SWITCH };
44
SynthGuiCtrl(QWidget* w, QWidget* l, const EditorType t)
45
: editor(w), label(l), type(t) {}
49
//---------------------------------------------------------
51
//---------------------------------------------------------
53
class VAMGui : public VAMGuiBase, public MidiRawIn {
59
SynthGuiCtrl dctrl[NUM_CONTROLLER];
60
QString * presetFileName;
63
void sendControllerChange(int ctrl, int val);
65
void setParam(int, int);
66
void setPreset(Preset* preset);
67
void addNewPreset(const QString&);
68
void deleteNamedPreset(const QString&);
69
void activatePreset(Preset* preset);
72
void closeEvent(QCloseEvent*);
74
void ctrlChanged(int idx);
76
void presetClicked(QListBoxItem*);
78
void loadPresetsPressed();
79
void savePresetsPressed();
80
void deletePresetPressed();
81
void doSavePresets(const QString&, bool);
82
void savePresetsToFilePressed();
85
virtual void sysexReceived(const unsigned char*, int);
86
virtual void eventReceived(int, int, int);
92
#endif /* __VAMGUI_H */