--- qsampler/trunk/src/qsamplerDeviceForm.ui 2005/03/09 20:55:04 436 +++ qsampler/trunk/src/qsamplerDeviceForm.ui 2005/08/26 23:04:32 757 @@ -20,7 +20,7 @@ rncbc aka Rui Nuno Capela - + qsamplerDeviceForm @@ -28,8 +28,8 @@ 0 0 - 542 - 331 + 570 + 361 @@ -41,10 +41,10 @@ - Devices + Qsampler: Devices - qsamplerChannel.png + qsamplerDevice.png StrongFocus @@ -55,7 +55,7 @@ - splitter3 + splitter1 Horizontal @@ -91,92 +91,164 @@ Device list - + - layout5 + splitter2 - + + Vertical + + - unnamed + layout2 - + - DeviceNameTextLabel - - - - 7 - 5 - 0 - 0 - - - - - 10 - 1 - - - - 4 - - - Device name - - - - - DeviceParamTable - - - - 7 - 7 - 0 - 0 - - - - - 360 - 260 - + unnamed - - StrongFocus - - - Device parameters - - - - - DriverNameComboBox - - - Driver type name - - - + + + DeviceNameTextLabel + + + + 7 + 5 + 0 + 0 + + + + + 1 + + + + 4 + + + Device name + + + + + DriverNameTextLabel + + + Dri&ver: + + + AlignVCenter|AlignRight + + + DriverNameComboBox + + + + + DeviceParamTable + + + + 7 + 7 + 0 + 0 + + + + + 380 + 160 + + + + StrongFocus + + + Device parameters + + + + + DriverNameComboBox + + + Driver type name + + + + + + + layout3 + + - DriverNameTextLabel + unnamed - - Dri&ver: - - - AlignVCenter|AlignRight - - - DriverNameComboBox - - - + + + DevicePortParamTable + + + + 7 + 7 + 0 + 0 + + + + + 380 + 80 + + + + StrongFocus + + + Device port/channel parameters + + + + + DevicePortTextLabel + + + Channel: + + + AlignVCenter|AlignRight + + + DevicePortComboBox + + + + + DevicePortComboBox + + + + 7 + 0 + 0 + 0 + + + + Device port/channel + + + + - layout6 + layout1 @@ -192,8 +264,11 @@ Alt+R + + formRefresh.png + - refresh device list view + Refresh device list view @@ -223,8 +298,11 @@ Alt+C + + deviceCreate.png + - Create current device + Create device @@ -237,8 +315,11 @@ Alt+D + + deviceDelete.png + - Delete current device + Delete device @@ -251,6 +332,9 @@ + + formReject.png + Close this dialog @@ -290,6 +374,12 @@ selectDevice() + DeviceListView + contextMenuRequested(QListViewItem*,const QPoint&,int) + qsamplerDeviceForm + contextMenu(QListViewItem*,const QPoint&,int) + + RefreshDevicesPushButton clicked() qsamplerDeviceForm @@ -302,6 +392,12 @@ selectDriver(const QString&) + DevicePortComboBox + activated(int) + qsamplerDeviceForm + selectDevicePort(int) + + CreateDevicePushButton clicked() qsamplerDeviceForm @@ -325,6 +421,8 @@ RefreshDevicesPushButton DriverNameComboBox DeviceParamTable + DevicePortComboBox + DevicePortParamTable CreateDevicePushButton DeleteDevicePushButton ClosePushButton @@ -338,19 +436,28 @@ qsamplerMainForm *m_pMainForm; + lscp_client_t *m_pClient; int m_iDirtySetup; int m_iDirtyCount; - lscp_client_t *m_pClient; bool m_bNewDevice; qsamplerDevice::qsamplerDeviceType m_deviceType; + qsamplerDevice::qsamplerDeviceType m_deviceTypeMode; + qsamplerDeviceItem *m_pAudioItems; + qsamplerDeviceItem *m_pMidiItems; + + devicesChanged() + createDevice() deleteDevice() refreshDevices() selectDriver( const QString & sDriverName ) selectDevice() - changeValue( int iRow, int iCol ) + selectDevicePort( int iPort ) + changeDeviceParam( int iRow, int iCol ) + changeDevicePortParam( int iRow, int iCol ) + contextMenu(QListViewItem *, const QPoint&, int) stabilizeForm() @@ -358,11 +465,12 @@ destroy() showEvent( QShowEvent * pShowEvent ) hideEvent( QHideEvent * pHideEvent ) + setMainForm( qsamplerMainForm *pMainForm ) + setDeviceTypeMode( qsamplerDevice::qsamplerDeviceType deviceType ) setClient( lscp_client_t *pClient ) + setDriverName( const QString & sDriverName ) + setDevice( qsamplerDevice *pDevice ) - - qsamplerdeviceparamtable.h -