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

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

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

revision 1509 by capela, Thu Nov 22 11:10:44 2007 UTC revision 3014 by capela, Mon Oct 17 16:23:15 2016 UTC
# Line 1  Line 1 
1  // qsamplerOptions.h  // qsamplerOptions.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2016, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007,2015 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
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 30  Line 30 
30  class QWidget;  class QWidget;
31  class QComboBox;  class QComboBox;
32    
33    namespace QSampler {
34    
35  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
36  // qsamplerOptions - Prototype settings class.  // QSampler::Options - Prototype settings class.
37  //  //
38    
39  class qsamplerOptions  class Options
40  {  {
41  public:  public:
42    
43          // Constructor.          // Constructor.
44          qsamplerOptions();          Options();
45          // Default destructor.          // Default destructor.
46          ~qsamplerOptions();          ~Options();
47    
48          // The settings object accessor.          // The settings object accessor.
49          QSettings& settings();          QSettings& settings();
50    
51            // explicit I/O methods.
52            void loadOptions();
53            void saveOptions();
54    
55          // Command line arguments parser.          // Command line arguments parser.
56          bool parse_args(int argc, char **argv);          bool parse_args(const QStringList& args);
57          // Command line usage helper.          // Command line usage helper.
58          void print_usage(const char *arg0);          void print_usage(const QString& arg0);
59    
60          // Startup supplied session file.          // Startup supplied session file.
61          QString sSessionFile;          QString sSessionFile;
# Line 63  public: Line 68  public:
68          QString sServerCmdLine;          QString sServerCmdLine;
69          int     iStartDelay;          int     iStartDelay;
70    
71            // Logging options...
72            bool    bMessagesLog;
73            QString sMessagesLogPath;
74    
75          // Display options...          // Display options...
76          QString sDisplayFont;          QString sDisplayFont;
77          bool    bDisplayEffect;          bool    bDisplayEffect;
# Line 73  public: Line 82  public:
82          bool    bMessagesLimit;          bool    bMessagesLimit;
83          int     iMessagesLimitLines;          int     iMessagesLimitLines;
84          bool    bConfirmRemove;          bool    bConfirmRemove;
85            bool    bConfirmReset;
86            bool    bConfirmRestart;
87            bool    bConfirmError;
88          bool    bKeepOnTop;          bool    bKeepOnTop;
89          bool    bStdoutCapture;          bool    bStdoutCapture;
90          bool    bCompletePath;          bool    bCompletePath;
91          bool    bInstrumentNames;          bool    bInstrumentNames;
92            int     iBaseFontSize;
93    
94          // View options...          // View options...
95          bool    bMenubar;          bool    bMenubar;
# Line 101  public: Line 114  public:
114          QStringList recentFiles;          QStringList recentFiles;
115    
116          // Widget geometry persistence helper prototypes.          // Widget geometry persistence helper prototypes.
117          void saveWidgetGeometry(QWidget *pWidget);          void saveWidgetGeometry(QWidget *pWidget, bool bVisible = false);
118          void loadWidgetGeometry(QWidget *pWidget);          void loadWidgetGeometry(QWidget *pWidget, bool bVisible = false);
119    
120          // Combo box history persistence helper prototypes.          // Combo box history persistence helper prototypes.
121          void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8);          void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8);
122          void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8);          void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8);
123    
124            int  getMaxVoices();
125            int  getEffectiveMaxVoices();
126            void setMaxVoices(int iMaxVoices);
127    
128            int  getMaxStreams();
129            int  getEffectiveMaxStreams();
130            void setMaxStreams(int iMaxStreams);
131    
132            void sendFineTuningSettings();
133    
134  private:  private:
135    
136          // Settings member variables.          // Settings member variables.
137          QSettings m_settings;          QSettings m_settings;
138    
139            // Tuning
140            int iMaxVoices;
141            int iMaxStreams;
142  };  };
143    
144    } // namespace QSampler
145    
146    
147  #endif  // __qsamplerOptions_h  #endif  // __qsamplerOptions_h
148    

Legend:
Removed from v.1509  
changed lines
  Added in v.3014

  ViewVC Help
Powered by ViewVC