54 |
|
|
55 |
m_pDeviceForm = NULL; |
m_pDeviceForm = NULL; |
56 |
|
|
57 |
|
int iRowHeight = m_ui.AudioRoutingTable->fontMetrics().height() + 4; |
58 |
|
m_ui.AudioRoutingTable->verticalHeader()->setDefaultSectionSize(iRowHeight); |
59 |
|
m_ui.AudioRoutingTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); |
60 |
|
|
61 |
m_ui.AudioRoutingTable->setModel(&m_routingModel); |
m_ui.AudioRoutingTable->setModel(&m_routingModel); |
62 |
m_ui.AudioRoutingTable->setItemDelegate(&m_routingDelegate); |
m_ui.AudioRoutingTable->setItemDelegate(&m_routingDelegate); |
63 |
m_ui.AudioRoutingTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch); |
m_ui.AudioRoutingTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch); |
300 |
// if we're editing an existing sampler channel... |
// if we're editing an existing sampler channel... |
301 |
m_ui.AudioRoutingTable->setVisible(!bNew); |
m_ui.AudioRoutingTable->setVisible(!bNew); |
302 |
|
|
303 |
|
const QString sInstrumentNrToolTip = |
304 |
|
(pOptions->bInstrumentNames) ? |
305 |
|
"Select an instrument of the file" : |
306 |
|
"You might want to enable instrument name retrieval in the " |
307 |
|
"settings dialog"; |
308 |
|
m_ui.InstrumentNrComboBox->setToolTip( |
309 |
|
QObject::tr(sInstrumentNrToolTip.toUtf8().data()) |
310 |
|
); |
311 |
|
|
312 |
// As convenient, make it ready on stabilizeForm() for |
// As convenient, make it ready on stabilizeForm() for |
313 |
// prompt acceptance, if we got the minimum required... |
// prompt acceptance, if we got the minimum required... |
314 |
/* if (sEngineName != qsamplerChannel::noEngineName() && |
/* if (sEngineName != qsamplerChannel::noEngineName() && |
510 |
qsamplerDevice::DeviceType deviceTypeMode, |
qsamplerDevice::DeviceType deviceTypeMode, |
511 |
const QString& sDriverName ) |
const QString& sDriverName ) |
512 |
{ |
{ |
|
if (pDevice == NULL) |
|
|
return; |
|
|
|
|
513 |
MainForm *pMainForm = MainForm::getInstance(); |
MainForm *pMainForm = MainForm::getInstance(); |
514 |
if (pMainForm == NULL) |
if (pMainForm == NULL) |
515 |
return; |
return; |