366 |
} |
} |
367 |
|
|
368 |
|
|
369 |
|
// parameter value change slot. |
370 |
|
void qsamplerDeviceForm::changeValue ( int iRow, int iCol ) |
371 |
|
{ |
372 |
|
// |
373 |
|
// TODO: Device parameter change... |
374 |
|
// |
375 |
|
m_pMainForm->appendMessages("qsamplerDeviceForm::changeValue()"); |
376 |
|
|
377 |
|
QListViewItem *pItem = DeviceListView->selectedItem(); |
378 |
|
if (pItem == NULL || pItem->rtti() != QSAMPLER_DEVICE_ITEM) |
379 |
|
return; |
380 |
|
|
381 |
|
qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device(); |
382 |
|
|
383 |
|
// Table 3rd column has the parameter name; |
384 |
|
qsamplerDeviceParamMap& params = device.params(); |
385 |
|
QString sParam = DeviceParamTable->text(iRow, 2); |
386 |
|
params[sParam].value = DeviceParamTable->text(iRow, iCol); |
387 |
|
|
388 |
|
m_iDirtyCount++; |
389 |
|
stabilizeForm(); |
390 |
|
} |
391 |
|
|
392 |
|
|
393 |
// Stabilize current form state. |
// Stabilize current form state. |
394 |
void qsamplerDeviceForm::stabilizeForm (void) |
void qsamplerDeviceForm::stabilizeForm (void) |
395 |
{ |
{ |