--- qsampler/trunk/src/qsamplerDeviceForm.h 2007/11/22 02:48:41 1508 +++ qsampler/trunk/src/qsamplerDeviceForm.h 2007/11/22 11:10:44 1509 @@ -32,21 +32,21 @@ class MainForm; -class DeviceForm : public QDialog { -Q_OBJECT +class DeviceForm : public QDialog +{ + Q_OBJECT + public: - DeviceForm(QWidget* parent = 0, Qt::WFlags f = 0); + + DeviceForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0); ~DeviceForm(); - void showEvent(QShowEvent* pShowEvent); - void setDeviceTypeMode(qsamplerDevice::qsamplerDeviceType deviceType); + void setDeviceTypeMode(qsamplerDevice::DeviceType deviceType); void setDriverName(const QString& sDriverName); void setDevice(qsamplerDevice* pDevice); -signals: - void devicesChanged(); - public slots: + void createDevice(); void deleteDevice(); void refreshDevices(); @@ -62,27 +62,33 @@ void updatePortCellRenderers(); void updatePortCellRenderers(const QModelIndex& topLeft, const QModelIndex& bottomRight); +signals: + + void devicesChanged(); + 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; + void showEvent(QShowEvent* pShowEvent); void hideEvent(QHideEvent* pHideEvent); private: - Ui::qsamplerDeviceForm ui; - DeviceParamModel deviceParamModel; - DeviceParamDelegate deviceParamDelegate; + Ui::qsamplerDeviceForm m_ui; + + DeviceParamModel m_deviceParamModel; + DeviceParamDelegate m_deviceParamDelegate; + + PortParamModel m_devicePortParamModel; + DeviceParamDelegate m_devicePortParamDelegate; - PortParamModel devicePortParamModel; - DeviceParamDelegate devicePortParamDelegate; + lscp_client_t *m_pClient; + int m_iDirtySetup; + int m_iDirtyCount; + bool m_bNewDevice; + qsamplerDevice::DeviceType m_deviceType; + qsamplerDevice::DeviceType m_deviceTypeMode; + qsamplerDeviceItem *m_pAudioItems; + qsamplerDeviceItem *m_pMidiItems; }; } // namespace QSampler