32 |
|
|
33 |
namespace QSampler { |
namespace QSampler { |
34 |
|
|
35 |
class ChannelForm : public QDialog { |
class ChannelForm : public QDialog |
36 |
Q_OBJECT |
{ |
37 |
|
Q_OBJECT |
38 |
|
|
39 |
public: |
public: |
40 |
|
|
41 |
ChannelForm(QWidget* parent = 0); |
ChannelForm(QWidget* parent = 0); |
42 |
~ChannelForm(); |
~ChannelForm(); |
43 |
|
|
44 |
void setup(qsamplerChannel* pChannel); |
void setup(qsamplerChannel* pChannel); |
45 |
void setupDevice(qsamplerDevice* pDevice, qsamplerDevice::qsamplerDeviceType deviceTypeMode, const QString& sDriverName); |
|
46 |
|
void setupDevice(qsamplerDevice* pDevice, |
47 |
|
qsamplerDevice::DeviceType deviceTypeMode, |
48 |
|
const QString& sDriverName); |
49 |
|
|
50 |
void selectMidiDriverItem(const QString& sMidiDriver); |
void selectMidiDriverItem(const QString& sMidiDriver); |
51 |
void selectMidiDeviceItem(int iMidiItem); |
void selectMidiDeviceItem(int iMidiItem); |
52 |
void selectAudioDriverItem(const QString& sAudioDriver); |
void selectAudioDriverItem(const QString& sAudioDriver); |
53 |
void selectAudioDeviceItem(int iAudioItem); |
void selectAudioDeviceItem(int iAudioItem); |
54 |
|
|
|
protected: |
|
|
qsamplerChannel* m_pChannel; |
|
|
int m_iDirtySetup; |
|
|
int m_iDirtyCount; |
|
|
QList<qsamplerDevice *> m_audioDevices; |
|
|
QList<qsamplerDevice *> m_midiDevices; |
|
|
DeviceForm* m_pDeviceForm; |
|
|
ChannelRoutingModel routingModel; |
|
|
ChannelRoutingDelegate routingDelegate; |
|
|
|
|
55 |
protected slots: |
protected slots: |
56 |
|
|
57 |
void accept(); |
void accept(); |
58 |
void reject(); |
void reject(); |
59 |
void openInstrumentFile(); |
void openInstrumentFile(); |
67 |
void updateDevices(); |
void updateDevices(); |
68 |
void optionsChanged(); |
void optionsChanged(); |
69 |
void stabilizeForm(); |
void stabilizeForm(); |
70 |
|
|
71 |
void updateTableCellRenderers(); |
void updateTableCellRenderers(); |
72 |
void updateTableCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); |
void updateTableCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); |
73 |
|
|
74 |
private: |
private: |
75 |
Ui::qsamplerChannelForm ui; |
|
76 |
|
Ui::qsamplerChannelForm m_ui; |
77 |
|
|
78 |
|
qsamplerChannel* m_pChannel; |
79 |
|
int m_iDirtySetup; |
80 |
|
int m_iDirtyCount; |
81 |
|
QList<qsamplerDevice *> m_audioDevices; |
82 |
|
QList<qsamplerDevice *> m_midiDevices; |
83 |
|
DeviceForm* m_pDeviceForm; |
84 |
|
ChannelRoutingModel m_routingModel; |
85 |
|
ChannelRoutingDelegate m_routingDelegate; |
86 |
}; |
}; |
87 |
|
|
88 |
} // namespace QSampler |
} // namespace QSampler |