360 |
DeviceParamTable->setNumRows(0); |
DeviceParamTable->setNumRows(0); |
361 |
DevicePortComboBox->clear(); |
DevicePortComboBox->clear(); |
362 |
DevicePortParamTable->setNumRows(0); |
DevicePortParamTable->setNumRows(0); |
363 |
|
DevicePortTextLabel->setEnabled(false); |
364 |
DevicePortComboBox->setEnabled(false); |
DevicePortComboBox->setEnabled(false); |
365 |
DevicePortParamTable->setEnabled(false); |
DevicePortParamTable->setEnabled(false); |
366 |
stabilizeForm(); |
stabilizeForm(); |
391 |
// Fill the device parameter table... |
// Fill the device parameter table... |
392 |
DeviceParamTable->refresh(device.params(), m_bNewDevice); |
DeviceParamTable->refresh(device.params(), m_bNewDevice); |
393 |
// And now the device port/channel parameter table... |
// And now the device port/channel parameter table... |
394 |
|
switch (device.deviceType()) { |
395 |
|
case qsamplerDevice::Audio: |
396 |
|
DevicePortTextLabel->setText(tr("Ch&annel:")); |
397 |
|
break; |
398 |
|
case qsamplerDevice::Midi: |
399 |
|
DevicePortTextLabel->setText(tr("P&ort:")); |
400 |
|
break; |
401 |
|
case qsamplerDevice::None: |
402 |
|
break; |
403 |
|
} |
404 |
DevicePortComboBox->clear(); |
DevicePortComboBox->clear(); |
405 |
DevicePortParamTable->setNumRows(0); |
DevicePortParamTable->setNumRows(0); |
406 |
if (m_bNewDevice) { |
if (m_bNewDevice) { |
407 |
|
DevicePortTextLabel->setEnabled(false); |
408 |
DevicePortComboBox->setEnabled(false); |
DevicePortComboBox->setEnabled(false); |
409 |
DevicePortParamTable->setEnabled(false); |
DevicePortParamTable->setEnabled(false); |
410 |
} else { |
} else { |
427 |
+ ' ' + pPort->portName()); |
+ ' ' + pPort->portName()); |
428 |
} |
} |
429 |
bool bEnabled = (ports.count() > 0); |
bool bEnabled = (ports.count() > 0); |
430 |
|
DevicePortTextLabel->setEnabled(bEnabled); |
431 |
DevicePortComboBox->setEnabled(bEnabled); |
DevicePortComboBox->setEnabled(bEnabled); |
432 |
DevicePortParamTable->setEnabled(bEnabled); |
DevicePortParamTable->setEnabled(bEnabled); |
433 |
} |
} |