/[svn]/qsampler/trunk/src/qsamplerDeviceForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDeviceForm.ui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 621 by capela, Fri Apr 1 00:34:58 2005 UTC revision 622 by capela, Thu Jun 9 09:28:20 2005 UTC
# Line 360  void qsamplerDeviceForm::selectDevice (v Line 360  void qsamplerDeviceForm::selectDevice (v
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();
# Line 390  void qsamplerDeviceForm::selectDevice (v Line 391  void qsamplerDeviceForm::selectDevice (v
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 {
# Line 415  void qsamplerDeviceForm::selectDevice (v Line 427  void qsamplerDeviceForm::selectDevice (v
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          }          }

Legend:
Removed from v.621  
changed lines
  Added in v.622

  ViewVC Help
Powered by ViewVC