1 |
schoenebeck |
1667 |
// qsamplerInstrumentListForm.h |
2 |
|
|
// |
3 |
|
|
/**************************************************************************** |
4 |
|
|
Copyright (C) 2008, Christian Schoenebeck |
5 |
capela |
2074 |
Copyright (C) 2010, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
schoenebeck |
1667 |
|
7 |
|
|
This program is free software; you can redistribute it and/or |
8 |
|
|
modify it under the terms of the GNU General Public License |
9 |
|
|
as published by the Free Software Foundation; either version 2 |
10 |
|
|
of the License, or (at your option) any later version. |
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 for more details. |
16 |
|
|
|
17 |
|
|
You should have received a copy of the GNU General Public License |
18 |
|
|
along with this program; if not, write to the Free Software |
19 |
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 |
|
|
|
21 |
|
|
*****************************************************************************/ |
22 |
|
|
|
23 |
|
|
#ifndef __qsamplerChannelFxForm_h |
24 |
|
|
#define __qsamplerChannelFxForm_h |
25 |
|
|
|
26 |
|
|
#include "ui_qsamplerChannelFxForm.h" |
27 |
|
|
|
28 |
schoenebeck |
1668 |
#include "qsamplerChannel.h" |
29 |
|
|
#include "qsamplerDevice.h" |
30 |
|
|
|
31 |
schoenebeck |
1667 |
#include <QDialog> |
32 |
|
|
|
33 |
|
|
namespace QSampler { |
34 |
|
|
|
35 |
|
|
class ChannelFxForm : public QDialog { |
36 |
|
|
Q_OBJECT |
37 |
|
|
public: |
38 |
schoenebeck |
1668 |
ChannelFxForm(Channel* pSamplerChannel, QWidget* pParent = NULL, Qt::WindowFlags wflags = 0); |
39 |
schoenebeck |
1667 |
~ChannelFxForm(); |
40 |
|
|
|
41 |
|
|
protected slots: |
42 |
|
|
void onFxSendSelection(const QModelIndex& index); |
43 |
|
|
void onButtonClicked(QAbstractButton* button); |
44 |
|
|
void onCreateFxSend(); |
45 |
|
|
void onDestroyFxSend(); |
46 |
schoenebeck |
1668 |
void onDepthCtrlChanged(int iMidiCtrl); |
47 |
|
|
void onCurrentSendDepthChanged(int depthPercent); |
48 |
|
|
void onRoutingTableChanged(); |
49 |
|
|
void updateTableCellRenderers(); |
50 |
|
|
void updateTableCellRenderers(const QModelIndex& topLeft, |
51 |
|
|
const QModelIndex& bottomRight); |
52 |
schoenebeck |
1667 |
|
53 |
|
|
private: |
54 |
|
|
Ui::qsamplerChannelFxForm m_ui; |
55 |
|
|
|
56 |
schoenebeck |
1668 |
Channel* m_pSamplerChannel; |
57 |
|
|
//int m_SamplerChannelID; |
58 |
|
|
Device* m_pAudioDevice; |
59 |
schoenebeck |
1667 |
}; |
60 |
|
|
|
61 |
|
|
} // namespace QSampler |
62 |
|
|
|
63 |
|
|
#endif // __qsamplerChannelFxForm_h |
64 |
|
|
|
65 |
|
|
// end of qsamplerChannelFxForm.h |