/[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 341 by capela, Tue Jan 18 11:29:01 2005 UTC revision 920 by capela, Sun Sep 24 12:47:51 2006 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) 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
# Line 13  Line 13 
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  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
# Line 46  qsamplerOptions::qsamplerOptions (void) Line 48  qsamplerOptions::qsamplerOptions (void)
48      m_settings.beginGroup("/Server");      m_settings.beginGroup("/Server");
49      sServerHost    = m_settings.readEntry("/ServerHost", "localhost");      sServerHost    = m_settings.readEntry("/ServerHost", "localhost");
50      iServerPort    = m_settings.readNumEntry("/ServerPort", 8888);      iServerPort    = m_settings.readNumEntry("/ServerPort", 8888);
51      iServerTimeout = m_settings.readNumEntry("/ServerTimeout", 500);      iServerTimeout = m_settings.readNumEntry("/ServerTimeout", 1000);
52      bServerStart   = m_settings.readBoolEntry("/ServerStart", true);      bServerStart   = m_settings.readBoolEntry("/ServerStart", true);
53      sServerCmdLine = m_settings.readEntry("/ServerCmdLine", "linuxsampler");      sServerCmdLine = m_settings.readEntry("/ServerCmdLine", "linuxsampler");
54      iStartDelay    = m_settings.readNumEntry("/StartDelay", 2);      iStartDelay    = m_settings.readNumEntry("/StartDelay", 3);
55      m_settings.endGroup();      m_settings.endGroup();
56    
57      // Load display options...      // Load display options...
# Line 63  qsamplerOptions::qsamplerOptions (void) Line 65  qsamplerOptions::qsamplerOptions (void)
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);
# Line 132  qsamplerOptions::~qsamplerOptions (void) Line 135  qsamplerOptions::~qsamplerOptions (void)
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);
# Line 255  bool qsamplerOptions::parse_args ( int a Line 259  bool qsamplerOptions::parse_args ( int a
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          }          }

Legend:
Removed from v.341  
changed lines
  Added in v.920

  ViewVC Help
Powered by ViewVC