1 |
// qsamplerOptions.h |
// qsamplerOptions.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2008, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2009, 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 |
49 |
QSettings& settings(); |
QSettings& settings(); |
50 |
|
|
51 |
// Command line arguments parser. |
// Command line arguments parser. |
52 |
bool parse_args(int argc, char **argv); |
bool parse_args(const QStringList& args); |
53 |
// Command line usage helper. |
// Command line usage helper. |
54 |
void print_usage(const char *arg0); |
void print_usage(const QString& arg0); |
55 |
|
|
56 |
// Startup supplied session file. |
// Startup supplied session file. |
57 |
QString sSessionFile; |
QString sSessionFile; |
114 |
void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
115 |
void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
116 |
|
|
117 |
|
int getMaxVoices(); |
118 |
|
int getEffectiveMaxVoices(); |
119 |
|
void setMaxVoices(int iMaxVoices); |
120 |
|
|
121 |
|
int getMaxStreams(); |
122 |
|
int getEffectiveMaxStreams(); |
123 |
|
void setMaxStreams(int iMaxStreams); |
124 |
|
|
125 |
|
void sendFineTuningSettings(); |
126 |
|
|
127 |
private: |
private: |
128 |
|
|
129 |
// Settings member variables. |
// Settings member variables. |
130 |
QSettings m_settings; |
QSettings m_settings; |
131 |
|
|
132 |
|
// Tuning |
133 |
|
int iMaxVoices; |
134 |
|
int iMaxStreams; |
135 |
}; |
}; |
136 |
|
|
137 |
} // namespace QSampler |
} // namespace QSampler |