2 |
// |
// |
3 |
// ui.h extension file, included from the uic-generated form implementation. |
// ui.h extension file, included from the uic-generated form implementation. |
4 |
/**************************************************************************** |
/**************************************************************************** |
5 |
Copyright (C) 2004, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2005, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
205 |
// We got options? |
// We got options? |
206 |
m_pOptions = pOptions; |
m_pOptions = pOptions; |
207 |
|
|
208 |
|
// Set initial instrument name display mode. |
209 |
|
qsamplerChannel::setInstrumentNames(m_pOptions->bInstrumentNames); |
210 |
|
|
211 |
// Some child forms are to be created right now. |
// Some child forms are to be created right now. |
212 |
m_pMessages = new qsamplerMessages(this); |
m_pMessages = new qsamplerMessages(this); |
213 |
// Set message defaults... |
// Set message defaults... |
963 |
int iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines; |
int iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines; |
964 |
bool bOldCompletePath = m_pOptions->bCompletePath; |
bool bOldCompletePath = m_pOptions->bCompletePath; |
965 |
int iOldMaxRecentFiles = m_pOptions->iMaxRecentFiles; |
int iOldMaxRecentFiles = m_pOptions->iMaxRecentFiles; |
966 |
|
bool bOldInstrumentNames = m_pOptions->bInstrumentNames; |
967 |
// Load the current setup settings. |
// Load the current setup settings. |
968 |
pOptionsForm->setup(m_pOptions); |
pOptionsForm->setup(m_pOptions); |
969 |
// Show the setup dialog... |
// Show the setup dialog... |
977 |
updateMessagesCapture(); |
updateMessagesCapture(); |
978 |
} |
} |
979 |
// Check wheather something immediate has changed. |
// Check wheather something immediate has changed. |
980 |
|
if (( bOldInstrumentNames && !m_pOptions->bInstrumentNames) || |
981 |
|
(!bOldInstrumentNames && m_pOptions->bInstrumentNames)) |
982 |
|
qsamplerChannel::setInstrumentNames(m_pOptions->bInstrumentNames); |
983 |
if (( bOldCompletePath && !m_pOptions->bCompletePath) || |
if (( bOldCompletePath && !m_pOptions->bCompletePath) || |
984 |
(!bOldCompletePath && m_pOptions->bCompletePath) || |
(!bOldCompletePath && m_pOptions->bCompletePath) || |
985 |
(iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles)) |
(iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles)) |