87 |
EngineNameComboBox->insertItem(ppszEngines[iEngine]); |
EngineNameComboBox->insertItem(ppszEngines[iEngine]); |
88 |
} |
} |
89 |
else m_pChannel->appendMessagesClient("lscp_get_available_engines"); |
else m_pChannel->appendMessagesClient("lscp_get_available_engines"); |
90 |
/* |
|
91 |
// Populate Audio output type list. |
// Populate Audio output type list. |
92 |
const char **ppszAudioDrivers = ::lscp_get_available_audio_drivers(m_pChannel->client()); |
const char **ppszAudioDrivers = ::lscp_get_available_audio_drivers(m_pChannel->client()); |
93 |
if (ppszAudioDrivers) { |
if (ppszAudioDrivers) { |
105 |
MidiDriverComboBox->insertItem(ppszMidiDrivers[iMidiDriver]); |
MidiDriverComboBox->insertItem(ppszMidiDrivers[iMidiDriver]); |
106 |
} |
} |
107 |
else m_pChannel->appendMessagesClient("lscp_get_available_midi_drivers"); |
else m_pChannel->appendMessagesClient("lscp_get_available_midi_drivers"); |
108 |
*/ |
|
109 |
// Read proper channel information, |
// Read proper channel information, |
110 |
// and populate the channel form fields. |
// and populate the channel form fields. |
111 |
|
|
112 |
// Engine name... |
// Engine name... |
113 |
const QString& sEngineName = pChannel->engineName(); |
QString sEngineName = pChannel->engineName(); |
114 |
if (!sEngineName.isEmpty()) { |
if (sEngineName.isEmpty()) |
115 |
if (EngineNameComboBox->listBox()->findItem(sEngineName, Qt::ExactMatch) == NULL) |
sEngineName = tr("(No engine)"); |
116 |
EngineNameComboBox->insertItem(sEngineName); |
if (EngineNameComboBox->listBox()->findItem(sEngineName, Qt::ExactMatch) == NULL) |
117 |
EngineNameComboBox->setCurrentText(sEngineName); |
EngineNameComboBox->insertItem(sEngineName); |
118 |
} |
EngineNameComboBox->setCurrentText(sEngineName); |
119 |
// Instrument filename and index... |
// Instrument filename and index... |
120 |
InstrumentFileComboBox->setCurrentText(pChannel->instrumentFile()); |
QString sInstrumentFile = pChannel->instrumentFile(); |
121 |
|
if (sInstrumentFile.isEmpty()) |
122 |
|
sInstrumentFile = tr("(No instrument)"); |
123 |
|
InstrumentFileComboBox->setCurrentText(sInstrumentFile); |
124 |
InstrumentNrSpinBox->setValue(pChannel->instrumentNr()); |
InstrumentNrSpinBox->setValue(pChannel->instrumentNr()); |
125 |
// MIDI input... |
// MIDI input... |
126 |
const QString& sMidiDriver = pChannel->midiDriver(); |
const QString& sMidiDriver = pChannel->midiDriver(); |
268 |
// Stabilize current form state. |
// Stabilize current form state. |
269 |
void qsamplerChannelForm::stabilizeForm (void) |
void qsamplerChannelForm::stabilizeForm (void) |
270 |
{ |
{ |
271 |
const QString sFilename = InstrumentFileComboBox->currentText(); |
const QString& sFilename = InstrumentFileComboBox->currentText(); |
272 |
OkPushButton->setEnabled(m_iDirtyCount > 0 && !sFilename.isEmpty() && QFileInfo(sFilename).exists()); |
OkPushButton->setEnabled(m_iDirtyCount > 0 && !sFilename.isEmpty() && QFileInfo(sFilename).exists()); |
273 |
} |
} |
274 |
|
|