32 |
|
|
33 |
class MainForm; |
class MainForm; |
34 |
|
|
35 |
class DeviceForm : public QDialog { |
class DeviceForm : public QDialog |
36 |
Q_OBJECT |
{ |
37 |
|
Q_OBJECT |
38 |
|
|
39 |
public: |
public: |
40 |
DeviceForm(QWidget* parent = 0, Qt::WFlags f = 0); |
|
41 |
|
DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0); |
42 |
~DeviceForm(); |
~DeviceForm(); |
|
void showEvent(QShowEvent* pShowEvent); |
|
43 |
|
|
44 |
void setDeviceTypeMode(qsamplerDevice::qsamplerDeviceType deviceType); |
void setDeviceTypeMode(qsamplerDevice::DeviceType deviceType); |
45 |
void setDriverName(const QString& sDriverName); |
void setDriverName(const QString& sDriverName); |
46 |
void setDevice(qsamplerDevice* pDevice); |
void setDevice(qsamplerDevice* pDevice); |
47 |
|
|
|
signals: |
|
|
void devicesChanged(); |
|
|
|
|
48 |
public slots: |
public slots: |
49 |
|
|
50 |
void createDevice(); |
void createDevice(); |
51 |
void deleteDevice(); |
void deleteDevice(); |
52 |
void refreshDevices(); |
void refreshDevices(); |
62 |
void updatePortCellRenderers(); |
void updatePortCellRenderers(); |
63 |
void updatePortCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); |
void updatePortCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); |
64 |
|
|
65 |
|
signals: |
66 |
|
|
67 |
|
void devicesChanged(); |
68 |
|
|
69 |
protected: |
protected: |
|
MainForm *m_pMainForm; |
|
|
lscp_client_t *m_pClient; |
|
|
int m_iDirtySetup; |
|
|
int m_iDirtyCount; |
|
|
bool m_bNewDevice; |
|
|
qsamplerDevice::qsamplerDeviceType m_deviceType; |
|
|
qsamplerDevice::qsamplerDeviceType m_deviceTypeMode; |
|
|
qsamplerDeviceItem *m_pAudioItems; |
|
|
qsamplerDeviceItem *m_pMidiItems; |
|
70 |
|
|
71 |
|
void showEvent(QShowEvent* pShowEvent); |
72 |
void hideEvent(QHideEvent* pHideEvent); |
void hideEvent(QHideEvent* pHideEvent); |
73 |
|
|
74 |
private: |
private: |
|
Ui::qsamplerDeviceForm ui; |
|
75 |
|
|
76 |
DeviceParamModel deviceParamModel; |
Ui::qsamplerDeviceForm m_ui; |
77 |
DeviceParamDelegate deviceParamDelegate; |
|
78 |
|
DeviceParamModel m_deviceParamModel; |
79 |
|
DeviceParamDelegate m_deviceParamDelegate; |
80 |
|
|
81 |
|
PortParamModel m_devicePortParamModel; |
82 |
|
DeviceParamDelegate m_devicePortParamDelegate; |
83 |
|
|
84 |
PortParamModel devicePortParamModel; |
lscp_client_t *m_pClient; |
85 |
DeviceParamDelegate devicePortParamDelegate; |
int m_iDirtySetup; |
86 |
|
int m_iDirtyCount; |
87 |
|
bool m_bNewDevice; |
88 |
|
qsamplerDevice::DeviceType m_deviceType; |
89 |
|
qsamplerDevice::DeviceType m_deviceTypeMode; |
90 |
|
qsamplerDeviceItem *m_pAudioItems; |
91 |
|
qsamplerDeviceItem *m_pMidiItems; |
92 |
}; |
}; |
93 |
|
|
94 |
} // namespace QSampler |
} // namespace QSampler |