/[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 1558 by capela, Thu Dec 6 09:35:33 2007 UTC revision 1738 by capela, Wed May 14 15:24:22 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 50  Options::Options (void) Line 50  Options::Options (void)
50          m_settings.beginGroup("/Server");          m_settings.beginGroup("/Server");
51          sServerHost    = m_settings.value("/ServerHost", "localhost").toString();          sServerHost    = m_settings.value("/ServerHost", "localhost").toString();
52          iServerPort    = m_settings.value("/ServerPort", 8888).toInt();          iServerPort    = m_settings.value("/ServerPort", 8888).toInt();
53            #if defined(__APPLE__)  //  Toshi Nagata 20080105
54            //  TODO: Should this be a configure option?
55            iServerTimeout = m_settings.value("/ServerTimeout", 10000).toInt();
56            #else
57          iServerTimeout = m_settings.value("/ServerTimeout", 1000).toInt();          iServerTimeout = m_settings.value("/ServerTimeout", 1000).toInt();
58            #endif
59          bServerStart   = m_settings.value("/ServerStart", true).toBool();          bServerStart   = m_settings.value("/ServerStart", true).toBool();
60            #if defined(__APPLE__)  //  Toshi Nagata 20080113
61            sServerCmdLine = m_settings.value("/ServerCmdLine", "linuxsampler.starter").toString();
62            #else
63          sServerCmdLine = m_settings.value("/ServerCmdLine", "linuxsampler").toString();          sServerCmdLine = m_settings.value("/ServerCmdLine", "linuxsampler").toString();
64            #endif
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 138  Options::~Options (void) Line 153  Options::~Options (void)
153          m_settings.setValue("/StartDelay", iStartDelay);          m_settings.setValue("/StartDelay", iStartDelay);
154          m_settings.endGroup();          m_settings.endGroup();
155    
156            // Save logging options...
157            m_settings.beginGroup("/Logging");
158            m_settings.setValue("/MessagesLog", bMessagesLog);
159            m_settings.setValue("/MessagesLogPath", sMessagesLogPath);
160            m_settings.endGroup();
161    
162          // Save display options.          // Save display options.
163          m_settings.beginGroup("/Display");          m_settings.beginGroup("/Display");
164          m_settings.setValue("/DisplayFont", sDisplayFont);          m_settings.setValue("/DisplayFont", sDisplayFont);

Legend:
Removed from v.1558  
changed lines
  Added in v.1738

  ViewVC Help
Powered by ViewVC