--- qsampler/trunk/src/qsamplerDeviceForm.ui.h 2005/03/08 20:12:08 431 +++ qsampler/trunk/src/qsamplerDeviceForm.ui.h 2005/03/09 11:33:27 432 @@ -366,6 +366,30 @@ } +// parameter value change slot. +void qsamplerDeviceForm::changeValue ( int iRow, int iCol ) +{ + // + // TODO: Device parameter change... + // + m_pMainForm->appendMessages("qsamplerDeviceForm::changeValue()"); + + QListViewItem *pItem = DeviceListView->selectedItem(); + if (pItem == NULL || pItem->rtti() != QSAMPLER_DEVICE_ITEM) + return; + + qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device(); + + // Table 3rd column has the parameter name; + qsamplerDeviceParamMap& params = device.params(); + QString sParam = DeviceParamTable->text(iRow, 2); + params[sParam].value = DeviceParamTable->text(iRow, iCol); + + m_iDirtyCount++; + stabilizeForm(); +} + + // Stabilize current form state. void qsamplerDeviceForm::stabilizeForm (void) {