/[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 1738 by capela, Wed May 14 15:24:22 2008 UTC revision 2722 by capela, Tue Mar 3 17:41:04 2015 UTC
# Line 1  Line 1 
1  // qsamplerOptions.h  // qsamplerOptions.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2008, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2015, 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 48  public: Line 48  public:
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 78  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 106  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  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC