380 |
} |
} |
381 |
|
|
382 |
// Set some proper display values. |
// Set some proper display values. |
383 |
|
const QString sIndent = " "; |
384 |
|
|
385 |
// Engine name... |
// Engine name... |
386 |
if (m_sEngineName.isEmpty()) |
if (m_sEngineName.isEmpty()) |
387 |
EngineNameTextLabel->setText(tr("(No engine)")); |
EngineNameTextLabel->setText(sIndent + tr("(No engine)")); |
388 |
else |
else |
389 |
EngineNameTextLabel->setText(m_sEngineName); |
EngineNameTextLabel->setText(sIndent + m_sEngineName); |
390 |
|
|
391 |
// Instrument name... |
// Instrument name... |
392 |
if (m_sInstrumentFile.isEmpty()) |
if (m_sInstrumentFile.isEmpty()) |
393 |
InstrumentNameTextLabel->setText(tr("(No instrument)")); |
InstrumentNameTextLabel->setText(sIndent + tr("(No instrument)")); |
394 |
else |
else |
395 |
InstrumentNameTextLabel->setText(QString("%1 [%2]") |
InstrumentNameTextLabel->setText(sIndent + QString("%1 [%2]") |
396 |
.arg(QFileInfo(m_sInstrumentFile).fileName()).arg(m_iInstrumentNr)); |
.arg(QFileInfo(m_sInstrumentFile).fileName()).arg(m_iInstrumentNr)); |
397 |
|
|
398 |
// Instrument status... |
// Instrument status... |
405 |
} |
} |
406 |
|
|
407 |
// MIDI Port/Channel... |
// MIDI Port/Channel... |
408 |
MidiPortChannelTextLabel->setText(QString("%1 / %2") |
if (m_iMidiChannel > 0) |
409 |
.arg(m_iMidiPort).arg(m_iMidiChannel)); |
MidiPortChannelTextLabel->setText(QString("%1 / %2").arg(m_iMidiPort).arg(m_iMidiChannel)); |
410 |
|
else |
411 |
|
MidiPortChannelTextLabel->setText(QString("%1 / *").arg(m_iMidiPort)); |
412 |
|
|
413 |
// And update the both GUI volume elements. |
// And update the both GUI volume elements. |
414 |
updateChannelVolume(); |
updateChannelVolume(); |
415 |
} |
} |