1 |
// qsamplerOptions.cpp |
// qsamplerOptions.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, Christian Schoenebeck |
Copyright (C) 2007, 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 |
65 |
iStartDelay = m_settings.value("/StartDelay", 3).toInt(); |
iStartDelay = m_settings.value("/StartDelay", 3).toInt(); |
66 |
m_settings.endGroup(); |
m_settings.endGroup(); |
67 |
|
|
68 |
|
// Load logging options... |
69 |
|
m_settings.beginGroup("/Logging"); |
70 |
|
bMessagesLog = m_settings.value("/MessagesLog", false).toBool(); |
71 |
|
sMessagesLogPath = m_settings.value("/MessagesLogPath", "qsampler.log").toString(); |
72 |
|
m_settings.endGroup(); |
73 |
|
|
74 |
// Load display options... |
// Load display options... |
75 |
m_settings.beginGroup("/Display"); |
m_settings.beginGroup("/Display"); |
76 |
sDisplayFont = m_settings.value("/DisplayFont").toString(); |
sDisplayFont = m_settings.value("/DisplayFont").toString(); |
86 |
bStdoutCapture = m_settings.value("/StdoutCapture", true).toBool(); |
bStdoutCapture = m_settings.value("/StdoutCapture", true).toBool(); |
87 |
bCompletePath = m_settings.value("/CompletePath", true).toBool(); |
bCompletePath = m_settings.value("/CompletePath", true).toBool(); |
88 |
iMaxRecentFiles = m_settings.value("/MaxRecentFiles", 5).toInt(); |
iMaxRecentFiles = m_settings.value("/MaxRecentFiles", 5).toInt(); |
89 |
|
iBaseFontSize = m_settings.value("/BaseFontSize", 0).toInt(); |
90 |
// if libgig provides a fast way to retrieve instrument names even for large |
// if libgig provides a fast way to retrieve instrument names even for large |
91 |
// .gig files, then we enable this feature by default |
// .gig files, then we enable this feature by default |
92 |
#if HAVE_LIBGIG_SETAUTOLOAD |
#if HAVE_LIBGIG_SETAUTOLOAD |
154 |
m_settings.setValue("/StartDelay", iStartDelay); |
m_settings.setValue("/StartDelay", iStartDelay); |
155 |
m_settings.endGroup(); |
m_settings.endGroup(); |
156 |
|
|
157 |
|
// Save logging options... |
158 |
|
m_settings.beginGroup("/Logging"); |
159 |
|
m_settings.setValue("/MessagesLog", bMessagesLog); |
160 |
|
m_settings.setValue("/MessagesLogPath", sMessagesLogPath); |
161 |
|
m_settings.endGroup(); |
162 |
|
|
163 |
// Save display options. |
// Save display options. |
164 |
m_settings.beginGroup("/Display"); |
m_settings.beginGroup("/Display"); |
165 |
m_settings.setValue("/DisplayFont", sDisplayFont); |
m_settings.setValue("/DisplayFont", sDisplayFont); |
175 |
m_settings.setValue("/StdoutCapture", bStdoutCapture); |
m_settings.setValue("/StdoutCapture", bStdoutCapture); |
176 |
m_settings.setValue("/CompletePath", bCompletePath); |
m_settings.setValue("/CompletePath", bCompletePath); |
177 |
m_settings.setValue("/MaxRecentFiles", iMaxRecentFiles); |
m_settings.setValue("/MaxRecentFiles", iMaxRecentFiles); |
178 |
|
m_settings.setValue("/BaseFontSize", iBaseFontSize); |
179 |
m_settings.setValue("/InstrumentNames", bInstrumentNames); |
m_settings.setValue("/InstrumentNames", bInstrumentNames); |
180 |
m_settings.endGroup(); |
m_settings.endGroup(); |
181 |
|
|