1 |
// qsamplerMainForm.cpp |
// qsamplerMainForm.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2008, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, 2008 Christian Schoenebeck |
Copyright (C) 2007, 2008 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
391 |
#else |
#else |
392 |
viewInstrumentsAction->setEnabled(false); |
viewInstrumentsAction->setEnabled(false); |
393 |
#endif |
#endif |
394 |
|
// Setup messages logging appropriately... |
395 |
|
m_pMessages->setLogging( |
396 |
|
m_pOptions->bMessagesLog, |
397 |
|
m_pOptions->sMessagesLogPath); |
398 |
// Set message defaults... |
// Set message defaults... |
399 |
updateMessagesFont(); |
updateMessagesFont(); |
400 |
updateMessagesLimit(); |
updateMessagesLimit(); |
1620 |
int iOldServerTimeout = m_pOptions->iServerTimeout; |
int iOldServerTimeout = m_pOptions->iServerTimeout; |
1621 |
bool bOldServerStart = m_pOptions->bServerStart; |
bool bOldServerStart = m_pOptions->bServerStart; |
1622 |
QString sOldServerCmdLine = m_pOptions->sServerCmdLine; |
QString sOldServerCmdLine = m_pOptions->sServerCmdLine; |
1623 |
|
bool bOldMessagesLog = m_pOptions->bMessagesLog; |
1624 |
|
QString sOldMessagesLogPath = m_pOptions->sMessagesLogPath; |
1625 |
QString sOldDisplayFont = m_pOptions->sDisplayFont; |
QString sOldDisplayFont = m_pOptions->sDisplayFont; |
1626 |
bool bOldDisplayEffect = m_pOptions->bDisplayEffect; |
bool bOldDisplayEffect = m_pOptions->bDisplayEffect; |
1627 |
int iOldMaxVolume = m_pOptions->iMaxVolume; |
int iOldMaxVolume = m_pOptions->iMaxVolume; |
1633 |
bool bOldCompletePath = m_pOptions->bCompletePath; |
bool bOldCompletePath = m_pOptions->bCompletePath; |
1634 |
bool bOldInstrumentNames = m_pOptions->bInstrumentNames; |
bool bOldInstrumentNames = m_pOptions->bInstrumentNames; |
1635 |
int iOldMaxRecentFiles = m_pOptions->iMaxRecentFiles; |
int iOldMaxRecentFiles = m_pOptions->iMaxRecentFiles; |
1636 |
|
int iOldBaseFontSize = m_pOptions->iBaseFontSize; |
1637 |
// Load the current setup settings. |
// Load the current setup settings. |
1638 |
pOptionsForm->setup(m_pOptions); |
pOptionsForm->setup(m_pOptions); |
1639 |
// Show the setup dialog... |
// Show the setup dialog... |
1642 |
if (( bOldStdoutCapture && !m_pOptions->bStdoutCapture) || |
if (( bOldStdoutCapture && !m_pOptions->bStdoutCapture) || |
1643 |
(!bOldStdoutCapture && m_pOptions->bStdoutCapture) || |
(!bOldStdoutCapture && m_pOptions->bStdoutCapture) || |
1644 |
( bOldKeepOnTop && !m_pOptions->bKeepOnTop) || |
( bOldKeepOnTop && !m_pOptions->bKeepOnTop) || |
1645 |
(!bOldKeepOnTop && m_pOptions->bKeepOnTop)) { |
(!bOldKeepOnTop && m_pOptions->bKeepOnTop) || |
1646 |
|
(iOldBaseFontSize != m_pOptions->iBaseFontSize)) { |
1647 |
QMessageBox::information(this, |
QMessageBox::information(this, |
1648 |
QSAMPLER_TITLE ": " + tr("Information"), |
QSAMPLER_TITLE ": " + tr("Information"), |
1649 |
tr("Some settings may be only effective\n" |
tr("Some settings may be only effective\n" |
1651 |
updateMessagesCapture(); |
updateMessagesCapture(); |
1652 |
} |
} |
1653 |
// Check wheather something immediate has changed. |
// Check wheather something immediate has changed. |
1654 |
|
if (( bOldMessagesLog && !m_pOptions->bMessagesLog) || |
1655 |
|
(!bOldMessagesLog && m_pOptions->bMessagesLog) || |
1656 |
|
(sOldMessagesLogPath != m_pOptions->sMessagesLogPath)) |
1657 |
|
m_pMessages->setLogging( |
1658 |
|
m_pOptions->bMessagesLog, m_pOptions->sMessagesLogPath); |
1659 |
if (( bOldCompletePath && !m_pOptions->bCompletePath) || |
if (( bOldCompletePath && !m_pOptions->bCompletePath) || |
1660 |
(!bOldCompletePath && m_pOptions->bCompletePath) || |
(!bOldCompletePath && m_pOptions->bCompletePath) || |
1661 |
(iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles)) |
(iOldMaxRecentFiles != m_pOptions->iMaxRecentFiles)) |