80 |
public: |
public: |
81 |
|
|
82 |
// We use the same class for MIDI and audio device management |
// We use the same class for MIDI and audio device management |
83 |
enum qsamplerDeviceType { Midi, Audio }; |
enum qsamplerDeviceType { None, Midi, Audio }; |
84 |
|
|
85 |
// Constructor. |
// Constructor. |
86 |
qsamplerDevice(lscp_client_t *pClient, |
qsamplerDevice(lscp_client_t *pClient, |
99 |
// Device property accessors. |
// Device property accessors. |
100 |
int deviceID() const; |
int deviceID() const; |
101 |
qsamplerDeviceType deviceType() const; |
qsamplerDeviceType deviceType() const; |
102 |
|
const QString& deviceTypeName() const; |
103 |
const QString& driverName() const; |
const QString& driverName() const; |
104 |
const QString& deviceName() const; |
const QString& deviceName() const; |
105 |
|
|
122 |
// Instance variables. |
// Instance variables. |
123 |
int m_iDeviceID; |
int m_iDeviceID; |
124 |
qsamplerDeviceType m_deviceType; |
qsamplerDeviceType m_deviceType; |
125 |
|
QString m_sDeviceType; |
126 |
QString m_sDriverName; |
QString m_sDriverName; |
127 |
QString m_sDeviceName; |
QString m_sDeviceName; |
128 |
|
|
180 |
}; |
}; |
181 |
|
|
182 |
|
|
183 |
|
//------------------------------------------------------------------------- |
184 |
|
// qsamplerDeviceParamTableSpinBox - Custom spin box for parameter table. |
185 |
|
// |
186 |
|
|
187 |
|
class qsamplerDeviceParamTableSpinBox : public QTableItem |
188 |
|
{ |
189 |
|
public: |
190 |
|
|
191 |
|
// Constructor. |
192 |
|
qsamplerDeviceParamTableSpinBox (QTable *pTable, EditType editType); |
193 |
|
|
194 |
|
// Public accessors. |
195 |
|
void setMinValue(int iMinValue); |
196 |
|
void setMaxValue(int iMaxValue); |
197 |
|
void setValue(int iValue); |
198 |
|
|
199 |
|
protected: |
200 |
|
|
201 |
|
// Virtual implemetations. |
202 |
|
QWidget *createEditor() const; |
203 |
|
void setContentFromEditor(QWidget *pWidget); |
204 |
|
|
205 |
|
private: |
206 |
|
|
207 |
|
// Initial value holders. |
208 |
|
int m_iMinValue; |
209 |
|
int m_iMaxValue; |
210 |
|
int m_iValue; |
211 |
|
}; |
212 |
|
|
213 |
|
|
214 |
|
//------------------------------------------------------------------------- |
215 |
|
// qsamplerDeviceParamTableEditBox - Custom edit box for parameter table. |
216 |
|
// |
217 |
|
|
218 |
|
class qsamplerDeviceParamTableEditBox : public QTableItem |
219 |
|
{ |
220 |
|
public: |
221 |
|
|
222 |
|
// Constructor. |
223 |
|
qsamplerDeviceParamTableEditBox (QTable *pTable, EditType editType, |
224 |
|
const QString& sText); |
225 |
|
|
226 |
|
protected: |
227 |
|
|
228 |
|
// Virtual implemetations. |
229 |
|
QWidget *createEditor() const; |
230 |
|
void setContentFromEditor(QWidget *pWidget); |
231 |
|
}; |
232 |
|
|
233 |
|
|
234 |
#endif // __qsamplerDevice_h |
#endif // __qsamplerDevice_h |
235 |
|
|
236 |
|
|