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(); |
1224 |
} |
} |
1225 |
|
|
1226 |
|
|
1227 |
|
// Force update of the channels instrument names mode. |
1228 |
|
void qsamplerMainForm::updateInstrumentNames (void) |
1229 |
|
{ |
1230 |
|
// Full channel list update... |
1231 |
|
QWidgetList wlist = m_pWorkspace->windowList(); |
1232 |
|
if (wlist.isEmpty()) |
1233 |
|
return; |
1234 |
|
|
1235 |
|
m_pWorkspace->setUpdatesEnabled(false); |
1236 |
|
for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) { |
1237 |
|
qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel); |
1238 |
|
if (pChannelStrip) |
1239 |
|
pChannelStrip->updateInstrumentName(true); |
1240 |
|
} |
1241 |
|
m_pWorkspace->setUpdatesEnabled(true); |
1242 |
|
} |
1243 |
|
|
1244 |
|
|
1245 |
// Force update of the channels display font. |
// Force update of the channels display font. |
1246 |
void qsamplerMainForm::updateDisplayFont (void) |
void qsamplerMainForm::updateDisplayFont (void) |
1247 |
{ |
{ |