/[svn]/qsampler/trunk/src/qsamplerOptions.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerOptions.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1643 by nagata, Sun Jan 13 16:44:00 2008 UTC revision 1749 by capela, Wed Jul 2 13:19:09 2008 UTC
# Line 1  Line 1 
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
# Line 65  Options::Options (void) Line 65  Options::Options (void)
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();
# Line 80  Options::Options (void) Line 86  Options::Options (void)
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
# Line 147  Options::~Options (void) Line 154  Options::~Options (void)
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);
# Line 162  Options::~Options (void) Line 175  Options::~Options (void)
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    

Legend:
Removed from v.1643  
changed lines
  Added in v.1749

  ViewVC Help
Powered by ViewVC