/[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 264 by capela, Wed Sep 29 13:12:45 2004 UTC revision 404 by capela, Wed Feb 23 13:47:47 2005 UTC
# Line 1  Line 1 
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
# Line 46  qsamplerOptions::qsamplerOptions (void) Line 46  qsamplerOptions::qsamplerOptions (void)
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...
56      m_settings.beginGroup("/Display");      m_settings.beginGroup("/Display");
57      sDisplayFont     = m_settings.readEntry("/DisplayFont", QString::null);      sDisplayFont     = m_settings.readEntry("/DisplayFont", QString::null);
58        bDisplayEffect   = m_settings.readBoolEntry("/DisplayEffect", true);
59      bAutoRefresh     = m_settings.readBoolEntry("/AutoRefresh", true);      bAutoRefresh     = m_settings.readBoolEntry("/AutoRefresh", true);
60      iAutoRefreshTime = m_settings.readNumEntry("/AutoRefreshTime", 1000);      iAutoRefreshTime = m_settings.readNumEntry("/AutoRefreshTime", 1000);
61      iMaxVolume       = m_settings.readNumEntry("/MaxVolume", 100);      iMaxVolume       = m_settings.readNumEntry("/MaxVolume", 100);
# Line 65  qsamplerOptions::qsamplerOptions (void) Line 66  qsamplerOptions::qsamplerOptions (void)
66      bStdoutCapture   = m_settings.readBoolEntry("/StdoutCapture", true);      bStdoutCapture   = m_settings.readBoolEntry("/StdoutCapture", true);
67      bCompletePath    = m_settings.readBoolEntry("/CompletePath", true);      bCompletePath    = m_settings.readBoolEntry("/CompletePath", true);
68      iMaxRecentFiles  = m_settings.readNumEntry("/MaxRecentFiles", 5);      iMaxRecentFiles  = m_settings.readNumEntry("/MaxRecentFiles", 5);
69        bInstrumentNames = m_settings.readBoolEntry("/InstrumentNames", false);
70      m_settings.endGroup();      m_settings.endGroup();
71    
72      // And go into view options group.      // And go into view options group.
# Line 122  qsamplerOptions::~qsamplerOptions (void) Line 124  qsamplerOptions::~qsamplerOptions (void)
124      // Save display options.      // Save display options.
125      m_settings.beginGroup("/Display");      m_settings.beginGroup("/Display");
126      m_settings.writeEntry("/DisplayFont", sDisplayFont);      m_settings.writeEntry("/DisplayFont", sDisplayFont);
127        m_settings.writeEntry("/DisplayEffect", bDisplayEffect);
128      m_settings.writeEntry("/AutoRefresh", bAutoRefresh);      m_settings.writeEntry("/AutoRefresh", bAutoRefresh);
129      m_settings.writeEntry("/AutoRefreshTime", iAutoRefreshTime);      m_settings.writeEntry("/AutoRefreshTime", iAutoRefreshTime);
130      m_settings.writeEntry("/MaxVolume", iMaxVolume);      m_settings.writeEntry("/MaxVolume", iMaxVolume);
# Line 132  qsamplerOptions::~qsamplerOptions (void) Line 135  qsamplerOptions::~qsamplerOptions (void)
135      m_settings.writeEntry("/StdoutCapture", bStdoutCapture);      m_settings.writeEntry("/StdoutCapture", bStdoutCapture);
136      m_settings.writeEntry("/CompletePath", bCompletePath);      m_settings.writeEntry("/CompletePath", bCompletePath);
137      m_settings.writeEntry("/MaxRecentFiles", iMaxRecentFiles);      m_settings.writeEntry("/MaxRecentFiles", iMaxRecentFiles);
138        m_settings.writeEntry("/InstrumentNames", bInstrumentNames);
139      m_settings.endGroup();      m_settings.endGroup();
140    
141      // View options group.      // View options group.

Legend:
Removed from v.264  
changed lines
  Added in v.404

  ViewVC Help
Powered by ViewVC