1 |
#ifndef QSAMPLER_DEVICE_FORM_H |
// qsamplerDeviceForm.h |
2 |
#define QSAMPLER_DEVICE_FORM_H |
// |
3 |
|
/**************************************************************************** |
4 |
|
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
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 along |
18 |
|
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
|
21 |
|
*****************************************************************************/ |
22 |
|
|
23 |
|
#ifndef __qsamplerDeviceForm_h |
24 |
|
#define __qsamplerDeviceForm_h |
25 |
|
|
26 |
#include "ui_qsamplerDeviceForm.h" |
#include "ui_qsamplerDeviceForm.h" |
27 |
|
|
28 |
#include "qsamplerMainForm.h" |
#include "qsamplerDevice.h" |
29 |
|
|
30 |
namespace QSampler { |
namespace QSampler { |
31 |
|
|
54 |
void selectDevicePort(int iPort); |
void selectDevicePort(int iPort); |
55 |
void changeDeviceParam(int iRow, int iCol); |
void changeDeviceParam(int iRow, int iCol); |
56 |
void changeDevicePortParam(int iRow, int iCol); |
void changeDevicePortParam(int iRow, int iCol); |
57 |
void contextMenu(QTreeWidgetItem* item, const QPoint&, int); |
void deviceListViewContextMenu(const QPoint& pos); |
58 |
void stabilizeForm(); |
void stabilizeForm(); |
59 |
|
void updateCellRenderers(); |
60 |
|
void updateCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); |
61 |
|
void updatePortCellRenderers(); |
62 |
|
void updatePortCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); |
63 |
|
|
64 |
protected: |
protected: |
65 |
MainForm *m_pMainForm; |
MainForm *m_pMainForm; |
80 |
DeviceParamModel deviceParamModel; |
DeviceParamModel deviceParamModel; |
81 |
DeviceParamDelegate deviceParamDelegate; |
DeviceParamDelegate deviceParamDelegate; |
82 |
|
|
83 |
DeviceParamModel devicePortParamModel; |
PortParamModel devicePortParamModel; |
84 |
DeviceParamDelegate devicePortParamDelegate; |
DeviceParamDelegate devicePortParamDelegate; |
85 |
}; |
}; |
86 |
|
|
87 |
} // namespace QSampler |
} // namespace QSampler |
88 |
|
|
89 |
#endif // QSAMPLER_DEVICE_FORM_H |
#endif // __qsamplerDeviceForm_h |
90 |
|
|
91 |
|
|
92 |
|
// end of qsamplerDeviceForm.h |