1 |
// qsamplerOptions.h |
// qsamplerOptions.h |
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 |
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(); |
64 |
QString sServerCmdLine; |
QString sServerCmdLine; |
65 |
int iStartDelay; |
int iStartDelay; |
66 |
|
|
67 |
|
// Logging options... |
68 |
|
bool bMessagesLog; |
69 |
|
QString sMessagesLogPath; |
70 |
|
|
71 |
// Display options... |
// Display options... |
72 |
QString sDisplayFont; |
QString sDisplayFont; |
73 |
bool bDisplayEffect; |
bool bDisplayEffect; |
82 |
bool bStdoutCapture; |
bool bStdoutCapture; |
83 |
bool bCompletePath; |
bool bCompletePath; |
84 |
bool bInstrumentNames; |
bool bInstrumentNames; |
85 |
|
int iBaseFontSize; |
86 |
|
|
87 |
// View options... |
// View options... |
88 |
bool bMenubar; |
bool bMenubar; |
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 |
138 |
|
|
139 |
|
|
140 |
#endif // __qsamplerOptions_h |
#endif // __qsamplerOptions_h |
141 |
|
|