1 |
// qsamplerOptions.cpp |
// qsamplerOptions.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2006, 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 |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
GNU General Public License for more details. |
GNU General Public License for more details. |
15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License along |
17 |
along with this program; if not, write to the Free Software |
with this program; if not, write to the Free Software Foundation, Inc., |
18 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 |
|
|
20 |
*****************************************************************************/ |
*****************************************************************************/ |
21 |
|
|
|
#include "qsamplerOptions.h" |
|
22 |
#include "qsamplerAbout.h" |
#include "qsamplerAbout.h" |
23 |
|
#include "qsamplerOptions.h" |
24 |
|
|
25 |
#include <qcombobox.h> |
#include <qcombobox.h> |
26 |
|
|
27 |
#include <lscp/client.h> |
#include <lscp/client.h> |
28 |
|
|
29 |
#include "config.h" |
#ifdef CONFIG_LIBGIG |
30 |
|
#include <gig.h> |
31 |
|
#endif |
32 |
|
|
33 |
|
|
34 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
65 |
bMessagesLimit = m_settings.readBoolEntry("/MessagesLimit", true); |
bMessagesLimit = m_settings.readBoolEntry("/MessagesLimit", true); |
66 |
iMessagesLimitLines = m_settings.readNumEntry("/MessagesLimitLines", 1000); |
iMessagesLimitLines = m_settings.readNumEntry("/MessagesLimitLines", 1000); |
67 |
bConfirmRemove = m_settings.readBoolEntry("/ConfirmRemove", true); |
bConfirmRemove = m_settings.readBoolEntry("/ConfirmRemove", true); |
68 |
|
bKeepOnTop = m_settings.readBoolEntry("/KeepOnTop", true); |
69 |
bStdoutCapture = m_settings.readBoolEntry("/StdoutCapture", true); |
bStdoutCapture = m_settings.readBoolEntry("/StdoutCapture", true); |
70 |
bCompletePath = m_settings.readBoolEntry("/CompletePath", true); |
bCompletePath = m_settings.readBoolEntry("/CompletePath", true); |
71 |
iMaxRecentFiles = m_settings.readNumEntry("/MaxRecentFiles", 5); |
iMaxRecentFiles = m_settings.readNumEntry("/MaxRecentFiles", 5); |
135 |
m_settings.writeEntry("/MessagesLimit", bMessagesLimit); |
m_settings.writeEntry("/MessagesLimit", bMessagesLimit); |
136 |
m_settings.writeEntry("/MessagesLimitLines", iMessagesLimitLines); |
m_settings.writeEntry("/MessagesLimitLines", iMessagesLimitLines); |
137 |
m_settings.writeEntry("/ConfirmRemove", bConfirmRemove); |
m_settings.writeEntry("/ConfirmRemove", bConfirmRemove); |
138 |
|
m_settings.writeEntry("/KeepOnTop", bKeepOnTop); |
139 |
m_settings.writeEntry("/StdoutCapture", bStdoutCapture); |
m_settings.writeEntry("/StdoutCapture", bStdoutCapture); |
140 |
m_settings.writeEntry("/CompletePath", bCompletePath); |
m_settings.writeEntry("/CompletePath", bCompletePath); |
141 |
m_settings.writeEntry("/MaxRecentFiles", iMaxRecentFiles); |
m_settings.writeEntry("/MaxRecentFiles", iMaxRecentFiles); |
259 |
} |
} |
260 |
else if (sArg == "-v" || sArg == "--version") { |
else if (sArg == "-v" || sArg == "--version") { |
261 |
fprintf(stderr, "Qt: %s\n", qVersion()); |
fprintf(stderr, "Qt: %s\n", qVersion()); |
262 |
fprintf(stderr, "liblscp: %s\n", ::lscp_client_version()); |
#ifdef CONFIG_LIBGIG |
263 |
|
fprintf(stderr, "%s: %s\n", gig::libraryName().c_str(), gig::libraryVersion().c_str()); |
264 |
|
#endif |
265 |
|
fprintf(stderr, "%s: %s\n", ::lscp_client_package(), ::lscp_client_version()); |
266 |
fprintf(stderr, "qsampler: %s\n", QSAMPLER_VERSION); |
fprintf(stderr, "qsampler: %s\n", QSAMPLER_VERSION); |
267 |
return false; |
return false; |
268 |
} |
} |