1 |
// qsamplerOptions.cpp |
// qsamplerOptions.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2003-2004, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
46 |
m_settings.beginGroup("/Server"); |
m_settings.beginGroup("/Server"); |
47 |
sServerHost = m_settings.readEntry("/ServerHost", "localhost"); |
sServerHost = m_settings.readEntry("/ServerHost", "localhost"); |
48 |
iServerPort = m_settings.readNumEntry("/ServerPort", 8888); |
iServerPort = m_settings.readNumEntry("/ServerPort", 8888); |
49 |
iServerTimeout = m_settings.readNumEntry("/ServerTimeout", 500); |
iServerTimeout = m_settings.readNumEntry("/ServerTimeout", 1000); |
50 |
bServerStart = m_settings.readBoolEntry("/ServerStart", true); |
bServerStart = m_settings.readBoolEntry("/ServerStart", true); |
51 |
sServerCmdLine = m_settings.readEntry("/ServerCmdLine", "linuxsampler"); |
sServerCmdLine = m_settings.readEntry("/ServerCmdLine", "linuxsampler"); |
52 |
iStartDelay = m_settings.readNumEntry("/StartDelay", 2); |
iStartDelay = m_settings.readNumEntry("/StartDelay", 3); |
53 |
m_settings.endGroup(); |
m_settings.endGroup(); |
54 |
|
|
55 |
// Load display options... |
// Load display options... |
63 |
bMessagesLimit = m_settings.readBoolEntry("/MessagesLimit", true); |
bMessagesLimit = m_settings.readBoolEntry("/MessagesLimit", true); |
64 |
iMessagesLimitLines = m_settings.readNumEntry("/MessagesLimitLines", 1000); |
iMessagesLimitLines = m_settings.readNumEntry("/MessagesLimitLines", 1000); |
65 |
bConfirmRemove = m_settings.readBoolEntry("/ConfirmRemove", true); |
bConfirmRemove = m_settings.readBoolEntry("/ConfirmRemove", true); |
66 |
|
bKeepOnTop = m_settings.readBoolEntry("/KeepOnTop", true); |
67 |
bStdoutCapture = m_settings.readBoolEntry("/StdoutCapture", true); |
bStdoutCapture = m_settings.readBoolEntry("/StdoutCapture", true); |
68 |
bCompletePath = m_settings.readBoolEntry("/CompletePath", true); |
bCompletePath = m_settings.readBoolEntry("/CompletePath", true); |
69 |
iMaxRecentFiles = m_settings.readNumEntry("/MaxRecentFiles", 5); |
iMaxRecentFiles = m_settings.readNumEntry("/MaxRecentFiles", 5); |
133 |
m_settings.writeEntry("/MessagesLimit", bMessagesLimit); |
m_settings.writeEntry("/MessagesLimit", bMessagesLimit); |
134 |
m_settings.writeEntry("/MessagesLimitLines", iMessagesLimitLines); |
m_settings.writeEntry("/MessagesLimitLines", iMessagesLimitLines); |
135 |
m_settings.writeEntry("/ConfirmRemove", bConfirmRemove); |
m_settings.writeEntry("/ConfirmRemove", bConfirmRemove); |
136 |
|
m_settings.writeEntry("/KeepOnTop", bKeepOnTop); |
137 |
m_settings.writeEntry("/StdoutCapture", bStdoutCapture); |
m_settings.writeEntry("/StdoutCapture", bStdoutCapture); |
138 |
m_settings.writeEntry("/CompletePath", bCompletePath); |
m_settings.writeEntry("/CompletePath", bCompletePath); |
139 |
m_settings.writeEntry("/MaxRecentFiles", iMaxRecentFiles); |
m_settings.writeEntry("/MaxRecentFiles", iMaxRecentFiles); |