--- qsampler/trunk/src/qsamplerDeviceForm.ui.h 2005/04/01 00:34:58 490 +++ qsampler/trunk/src/qsamplerDeviceForm.ui.h 2005/06/09 09:28:20 622 @@ -360,6 +360,7 @@ DeviceParamTable->setNumRows(0); DevicePortComboBox->clear(); DevicePortParamTable->setNumRows(0); + DevicePortTextLabel->setEnabled(false); DevicePortComboBox->setEnabled(false); DevicePortParamTable->setEnabled(false); stabilizeForm(); @@ -390,9 +391,20 @@ // Fill the device parameter table... DeviceParamTable->refresh(device.params(), m_bNewDevice); // And now the device port/channel parameter table... + switch (device.deviceType()) { + case qsamplerDevice::Audio: + DevicePortTextLabel->setText(tr("Ch&annel:")); + break; + case qsamplerDevice::Midi: + DevicePortTextLabel->setText(tr("P&ort:")); + break; + case qsamplerDevice::None: + break; + } DevicePortComboBox->clear(); DevicePortParamTable->setNumRows(0); if (m_bNewDevice) { + DevicePortTextLabel->setEnabled(false); DevicePortComboBox->setEnabled(false); DevicePortParamTable->setEnabled(false); } else { @@ -415,6 +427,7 @@ + ' ' + pPort->portName()); } bool bEnabled = (ports.count() > 0); + DevicePortTextLabel->setEnabled(bEnabled); DevicePortComboBox->setEnabled(bEnabled); DevicePortParamTable->setEnabled(bEnabled); }