1 |
// qsamplerOptions.h |
// qsamplerOptions.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, 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 |
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; |
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; |
86 |
bool bStdoutCapture; |
bool bStdoutCapture; |
87 |
bool bCompletePath; |
bool bCompletePath; |
88 |
bool bInstrumentNames; |
bool bInstrumentNames; |
89 |
|
int iBaseFontSize; |
90 |
|
|
91 |
// View options... |
// View options... |
92 |
bool bMenubar; |
bool bMenubar; |
118 |
void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
119 |
void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); |
120 |
|
|
121 |
|
int getMaxVoices(); |
122 |
|
int getEffectiveMaxVoices(); |
123 |
|
void setMaxVoices(int iMaxVoices); |
124 |
|
|
125 |
|
int getMaxStreams(); |
126 |
|
int getEffectiveMaxStreams(); |
127 |
|
void setMaxStreams(int iMaxStreams); |
128 |
|
|
129 |
|
void sendFineTuningSettings(); |
130 |
|
|
131 |
private: |
private: |
132 |
|
|
133 |
// Settings member variables. |
// Settings member variables. |
134 |
QSettings m_settings; |
QSettings m_settings; |
135 |
|
|
136 |
|
// Tuning |
137 |
|
int iMaxVoices; |
138 |
|
int iMaxStreams; |
139 |
}; |
}; |
140 |
|
|
141 |
|
} // namespace QSampler |
142 |
|
|
143 |
|
|
144 |
#endif // __qsamplerOptions_h |
#endif // __qsamplerOptions_h |
145 |
|
|