556 |
if (piChannelIDs == NULL) { |
if (piChannelIDs == NULL) { |
557 |
appendMessagesClient("lscp_list_channels"); |
appendMessagesClient("lscp_list_channels"); |
558 |
appendMessagesError(tr("Could not get current list of channels.\n\nSorry.")); |
appendMessagesError(tr("Could not get current list of channels.\n\nSorry.")); |
559 |
} |
} else { |
560 |
|
// Try to (re)create each channel. |
561 |
// Try to (re)create each channel. |
m_pWorkspace->setUpdatesEnabled(false); |
562 |
m_pWorkspace->setUpdatesEnabled(false); |
for (int iChannel = 0; piChannelIDs[iChannel] >= 0; iChannel++) { |
563 |
for (int iChannel = 0; piChannelIDs[iChannel] >= 0; iChannel++) { |
createChannelStrip(new qsamplerChannel(this, piChannelIDs[iChannel])); |
564 |
createChannelStrip(new qsamplerChannel(this, piChannelIDs[iChannel])); |
QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput); |
565 |
QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput); |
} |
566 |
} |
m_pWorkspace->setUpdatesEnabled(true); |
567 |
m_pWorkspace->setUpdatesEnabled(true); |
} |
568 |
|
|
569 |
// Save as default session directory. |
// Save as default session directory. |
570 |
if (m_pOptions) |
if (m_pOptions) |
959 |
int bOldMessagesLimit = m_pOptions->bMessagesLimit; |
int bOldMessagesLimit = m_pOptions->bMessagesLimit; |
960 |
int iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines; |
int iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines; |
961 |
bool bOldCompletePath = m_pOptions->bCompletePath; |
bool bOldCompletePath = m_pOptions->bCompletePath; |
962 |
|
bool bOldInstrumentNames = m_pOptions->bInstrumentNames; |
963 |
int iOldMaxRecentFiles = m_pOptions->iMaxRecentFiles; |
int iOldMaxRecentFiles = m_pOptions->iMaxRecentFiles; |
964 |
// Load the current setup settings. |
// Load the current setup settings. |
965 |
pOptionsForm->setup(m_pOptions); |
pOptionsForm->setup(m_pOptions); |
978 |
(!bOldCompletePath && m_pOptions->bCompletePath) || |
(!bOldCompletePath && m_pOptions->bCompletePath) || |
979 |
(iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles)) |
(iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles)) |
980 |
updateRecentFilesMenu(); |
updateRecentFilesMenu(); |
981 |
|
if (( bOldInstrumentNames && !m_pOptions->bInstrumentNames) || |
982 |
|
(!bOldInstrumentNames && m_pOptions->bInstrumentNames)) |
983 |
|
updateInstrumentNames(); |
984 |
if (( bOldDisplayEffect && !m_pOptions->bDisplayEffect) || |
if (( bOldDisplayEffect && !m_pOptions->bDisplayEffect) || |
985 |
(!bOldDisplayEffect && m_pOptions->bDisplayEffect)) |
(!bOldDisplayEffect && m_pOptions->bDisplayEffect)) |
986 |
updateDisplayEffect(); |
updateDisplayEffect(); |
1091 |
sText += tr("GIG (libgig) file support disabled."); |
sText += tr("GIG (libgig) file support disabled."); |
1092 |
sText += "</font></small><br />"; |
sText += "</font></small><br />"; |
1093 |
#endif |
#endif |
1094 |
|
#ifndef CONFIG_INSTRUMENT_NAME |
1095 |
|
sText += "<small><font color=\"red\">"; |
1096 |
|
sText += tr("LSCP (liblscp) instrument_name support disabled."); |
1097 |
|
sText += "</font></small><br />"; |
1098 |
|
#endif |
1099 |
sText += "<br />\n"; |
sText += "<br />\n"; |
1100 |
sText += tr("Using") + ": "; |
sText += tr("Using") + ": "; |
1101 |
sText += ::lscp_client_package(); |
sText += ::lscp_client_package(); |
1229 |
} |
} |
1230 |
|
|
1231 |
|
|
1232 |
|
// Force update of the channels instrument names mode. |
1233 |
|
void qsamplerMainForm::updateInstrumentNames (void) |
1234 |
|
{ |
1235 |
|
// Full channel list update... |
1236 |
|
QWidgetList wlist = m_pWorkspace->windowList(); |
1237 |
|
if (wlist.isEmpty()) |
1238 |
|
return; |
1239 |
|
|
1240 |
|
m_pWorkspace->setUpdatesEnabled(false); |
1241 |
|
for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) { |
1242 |
|
qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel); |
1243 |
|
if (pChannelStrip) |
1244 |
|
pChannelStrip->updateInstrumentName(true); |
1245 |
|
} |
1246 |
|
m_pWorkspace->setUpdatesEnabled(true); |
1247 |
|
} |
1248 |
|
|
1249 |
|
|
1250 |
// Force update of the channels display font. |
// Force update of the channels display font. |
1251 |
void qsamplerMainForm::updateDisplayFont (void) |
void qsamplerMainForm::updateDisplayFont (void) |
1252 |
{ |
{ |